/* ==========================================================================
   MIN’DOO — base: tokens, reset, typography, buttons, header, footer
   Palette sampled directly from the approved MIN’DOO logo.
   ========================================================================== */

:root {
  /* Brand */
  --forest: #203321;
  --forest-2: #2b3e2a;
  --moss: #46604b;
  --sage: #748a78;
  --sage-soft: #c9d1c3;
  --sage-wash: #e7e8dc;
  --gold: #a87a47;
  --gold-deep: #8a6234;   /* small gold text on cream (AA) */
  --gold-light: #c99a5f;  /* gold on forest (AA) */
  --sun: #e5b267;

  /* Surfaces */
  --cream: #f8f2ea;
  --cream-deep: #f1e8da;
  --paper: #fcf9f4;
  --sand: #eadcc4;

  /* Text */
  --ink: #1f2c21;
  --text: #3d4b3f;
  --text-soft: #5d6a5f;
  --on-dark: #f4ede1;
  --on-dark-soft: #c9cfc2;

  --line: rgba(32, 51, 33, .14);
  --line-gold: rgba(168, 122, 71, .45);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ml: "Noto Serif Malayalam", "Manjari", serif;

  --fs-body: clamp(1rem, .96rem + .2vw, 1.0875rem);
  --fs-lead: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 3.4vw, 4.6rem);
  --fs-h3: clamp(1.55rem, 1.3rem + .9vw, 2.1rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(5.5rem, 4rem + 7vw, 10.5rem);
  --radius: 22px;
  --radius-lg: 34px;
  --shadow-soft: 0 1px 2px rgba(32, 51, 33, .04), 0 12px 40px -12px rgba(32, 51, 33, .16);
  --shadow-lift: 0 2px 4px rgba(32, 51, 33, .05), 0 30px 60px -24px rgba(32, 51, 33, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Paper grain — subtle texture across the whole experience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
::selection { background: var(--sand); color: var(--forest); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--forest); color: var(--cream); padding: .7rem 1.1rem; border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout & type helpers ---------- */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 0 1.6rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--gold); }
.eyebrow__num { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; font-style: italic; color: var(--gold-deep); margin-right: -.3rem; order: -1; }

.h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.02; margin-bottom: 1.6rem; }
.h2 em, .hero__line--accent, .statement__text em, .invite__title em { color: var(--moss); font-weight: 300; }
.lead { font-family: var(--font-display); font-size: var(--fs-lead); line-height: 1.38; color: var(--ink); font-weight: 400; }

/* Placeholder marker for details the client still needs to confirm */
.tbc {
  display: inline-block; vertical-align: .12em; margin-left: .35rem;
  padding: .05rem .5rem; border: 1px dashed var(--line-gold); border-radius: 999px;
  font-family: var(--font-body); font-size: .66rem; font-style: normal; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); background: rgba(229, 178, 103, .12);
}

/* Logo-style ornament: line · dot · line */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin: 0 auto 2.2rem; width: 13rem; height: 10px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .7; }
.ornament { background: radial-gradient(circle, var(--gold) 0 3.5px, transparent 4px) center / 10px 10px no-repeat; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.25rem; padding: .85rem 1.65rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .3s var(--ease);
}
.btn::after { /* gentle fill sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--moss); transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(32, 51, 33, .5); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(229, 178, 103, .18); transition: transform .5s var(--ease-out); }
.btn:hover .btn__dot { transform: scale(1.35); }
.btn--sm { min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--gold { --btn-bg: var(--sun); --btn-fg: var(--forest); }
.btn--gold::after { background: #f1c985; }
.btn--link {
  --btn-bg: transparent; --btn-fg: var(--forest);
  padding-inline: .2rem; min-height: auto; border-radius: 0;
  border-bottom: 1px solid var(--line-gold);
}
.btn--link::after { display: none; }
.btn--link:hover { box-shadow: none; transform: none; border-color: var(--gold); }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn--link:hover .btn__arrow { transform: translateX(5px); }

.text-btn {
  padding: 0; border: 0; background: none; color: var(--forest);
  text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: .2em; font-size: inherit;
}
.text-btn:hover { text-decoration-color: var(--gold); }

/* ---------- Welcome veil ---------- */
.veil {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: var(--cream);
  animation: veil-out 1s var(--ease-out) 1.9s forwards;
}
.veil__inner { display: grid; justify-items: center; gap: 1.4rem; }
.veil__emblem { width: clamp(120px, 18vw, 170px); opacity: 0; transform: scale(.94); animation: veil-emblem 1.3s var(--ease-out) .15s forwards; }
.veil__line {
  margin: 0; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .42em; text-transform: uppercase; color: var(--forest);
  opacity: 0; animation: veil-text 1.1s var(--ease-out) .6s forwards;
}
.no-intro .veil, .no-js .veil { display: none; }
@keyframes veil-emblem { to { opacity: 1; transform: none; } }
@keyframes veil-text { from { letter-spacing: .6em; } to { opacity: 1; letter-spacing: .42em; } }
@keyframes veil-out { to { opacity: 0; visibility: hidden; transform: translateY(-2%); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(248, 242, 234, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand__emblem { width: auto; height: 46px; transition: height .5s var(--ease); }
.brand__word { width: auto; height: 22px; transition: height .5s var(--ease); }
.is-scrolled .brand__emblem { height: 40px; }
.is-scrolled .brand__word { height: 20px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1.1rem, 2vw, 2.1rem); list-style: none; }
.nav__list a {
  position: relative; display: block; padding: .5rem 0; text-decoration: none;
  font-size: .86rem; letter-spacing: .05em; color: var(--forest);
}
.nav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }

.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle {
    display: grid; place-items: center; margin-left: auto; width: 48px; height: 48px;
    border: 1px solid var(--line); border-radius: 50%; background: rgba(252, 249, 244, .7);
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 1.5px; background: var(--forest); border-radius: 2px;
    transition: transform .4s var(--ease-out), opacity .3s;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; width: 12px; }
  .menu-open .menu-toggle__bars { background: transparent; }
  .menu-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); width: 18px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
  background: var(--cream);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__list { list-style: none; display: grid; gap: .2rem; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; text-decoration: none;
  font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; color: var(--forest);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.mobile-menu__list span { font-size: .95rem; font-style: italic; color: var(--gold-deep); min-width: 1.6rem; }
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu__note { font-size: .85rem; color: var(--text-soft); text-align: center; margin: 0; }
.mobile-menu .btn { align-self: stretch; }
.menu-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Buttons keep their own hover lift (and no stagger delay) once revealed */
.js .btn.reveal.is-in { transition: opacity 1.1s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out); transition-delay: 0s; }
.js .btn.reveal.is-in:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding-top: clamp(4rem, 8vw, 6.5rem); font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr 1.4fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.footer__brand img { width: clamp(150px, 16vw, 200px); }
.footer__head { margin-bottom: 1rem; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.footer__addr { margin: 1rem 0 0; font-size: .86rem; opacity: .8; }
.footer__care { padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--text); }
.footer__care a { font-weight: 500; color: var(--forest); }
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.6rem 2rem;
  font-size: .8rem; letter-spacing: .06em; color: var(--text-soft);
}
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer__base p { margin: 0; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__care { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
