/* =========================================================
   ARLO — Premium web studio website
   Luxury / classic aesthetic: espresso + gold + ivory,
   Playfair Display headings, bold dark/light contrast.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Core surfaces */
  --cream: #f7f1e6;       /* base light background */
  --cream-2: #efe6d5;     /* alternate light background */
  --card: #fffdf8;        /* card surface on light */
  --line: #e5dcc8;        /* warm hairline on light */

  --dark: #14110b;        /* espresso near-black */
  --dark-2: #1e1912;      /* raised dark surface */
  --dark-line: rgba(214, 183, 110, .18);

  /* Ink / text */
  --ink: #17130b;         /* text on light */
  --ink-soft: #4c4436;
  --muted: #6c6253;       /* darkened to meet WCAG 1.4.3 (>=4.5:1 on cream) — #1 */
  --ivory: #f3ecdc;       /* text on dark */
  --ivory-soft: #c7bda6;
  --ivory-dim: #9a9079;

  /* Gold accent */
  --gold: #c69a3f;
  --gold-2: #e3c477;
  --gold-deep: #9c7526;
  --grad-gold: linear-gradient(135deg, #e6c87e 0%, #c99f43 55%, #a97e28 100%);

  /* Feedback */
  --ok: #2f7d4f;
  --err: #b4402f;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Shared type scale (#1 — keeps distinct sizes to one system) */
  --fs-label: .78rem;   /* eyebrows, tags, badges, breadcrumbs, fine labels */
  --fs-xs: .85rem;      /* fine print, meta */
  --fs-sm: .95rem;      /* secondary / small body */
  --fs-base: 1rem;      /* body */
  --fs-md: 1.1rem;      /* lead, emphasis, sub-headings */
  --fs-lg: 1.25rem;     /* h3 */

  /* Shared radius scale (#2) */
  --radius: 16px;       /* large cards */
  --radius-sm: 12px;    /* inputs, medium surfaces */
  --radius-xs: 8px;     /* nav items, icon tiles, chips */
  --radius-chip: 4px;   /* buttons, tags, badges */
  --radius-pill: 999px; /* pills, dots */

  /* Layout */
  --container: 1160px;
  --line-strong: #d8c9a6;  /* firmer card border for definition (#6/#15) */
  --shadow-sm: 0 1px 2px rgba(20, 17, 11, .05), 0 2px 8px rgba(20, 17, 11, .06);
  --shadow-card: 0 10px 26px -12px rgba(20, 17, 11, .20);  /* card definition (#6/#15) */
  --shadow-md: 0 14px 34px -10px rgba(20, 17, 11, .18);
  --shadow-lg: 0 34px 70px -18px rgba(20, 17, 11, .30);
  --shadow-gold: 0 16px 36px -12px rgba(169, 126, 40, .5);

  --space: clamp(4rem, 7.5vw, 7.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.12; color: var(--ink);
  margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

/* Accessibility helpers */
.visually-hidden {
  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: absolute; left: 8px; top: -60px; background: var(--gold); color: #1a1408;
  padding: .6rem 1rem; border-radius: var(--radius-xs); z-index: 200; transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 8px; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space); background: var(--cream); }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--dark); color: var(--ivory); position: relative; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ivory); }
.section--dark p { color: var(--ivory-soft); }
.section--dark .section__head p { color: var(--ivory-dim); }

