/* ─────────────────────────────────────────
   VaasthuSuite — shared design tokens
   Premium redesign
   ───────────────────────────────────────── */

@font-face { font-family: "SuisseIntl-Regular-WebS"; src: url("https://framerusercontent.com/assets/Zy3rMpeivCtDpgAiJJsvpdirgHY.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse Int'l Book"; src: url("https://framerusercontent.com/assets/34yjpF6KLCa5W8GT5VjMPHWBdkQ.woff2") format("woff2"); font-style: normal; font-weight: 450; font-display: swap; }
@font-face { font-family: "Suisse Int'l Medium"; src: url("https://framerusercontent.com/assets/do6kPKhFKFxVqY3xfYZQwHKzcY.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }

:root {
  /* Brand — site-ink family */
  --navy-ink: #0F1822;
  --navy: #14202E;
  --navy-2: #1C2C3D;
  --navy-mid: #24384F;
  --cobalt: #4F6F92;

  /* Surfaces — clean whites */
  --paper: #ffffff;        /* pure white */
  --paper-2: #F4F0E6;      /* warm concrete tone for section breaks */
  --bone: #FBF9F4;
  --ivory: #ffffff;
  --ink: #25211C;
  --ink-2: #666460;

  /* Neutrals */
  --line: rgba(20, 32, 46, 0.10);
  --line-strong: rgba(20, 32, 46, 0.20);
  --mute: #92908D;
  --mute-2: #AAA7A2;
  --faint: #aab1bf;

  /* Accents */
  --accent: var(--navy);
  --accent-2: var(--navy-2);
  --signal: #F2A93B;       /* amber — primary action accent */
  --amber: var(--signal);   /* compatibility alias for shared brand details */
  --ember: #C97D2E;        /* deeper amber-brown — rare accent */
  --jade: #3EAE6B;         /* status green — check icons, positive values */

  /* Type */
  --f-display: "SuisseIntl-Regular-WebS", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-sans: "Suisse Int'l Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Suisse Int'l Book", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 22, 56, 0.05);
  --shadow-md: 0 10px 40px -12px rgba(0, 22, 56, 0.15);
  --shadow-lg: 0 30px 80px -28px rgba(0, 22, 56, 0.28);

  /* Container */
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark theme override */
[data-theme="dark"] {
  --paper: #0F1822;
  --paper-2: #14202E;
  --bone: #0F1822;
  --ivory: #1C2C3D;
  --ink: #F4F0E6;
  --ink-2: #DCD5C4;
  --navy: #F2A93B;
  --navy-2: #F5BC63;
  --navy-ink: #F9D89A;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --mute: #a8b0c4;
  --mute-2: #8891a8;
  --faint: #5a6278;
}

/* Architectural blueprint variant */
[data-aesthetic="blueprint"] {
  --paper: #0a2548;
  --paper-2: #0e2d56;
  --bone: #0a2548;
  --ivory: #0e2d56;
  --ink: #e8f0ff;
  --ink-2: #c8d8f5;
  --navy: #89b4ff;
  --navy-2: #b8d0ff;
  --navy-ink: #ffffff;
  --line: rgba(137, 180, 255, 0.22);
  --line-strong: rgba(137, 180, 255, 0.40);
  --mute: #a8bfe5;
  --mute-2: #8aa3cc;
  --accent: #89b4ff;
  --f-display: "Fraunces", serif;
}

/* Editorial serif variant */
[data-aesthetic="editorial"] {
  --paper: #efe8dc;
  --paper-2: #e4dcce;
  --bone: #f6f1e7;
  --ivory: #faf6ed;
  --f-sans: "Fraunces", serif;
}

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--navy); color: var(--paper); }

/* ── Typography utilities ── */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.0;
}

.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-out);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: normal;
}
.nav-logo img { filter: brightness(.28); }
.nav-logo .dot {
  color: var(--amber);
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  background: transparent;
  border: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 100px;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); transform: translateY(-1px); }
.nav-links a.active {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Buttons ── */
.btn {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-dark:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--navy) 60%, transparent);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--ink); }

.btn-accent {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--navy) 70%, transparent);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Cartage interaction pass: quiet white nav, ink active state, and lifted hover links. */
.site-nav {
  background: rgba(255,255,255,.92) !important;
  border-bottom-color: rgba(37,33,28,.10) !important;
}
.nav-logo, .nav-links a, .nav-actions .btn-ghost { color: #25211c !important; }
.nav-links { gap: 26px !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
.nav-links a { border-radius: 0 !important; background: transparent !important; transition: color .25s var(--ease-out), transform .25s var(--ease-out), opacity .25s var(--ease-out) !important; }
.nav-links a:hover { color: #25211c !important; background: transparent !important; transform: translateY(-1px); }
.nav-links a.active { color: #25211c !important; background: transparent !important; font-weight: 500; }
.nav-actions .btn-dark { background: #25211c !important; border-color: #25211c !important; color: #fff !important; }
.nav-actions .btn-dark:hover { background: #666460 !important; border-color: #666460 !important; }
.nav-logo img { filter: brightness(.28); }

/* ── Footer ── */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 64px var(--pad) 32px;
  background: var(--paper);
}
.foot-inner { max-width: var(--wrap); margin: 0 auto; }
.foot-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot-brand h4 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: normal;
  margin-bottom: 12px;
  line-height: 1.1;
}
.foot-brand h4 em { font-style: italic; color: var(--navy); }
.foot-brand p { color: var(--mute); font-size: 14px; max-width: 320px; line-height: 1.55; }

.foot-col h5 {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--navy); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: var(--mute-2);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom .mono { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }
.reveal.delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Motion intensity tweak */
[data-motion="subtle"] .reveal:not(.in) { transform: translateY(12px); }
[data-motion="rich"] .reveal:not(.in) { transform: translateY(40px) scale(0.98); }

/* Grain texture overlay */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* ── Section padding scale ── */
.section { padding: clamp(64px, 10vw, 140px) var(--pad); }
.section-tight { padding: clamp(40px, 6vw, 72px) var(--pad); }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ── Mobile hamburger — dark slide-in panel, matches index.html/vaasthusuite.html ── */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(78vw, 320px);
  background: var(--ink);
  padding: 28px 32px 32px;
  flex-direction: column;
  gap: 4px;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  font-family: var(--f-sans);
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.mobile-menu-cta {
  margin-top: 12px;
  color: var(--signal);
  font-weight: 500;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-actions { gap: 8px; }
  .hamburger { display: flex; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Cartage-style desktop header geometry: full-width three-column alignment. */
@media (min-width: 821px) {
  .site-nav { border-bottom: 0 !important; }
  .site-nav .nav-inner {
    width: 100%;
    max-width: none !important;
    height: 72px !important;
    padding: 0 20px !important;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-nav .nav-logo {
    justify-self: start;
    font-size: 30px !important;
    line-height: 1;
    letter-spacing: -.04em;
  }
  .site-nav .nav-links { justify-self: center; }
  .site-nav .nav-actions { justify-self: end; }
}

@media (max-width: 520px) {
  .foot-top { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
}
