/* Texoma Granite & Quartz
   Structure and components adapted from the Ember & Oak Homes site; stone/charcoal palette */
:root {
  --cream: #f3f0eb;
  --cream-deep: #e7e2da;
  --paper: #fcfbf8;
  --ink: #23211f;
  --ink-soft: #413d39;
  --muted: #69635c;
  --oak: #7d6a58;
  --oak-deep: #4b4038;
  --ember: #9c6a3a;
  --ember-hover: #815530;
  --stone: #9a948c;
  --stone-light: #dcd6ce;
  --gold: #c9a77c;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(28, 27, 25, 0.08);
  --shadow-strong: 0 16px 40px rgba(28, 27, 25, 0.14);
  --radius: 12px;
  --content: 1040px;
  --header-h: 76px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oak-deep); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.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;
}

/* Top bar NAP */
.nap-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.nap-bar .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; align-items: center;
}
.nap-bar a { color: var(--cream); text-decoration: none; }
.nap-bar a:hover { color: var(--gold); text-decoration: underline; }
.nap-bar .tag { color: var(--stone-light); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-light);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0; max-width: min(280px, 52vw);
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(145deg, var(--ember), var(--oak-deep));
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.brand-mark span {
  font-family: var(--font-display); font-weight: 700;
  color: var(--cream); font-size: 1.05rem; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 500;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem;
  align-items: center; font-size: 0.92rem;
}
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ember); }
.nav-cta {
  background: var(--ember) !important; color: var(--white) !important;
  padding: 0.55rem 1rem !important; border-radius: 999px;
  text-decoration: none !important; font-weight: 600 !important;
  box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--ember-hover) !important; color: var(--white) !important; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--stone-light);
  border-radius: 8px; padding: 0.4rem 0.6rem; cursor: pointer; color: var(--ink);
}

/* Hero */
.hero {
  position: relative; color: var(--cream);
  min-height: clamp(380px, 58vw, 560px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(28,27,25,0.82) 0%, rgba(28,27,25,0.45) 55%, rgba(28,27,25,0.25) 100%);
}
.hero__content {
  position: relative; z-index: 2; padding: 3.5rem 1.25rem 3rem; max-width: 680px; margin-left: max(0px, calc((100% - var(--content)) / 2));
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.hero h1 { color: var(--cream); margin-bottom: 0.85rem; }
.hero p.lead {
  font-size: 1.15rem; color: rgba(243,240,235,0.92);
  margin-bottom: 1.5rem; max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.8rem 1.35rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ember); color: var(--white); border-color: var(--ember);
}
.btn-primary:hover { background: var(--ember-hover); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--cream); border-color: rgba(243,240,235,0.55);
}
.btn-ghost:hover { background: rgba(243,240,235,0.12); color: var(--cream); }
.btn-outline {
  background: transparent; color: var(--oak-deep); border-color: var(--oak);
}
.btn-outline:hover { background: var(--cream-deep); color: var(--ink); }
.btn-dark {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.btn-dark:hover { background: var(--oak-deep); color: var(--cream); }

/* Specialty strip */
.specialty-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--stone-light);
  padding: 1.1rem 0;
}
.specialty-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: center; align-items: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--oak-deep);
}
.specialty-strip a { text-decoration: none; color: inherit; }
.specialty-strip a:hover { color: var(--ember); }
.specialty-strip .dot { color: var(--ember); opacity: 0.7; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream); }
.section-ink {
  background: var(--ink); color: var(--cream);
}
.section-ink h2, .section-ink h3 { color: var(--cream); }
.section-ink p, .section-ink li { color: rgba(243,240,235,0.88); }
.section-ink a { color: var(--gold); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cards / grids */
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem;
}
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem;
}
.card {
  background: var(--white); border: 1px solid var(--stone-light);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img {
  width: 100%; height: 180px; object-fit: cover;
}
.card-body { padding: 1.25rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.45rem; }
.card-body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-body .card-link {
  margin-top: 0.75rem; font-weight: 600; text-decoration: none; color: var(--ember);
}
.card-body .card-link:hover { text-decoration: underline; }
.card-feature img { height: 220px; }

/* Process */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  counter-reset: step;
}
.process-step {
  background: var(--white); border-radius: var(--radius);
  padding: 1.35rem 1.2rem; border: 1px solid var(--stone-light);
  position: relative;
}
.process-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--ember); display: block; margin-bottom: 0.5rem;
}
.process-step h3 { font-size: 1.2rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Trust / about split */
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.split img {
  width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}
.trust-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.trust-list li {
  padding: 0.55rem 0 0.55rem 1.6rem; position: relative;
  border-bottom: 1px solid var(--stone-light); color: var(--ink-soft);
}
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--ember);
}

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--stone-light);
  border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 0.75rem;
}
.faq summary {
  font-weight: 600; cursor: pointer; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-size: 1.25rem; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.15rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--oak-deep), var(--ember));
  color: var(--cream); padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(243,240,235,0.9); max-width: 520px; margin: 0 auto 1.35rem; }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--stone-light);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  max-width: 640px; margin: 0 auto;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 8px;
  border: 1px solid var(--stone-light); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(156, 106, 58, 0.35); border-color: var(--ember);
}
.form-status { margin-top: 0.85rem; font-size: 0.95rem; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #a12d1c; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

/* Page hero (inner) */
.page-hero {
  background: var(--cream); border-bottom: 1px solid var(--stone-light);
  padding: 2.5rem 0 2rem;
}
.page-hero .breadcrumb {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { text-decoration: none; color: var(--oak-deep); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }

/* City / service content */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.chip {
  display: inline-block; padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--oak-deep); font-size: 0.88rem;
  font-weight: 600; text-decoration: none; border: 1px solid var(--stone-light);
}
.chip:hover { background: var(--ember); color: var(--white); border-color: var(--ember); }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(243,240,235,0.85); padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .brand-name { color: var(--cream); font-size: 1.4rem; margin-bottom: 0.4rem; }
.footer-logo-link { display: inline-block; text-decoration: none; margin-bottom: 0.75rem; }
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
}
.footer-brand p { color: rgba(243,240,235,0.7); margin-bottom: 1rem; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(243,240,235,0.12); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; font-size: 0.85rem; color: rgba(243,240,235,0.6);
}

