/* =========================================================
   Vibe Media — design tokens (from attached DESIGN.md / SKILL.md)
   Dark cinematic theme: near-black base, terracotta + gold accents.
   ========================================================= */
:root {
  /* ---- Brand palette (sourced from design tokens) ---- */
  --surface-base: #0a0908;        /* softened from #000000 to reduce halation */
  --surface-true-black: #000000;
  --surface-muted: #070606;
  --surface-raised: #c17241;      /* terracotta */
  --surface-strong: #231f1e;      /* warm dark brown — cards */
  --surface-card: #14110f;

  --accent-gold: #fec42d;         /* token: text.inverse */
  --accent-gold-soft: #ffd866;
  --accent-terra: #c17241;        /* token: surface.raised */
  --accent-blue: #046bd2;         /* decorative/borders only — NOT for text on dark (3.8:1). Use --accent-blue-bright for text */
  --accent-blue-bright: #4ea3f0;  /* AA-safe blue (7.4:1) for text on dark backgrounds */

  --text-primary: #f4efe9;        /* light text on dark (token text.tertiary=#fff) */
  --text-secondary: #b8aea3;
  --text-muted: #8a8077;
  --text-on-light: #231f1e;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* ---- Typography (token scale, extended responsively) ---- */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 17px;
  --fs-lg: 23px;
  --fs-h2: clamp(28px, 4.5vw, 44px);
  --fs-xl: clamp(40px, 8vw, 64px);   /* token xl = 64px max */
  --lh-base: 1.65;

  /* ---- Spacing (token base 1–16px, scaled into a layout rhythm) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Radius (token) ---- */
  --r-xs: 10px;
  --r-sm: 15px;
  --r-pill: 50px;
  --r-round: 100px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 12px 34px rgba(254, 196, 45, 0.22);

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-stack);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text-primary);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(56px, 9vw, 110px); }

/* ---- Accessibility helpers ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent-gold); color: var(--text-on-light);
  padding: 10px 16px; border-radius: var(--r-xs); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---- Accent text helpers ---- */
.text-gold { color: var(--accent-gold); }
.text-terra { color: var(--accent-terra); }

