/* =====================================================================
   S.K Interiors — shared design system (owner: home-builder)
   Tokens + base + every shared class in CONTRACT.md.
   Page extras files (pages.css / areas.css / guides.css) must NOT
   redefine these classes; add page-specific layout only.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
/* Colour palettes. Light is the default; <html data-theme="dark"> switches to dark.
   "Dark islands" (footer, CTA band, studio, reels, lightbox, opening curtain, .theme-dark)
   keep the dark palette in both themes. --cream is the main TEXT colour in both palettes. */
:root, .theme-dark, .site-footer, .cta-band, .lightbox, .reel, .studio, .opening-curtain {
  color-scheme: dark;
  --ink: #0D0C0B;
  --ink-2: #161412;
  --ink-3: #1F1C19;
  --ink-4: #2A2621;
  --line: rgba(var(--gold-rgb), .18);
  --line-2: rgba(var(--gold-rgb), .32);
  --gold: #D6B26A;
  --gold-2: #B8893B;
  --gold-3: #F2D79B;
  --gold-grad: linear-gradient(135deg, #F2D79B 0%, #D6B26A 45%, #9C7330 100%);
  --cream: #F3EBDD;
  --cream-2: #D9CFBF;
  --muted: #A89F92;
  --emerald: #0F3B2E;
  --emerald-2: #14513F;
  --emerald-3: #1C6B53;
  --scrim: 13, 12, 11;
  --gold-rgb: 214, 178, 106;
  --shadow-rgb: 0, 0, 0;
  --on-dark: #F3EBDD;
  --placeholder: #7d756a;
  --danger: #e9a98d;
  --danger-bd: #d88a6a;
  --footer-bg: #090807;
}
.theme-dark, .site-footer, .cta-band, .lightbox, .reel, .studio, .opening-curtain { color: var(--cream); }
:root:not([data-theme="dark"]) {
  color-scheme: light;
  --ink: #FBF8F3;
  --ink-2: #F3EDE3;
  --ink-3: #FFFFFF;
  --ink-4: #ECE4D7;
  --line: rgba(138, 100, 39, .18);
  --line-2: rgba(138, 100, 39, .34);
  --gold: #8A6427;
  --gold-2: #A87C35;
  --gold-3: #6B4C1A;
  --gold-grad: linear-gradient(135deg, #B8893B 0%, #8A6427 48%, #5C4114 100%);
  --cream: #1B1815;
  --cream-2: #4A4239;
  --muted: #6F665B;
  --scrim: 251, 248, 243;
  --gold-rgb: 138, 100, 39;
  --shadow-rgb: 60, 42, 18;
  --placeholder: #9A9184;
  --danger: #B4532F;
  --danger-bd: #C8643F;
}

:root {
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 14px;
  --r-pill: 999px;
  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* type scale (fluid) */
  --t-xs: .8125rem;   /* 13 */
  --t-sm: .9375rem;   /* 15 */
  --t-base: 1.0625rem;/* 17 */
  --t-lg: 1.1875rem;  /* 19 */
  --t-h4: 1.5rem;
  --t-h3: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  --t-h2: clamp(2.3rem, 1.4rem + 3.4vw, 4.1rem);
  --t-h1: clamp(2.9rem, 1.6rem + 5.6vw, 6.6rem);

  --space-section: clamp(72px, 6vw + 40px, 140px);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
picture { width: 100%; }
picture img { width: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: .2em; }
a:hover { color: var(--gold-3); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--ink); }
.visually-hidden, .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;
}

/* ---------- 3. Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--cream);
  text-wrap: balance;
}
h1, .display--xl { font-size: var(--t-h1); line-height: .96; letter-spacing: -.02em; }
h2, .display--lg { font-size: var(--t-h2); }
h3, .display--md { font-size: var(--t-h3); font-weight: 600; line-height: 1.12; }
h4 { font-family: var(--f-body); font-size: var(--t-lg); font-weight: 600; line-height: 1.35; }
.display em, h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--cream-2); max-width: 60ch; font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--ink-2); }
.section--tight { padding-block: clamp(48px, 4vw + 24px, 88px); }
.section__head { display: grid; gap: 1.25rem; margin-bottom: clamp(36px, 4vw, 64px); max-width: 780px; }
.section__head--split { max-width: none; }
@media (min-width: 960px) {
  .section__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 4rem; }
}

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.6em;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-3); --btn-bd: var(--gold-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--gold); --btn-fg: var(--gold-3); }
.btn--wa { --btn-bg: var(--emerald-2); --btn-fg: var(--on-dark); --btn-bd: rgba(120, 200, 160, .35); }
.btn--wa:hover { --btn-bg: var(--emerald-3); }
.btn--sm { min-height: 42px; padding: .55em 1.15em; font-size: var(--t-xs); }
.btn--lg { min-height: 58px; padding: 1em 2em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--gold); font-weight: 600; font-size: var(--t-sm); text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.link-arrow:hover { color: var(--gold-3); border-color: var(--gold-3); }

/* ---------- 6. Header + nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(var(--scrim), .72), rgba(var(--scrim), 0));
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: rgba(var(--scrim), .92);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.site-header__logo { display: flex; align-items: center; flex: none; margin-right: auto; text-decoration: none; }
.site-header__logo img { height: 42px; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 50px; } }
.site-header__cta { display: none; }
@media (min-width: 480px) { .site-header__cta { display: inline-flex; } }

.site-nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a {
  text-decoration: none; font-size: var(--t-sm); font-weight: 500; color: var(--cream-2);
  position: relative; padding-block: 6px; transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-3); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__extra { display: none; }

.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; padding: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle::before { top: 17px; }
.nav-toggle span { top: 22px; }
.nav-toggle::after { top: 27px; }
body.nav-open .nav-toggle::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span { opacity: 0; }
body.nav-open .nav-toggle::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 100% 0 auto; z-index: 99;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--ink); padding: 28px var(--gutter) max(40px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    overflow-y: auto; overscroll-behavior-y: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  html.nav-open, body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a {
    display: block; padding: 14px 0; font-family: var(--f-display); font-size: 2rem; font-weight: 500;
    color: var(--cream); line-height: 1.2;
  }
  .site-nav__list a::after { display: none; }
  .site-nav__extra { display: grid; gap: 14px; color: var(--muted); font-size: var(--t-sm); }
  .site-nav__extra .btn { width: 100%; }
}

/* ---------- 7. Arch motif (jharokha) ---------- */
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--r) var(--r); isolation: isolate; }
.arch img, .arch video { width: 100%; height: 100%; object-fit: cover; }
.arch--framed::after {
  content: ""; position: absolute; inset: 10px; border-radius: inherit; z-index: 2;
  border: 1px solid rgba(242, 215, 155, .55); pointer-events: none;
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; color: var(--cream); text-decoration: none;
  transition: border-color .3s var(--ease-out), transform .4s var(--ease-out);
}
a.card:hover { border-color: var(--line-2); color: var(--cream); }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-4); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
a.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: clamp(20px, 2vw, 28px); display: grid; gap: .6rem; align-content: start; flex: 1; }
.card__body h3 { font-size: 1.65rem; }
.card__body p { color: var(--muted); font-size: var(--t-sm); line-height: 1.6; }
.card__meta { font-size: var(--t-xs); color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.card .link-arrow { margin-top: auto; justify-self: start; }

/* ---------- 9. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 62vh, 640px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 clamp(44px, 5vw, 80px);
  background: var(--ink-2);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img, .page-hero__bg picture { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(var(--scrim), .96) 0%, rgba(var(--scrim), .72) 42%, rgba(var(--scrim), .35) 100%),
    linear-gradient(to right, rgba(var(--scrim), .7), rgba(var(--scrim), 0) 70%);
}
.page-hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem); max-width: 16ch; margin-bottom: 1.1rem; }
.page-hero .lead { color: var(--cream-2); }
.page-hero .btn-row { margin-top: 1.75rem; }

.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35em .6em; font-size: var(--t-xs); color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .6em; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); opacity: .8; }
.breadcrumbs a { color: var(--cream-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-3); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 10. Prose ---------- */
.prose { max-width: 72ch; color: var(--cream-2); font-size: var(--t-base); line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--cream); margin-top: 2.2em; margin-bottom: -.1em; }
.prose h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); color: var(--cream); margin-top: 1.9em; }
.prose h4 { color: var(--cream); margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--line-2); }
.prose a:hover { color: var(--gold-3); text-decoration-color: var(--gold-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-weight: 600; }
.prose blockquote {
  border-left: 2px solid var(--gold); padding: .2em 0 .2em 1.25em;
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1.4; font-style: italic; color: var(--cream);
}
.prose figure img { border-radius: var(--r); }
.prose figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: .6em; }
.prose table { font-size: var(--t-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .75em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); font-weight: 600; background: var(--ink-3); }
.prose .note, .note {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1em 1.3em; color: var(--cream-2);
}