.section__head { max-width: 660px; margin: 0 auto 3.25rem; text-align: center; }
.section__head p { font-size: var(--fs-md); color: var(--muted); margin: 0; }
.section__head h2 { position: relative; padding-bottom: .55rem; }
.section__head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 2px; background: var(--grad-gold); border-radius: 2px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}
.eyebrow::after { display: none; }
.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after { display: inline-block; }
.section--dark .eyebrow { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  background: var(--grad-gold); color: #1c1607;
  font-weight: 600; font-size: var(--fs-base); line-height: 1; letter-spacing: .01em;
  padding: .95rem 1.7rem; border-radius: var(--radius-chip); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .22s ease, filter .18s ease;
  box-shadow: var(--shadow-gold); text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(169,126,40,.6); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--grad-gold); color: #1c1607; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(23,19,11,.28); box-shadow: none;
}
.btn--ghost:hover { background: rgba(23,19,11,.04); border-color: var(--gold); color: var(--gold-deep); filter: none; }
/* Ghost on dark surfaces (hero, dark sections) */
.hero .btn--ghost, .section--dark .btn--ghost, .cta-band .btn--ghost {
  color: var(--ivory); border-color: rgba(243,236,220,.35);
}
.hero .btn--ghost:hover, .section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover {
  background: rgba(243,236,220,.08); border-color: var(--gold-2); color: var(--gold-2);
}
/* Solid dark button — a strong secondary CTA on light sections (#14, #17) */
.btn--dark { background: var(--dark); color: var(--ivory); border-color: var(--dark); box-shadow: var(--shadow-md); }
.btn--dark:hover { background: #241d12; color: var(--gold-2); filter: none; }
.btn--light { background: var(--ivory); color: var(--dark); box-shadow: var(--shadow-md); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-md); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 17, 11, .82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--dark-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ivory); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: var(--radius-xs);
  background: var(--grad-gold); color: #1c1607;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 6px 16px -6px rgba(169,126,40,.7);
}
.nav__links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ivory-soft); font-weight: 500; font-size: var(--fs-sm); letter-spacing: .02em;
  padding: .5rem .95rem; border-radius: var(--radius-xs); position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: .28rem; width: 0; height: 1.5px;
  background: var(--grad-gold); transition: width .2s ease, left .2s ease;
}
.nav__links a:hover { color: var(--ivory); text-decoration: none; }
.nav__links a:hover::after { width: 46%; left: 27%; }
.nav__links a[aria-current="page"] { color: var(--gold-2); }
.nav__links a[aria-current="page"]::after { width: 46%; left: 27%; }
.nav__cta .btn { padding: .7rem 1.35rem; font-size: var(--fs-sm); }
.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--dark-line);
  border-radius: var(--radius-xs); padding: .5rem; cursor: pointer; color: var(--ivory);
}
.nav__toggle svg { display: block; }

/* Desktop: center the nav links between brand (left) and CTA (right) */
@media (min-width: 861px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: start; }
  .nav__menu { display: contents; }
  .nav__links { justify-self: center; }
  .nav__cta { justify-self: end; }
  /* Header CTA is secondary so the hero's primary CTA stays the focal point (#11) */
  .nav__cta .btn {
    background: transparent; color: var(--gold-2);
    border: 1px solid rgba(214, 183, 110, .5); box-shadow: none;
  }
  .nav__cta .btn:hover { background: rgba(214, 183, 110, .12); color: var(--gold-2); filter: none; }
}

