/* ============================================================
   Quality Key Paint & Remodeling LLC
   Theme: Black / Gold / Purple / White

   Sections alternate dark and light. A section marked .sec-light
   flips a small set of scoped custom properties, and every shared
   component reads those properties — so components adapt to the
   section they sit in instead of being restyled per section.
   ============================================================ */

:root {
  --black: #0b0a10;
  --panel: #14121c;
  --panel-2: #1b1826;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #d4af37;
  --gold-light: #f1d27c;
  --gold-deep: #a8861d;
  --purple: #8b5cf6;
  --purple-deep: #4c2a85;
  --purple-ink: #241638;
  --white: #ffffff;
  --dark-text: #171320;
  --dark-muted: #5c5470;

  /* Scoped per section — dark is the default */
  --sec-bg: var(--black);
  --fg: #ffffff;
  --fg-body: #eae7f2;
  --fg-muted: #a89fbd;
  --card-bg: linear-gradient(160deg, #1b1826, #14121c);
  --card-line: rgba(255, 255, 255, 0.08);
  --card-hover-line: rgba(212, 175, 55, 0.4);
  --accent: var(--gold);
  --accent-soft: rgba(212, 175, 55, 0.09);
  --accent-line: rgba(212, 175, 55, 0.32);

  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-light: 0 18px 44px rgba(23, 19, 32, 0.1);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ---- Light section palette ---- */
.sec-light {
  --sec-bg: var(--white);
  --fg: var(--dark-text);
  --fg-body: #3b3450;
  --fg-muted: var(--dark-muted);
  --card-bg: #fbfafd;
  --card-line: #eae7f2;
  --card-hover-line: rgba(139, 92, 246, 0.45);
  /* Deeper than the on-dark gold: metallic gold is a light colour, and at the
     brand value it only reaches 3.1:1 on white — below the 4.5:1 WCAG AA needs
     for small text like the eyebrow labels. This shade measures 5.3:1. */
  --accent: #7d6210;
  --accent-soft: rgba(125, 98, 16, 0.09);
  --accent-line: rgba(125, 98, 16, 0.32);
  --shadow: var(--shadow-light);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* Clipped at the root so the off-canvas mobile menu (position: fixed) can
     sit outside the viewport without creating a horizontal scrollbar.
     Applied here rather than on body so position: sticky keeps working. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: #eae7f2;
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--fg); }

.wrap { width: min(1180px, 92%); margin-inline: auto; }

.gold-text { color: var(--accent); }
.purple-text { color: var(--purple); }
.sec-light .purple-text { color: var(--purple-deep); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 400;
  background: var(--gold); color: var(--black); padding: 10px 18px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 8px; }

.gold-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #c9a227);
  color: #16130a;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(212, 175, 55, 0.4); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-outline-dark { background: transparent; color: var(--dark-text); border-color: #ddd8e6; }
.btn-outline-dark:hover { border-color: var(--purple-deep); color: var(--purple-deep); transform: translateY(-2px); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--purple-deep); transform: translateY(-2px); }