/* Sticky mobile call */
.sticky-call {
  display: none; position: fixed; bottom: 1rem; right: 1rem; z-index: 200;
  background: var(--ember); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 0.85rem 1.2rem; border-radius: 999px;
  box-shadow: var(--shadow-strong);
}
.sticky-call:hover { background: var(--ember-hover); color: var(--white); }

/* Utility */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.img-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.img-frame img { width: 100%; height: 280px; object-fit: cover; }

@media (max-width: 900px) {
  .grid-4, .process-steps { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--stone-light); box-shadow: var(--shadow);
    align-items: flex-start;
  }
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
  .site-header .wrap { position: relative; }
  .sticky-call { display: inline-flex; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .process-steps, .split, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .card img, .card-feature img { height: 160px; }
  .split img { height: 240px; }
  .hero { min-height: 420px; }
  body { padding-bottom: 4.5rem; }
}

/* ===== TGQ additions ===== */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: .5rem 1rem; z-index: 300; }
.skip:focus { left: 0; }
.eyebrow-dark { color: var(--ember); }
.section-tight { padding: 2rem 0 0.5rem; }
.center-actions { justify-content: center; }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.split-rev > :first-child { order: 0; }
.no-num::before { display: none; }
.faq { max-width: 760px; }
.lead-dark { font-size: 1.2rem; color: var(--ink-soft); }
.thanks { padding: 5rem 0; }
.thanks .wrap { max-width: 680px; }
.nav a { white-space: nowrap; }