/* ---- Icon system (Lucide sprite) ---- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 26px; height: 26px; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-3);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-pad-y: 14px; --btn-pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn--sm { --btn-pad-y: 10px; --btn-pad-x: 18px; font-size: var(--fs-xs); }
.btn--full { width: 100%; }
.btn--gold { background: var(--accent-gold); color: var(--text-on-light); box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: var(--accent-gold-soft); transform: translateY(-2px); }
.btn--ghost { border-color: var(--border-strong); color: var(--text-primary); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-gold); font-weight: 600; font-size: var(--fs-sm);
  margin-top: var(--space-4);
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.03em; color: var(--text-primary); }
.brand__mark { color: var(--text-primary); display: inline-flex; }
.brand__accent { color: var(--accent-gold); }
.brand__logo { width: 52px; height: 52px; border-radius: var(--r-xs); display: block; box-shadow: 0 0 0 1px var(--border); }
.brand__logo--footer { width: 76px; height: 76px; }

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: var(--space-5); }
.nav__link { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500; position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent-gold); transition: width .25s var(--ease);
}
.nav__link:hover, .nav__link.is-current { color: var(--text-primary); }
.nav__link:hover::after, .nav__link.is-current::after { width: 100%; }

/* Always-available tap-to-call (shown on mobile, where it's the highest-intent action) */
.header__call {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: var(--r-xs);
  background: rgba(254, 196, 45, 0.10); color: var(--accent-gold); margin-right: var(--space-2);
  transition: background .2s var(--ease);
}
.header__call:hover { background: rgba(254, 196, 45, 0.2); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong);
  border-radius: var(--r-xs); background: rgba(255,255,255,0.03); position: relative;
}
.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--text-primary); transform: translate(-50%,-50%); transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle-bar::before { transform: translate(-50%, -7px); }
.nav__toggle-bar::after  { transform: translate(-50%, 7px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translate(-50%,0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translate(-50%,0) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-8);
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #1a1512 0%, var(--surface-base) 55%);
}
/* Glows are baked into the background as soft radial gradients — visually the
   same as blurred elements but with none of the blur() paint cost in the LCP zone. */
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(440px 440px at calc(100% + 40px) -60px, rgba(254, 196, 45, .26), transparent 70%),
    radial-gradient(460px 460px at -80px calc(100% + 80px), rgba(193, 114, 65, .28), transparent 70%);
}
/* Real event photo behind the headline, held back by a scrim so the gold text stays AA-readable */
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, .96) 0%, rgba(10, 9, 8, .8) 44%, rgba(10, 9, 8, .42) 100%),
    linear-gradient(0deg, var(--surface-base) 1%, transparent 38%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  opacity: .5;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero__title { font-size: var(--fs-xl); margin-bottom: var(--space-5); }
.hero__lead { font-size: var(--fs-lg); color: var(--text-secondary); max-width: 620px; margin-bottom: var(--space-6); }
.hero__lead em { color: var(--accent-gold); font-style: normal; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }

.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-size: var(--fs-lg); color: var(--text-primary); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero__trust span { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* =========================================================
   Feature trio
   ========================================================= */
.features { background: var(--surface-muted); border-block: 1px solid var(--border); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--r-sm); overflow: hidden; }
.feature { background: var(--surface-muted); padding: clamp(28px, 4vw, 44px); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: var(--r-xs); background: rgba(254,196,45,.12); color: var(--accent-gold); margin-bottom: var(--space-4);
}
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.feature p { color: var(--text-secondary); font-size: var(--fs-sm); }

/* =========================================================
   Section heads
   ========================================================= */
.section__head { max-width: 720px; margin-bottom: var(--space-7); }
.section__head h2 { font-size: var(--fs-h2); }
.section__sub { color: var(--text-secondary); font-size: var(--fs-md); margin-top: var(--space-3); }

/* =========================================================
   About
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__copy h2 { font-size: var(--fs-h2); margin-bottom: var(--space-4); }
.about__copy > p { color: var(--text-secondary); font-size: var(--fs-md); }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.stat { background: var(--surface-card); padding: clamp(22px, 3vw, 34px); text-align: center; }
.stat strong { display: block; font-size: clamp(34px, 5vw, 50px); color: var(--accent-gold); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--text-secondary); text-transform: uppercase; letter-spacing: .07em; }

.about__media { margin: 0; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.about__media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Stats promoted to a full-width band of their own */
.stats-band { background: var(--surface-muted); border-block: 1px solid var(--border); padding-block: clamp(36px, 5vw, 56px); }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stats-band .stat { background: transparent; padding: var(--space-3); }

/* =========================================================
   Clients marquee
   ========================================================= */
.clients { padding-block: var(--space-8); background: var(--surface-base); overflow: hidden; }
.clients__head { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.clients__title { text-align: center; color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .18em; }

/* Accessible pause/play control for the marquee (WCAG 2.2.2) */
.marquee__toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: rgba(255,255,255,0.02); color: var(--text-secondary);
  font-size: var(--fs-xs); font-weight: 600; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.marquee__toggle:hover { color: var(--text-primary); border-color: var(--border-strong); }
.marquee__toggle-icon { width: 10px; height: 12px; position: relative; display: inline-block; }
.marquee__toggle-icon::before, .marquee__toggle-icon::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; border-radius: 1px;
}
.marquee__toggle-icon::before { left: 0; }
.marquee__toggle-icon::after { right: 0; }
/* Paused → show a play triangle instead of the two bars */
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon::before {
  left: 1px; top: 0; width: 0; height: 0; background: transparent;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; border-radius: 0;
}
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon::after { display: none; }
.marquee__track.is-paused { animation-play-state: paused; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: var(--space-4); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--r-sm);
  background: #fbfbfa; box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  height: 74px; min-width: 158px;
}
.logo-chip img { height: 46px; width: auto; max-width: 150px; object-fit: contain; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Services
   ========================================================= */
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.service-card {
  position: relative; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: clamp(28px, 4vw, 44px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-terra));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.service-card__badge { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill); }
.service-card__badge--gold { background: rgba(254,196,45,.14); color: var(--accent-gold); }
.service-card__badge--blue { background: rgba(78,163,240,.14); color: var(--accent-blue-bright); }
.service-card__num { font-size: 40px; font-weight: 800; color: rgba(255,255,255,.06); letter-spacing: -0.04em; }
.service-card__desc { color: var(--text-secondary); font-size: var(--fs-md); margin-bottom: var(--space-5); }

