/* =====================================================================
   styles.css — the ONE stylesheet for the whole 10 Dirty Hands website
   ---------------------------------------------------------------------
   How it's organized (search for the ==== headings):
     1. Brand colors & fonts (change the look here)
     2. Base / reset
     3. Layout helpers (container, sections, grids)
     4. Buttons, eyebrow labels, headings
     5. Header & navigation (incl. mobile menu)
     6. Homepage sections (hero, trust strip, cards, process, warranty...)
     7. Services page
     8. Gallery page (+ lightbox)
     9. Flake Colors page (picker + detail panel)
    10. Contact form
    11. Footer & mobile bottom bar
    12. Small screens (responsive tweaks)
   ===================================================================== */

/* ==== 1. Brand colors & fonts ==================================== */
:root {
  --bg: #121317;          /* main near-black background */
  --bg-alt: #17181d;      /* slightly lighter band for alternating sections */
  --card: #1d1e24;        /* card / panel background */
  --card-hover: #23242b;
  --line: rgba(212, 175, 55, 0.22);   /* thin gold borders */
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #C9A227;        /* main gold (matches the logo) */
  --gold-light: #D4AF37;
  --gold-pale: #e9d38a;
  --white: #ffffff;       /* headlines */
  --text: #d7d8de;        /* body text (high contrast on dark) */
  --muted: #a8aab4;       /* secondary text, still readable */
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

/* ==== 2. Base / reset ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;            /* body text never below 16px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-pale); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ==== 3. Layout helpers ========================================== */
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 48px); }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-l { margin-top: 48px; }

/* ==== 4. Buttons, eyebrows, headings ============================= */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
.gold { color: var(--gold-light); }

/* Small uppercase gold label that sits above every section headline */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-right: 12px;
}
.section-head .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-left: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #15140f; }
.btn-gold:hover { background: var(--gold-pale); color: #15140f; }
.btn-outline { border-color: var(--gold); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); color: var(--white); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.icon { width: 18px; height: 18px; flex: none; }

/* ==== 5. Header & navigation ===================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 19, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); flex: none; }
/* Logo images are saved on pure black. "lighten" keeps whichever is lighter: the logo
   pixel or the page behind it, so the black box disappears into our dark background. */
.brand-logo, .hero-logo, .footer-logo { mix-blend-mode: lighten; }
.brand img { width: auto; height: 52px; } /* file is 2x this size = sharp on retina */
.brand-text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.05; }
.brand-text small {
  display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light);
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-size: 0.95rem; font-weight: 500;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.main-nav a[aria-current="page"] { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { color: var(--white); font-weight: 600; font-size: 0.95rem; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.header-phone .icon { color: var(--gold-light); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line); color: var(--white); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: auto;
  position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==== 6. Homepage sections ======================================= */
/* Hero: our own generated flake texture + dark gradient (no stock photos) */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 120px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(212,175,55,0.16), transparent 55%),
    linear-gradient(180deg, rgba(18,19,23,0.72) 0%, rgba(18,19,23,0.88) 60%, var(--bg) 100%),
    url("../img/hero-flake.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 820px; }
.hero-logo {
  width: clamp(230px, 34vw, 354px); height: auto;
  margin: -10px 0 18px -10px;   /* the logo's glow has a little built-in padding */
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .line { display: block; } /* puts each tagline sentence on its own line */
.hero .lead {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gold-pale); margin-bottom: 18px;
}
.hero .sub { font-size: 1.1rem; color: var(--text); max-width: 640px; margin-bottom: 34px; }
.page-hero { padding: 90px 0 70px; }
.page-hero .hero-inner { max-width: 760px; }

/* Trust strip */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.trust ul {
  list-style: none; margin: 0; padding: 30px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust li { display: flex; gap: 14px; align-items: center; color: var(--white); font-weight: 500; font-size: 0.98rem; line-height: 1.4; }
.trust .badge-icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-light);
}

/* Generic card */
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 32px; transition: border-color .2s, transform .2s, background .2s;
  display: flex; flex-direction: column;
}
a.card { color: var(--text); }
a.card:hover { border-color: var(--line); background: var(--card-hover); transform: translateY(-3px); color: var(--text); }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212,175,55,0.1); color: var(--gold-light); margin-bottom: 20px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; color: var(--gold-light); font-weight: 600; font-size: 0.95rem; }

