/* ==========================================================================
   Big Red's Marble & Tile, Inc. — bigredstile.com
   Brand (Option A, chosen for launch 2026-11-19): the stone "BR" logo on black (Mario's Gmail logo, confirmed
   2026-11-19). Colors sampled from BigReds_Logo_HousecallPro_4x3.png:
   stone #C6BEB4 on near-black #0B0B0A. No red in the current identity.
   Montserrat headings to match the logo's geometric letterforms.
   (MGC uses Barlow Condensed + navy/gold, so the two companies never blur.)
   ========================================================================== */

:root {
  /* Warm stone scale, built from the logo's two colors (stone #C6BEB4 on black #0B0B0A).
     Every neutral on the site is a shade of the logo, so the whole page reads as one material. */
  --black:       #0B0B0A;   /* 950 · logo background — header, footer, mobile bar */
  --night:       #161513;   /* 900 · hero, page heroes, dark sections (a hair softer than the frame) */
  --charcoal:    #211F1C;   /* 850 · top bar */
  --soot:        #2B2824;   /* 800 · text on stone, dark-button hover */
  --ink:         #1A1816;   /* body text — warm near-black */
  --muted:       #5E574F;   /* 600 · secondary text, warm gray */
  --stone-dark:  #716657;   /* 500 · taupe — small labels, links and accents on light backgrounds */
  --stone:       #C6BEB4;   /* 300 · THE LOGO — accents on dark, buttons, call-to-action band */
  --stone-light: #DDD7CF;   /* 200 */
  --mist:        #EDEAE5;   /* 100 · fills, photo placeholders */
  --warm-white:  #F5F3EF;   /* 50  · alternate sections */
  --paper:       #FBFAF8;   /* page background — soft warm white */
  --line:        #E4DFD8;
  --white:       #FFFFFF;   /* cards, form fields */

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 2px 18px rgba(43, 40, 36, 0.08);
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--stone); color: var(--black); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.45rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }
a  { color: var(--stone-dark); }
a:hover { color: var(--ink); }

.eyebrow {
  display: block; margin-bottom: .9em;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--stone-dark);
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--black); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Placeholder — must be zero of these before launch ---------- */
.todo-banner {
  background: var(--warm-white); color: var(--ink); border: 2px dashed var(--stone-dark);
  padding: 14px 18px; border-radius: var(--radius); font-weight: 700; margin-bottom: 22px;
  font-size: .95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 28px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--stone); color: var(--black); }            /* on dark backgrounds */