.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.chip { font-size: var(--fs-xs); padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text-secondary); background: rgba(255,255,255,0.02); }

/* =========================================================
   Why choose us
   ========================================================= */
.why { background: var(--surface-muted); border-block: 1px solid var(--border); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.why-item {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: clamp(24px, 3vw, 34px); position: relative; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.why-item:hover { border-color: var(--accent-terra); transform: translateY(-4px); }
.why-item__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.why-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-xs); background: rgba(193, 114, 65, .14); color: var(--accent-terra); }
.why-item__icon .icon { width: 24px; height: 24px; }
.why-item__no { font-size: 30px; font-weight: 800; color: rgba(255, 255, 255, .10); letter-spacing: -0.02em; line-height: 1; }
.why-item h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.why-item p { color: var(--text-secondary); font-size: var(--fs-sm); }

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter {
  padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-weight: 600; font-size: var(--fs-xs);
  transition: all .2s var(--ease);
}
.filter:hover { color: var(--text-primary); border-color: var(--border-strong); }
.filter.is-active { background: var(--accent-gold); color: var(--text-on-light); border-color: var(--accent-gold); }

.portfolio__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.work {
  position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1 / 1;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.work--tall { aspect-ratio: 9 / 11; }
.work.is-hidden { display: none; }
.work__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85));
}
.work figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.work__cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-gold); }
.work__title { font-size: var(--fs-md); font-weight: 700; color: #fff; }
.work:hover .work__media { transform: scale(1.07); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.quote {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: var(--space-3);
}
.quote__stars { color: var(--accent-gold); letter-spacing: 3px; font-size: var(--fs-md); }
.quote blockquote { color: var(--text-primary); font-size: var(--fs-md); line-height: 1.55; }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--text-primary); font-size: var(--fs-sm); }
.quote figcaption span { display: block; font-weight: 500; color: var(--text-muted); font-size: var(--fs-xs); }

/* =========================================================
   CTA + form
   ========================================================= */
.cta { background: radial-gradient(120% 120% at 100% 0%, #2a201a 0%, var(--surface-base) 60%); border-top: 1px solid var(--border); }
.cta__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.cta__copy h2 { font-size: var(--fs-h2); margin-bottom: var(--space-4); }
.cta__copy > p { color: var(--text-secondary); font-size: var(--fs-md); margin-bottom: var(--space-5); }
.cta__contacts { display: flex; flex-direction: column; gap: var(--space-3); }
.cta__contacts li { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: var(--fs-sm); }
.cta__contacts svg { color: var(--accent-gold); flex: none; }
.cta__contacts a:hover { color: var(--accent-gold); }

.quote-form { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: clamp(24px, 4vw, 40px); }
.quote-form__title { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-sm); color: var(--text-primary);
  background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-xs);
  padding: 12px 14px; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(254,196,45,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field.has-error input, .field.has-error textarea { border-color: #ef6a5a; }
.field__error { font-size: var(--fs-xs); color: #ef8a7d; min-height: 0; }
.field.has-error .field__error { min-height: 18px; }
.quote-form__note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--accent-gold); min-height: 22px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--surface-muted); border-top: 1px solid var(--border); padding-top: var(--space-8); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.brand--footer { margin-bottom: var(--space-3); }
.footer__tagline { color: var(--text-secondary); font-size: var(--fs-sm); max-width: 280px; margin-bottom: var(--space-4); }
.social { display: flex; gap: var(--space-2); }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); transition: all .2s var(--ease);
}
.social a:hover { color: var(--text-on-light); background: var(--accent-gold); border-color: var(--accent-gold); transform: translateY(-2px); }
.footer__col h4 { font-size: var(--fs-sm); margin-bottom: var(--space-4); color: var(--text-primary); }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__contact li { color: var(--text-secondary); font-size: var(--fs-sm); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent-gold); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-5); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-xs); }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(20,17,15,.9);
  color: var(--accent-gold); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--accent-gold); color: var(--text-on-light); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .header__call { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,9,8,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--space-5) var(--space-5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta-item { margin-top: var(--space-3); }
  .nav__cta-item .btn { width: 100%; }

  .features__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero__trust { gap: var(--space-5); }
  .hero__actions .btn { flex: 1 1 auto; }
  .why__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; }
}

/* =========================================================
   Motion / contrast preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