/* Single grid menu icon — gold on the dark header, dark when the light panel is open */
.nav__toggle { color: var(--gold-2); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; position: relative; z-index: 120; }
  .nav__toggle[aria-expanded="true"] { background: #fff; border-color: var(--line); color: var(--ink); }

  /* Light, opaque off-canvas side panel that slides in from the right.
     NOTE: .site-header uses backdrop-filter, which makes it the containing block
     for this fixed panel — so we set an explicit viewport height instead of
     relying on bottom:0 (which would resolve to the header's height). */
  .nav__menu {
    position: fixed; top: 0; right: 0; width: min(84vw, 330px);
    height: 100vh; height: 100dvh;
    background: var(--cream); box-shadow: -24px 0 60px rgba(20, 17, 11, .28);
    transform: translateX(-26px); opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .22s ease, visibility .28s ease;
    display: flex; flex-direction: column; padding: 5.5rem 1.4rem 2rem; gap: .2rem;
    border-left: 1px solid var(--line); overflow-y: auto; z-index: 110;
  }
  .nav__menu.is-open { transform: translateX(0); opacity: 1; visibility: visible; }

  /* Small "Menu" label at the top of the panel */
  .nav__menu::before {
    content: "Menu"; font-family: var(--font); font-size: .7rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
    padding: 0 .5rem .75rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line);
  }

  .nav__links { flex-direction: column; align-items: stretch; gap: .15rem; width: 100%; }
  .nav__links a {
    color: var(--ink); padding: .9rem 1rem; font-size: 1.05rem; border-radius: 8px;
    display: flex; align-items: center;
  }
  .nav__links a:hover { color: var(--gold-deep); background: var(--surface-3); }
  .nav__links a[aria-current="page"] { color: var(--gold-deep); background: rgba(198, 154, 63, .14); font-weight: 600; }
  .nav__links a::after, .nav__links a[aria-current="page"]::after { display: none; }

  /* Push the CTA to the bottom of the panel */
  .nav__cta { margin-top: auto; padding-top: 1.5rem; }
  .nav__cta .btn { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; }

  body.nav-open { overflow: hidden; }
  .nav__backdrop {
    position: fixed; inset: 0; background: rgba(10, 8, 4, .5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 95;
  }
  .nav__backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---------- Hero (dark, premium) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: var(--ivory);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(214,183,110,.16), transparent 60%),
    radial-gradient(760px 420px at -5% 15%, rgba(214,183,110,.08), transparent 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(214,183,110,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214,183,110,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(70% 65% at 50% 0%, #000 35%, transparent 78%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.75rem; align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__art { max-width: 460px; }
}
.hero h1 { color: var(--ivory); margin-bottom: .85rem; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ivory-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 2.75rem; margin-top: 3rem; color: var(--ivory-dim); font-size: var(--fs-xs); letter-spacing: .04em; }
.hero__trust strong { color: var(--gold-2); font-size: 1.8rem; display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: 0; margin-bottom: .1rem; }
/* Dark-glass panel: lower contrast so the H1 stays the primary focal point (#12);
   flex column with gap keeps the card stack vertically centred (#7). */
.hero__art {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  background: linear-gradient(158deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(214,183,110,.26);
  border-radius: var(--radius); padding: 1.75rem; color: var(--ivory);
  box-shadow: 0 24px 60px -26px rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.hero__card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.05); border: 1px solid rgba(214,183,110,.16);
  border-radius: var(--radius-sm); padding: 1.3rem 1.35rem;
}
/* Was <h3> (broke the heading outline after H1) — now a styled paragraph title (#4) */
.hero__card-title { color: var(--ivory); margin: 0 0 .5rem; font-size: var(--fs-base); font-family: var(--font); font-weight: 700; }
.hero__card p { color: var(--ivory-dim); margin: 0; font-size: var(--fs-sm); }
.hero__bar { height: 7px; border-radius: var(--radius-pill); background: rgba(255,255,255,.12); margin-top: 1rem; overflow: hidden; }
.hero__bar span { display: block; height: 100%; background: var(--grad-gold); border-radius: var(--radius-pill); }

/* Gold gradient headline accent */
.grad-text {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic; padding-right: .08em;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 1.9rem 1.75rem; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--grad-gold); border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(198,154,63,.5); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-xs); display: grid; place-items: center;
  background: var(--dark); color: var(--gold-2); margin-bottom: 1.15rem;
  border: 1px solid var(--dark-line);
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; font-size: var(--fs-sm); }
.card__price { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; color: var(--ink); letter-spacing: -.01em; }
.card__price span { font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.card--featured { border-color: var(--gold); box-shadow: var(--shadow-md); }
.card--featured::before { opacity: 1; }
.card--featured::after {
  content: "Most popular"; position: absolute; top: -.75rem; right: 1.3rem;
  background: var(--grad-gold); color: #1c1607; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--radius-chip);
}
.feature-list { list-style: none; margin: 1.15rem 0 0; padding: 0; }
.feature-list li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; font-size: .95rem; color: var(--ink-soft); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-60%) rotate(45deg);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.75rem; }
.step h3 { font-family: var(--font); font-weight: 700; font-size: var(--fs-md); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.7rem; height: 2.7rem;
  background: transparent; color: var(--gold-2); border: 1px solid var(--gold);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}