/* ============ Top bar ============ */
.topbar {
  background: linear-gradient(90deg, var(--purple-ink), #171126 50%, var(--purple-ink));
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 9px 0; color: #a89fbd;
}
.topbar-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.topbar-link:hover { color: var(--gold-light); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 10, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11, 10, 16, 0.94); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-key { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--white);
  letter-spacing: 0.01em;
}
.brand-text small {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: #eae7f2; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.2s ease; position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  border-radius: 2px; transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--gold-light); }
.nav-cta { margin-left: 6px; }
.main-nav .nav-cta { color: #16130a; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 84px 0 100px; overflow: hidden; background: var(--black); }

.hero-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(115deg, transparent 42%, rgba(212, 175, 55, 0.12) 42.2%, rgba(212, 175, 55, 0.12) 43%, transparent 43.2%),
    linear-gradient(65deg, transparent 68%, rgba(212, 175, 55, 0.1) 68.2%, rgba(212, 175, 55, 0.1) 68.8%, transparent 69%),
    linear-gradient(115deg, transparent 78%, rgba(139, 92, 246, 0.12) 78.2%, rgba(139, 92, 246, 0.12) 79%, transparent 79.2%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow-1 { width: 480px; height: 480px; background: rgba(76, 42, 133, 0.4); top: -160px; right: -120px; }
.hero-glow-2 { width: 420px; height: 420px; background: rgba(212, 175, 55, 0.1); bottom: -180px; left: -140px; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}

.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.01em; color: var(--white); }
.hero h1 em { font-style: normal; }
.hero h1 .gold-text { color: var(--gold); }
.hero-sub { color: #a89fbd; font-size: 17px; margin: 22px 0 30px; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.hero-points li { font-size: 13.5px; font-weight: 600; color: #eae7f2; display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 8px var(--gold);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
}

.hero-visual { position: relative; min-height: 480px; }
.hero-photo {
  position: absolute; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); border: 1px solid rgba(212, 175, 55, 0.35); background: var(--panel);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo:first-child { inset: 0 90px 60px 0; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px; font-size: 12.5px; color: var(--gold-light);
  background: linear-gradient(transparent, rgba(11, 10, 16, 0.92));
}
.hero-photo-b { width: 220px; height: 190px; inset: auto 0 0 auto; border-color: rgba(139, 92, 246, 0.45); }
.hero-chip {
  position: absolute; top: 26px; right: 40px;
  display: flex; align-items: center; gap: 11px;
  background: rgba(20, 18, 28, 0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 14px;
  padding: 11px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-chip svg { width: 30px; height: 30px; color: var(--gold); }
.hero-chip strong { display: block; font-family: var(--font-head); font-size: 13.5px; color: var(--white); }
.hero-chip span { font-size: 11.5px; color: #a89fbd; }

/* ============ Marquee ============ */
.marquee { border-block: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: 13px 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; animation: marquee 28s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(234, 231, 242, 0.55); }
.marquee-track i { color: var(--gold); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Section shell ============ */
.section { padding: 96px 0; position: relative; background: var(--sec-bg); color: var(--fg-body); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 14px 0 14px; color: var(--fg); }
.section-head p { color: var(--fg-muted); font-size: 16px; }

.section-head-split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  text-align: left; max-width: none; margin-bottom: 40px;
}
.section-head-split > div:first-child { max-width: 640px; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow-purple { color: var(--purple); border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.08); }
.sec-light .eyebrow-purple { color: var(--purple-deep); border-color: rgba(76, 42, 133, 0.3); background: rgba(76, 42, 133, 0.07); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }

.about-media { position: relative; padding-bottom: 56px; }
.about-img-main {
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--card-line); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
}
.about-img-float {
  position: absolute; right: -18px; bottom: 0; width: 46%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 16px; box-shadow: var(--shadow);
  border: 4px solid var(--sec-bg); outline: 1px solid var(--accent-line);
}
.about-license {
  position: absolute; left: -6px; bottom: 24px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-ink));
  border: 1px solid rgba(139, 92, 246, 0.45); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 18px 40px rgba(36, 22, 56, 0.35); max-width: 200px;
}
.about-license strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--gold-light); letter-spacing: 0.04em; }
.about-license span { font-size: 11.5px; color: #cdc4e0; line-height: 1.45; }

.about-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 14px 0 18px; color: var(--fg); }
.about-copy p { color: var(--fg-muted); margin-bottom: 16px; }

.check-list { list-style: none; margin: 8px 0 26px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; color: var(--fg-body); }
.check-list li::before {
  content: "\2713"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 800;
  border: 1px solid var(--accent-line);
}
.about-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   RESIDENTIAL — image-card carousel
   ============================================================ */
.services { background: linear-gradient(var(--panel), var(--black)); }

.carousel-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.car-btn {
  width: 50px; height: 50px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.car-btn svg { width: 22px; height: 22px; }
.car-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #16130a; }
.car-btn:disabled { opacity: 0.3; cursor: default; }

.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px calc((100vw - min(1180px, 92vw)) / 2) 30px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }

.svc-slide {
  position: relative; flex: 0 0 340px; height: 440px; scroll-snap-align: start;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel-2); isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.svc-slide .svc-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform 0.6s ease;
}
.svc-slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 16, 0.25) 0%, rgba(11, 10, 16, 0.78) 52%, rgba(11, 10, 16, 0.96) 100%);
  transition: background 0.35s ease;
}
.svc-slide:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.45); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.svc-slide:hover .svc-bg { transform: scale(1.07); }
.svc-slide:hover::after { background: linear-gradient(180deg, rgba(11, 10, 16, 0.2) 0%, rgba(76, 42, 133, 0.55) 55%, rgba(11, 10, 16, 0.96) 100%); }