/* Featured flake swatches (home) */
.swatch-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.swatch-card { display: block; color: var(--white); text-align: center; }
.swatch-card .swatch-img {
  display: block; aspect-ratio: 1; border-radius: 50%;
  background: #2a2b31 center / cover no-repeat;
  border: 2px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.swatch-card:hover .swatch-img { transform: scale(1.04); border-color: var(--gold); }
.swatch-card .swatch-name { display: block; margin-top: 14px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.swatch-card .swatch-meta { display: block; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* How we work (process) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 32px;
  font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.step .card { height: 100%; padding-top: 56px; }

/* Warranty seal */
.warranty { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.seal {
  position: relative; width: 280px; height: 280px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #2b2a24, #141417 70%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 10px rgba(212,175,55,0.08), 0 0 0 11px var(--line), var(--shadow);
}
.seal::before { /* inner dashed ring */
  content: ""; position: absolute; inset: 16px; border-radius: 50%;
  border: 1px dashed rgba(212,175,55,0.55);
}
.seal-inner { position: relative; padding: 0 30px; }
.seal .seal-top, .seal .seal-bottom {
  display: block; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-pale); font-weight: 600;
}
.seal .seal-num { display: block; font-family: var(--font-head); font-size: 5.2rem; line-height: 0.9; color: var(--gold-light); font-weight: 700; }
.seal .seal-word { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--white); margin-bottom: 6px; }
.fine { font-size: 0.92rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light);
  transform: rotate(-45deg);
}

/* Yelp review */
.review {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 52px 48px;
}
.stars { color: var(--gold-light); font-size: 1.5rem; letter-spacing: 0.2em; margin-bottom: 18px; }
.review blockquote {
  margin: 0 0 22px; font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.45; color: var(--white); font-style: italic;
}
.review cite { font-style: normal; color: var(--muted); }

/* Split (image/text) rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.panel {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 36px;
}
.panel h3 { margin-top: 0; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list strong { display: block; color: var(--white); font-weight: 600; }

/* Call-to-action band */
.cta-band {
  padding: 84px 0; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.18), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; }

/* ==== 7. Services page =========================================== */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.service-nav a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 0.95rem;
}
.service-nav a:hover { color: var(--white); border-color: var(--gold); }
.service { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.service + .service { margin-top: 0; }
.sub-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.sub-item { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px; }
.sub-item h4 { margin-bottom: 6px; }
.sub-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.ideal h3 { font-size: 1.4rem; }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px;
  margin-bottom: 14px; padding: 0 24px;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 30px 20px 0; position: relative;
  font-family: var(--font-head); font-size: 1.35rem; color: var(--white); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold-light); font-family: var(--font-body); font-size: 1.5rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* ==== 8. Gallery page ============================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  font: 500 0.95rem var(--font-body);
}
.chip:hover { color: var(--white); border-color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #15140f; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--card); padding: 0; color: inherit; font: inherit; text-align: left;
}
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
/* Branded "photo coming soon" tile (used until real photos are added) */
.placeholder-tile {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 15%, rgba(212,175,55,0.18), transparent 50%),
    url("../img/hero-flake.jpg") center / cover;
}
.placeholder-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,23,0.55), rgba(18,19,23,0.92)); }
.placeholder-tile > * { position: relative; }
.placeholder-tile .tag { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.placeholder-tile .title { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); font-weight: 600; line-height: 1.2; }
.placeholder-tile .soon { font-size: 0.9rem; color: var(--muted); }
.gallery-item:hover { border-color: var(--line); }
.ig-block {
  margin-top: 64px; text-align: center; padding: 48px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}

/* Lightbox (pop-up viewer for gallery tiles) */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 8, 10, 0.92);
}
.lightbox.is-open { display: flex; }
.lightbox-content { position: relative; width: min(900px, 100%); }
.lightbox-stage {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--card);
}
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-caption { margin-top: 14px; color: var(--text); text-align: center; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(18,19,23,0.9); border: 1px solid var(--line); color: var(--white);
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -64px; top: 40%; }
.lightbox-next { right: -64px; top: 40%; }

/* ==== 9. Flake Colors page ======================================= */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.color-tile {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 12px 12px 16px; cursor: pointer; text-align: left; color: var(--text);
  font: inherit; transition: border-color .2s, transform .2s;
}
.color-tile:hover, .color-tile.is-selected { border-color: var(--gold); transform: translateY(-3px); }
.color-tile .tile-img {
  display: block; aspect-ratio: 1; border-radius: 10px; margin-bottom: 12px;
  background: #2a2b31 center / cover no-repeat;
}
.color-tile .tile-name { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--white); font-weight: 600; line-height: 1.2; }
.color-tile .tile-meta { display: block; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }
/* Neutral tile for blends without an image (e.g. DOKA) */
.tile-img.no-image, .detail-swatch.no-image {
  display: grid !important; place-items: center;
  background: repeating-linear-gradient(45deg, #24252b 0 12px, #1f2025 12px 24px) !important;
  color: var(--gold-pale); font-weight: 700; letter-spacing: 0.25em; font-size: 0.85rem;
}
.note {
  border-left: 3px solid var(--gold); background: rgba(212,175,55,0.07);
  padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--text); font-size: 0.98rem; margin: 0 0 32px;
}
.count-line { text-align: center; color: var(--muted); margin: -20px 0 28px; font-size: 0.95rem; }