/* ---------- 11. FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 22px 0; font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); font-weight: 600; line-height: 1.25; color: var(--cream);
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-3); }
.faq__item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease-out), background-color .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: rgba(var(--gold-rgb), .08); }
.faq__item > :not(summary) { padding: 0 0 24px; color: var(--cream-2); max-width: 70ch; }
.faq__item > div > * + * { margin-top: .8em; }

/* ---------- 12. CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(64px, 6vw + 24px, 120px);
  background: var(--emerald);
  border-block: 1px solid var(--gold-2);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(var(--gold-rgb), .22), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(0, 0, 0, .45), transparent 70%);
}
.cta-band__inner { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1.3fr) auto; gap: 56px; } }
.cta-band h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); max-width: 18ch; }
.cta-band p { color: var(--cream-2); margin-top: 1rem; max-width: 56ch; }
.cta-band .eyebrow { color: var(--gold-3); }

/* ---------- 13. Chips + feature list ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chip-list li, .chip-list a, .chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: .45em 1.05em;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: var(--t-sm); color: var(--cream-2); text-decoration: none; line-height: 1.3;
  background: rgba(var(--scrim), .25);
}
.chip-list a { padding: 0; border: 0; min-height: 0; background: none; }
.chip-list li:has(> a) { padding: 0; }
.chip-list li > a { padding: .45em 1.05em; min-height: 38px; transition: color .2s; }
.chip-list li:has(> a):hover { border-color: var(--gold); }
.chip-list li > a:hover { color: var(--gold-3); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.feature-list li { position: relative; padding-left: 2rem; color: var(--cream-2); line-height: 1.55; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--gold);
}
.feature-list li::after {
  content: ""; position: absolute; left: 7.5px; top: calc(.38em + 4px); width: 4px; height: 7px;
  border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.feature-list strong { color: var(--cream); font-weight: 600; }

/* ---------- 14. Media grid (gallery) ---------- */
.media-grid { columns: 2; column-gap: 12px; }
@media (min-width: 760px) { .media-grid { columns: 3; column-gap: 18px; } }
@media (min-width: 1180px) { .media-grid { columns: 4; } }
.media-grid > figure, .media-grid > .media-grid__item {
  break-inside: avoid; margin: 0 0 12px; position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--ink-3); border: 1px solid var(--line);
}
@media (min-width: 760px) { .media-grid > figure, .media-grid > .media-grid__item { margin-bottom: 18px; } }
.media-grid a { display: block; position: relative; overflow: hidden; }
.media-grid img { width: 100%; transition: transform 1s var(--ease-out), opacity .4s; }
.media-grid a:hover img { transform: scale(1.035); }
.media-grid figcaption {
  padding: 12px 14px 14px; font-size: var(--t-xs); color: var(--muted); line-height: 1.45;
}
.media-grid figcaption strong { display: block; color: var(--cream); font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 2px; }
.media-grid .is-hidden { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar[hidden] { display: none; }
.filter-bar button {
  min-height: 40px; padding: .45em 1.1em; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: transparent; color: var(--cream-2); font-size: var(--t-sm); font-weight: 500; transition: all .2s;
}
.filter-bar button:hover { border-color: var(--gold); color: var(--gold-3); }
.filter-bar button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }

/* ---------- 15. Video reels ---------- */
.reel { position: relative; aspect-ratio: 9 / 16; background: var(--ink-3); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 16px 24px; border: 0; background: linear-gradient(to top, rgba(var(--scrim), .82), rgba(var(--scrim), 0) 55%);
  color: var(--cream); text-align: center; font-size: var(--t-sm);
}
.reel__play::before {
  content: ""; width: 64px; height: 64px; border-radius: 50%; margin-bottom: auto; margin-top: auto;
  border: 1px solid rgba(242, 215, 155, .7); background: rgba(var(--scrim), .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2D79B' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 54% 50% / 26px no-repeat;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .3s var(--ease-out);
}
.reel__play:hover::before { transform: scale(1.08); }
.reel__play[hidden], .reel.is-playing .reel__play { display: none; }

/* ---------- 16. Forms ---------- */
[data-wa-form][hidden] { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-xs); font-weight: 600; color: var(--cream-2); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 10px;
  background: var(--ink); border: 1px solid var(--line-2); color: var(--cream); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6B26A' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .18); }
.field input[aria-invalid="true"] { border-color: var(--danger-bd); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .field--full { grid-column: 1 / -1; } }
.form-note { font-size: var(--t-xs); color: var(--muted); }
.form-error { font-size: var(--t-xs); color: var(--danger); min-height: 1.2em; }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: clamp(64px, 6vw, 104px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: var(--t-sm); color: var(--muted); }
.footer-grid { display: grid; gap: 44px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1.15fr; } }
.site-footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__tag { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--gold); margin-bottom: .5rem; line-height: 1.3; }
.site-footer h2 {
  font-family: var(--f-body); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; font-variant-caps: all-small-caps;
  color: var(--gold); margin-bottom: 16px; line-height: 1.4;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--cream-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold-3); }