.svc-body { position: absolute; inset: auto 0 0 0; padding: 26px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.svc-icon {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, 0.14); border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light); backdrop-filter: blur(6px);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-slide h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 7px; }
.svc-slide p { font-size: 13.5px; color: #cfc7e0; margin-bottom: 0; }

.svc-more {
  margin-top: 16px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  padding: 11px 20px; border-radius: 10px; border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, #c9a227);
  color: #16130a;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.svc-more:hover { box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35); }

/* Reveal the button on hover only where hovering actually exists.
   On touch screens it stays visible, since there is no hover state. */
@media (hover: hover) and (pointer: fine) {
  .svc-more { opacity: 0; transform: translateY(10px); }
  .svc-slide:hover .svc-more,
  .svc-slide:focus-within .svc-more { opacity: 1; transform: translateY(0); }
}
/* Touch devices show the button permanently, so it has to meet the 44px
   tap-target minimum. Keyed to hover capability, not width — a touchscreen
   laptop needs this too. */
@media (hover: none) {
  .svc-more { min-height: 44px; padding-inline: 22px; }
}

.car-rail { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.car-rail-fill { display: block; height: 100%; width: 30%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--purple)); transition: width 0.2s ease, transform 0.2s ease; }

/* ============================================================
   COMMERCIAL — bento grid
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.bento-tile {
  background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 20px;
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.bento-tile:hover { transform: translateY(-5px); border-color: var(--card-hover-line); box-shadow: var(--shadow-light); }

.bento-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(76, 42, 133, 0.08); border: 1px solid rgba(76, 42, 133, 0.2); color: var(--purple-deep);
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-tile h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.bento-tile p { font-size: 13.5px; color: var(--fg-muted); }

/* Feature tile */
.bento-feature {
  grid-column: span 2; grid-row: span 2; padding: 0; min-height: 400px;
  border-color: transparent; background: var(--black);
}
.bento-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bento-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 16, 0.3), rgba(36, 22, 56, 0.82) 55%, rgba(11, 10, 16, 0.95));
}
.bento-feature:hover img { transform: scale(1.05); }
.bento-feature-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.bento-tag {
  align-self: flex-start; font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.1);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.bento-feature h3 { font-size: clamp(24px, 2.6vw, 32px); color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.bento-feature p { color: #cfc7e0; font-size: 14.5px; max-width: 44ch; margin-bottom: 22px; }
.bento-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.bento-stats li {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 10px 16px; backdrop-filter: blur(6px);
}
.bento-stats strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--gold-light); }
.bento-stats span { font-size: 11px; color: #bdb3d1; letter-spacing: 0.04em; }

/* Clients tile */
.bento-clients { grid-column: span 2; display: flex; flex-direction: column; }
.bento-clients h3 { margin-bottom: 14px; }
.clients-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.clients-list li {
  font-size: 12.5px; font-weight: 600; color: var(--fg-body);
  background: var(--sec-bg); border: 1px solid var(--card-line);
  padding: 7px 14px; border-radius: 999px; transition: border-color 0.25s ease, color 0.25s ease;
}
.clients-list li:hover { border-color: var(--purple); color: var(--purple-deep); }
.bento-clients-cta { margin-top: auto; align-self: flex-start; }

/* ============ Gallery ============ */
.gallery { background: linear-gradient(var(--black), var(--panel)); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.filter-btn {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: #a89fbd;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; cursor: pointer; transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--gold-light); border-color: rgba(212, 175, 55, 0.5); }
.filter-btn.is-active { color: #16130a; border-color: transparent; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: 210px; grid-auto-flow: dense; }
.g-item { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); }
.g-item:nth-child(6n + 1) { grid-row: span 2; }
.g-item:nth-child(8n + 4) { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 13px;
  font-size: 13px; font-weight: 600; color: var(--white);
  background: linear-gradient(transparent, rgba(11, 10, 16, 0.9));
  opacity: 0; transform: translateY(8px); transition: all 0.35s ease;
}
.g-item:hover figcaption { opacity: 1; transform: translateY(0); }
.g-item.hidden { display: none; }

/* ============ Why us ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-item {
  background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 16px; padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-item:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-light); }
.why-item strong { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-head); font-size: 14.5px; color: var(--fg); margin-bottom: 6px; }
.why-item strong::before {
  content: "\2713"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), #c9a227); color: #16130a; font-size: 11px; font-weight: 800;
}
.why-item span { font-size: 12.5px; color: var(--fg-muted); display: block; padding-left: 30px; }

/* ============ Areas ============ */
.areas { background: radial-gradient(600px 380px at 12% 100%, rgba(76, 42, 133, 0.22), transparent 65%), var(--black); }
.areas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.area-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.area-card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-4px); }
.area-card h3 { font-size: 15px; font-weight: 700; color: var(--gold-light); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.area-card h3 small { display: block; font-size: 11px; color: #a89fbd; font-weight: 500; margin-top: 3px; }
.area-card ul { list-style: none; display: grid; gap: 6px; }
.area-card li { font-size: 13px; color: #a89fbd; display: flex; align-items: baseline; gap: 8px; }
.area-card li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--purple); flex: 0 0 auto; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(115deg, var(--purple-ink), var(--purple-deep) 55%, #3a1f6b);
  border-block: 1px solid rgba(139, 92, 246, 0.3);
  padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.16); filter: blur(90px); top: -180px; right: -80px;
}
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); max-width: 24ch; color: var(--white); }
.cta-band h2 .gold-text { color: var(--gold-light); }
.cta-band p { color: #cfc7e0; margin-top: 10px; font-size: 15px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 14px 0 16px; color: var(--fg); }
.contact-copy > p { color: var(--fg-muted); margin-bottom: 28px; }

.contact-info { list-style: none; display: grid; gap: 20px; margin-bottom: 28px; }
.contact-info li { display: flex; gap: 15px; align-items: flex-start; }
.contact-info svg {
  width: 42px; height: 42px; padding: 9px; flex: 0 0 auto; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.contact-info strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--fg); }