/* Detail panel (opens when a tile is clicked) */
.detail-overlay {
  position: fixed; inset: 0; z-index: 250; display: none;
  background: rgba(8,8,10,0.78); padding: 24px; overflow-y: auto;
}
.detail-overlay.is-open { display: flex; align-items: center; justify-content: center; }
.detail-panel {
  position: relative; width: min(980px, 100%);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow);
}
.detail-swatch {
  aspect-ratio: 1; border-radius: 14px; background: #2a2b31 center / cover no-repeat;
  border: 1px solid var(--line-soft);
}
.size-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.size-toggle .chip { min-width: 70px; }
.detail-info h2 { font-size: 2.4rem; margin-bottom: 4px; }
.detail-info .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.detail-info .btn-row { margin-top: 24px; }
.detail-close { top: 14px; right: 14px; }
.brand-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--gold-light); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
.teaser {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.02));
  border: 1px dashed var(--gold); border-radius: var(--radius); padding: 36px;
}
.teaser .card-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-light); }
.teaser h3 { margin-bottom: 6px; }
.teaser p { margin: 0; color: var(--muted); }

/* ==== 10. Contact form =========================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.phone-big {
  display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 2.9rem);
  color: var(--white); font-weight: 700; line-height: 1.1; margin: 6px 0 14px;
}
.phone-big:hover { color: var(--gold-pale); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { color: var(--white); font-weight: 500; font-size: 0.98rem; }
.req { color: var(--gold-light); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #14151a; color: var(--white);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  font: 400 1rem var(--font-body);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.field input[type="file"] { padding: 10px; min-height: auto; color: var(--muted); }
.field input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: transparent; color: var(--white); font: 500 0.92rem var(--font-body);
}
.field .hint { font-size: 0.88rem; color: var(--muted); }
.field .error { font-size: 0.9rem; color: #ff9a8a; min-height: 0; }
.field.has-error input, .field.has-error select { border-color: #ff8a7a; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 46px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; cursor: pointer; font-weight: 400; color: var(--text);
}
.radio-row input { accent-color: var(--gold); width: 18px; height: 18px; min-height: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: humans never see it */
.form-status { margin-top: 16px; color: #ff9a8a; }

/* ==== 11. Footer & mobile bottom bar ============================= */
.site-footer { background: #0d0e11; border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand img { width: 148px; height: auto; margin: 0 0 14px -6px; }
.footer-brand .name { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); font-weight: 700; line-height: 1.2; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold-pale); }
.footer-phone { font-size: 1.2rem; font-weight: 600; color: var(--white) !important; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold-light);
}
.social a:hover { background: rgba(212,175,55,0.12); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem;
}
.mobile-bar { display: none; }