.site-footer address { font-style: normal; line-height: 1.65; }
.site-footer__contact > * + * { margin-top: 14px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--t-xs); }
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--t-xs);
}

/* ---------- 18. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--emerald-2); color: var(--on-dark); border: 1px solid var(--gold-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-out), background-color .2s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); background: var(--emerald-3); color: var(--on-dark); }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- 19. Lightbox (built by main.js) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 7, 6, .96); color: var(--cream);
}
.lightbox::backdrop { background: rgba(8, 7, 6, .96); }
.lightbox__stage { position: absolute; inset: 64px 12px 96px; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 28px; padding: 0 76px; text-align: center; font-size: var(--t-sm); color: var(--cream-2); }
.lightbox__count { display: block; font-size: var(--t-xs); color: var(--gold); margin-bottom: 4px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(var(--scrim), .6); color: var(--cream); display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.lightbox button:hover { border-color: var(--gold); color: var(--gold-3); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; bottom: 20px; }
.lightbox__next { right: 12px; bottom: 20px; }
@media (min-width: 900px) {
  .lightbox__stage { inset: 72px 96px 100px; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: 24px; } .lightbox__next { right: 24px; } .lightbox__close { top: 20px; right: 24px; }
}
body.lb-open { overflow: hidden; }

/* ---------- 20. Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 21. Utilities ---------- */
.stack > * + * { margin-top: var(--stack, 1rem); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.divider-diamond { display: flex; align-items: center; gap: 14px; color: var(--gold); }
.divider-diamond::before, .divider-diamond::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.map-embed { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) invert(.9) hue-rotate(180deg) contrast(.9); }
@media print { .site-header, .wa-float, .nav-toggle { display: none; } body { background: #fff; color: #000; } }

/* ---------- 22. Page transitions (cross-document View Transitions; ignored by browsers without support) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- 23. Theme toggle (sun / moon) + circular reveal ---------- */
.theme-toggle {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--gold);
  border: 1px solid var(--line-2);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), transform .3s var(--ease-out), color .25s;
}
.theme-toggle:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), .08); color: var(--gold-3); transform: rotate(-12deg); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 22px; height: 22px; overflow: visible; }
.theme-toggle .tt-core { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-out); }
.theme-toggle .tt-cut { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-out); }
.theme-toggle .tt-rays { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-out), opacity .3s; }
/* dark theme shows the moon: bigger core, mask circle bites a crescent, rays tuck away */
[data-theme="dark"] .theme-toggle .tt-core { transform: scale(1.55); }
[data-theme="dark"] .theme-toggle .tt-cut { transform: translate(-6px, 5px); }
[data-theme="dark"] .theme-toggle .tt-rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
@media (max-width: 479.98px) { .theme-toggle { width: 42px; height: 42px; } }

/* theme switch animation (main.js drives the clip-path; this just stops the default crossfade) */
html.theme-switching::view-transition-old(root),
html.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-switching::view-transition-old(root) { z-index: 1; }
html.theme-switching::view-transition-new(root) { z-index: 2; }
html.theme-switching::view-transition-group(*) { animation-duration: 0s; }

/* Light theme: softer, warmer depth */
:root:not([data-theme="dark"]) .site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(var(--shadow-rgb), .25); }
:root:not([data-theme="dark"]) .card { box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .05); }
:root:not([data-theme="dark"]) a.card:hover { box-shadow: 0 18px 40px -22px rgba(var(--shadow-rgb), .35); }
:root:not([data-theme="dark"]) .wa-float { box-shadow: 0 10px 28px rgba(20, 81, 63, .35); }
:root:not([data-theme="dark"]) .map-embed iframe { filter: none; }
:root:not([data-theme="dark"]) .site-header { background: rgba(var(--scrim), .8); border-bottom-color: var(--line); }
:root:not([data-theme="dark"]) .site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
:root:not([data-theme="dark"]) .page-hero::before {
  background:
    linear-gradient(to top, rgba(var(--scrim), .98) 0%, rgba(var(--scrim), .82) 40%, rgba(var(--scrim), .5) 100%),
    linear-gradient(to right, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .55) 45%, rgba(var(--scrim), 0) 80%);
}
:root:not([data-theme="dark"]) .site-header__logo img { filter: saturate(1.4) contrast(1.12) brightness(.9) drop-shadow(0 1px 1px rgba(92, 65, 20, .18)); }