.btn-primary:hover { background: #fff; color: var(--black); }
.btn-dark { background: var(--black); color: #fff; }                         /* on light backgrounds */
.btn-dark:hover { background: var(--soot); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: #fff; color: var(--black); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: rgba(11,11,10,.55); }
.btn-outline-dark:hover { background: var(--black); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: rgba(255,255,255,.72); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar strong { color: var(--stone); }
.topbar a { color: var(--stone); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Header (the logo's own black) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 2px solid var(--stone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: rgba(255,255,255,.88); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--stone); color: #fff; }
.nav a.btn { color: var(--black); padding: 12px 20px; border-bottom: 2px solid transparent; }
.nav a.btn:hover { color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--stone); cursor: pointer; padding: 4px 6px; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--night); color: #fff; }
.hero-copy { padding: 92px 56px 76px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.hero .eyebrow { color: var(--stone); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--stone); }
.hero .lede { color: rgba(255,255,255,.82); font-size: 1.16rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px;
  list-style: none; margin: 46px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(198,190,180,.3);
}
.hero-trust li { font-size: .88rem; line-height: 1.4; color: rgba(255,255,255,.72); }
.hero-trust strong { display: block; margin-bottom: 3px; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: var(--stone); }
.hero-photo { position: relative; min-height: 320px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Service page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 100px 0 80px; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,21,19,.93) 0%, rgba(22,21,19,.76) 55%, rgba(22,21,19,.42) 100%);
}
.page-hero.plain { padding: 80px 0 64px; }
.page-hero.plain::after { background: none; }
.page-hero .eyebrow { color: var(--stone); }
.page-hero h1 { max-width: 19ch; }
.page-hero .lede { color: rgba(255,255,255,.86); }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--warm-white); }
.section-dark { background: var(--night); color: #fff; }
.section-dark .eyebrow { color: var(--stone); }
.section-dark .lede { color: rgba(255,255,255,.8); }
.section-head { max-width: 70ch; margin-bottom: 48px; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--stone);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card p + p { margin-top: .8em; }

/* ---------- Service tiles ---------- */
.tile {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.12); color: var(--ink); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-noimg {
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 24px;
  background: var(--black); color: var(--stone); border-bottom: 3px solid var(--stone);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1.2;
}
.tile-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { margin-bottom: .3em; }
.tile-body p { margin: 0 0 1em; color: var(--muted); font-size: .96rem; }
.tile-more { margin-top: auto; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-dark); }

/* ---------- Standards (dark) ---------- */
.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.standard { border-top: 2px solid var(--stone); padding-top: 20px; }
.standard .ref { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.standard h3 { color: #fff; margin-bottom: .35em; }
.standard p { margin: 0; color: rgba(255,255,255,.74); font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.gallery.portrait img { aspect-ratio: 3 / 4; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 36px 14px 12px; font-size: .86rem; font-weight: 600; line-height: 1.35; color: #fff;
  background: linear-gradient(to top, rgba(11,11,10,.82), rgba(11,11,10,0));
}
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; border-radius: var(--radius); }
.feature-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--stone); font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
}
.section-dark .steps li::before { background: var(--stone); color: var(--black); }
.steps h3 { font-size: 1.05rem; margin-bottom: .35em; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }
.section-dark .steps p { color: rgba(255,255,255,.74); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 44px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px;
  border-left: 3px solid var(--stone-dark); border-bottom: 3px solid var(--stone-dark); transform: rotate(-45deg);
}
.checklist strong { display: block; color: var(--ink); }
.checklist.one-col { grid-template-columns: 1fr; gap: 18px; }
.section-dark .checklist li { color: rgba(255,255,255,.76); }
.section-dark .checklist li::before { border-color: var(--stone); }
.section-dark .checklist strong { color: #fff; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { position: relative; cursor: pointer; list-style: none; padding-right: 40px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: -6px; font-size: 1.7rem; font-weight: 400; color: var(--stone-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: .92rem; font-weight: 600; }

/* ---------- CTA band (stone, like the logo) ---------- */
.cta-band { background: var(--stone); color: var(--black); padding: 60px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .25em; font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
.cta-band p { margin: 0; max-width: 56ch; color: var(--soot); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field .req { color: var(--stone-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #CFCAC3; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--stone-dark); outline-offset: 0; border-color: var(--stone-dark); }
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.error { color: var(--ink); border-left: 3px solid var(--stone-dark); padding-left: 10px; }
.form-success { border-left: 4px solid var(--stone-dark); background: var(--warm-white); padding: 24px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.form-success:focus { outline: none; }
.form-success h3 { margin-bottom: .3em; }
.form-success p { margin: 0; }

.contact-block { margin-bottom: 28px; }
.contact-block h3 { margin-bottom: .3em; font-size: 1.05rem; }
.contact-block p, .contact-block address { margin: 0; font-style: normal; color: var(--muted); line-height: 1.6; }
.contact-block a { font-weight: 700; }
.big-phone { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; text-decoration: none; color: var(--ink); }

.callout { border-left: 4px solid var(--stone-dark); background: var(--warm-white); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 64px 0 24px; font-size: .93rem; border-top: 2px solid var(--stone); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 36px; }
.footer-brand img { width: 230px; height: auto; margin-bottom: 18px; }
.footer-brand strong { color: #fff; }
.site-footer h4 { margin: 0 0 1em; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--stone); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(198,190,180,.22); font-size: .84rem;
}
.license-line { color: var(--stone); font-weight: 600; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0; padding: 20px 24px 24px;
    background: var(--black); border-bottom: 2px solid var(--stone); box-shadow: 0 12px 24px rgba(0,0,0,.3);
  }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 24px 56px; }
  .hero-photo { min-height: 300px; }
  .grid-3, .grid-4, .standards, .gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 54px; }
  section { padding: 60px 0; }
  .topbar .wrap { justify-content: center; text-align: center; font-size: .74rem; }
  .brand img { height: 40px; }
  .page-hero { padding: 72px 0 56px; }
  .grid-2, .grid-3, .grid-4, .standards, .footer-grid, .checklist, .steps, .field-row { grid-template-columns: 1fr; }
  .gallery, .gallery.cols-4, .gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery figcaption { font-size: .76rem; padding: 26px 10px 8px; }
  .hero-trust { gap: 16px 18px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--black); border-top: 2px solid var(--stone);
  }
  .mobile-bar a { padding: 15px 6px; text-align: center; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-bar a.primary { background: var(--stone); color: var(--black); }
}
@media (max-width: 380px) {
  .brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .tile { transition: none; }
}
