/* =========================================================
   Rasveda Labs — main.css
   A house of sensory & knowledge-driven brands
   ========================================================= */

:root {
  /* Palette — warm, saffron-inflected dark theme (rasa = essence/flavour) */
  --bg:            #0e0c0a;
  --bg-elev:       #16130f;
  --bg-card:       #1b1712;
  --line:          rgba(255, 236, 214, 0.10);
  --line-strong:   rgba(255, 236, 214, 0.18);

  --text:          #f4ede3;
  --text-muted:    #b7ab9b;
  --text-dim:      #857a6c;

  --accent:        #e8a04b;   /* saffron */
  --accent-warm:   #ff7a45;
  --accent-soft:   rgba(232, 160, 75, 0.14);

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1140px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 16px;
  background: var(--accent);
  color: #1a1206;
  border-radius: 8px;
  z-index: 100;
  clip: auto;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.section__sub {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 1rem 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #1a1206;
  box-shadow: 0 8px 30px -12px rgba(232, 160, 75, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(232, 160, 75, 0.8); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  /* No header bar: the logo and menu sit directly on the page background
     (same black as the rest), static and part of the page flow. Nothing to
     stick, overlap or slide under on iOS. Extra top padding drops the logo
     and menu clear of the notch / status-bar edge so they're fully visible. */
  position: static;
  background: transparent;
  border-bottom: none;
  padding-top: calc(env(safe-area-inset-top, 0px) + 44px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__logo {
  height: 38px; width: auto;
  display: block;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand__labs { color: var(--accent); margin-left: 0.15em; }

/* ---------- Nav ---------- */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__menu a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__menu a:hover { color: var(--text); }
.nav__cta {
  padding: 0.5em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent) !important; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__bars::before { transform: translate(-50%, -7px); }
.nav__bars::after  { transform: translate(-50%, 5px); }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin: 3.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__stats div { margin: 0; }
.hero__stats dt {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--text);
}
.hero__stats dd {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__glow {
  position: absolute;
  z-index: 1;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at center,
              rgba(232, 160, 75, 0.28), rgba(255, 122, 69, 0.10) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  position: relative;
}
.section--brands { background: var(--bg-elev); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Philosophy ---------- */
.philosophy { max-width: 760px; }
.philosophy__lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 1.75rem;
}
.philosophy__lead em, .philosophy p em { color: var(--accent); font-style: italic; }
.philosophy p { color: var(--text-muted); margin: 0; }

/* ---------- Brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.brand-card {
  --accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.brand-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.brand-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 22px 50px -28px rgba(0,0,0,0.9);
}
.brand-card:hover::before { transform: scaleX(1); }

.brand-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.brand-card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.brand-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  white-space: nowrap;
}
.brand-card__desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.brand-card__link {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  display: inline-flex;
  gap: 0.4em;
  transition: gap 0.25s var(--ease);
}
.brand-card__link:hover { gap: 0.75em; }
.brand-card__link span { transition: transform 0.25s var(--ease); }
.brand-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
}
.brand-card__live {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transition: color 0.2s var(--ease);
}
.brand-card__live:hover { color: var(--accent); }

.brand-card--next {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
.brand-card--next .brand-card__name { color: var(--text-muted); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.pillar {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar__num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0.6rem 0 0.6rem;
}
.pillar p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- CTA ---------- */
.section--cta {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(232,160,75,0.10), transparent 55%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
}
.cta { text-align: center; max-width: 680px; margin-inline: auto; }
.cta__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.cta__lead { color: var(--text-muted); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}
.footer__logo {
  width: clamp(170px, 42vw, 210px);
  height: auto;
  display: block;
}
.footer__brand p { color: var(--text-dim); margin: 1rem 0 0; font-style: italic; }
.footer__nav { display: flex; gap: clamp(2.5rem, 6vw, 5rem); flex-wrap: wrap; }
.footer__nav h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1rem;
}
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__nav a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--accent); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__bar p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(20px, 5vw, 40px) 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav__cta { display: inline-block; text-align: center; }
}