/* ==== 12. Small screens ========================================== */
@media (max-width: 1100px) {
  .header-phone span { display: none; }   /* keep just the phone icon */
  .main-nav a { padding: 8px 9px; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .section { padding: 72px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .swatch-row { grid-template-columns: repeat(3, 1fr); }
  .warranty, .split, .service, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-panel { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Mobile menu: hamburger button shows, nav becomes a full-screen panel.
     (backdrop-filter is turned off here because it would trap the fixed menu inside the header) */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--bg); padding: 24px; overflow-y: auto;
    opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 16px 8px; font-size: 1.2rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .mobile-nav-cta { display: grid !important; gap: 12px; margin-top: 24px; }
  .main-nav .mobile-nav-cta .btn { display: flex; justify-content: center; border-radius: 999px; padding: 12px 26px; font-size: 1.05rem; border: 1px solid transparent; }
  .main-nav .mobile-nav-cta .btn-gold { color: #15140f; }
  .main-nav .mobile-nav-cta .btn-outline { border-color: var(--gold); color: var(--white); }

  /* Sticky bottom bar with Call + Free Quote */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13,14,17,0.97); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px; }
  body { padding-bottom: 76px; }  /* room so the bar never covers the footer */
}
.mobile-nav-cta { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container.narrow { width: calc(100% - 36px); }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 64px 0 72px; }
  .hero-logo { width: 230px; }
  .grid-2, .grid-3, .grid-4, .sub-list, .form-grid { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .swatch-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .color-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .color-tile .tile-name { font-size: 1.15rem; }
  .card, .panel { padding: 26px; }
  .review { padding: 36px 22px; }
  .seal { width: 240px; height: 240px; }
  .seal .seal-num { font-size: 4.4rem; }
  .form-card { padding: 24px 18px; }
  .detail-overlay { padding: 0; align-items: flex-start !important; }
  .detail-panel { border-radius: 0; min-height: 100%; padding: 64px 18px 28px; gap: 22px; }
  .detail-info h2 { font-size: 2rem; }
  .teaser { grid-template-columns: 1fr; text-align: center; }
  .teaser .card-icon { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .btn-row .btn { flex: 1 1 100%; }
  .lightbox-prev { left: 4px; top: auto; bottom: -64px; }
  .lightbox-next { right: 4px; top: auto; bottom: -64px; }
  .brand-text { font-size: 1.05rem; }
  .eyebrow { letter-spacing: 0.16em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==== 13. Added: Services drop-down, metallic page, photos ======= */
/* Services drop-down menu (desktop: hover or keyboard focus) */
.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 110;
  list-style: none; margin: 0; padding: 8px !important;
  display: block !important;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { white-space: nowrap; }

/* Homepage + metallic hero: the real metallic floor photo with a dark overlay */
.hero.hero-home {
  background:
    linear-gradient(90deg, rgba(14,15,18,0.94) 0%, rgba(14,15,18,0.80) 45%, rgba(14,15,18,0.45) 100%),
    linear-gradient(180deg, rgba(18,19,23,0.15) 0%, rgba(18,19,23,0.35) 70%, var(--bg) 100%),
    url("../media/metallic-hero-1500.jpg") center 55% / cover no-repeat;
}
.metallic-hero { padding: 120px 0 110px; }

/* Photo with caption */
.photo-frame { margin: 0; }
.photo-frame img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.photo-frame figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }

/* How it's made: vertical video + still side by side */
.how-made { grid-template-columns: 0.9fr 1.1fr; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-pair video, .media-pair img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: #222; box-shadow: var(--shadow);
}
.media-pair .pour-still { margin-top: 48px; }
.made-steps { counter-reset: made; list-style: none; padding: 0; margin: 0 0 28px; }
.made-steps li { counter-increment: made; position: relative; padding: 0 0 18px 56px; }
.made-steps li::before {
  content: counter(made); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-light); font-weight: 600;
}
.made-steps strong { color: var(--white); }

/* Gallery photo captions + static (non-clickable) placeholder tiles */
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(12,12,14,0.92));
  color: var(--white); font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.2;
}
.gallery-caption .tag { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.gallery-item.static { cursor: default; display: block; }
.gallery-item.portrait { aspect-ratio: 4 / 5; max-width: 460px; margin-inline: auto; width: 100%; }

@media (max-width: 980px) {
  /* In the mobile menu the drop-down is simply an indented list */
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 18px !important; min-width: 0;
  }
  .sub-menu a { font-size: 1.05rem !important; color: var(--muted) !important; }
  .sub-menu a[aria-current="page"] { color: var(--gold-light) !important; }
  .how-made { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero.hero-home {
    background:
      linear-gradient(180deg, rgba(14,15,18,0.80) 0%, rgba(14,15,18,0.88) 60%, var(--bg) 100%),
      url("../media/metallic-hero-800.jpg") center / cover no-repeat;
  }
  .media-pair .pour-still { margin-top: 32px; }
}

/* ==== 14. Real job photos & short clips ========================== */
.photo-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.photo-grid.cols-1 { grid-template-columns: 1fr; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.shot { margin: 0; position: relative; align-self: start; }
.shot img, .shot video {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card);
}
.shot.wide img, .shot.wide video { aspect-ratio: 4 / 3; }
.shot.tall img, .shot.tall video { aspect-ratio: 9 / 16; }
.shot figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.service .shot figcaption { font-size: 0.9rem; }
/* Gallery tiles that show a flake swatch instead of a job photo */
.gallery-item .swatch-fill { position: absolute; inset: 0; background: #2a2b31 center / cover no-repeat; }
.clip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) {
  .photo-grid, .photo-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid.cols-1 { grid-template-columns: 1fr; }
  .clip-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .photo-grid { gap: 12px; }
  .photo-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .clip-row { gap: 12px; }
  .shot figcaption { font-size: 0.85rem; }
}

/* Batch 3: on mid-size screens the wordmark logo alone is enough, so hide the extra text */
@media (max-width: 1180px) { .brand-text { display: none; } }
.mb-l { margin-top: 0; margin-bottom: 40px; }       /* space under the flake photo row on the home page */
.owner-photo { max-width: 460px; margin-inline: auto; }
.owner-photo img { border-radius: var(--radius, 14px); }