/* ---------- Testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-card); height: 100%; position: relative; }
.quote::before { content: "\201C"; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--gold); opacity: .35; position: absolute; top: .6rem; right: 1.1rem; }
.quote p { font-family: var(--font-display); font-style: italic; font-size: var(--fs-md); color: var(--ink); line-height: 1.5; }
.quote__by { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--gold-2); display: grid; place-items: center; font-weight: 700; border: 1px solid var(--gold); }
.quote__by strong { display: block; font-size: var(--fs-sm); color: var(--ink); }
.quote__by span { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--dark); color: var(--ivory);
  border-radius: 16px; padding: clamp(2.5rem, 5.5vw, 4.5rem); text-align: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--dark-line);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(214,183,110,.20), transparent 55%),
    radial-gradient(55% 110% at 0% 100%, rgba(214,183,110,.14), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: var(--ivory-soft); max-width: 54ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.6rem; }

/* ---------- Page hero (inner pages, dark) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--dark); color: var(--ivory);
  padding-block: clamp(3.5rem, 7vw, 5.5rem); border-bottom: 1px solid var(--dark-line); text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 380px at 85% -30%, rgba(214,183,110,.16), transparent 60%);
}
.page-hero .container { max-width: 760px; position: relative; z-index: 1; }
.page-hero h1 { color: var(--ivory); }
.page-hero p { font-size: var(--fs-md); color: var(--ivory-soft); margin: 0; }
.breadcrumb { font-size: var(--fs-label); color: var(--ivory-dim); margin-bottom: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }
/* Underline so the link is distinguishable from surrounding text without colour (1.4.1) — #3 */
.breadcrumb a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.info-list { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.info-list .info-icon { width: 44px; height: 44px; flex: none; border-radius: var(--radius-xs); background: var(--dark); color: var(--gold-2); display: grid; place-items: center; border: 1px solid var(--dark-line); }
.info-list strong { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .1rem; }
.info-list a, .info-list span { color: var(--ink-soft); }
.info-list a:hover { color: var(--gold-deep); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field .req { color: var(--err); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fffefb; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,154,63,.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(180,64,47,.14); }
.field .error { color: var(--err); font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: 1.2rem; font-size: .93rem; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #edf7f0; color: #1d5c38; border: 1px solid #bfe3cd; }
.form-status--err { background: #fbeeeb; color: #8a2e20; border: 1px solid #f0c9c1; }

/* ---------- Footer ---------- */
.site-footer { background: #100d08; color: var(--ivory-soft); padding-block: 3.5rem 1.75rem; border-top: 1px solid var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.25rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--ivory); }
.site-footer p { color: var(--ivory-dim); font-size: var(--fs-sm); }
/* Column labels: H3 (not H4) so the outline doesn't skip a level after the page H2 (#5) */
.site-footer h3 { color: var(--gold-2); font-family: var(--font); font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: var(--ivory-soft); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid var(--dark-line); margin-top: 2.75rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--ivory-dim); }
.social { display: flex; gap: .6rem; }
.social a { width: 36px; height: 36px; border-radius: var(--radius-xs); background: rgba(214,183,110,.08); border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--ivory-soft); }
.social a:hover { background: rgba(214,183,110,.16); color: var(--gold-2); text-decoration: none; }

/* ---------- Card entrance stagger + media ---------- */
.grid > .reveal:nth-child(1) { transition-delay: .02s; }
.grid > .reveal:nth-child(2) { transition-delay: .10s; }
.grid > .reveal:nth-child(3) { transition-delay: .18s; }
.grid > .reveal:nth-child(4) { transition-delay: .26s; }
.grid > .reveal:nth-child(5) { transition-delay: .12s; }
.grid > .reveal:nth-child(6) { transition-delay: .20s; }

.card__icon { transition: transform .25s ease, background .25s ease, color .25s ease; }
.card:hover .card__icon { transform: translateY(-2px) rotate(-4deg); background: var(--grad-gold); color: var(--dark); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth;
  padding-bottom: .5rem;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.carousel__slide { scroll-snap-align: start; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .carousel__viewport { scroll-behavior: auto; } }

/* Work carousel slides */
.work-carousel .carousel__slide { width: min(84vw, 560px); }
@media (min-width: 700px) { .work-carousel .carousel__slide { width: 460px; } }
.work-item {
  display: block; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; height: 100%;
}
.work-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(198,154,63,.55); text-decoration: none; }
.work-item__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--cream-2); }
.work-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-item:hover .work-item__media img { transform: scale(1.05); }
.work-item__tag {
  /* Opaque so contrast is deterministic over any image behind it (#9,#11,#13,#15,#17,#19) */
  position: absolute; top: .8rem; left: .8rem; background: var(--dark); color: var(--gold-2);
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .38rem .85rem; border-radius: var(--radius-chip);
}
.work-item__body { padding: 1.15rem 1.3rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.work-item__body h3 { margin: 0; font-size: var(--fs-md); }
.work-item__arrow { color: var(--gold-deep); font-size: 1.3rem; transition: transform .2s ease; }
.work-item:hover .work-item__arrow { transform: translateX(4px); }

/* Testimonial carousel slides */
.quote-carousel .carousel__slide { width: min(86vw, 420px); }
.quote-carousel .quote { margin: .4rem; }

/* Controls — arrows and dots get distinct interaction zones (#16) */
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 2.75rem; margin-top: 2rem; }
.carousel__controls .carousel__dots { margin: 0 .25rem; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(23,19,11,.22);
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.carousel__btn:hover { background: var(--dark); color: var(--gold-2); border-color: var(--dark); transform: translateY(-1px); }
.carousel__btn:disabled { opacity: .35; cursor: default; transform: none; background: transparent; color: var(--ink); border-color: rgba(23,19,11,.22); }
.carousel__btn svg { width: 20px; height: 20px; }
.section--dark .carousel__btn { border-color: rgba(243,236,220,.3); color: var(--ivory); }
.section--dark .carousel__btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.carousel__dots { display: flex; align-items: center; gap: .5rem; }
.carousel__dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(23,19,11,.2); transition: width .2s ease, background .2s ease;
}
.carousel__dot[aria-selected="true"] { width: 26px; background: var(--gold); }
.section--dark .carousel__dot { background: rgba(243,236,220,.28); }
.section--dark .carousel__dot[aria-selected="true"] { background: var(--gold-2); }

/* ---------- Team flip cards ---------- */
.team-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

.team-card {
  perspective: 1200px; background: none; border: 0; padding: 0; box-shadow: none;
  height: 330px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.team-card:hover { transform: none; box-shadow: none; }
.team-card__inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(.2, .75, .2, 1);
  transform-style: preserve-3d;
}
.team-card:hover .team-card__inner,
.team-card:focus-visible .team-card__inner,
.team-card.is-flipped .team-card__inner { transform: rotateY(180deg); }

.team-card__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.team-card__front { background: var(--card); }
.team-card__front .quote__avatar { width: 74px; height: 74px; font-size: 1.5rem; margin-bottom: 1rem; }
.team-card__front h3 { margin-bottom: .3rem; }
.team-card__front p { margin: 0; color: var(--gold-deep); font-weight: 600; font-size: .92rem; }
.team-card__hint {
  position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .35rem;
}
.team-card__back {
  background: var(--grad-gold); color: #1c1607; transform: rotateY(180deg); border-color: transparent;
}
.team-card__back h3 { color: #1c1607; margin-bottom: .5rem; font-size: 1.15rem; }
.team-card__back p { color: #33280d; font-size: .92rem; margin: 0 0 1.1rem; }
.team-card__social { display: flex; gap: .55rem; }
.team-card__social a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(20, 17, 11, .12); color: #1c1607; border: 1px solid rgba(20,17,11,.18);
}
.team-card__social a:hover { background: var(--dark); color: var(--gold-2); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .team-card__inner { transition: none; }
}

/* ---------- Work gallery (work.html) ---------- */
.work-gallery .work-item__media { aspect-ratio: 16 / 10; }

/* ---------- Small-phone tuning (<=560px) ---------- */
@media (max-width: 560px) {
  h1 { font-size: clamp(2.05rem, 8.5vw, 2.7rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); }
  .hero__grid { gap: 2rem; padding-block: 2.75rem 3rem; }
  .hero__lead { font-size: 1.05rem; }
  .hero__trust { gap: 1.25rem 2rem; margin-top: 2.25rem; }
  .hero__trust strong { font-size: 1.5rem; }
  .section__head { margin-bottom: 2.25rem; }
  .card { padding: 1.5rem 1.35rem; }
  .btn--lg { padding: .95rem 1.6rem; }
  .cta-band { border-radius: 12px; }
  .team-card { height: 320px; }
  .quote p { font-size: 1.02rem; }
}
@media (max-width: 380px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
/* Only hide reveal content when JS is present to reveal it (no-JS shows everything) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