/* Headshot (swap /assets/rita-headshot.jpg) */
.split-about { grid-template-columns: 0.7fr 1.3fr; }
.headshot { margin: 0; position: relative; max-width: 360px; width: 100%; justify-self: center; }
.headshot img { width: 100%; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-strong); background: var(--cream-deep); }
.headshot-label {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: rgba(252,251,248,.92); color: var(--muted); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap;
}
.about-contact { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Gallery */
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.g-item { margin: 0; background: var(--white); border: 1px solid var(--stone-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.g-item[hidden] { display: none; }
.g-link { display: block; overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.g-link:hover img, .g-link:focus-visible img { transform: scale(1.04); }
.g-item figcaption { padding: .75rem 1rem .9rem; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.filter-btn {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--stone-light);
  background: var(--white); color: var(--ink-soft); transition: background .15s, color .15s, border-color .15s;
}
.filter-btn:hover { border-color: var(--ember); color: var(--ember); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); width: 100%; overflow: visible; }
.lightbox::backdrop { background: rgba(20,19,18,.88); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lb-cap { color: var(--cream); text-align: center; margin: .75rem 0 0; }
.lightbox button {
  position: absolute; background: rgba(252,251,248,.12); color: var(--cream); border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(252,251,248,.25); }
.lb-close { top: -52px; right: 0; }
.lb-prev { left: 8px; top: 40%; }
.lb-next { right: 8px; top: 40%; }

/* Selection swatches */
.notice {
  display: flex; flex-direction: column; gap: .3rem;
  background: var(--cream); border: 1px solid var(--stone-light); border-left: 4px solid var(--ember);
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem;
}
.notice span { color: var(--muted); font-size: .95rem; }
.stone-groups { padding-bottom: 3rem; }
.stone-group { padding: 1.75rem 0 1rem; border-top: 1px solid var(--stone-light); }
.stone-group:first-child { border-top: 0; }
.stone-group[hidden] { display: none; }
.stone-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1.1rem; }
.stone-group-head h2 { font-size: 1.7rem; margin: 0; }
.stone-group-head .mat { color: var(--ember); }
.stone-group-head p { margin: 0; color: var(--muted); font-size: .98rem; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.swatch { margin: 0; background: var(--white); border: 1px solid var(--stone-light); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(28,27,25,.06); }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swatch figcaption { padding: .65rem .8rem .8rem; display: flex; flex-direction: column; gap: .15rem; line-height: 1.3; }
.swatch strong { font-weight: 600; font-size: .98rem; }
.swatch span { color: var(--muted); font-size: .82rem; }
.mini-swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mini-swatch { text-decoration: none; color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.mini-swatch img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow); margin-bottom: .35rem; transition: transform .2s; }
.mini-swatch:hover img { transform: translateY(-2px); }
.mini-swatch:hover { color: var(--ember); }
.split .mini-swatch img { height: auto; box-shadow: var(--shadow); }
.compare h2 { font-size: 1.6rem; }

/* Quote form */
.quote-layout > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
#dim-add { white-space: nowrap; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.form-wide { max-width: none; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: .75rem; color: var(--ink); }
.req { color: var(--ember); }
.label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.hint { font-size: .88rem; color: var(--muted); margin: 0 0 .75rem; }
small.hint { margin: .2rem 0 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--stone-light); background: var(--paper); font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.pill input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.dim-helper { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: .75rem; align-items: end; background: var(--cream); border-radius: 10px; padding: .9rem; margin-bottom: 1rem; }
.dim-helper[hidden] { display: none; }
.field input[type="file"] { padding: .55rem; background: var(--white); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin: .5rem 0 0; }
.quote-aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.aside-card { background: var(--cream); border: 1px solid var(--stone-light); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.aside-card h3 { margin-bottom: .5rem; }
.aside-card ul { padding-left: 1.1rem; margin: 0; color: var(--muted); font-size: .95rem; }
.aside-card p { margin: 0 0 .4rem; }
.big-link { font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--ember); }

@media (max-width: 1060px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--stone-light); box-shadow: var(--shadow);
    align-items: flex-start;
  }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 900px) {
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .split-about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-grid { grid-template-columns: 1fr; }
  .dim-helper { grid-template-columns: 1fr 1fr; }
  .dim-helper .field:first-child { grid-column: 1 / -1; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .split .mini-swatch img { height: auto; }
  .headshot { max-width: 280px; }
  .headshot img { height: auto !important; }
  .lb-prev, .lb-next { top: auto; bottom: -56px; }
  .lb-prev { left: calc(50% - 52px); } .lb-next { right: calc(50% - 52px); }
}

@media (max-width: 720px) {
  .brand-logo { height: 42px; }
  --header-h: 68px;
}
@media (max-width: 480px) {
  .brand { max-width: min(200px, 58vw); }
  .brand-logo { height: 36px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .footer-logo { height: 34px; }
  .hero__content { margin-left: 0; }
  .nap-bar .tag { display: none; }
}

.photo-credits { font-size: .82rem; color: var(--muted); margin: 1.5rem 0 0; }
.photo-credits p { margin: 0 0 .5rem; }
.credit-list { list-style: none; padding: 0; margin: 0; columns: 2 22rem; column-gap: 2rem; }
.credit-list li { margin: 0 0 .3rem; break-inside: avoid; line-height: 1.4; }
.photo-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credit-list li { overflow-wrap: anywhere; }

/* How to Measure page */
.measure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}
.measure-diagram {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.measure-diagram img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--paper);
}
.measure-diagram figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.measure-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.measure-steps li {
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}
.measure-steps li strong { color: var(--ink); }

@media (max-width: 800px) {
  .measure-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Countertop visualizer (test) */
.viz{max-width:960px}
.viz-step{font-weight:600;color:var(--ink);margin:1.5rem 0 .6rem}
.viz-file{cursor:pointer;display:inline-block}
.viz-stones{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.6rem;margin-bottom:1.25rem}
.viz-stone{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;color:var(--ink-soft);cursor:pointer;text-align:center}
.viz-stone input{position:absolute;opacity:0}
.viz-stone img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;border:3px solid transparent}
.viz-stone input:checked+img{border-color:var(--gold)}
.viz-stone input:focus-visible+img{outline:2px solid var(--ink)}
.viz-status{min-height:1.5em;color:var(--oak-deep);margin-top:.75rem;display:flex;align-items:center;gap:.6rem}
.viz-spin{flex:none;width:1.4rem;height:1.4rem;border:3px solid var(--stone-light);border-top-color:var(--gold);border-radius:50%;animation:vizspin 1s linear infinite}
.viz-timer{font-variant-numeric:tabular-nums}
@keyframes vizspin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.viz-spin{animation-duration:3s}}
.viz-result{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:2rem}
.viz-result figure{margin:0}
.viz-result img{width:100%;border-radius:8px;display:block}
.viz-result figcaption{font-size:.85rem;color:var(--muted);margin-top:.3rem}
.viz-result .hero-actions{grid-column:1/-1}
.viz-note{margin-top:2rem;border-top:1px solid var(--stone-light);padding-top:1rem}
@media(min-width:700px){.viz-result{grid-template-columns:1fr 1fr}}

/* Visualize nav item (Oct 22): keep desktop nav on one line; switch to menu earlier */
.nav { flex-wrap: nowrap; gap: 0.15rem 0.95rem; font-size: 0.9rem; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--stone-light); box-shadow: var(--shadow);
    align-items: flex-start;
  }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { position: relative; }
}