.contact-info span { font-size: 13.5px; color: var(--fg-muted); }

/* The form stays a dark card even in the light section — it is the page's
   primary conversion point and the contrast makes it the focal element. */
.contact-form {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 34px;
  box-shadow: 0 26px 60px rgba(23, 19, 32, 0.22); position: relative;
}
.contact-form h3 { font-size: 20px; margin-bottom: 22px; color: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; color: #a89fbd; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(11, 10, 16, 0.6); color: #eae7f2;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12.5px; color: #a89fbd; text-align: center; margin-top: 14px; }

.form-success {
  position: absolute; inset: 0; border-radius: 22px; padding: 40px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 64px; height: 64px; color: var(--gold); margin-bottom: 8px; }
.form-success strong { font-family: var(--font-head); font-size: 22px; color: var(--white); }
.form-success span { color: #a89fbd; font-size: 14.5px; max-width: 34ch; }

/* ============ Footer ============ */
.footer { background: #080710; border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { color: #a89fbd; font-size: 13.5px; margin: 16px 0; max-width: 38ch; }
.footer-license {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--gold-light); border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06); border-radius: 999px; padding: 6px 14px;
}
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col a { display: block; color: #a89fbd; text-decoration: none; font-size: 13.5px; padding: 5px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-loc { display: block; color: #a89fbd; font-size: 13px; margin-top: 10px; line-height: 1.6; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); padding-block: 20px; font-size: 12.5px; color: rgba(168, 159, 189, 0.75);
}

/* ============ Service modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 320; background: rgba(8, 7, 12, 0.9);
  display: flex; align-items: center; justify-content: center; padding: 26px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative; width: min(880px, 100%); max-height: 88vh; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(212, 175, 55, 0.28); border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.modal-img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.modal-body { padding: 34px; overflow-y: auto; }
.modal-body h3 { font-size: 25px; color: var(--white); margin: 14px 0 10px; }
.modal-body > p { color: #a89fbd; font-size: 14.5px; margin-bottom: 20px; }
.modal-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 26px; }
.modal-list li { font-size: 13.5px; color: #eae7f2; display: flex; align-items: baseline; gap: 9px; }
.modal-list li::before { content: "\2726"; color: var(--gold); font-size: 10px; flex: 0 0 auto; }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 24px; line-height: 1;
  background: rgba(11, 10, 16, 0.72); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center; transition: all 0.25s ease;
}
.modal-close:hover { background: var(--gold); color: #16130a; border-color: var(--gold); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 7, 12, 0.94);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 30px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure { max-width: min(1020px, 86vw); max-height: 86vh; display: flex; flex-direction: column; gap: 12px; }
.lb-figure img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.3); }
.lb-figure figcaption { text-align: center; color: var(--gold-light); font-size: 14px; }
.lb-close, .lb-prev, .lb-next {
  background: rgba(255, 255, 255, 0.06); color: var(--white); border: 1px solid var(--line); border-radius: 50%;
  width: 48px; height: 48px; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; flex: 0 0 auto;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: #16130a; border-color: var(--gold); }
.lb-close { position: absolute; top: 22px; right: 26px; }

/* ============ To top ============ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(20, 18, 28, 0.9); color: var(--gold); font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: all 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: #16130a; }

/* ============ Reveal animations ============
   Content is only hidden when JS is running (html.js), so the page
   still renders fully if scripts fail or are disabled. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .main-nav.open { animation: none; }
  .carousel-track { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-feature { grid-column: span 2; grid-row: span 1; min-height: 340px; }
  .bento-clients { grid-column: span 2; }
  .modal-card { grid-template-columns: 1fr; max-height: 86vh; overflow-y: auto; }
  .modal-img { max-height: 220px; min-height: 0; }
}

@media (max-width: 900px) {
  .topbar-mid { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { min-height: 440px; max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section-head-split { flex-direction: column; align-items: flex-start; gap: 22px; }

  .nav-toggle { display: flex; }

  /* backdrop-filter makes an element a containing block for its fixed-position
     descendants, which would anchor the off-canvas menu to the header instead
     of the viewport and collapse it to the header's height. Drop the blur here
     and use a near-opaque background instead. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(11, 10, 16, 0.97);
  }
  .site-header.scrolled { background: rgba(11, 10, 16, 0.98); }

  /* Off-canvas panel is fully removed from layout when closed. A fixed element
     parked outside the viewport still adds to the page's scrollable width, so
     display (not transform) does the hiding; the slide-in is a keyframe. */
  .main-nav {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
    width: min(320px, 84vw); flex-direction: column; align-items: flex-start;
    gap: 8px; padding: 90px 30px 30px;
    background: rgba(11, 10, 16, 0.98); border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  }
  .main-nav.open { display: flex; animation: navSlideIn 0.35s ease; }
  @keyframes navSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

  .main-nav a { font-size: 17px; padding: 10px 0; }
  .nav-cta { margin: 14px 0 0; width: 100%; }
  /* keep touch targets at the 44px accessibility minimum */
  .nav-toggle { position: relative; z-index: 160; padding: 14px 10px; }
  .filter-btn { padding: 13px 22px; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 76px; }
  .hero-visual { min-height: 400px; }
  .hero-photo:first-child { inset: 0 60px 50px 0; }
  .hero-photo-b { width: 170px; height: 150px; }
  .hero-chip { top: 12px; right: 8px; }

  .carousel-track { padding-inline: 4vw; gap: 16px; }
  .svc-slide { flex-basis: 78vw; height: 420px; }

  /* pull the overlapping photo back inside the gutter on small screens */
  .about-img-float { right: 0; width: 42%; }
  .about-license { left: 0; }

  .bento { grid-template-columns: 1fr; }
  .bento-feature, .bento-clients { grid-column: span 1; }
  .bento-feature-copy { padding: 24px; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band-inner { justify-content: center; text-align: center; }
  .topbar-inner { justify-content: center; }
  .topbar-item:first-child { display: none; }
  .modal-list { grid-template-columns: 1fr; }
  .modal-body { padding: 26px 22px; }
}

@media (max-width: 440px) {
  .why-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .hero-points { gap: 8px 16px; }
  .btn-lg { padding: 14px 24px; }
  .svc-slide { flex-basis: 84vw; }
}

/* ============ Touch tap-target sizing ============
   Last in the file so these win over the component defaults above. */
@media (hover: none) {
  .modal-close, .lb-close, .lb-prev, .lb-next { width: 44px; height: 44px; }
}
