/* =====================================================================
   Everclad Coatings — styles.css
   Graphite + brushed bronze. Industrial-luxury, mobile-first, accessible.
   No frameworks. One stylesheet. Target <1s load.
   ===================================================================== */

/* ---- Design tokens ---- */
:root {
  --charcoal:    #1A1D21;  /* base / near-black */
  --charcoal-2:  #24282E;  /* slightly raised dark surface */
  --bone:        #F5F3EF;  /* soft off-white */
  --bone-2:      #EBE7E0;  /* faint warm divider on light */
  --bronze:      #B08552;  /* muted brushed bronze accent */
  --bronze-dark: #8A6638;  /* hover / focus bronze (more contrast) */
  --ink:         #1A1D21;  /* body text on light */
  --ink-soft:    #4A4E54;  /* muted body text (AA on bone: ~7:1) */
  --line:        #D9D4CB;  /* hairline on light */

  --maxw: 1120px;
  --gap: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(26, 29, 33, 0.10);
  --shadow-lg: 0 16px 48px rgba(26, 29, 33, 0.18);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }
p  { margin: 0 0 1rem; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--charcoal); color: var(--bone);
  padding: .75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section--dark { background: var(--charcoal); color: var(--bone); }
.section--alt  { background: var(--bone-2); }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  font-weight: 700; color: var(--bronze-dark); margin: 0 0 .5rem;
}
.section--dark .section__eyebrow { color: var(--bronze); }
.section__lead { font-size: 1.1rem; max-width: 60ch; color: var(--ink-soft); }
.section--dark .section__lead { color: #D7D3CC; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 800; font-size: 1.05rem; line-height: 1;
  padding: 1rem 1.5rem; min-height: 52px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--bronze); color: var(--charcoal); }
.btn--cta:hover { background: var(--bronze-dark); color: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--bronze); }
.btn--ghost:hover { background: var(--bronze); color: var(--charcoal); }
.btn--block { width: 100%; }
.btn--lg { font-size: 1.15rem; padding: 1.15rem 1.75rem; min-height: 58px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 29, 33, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  color: var(--bone);
  border-bottom: 1px solid rgba(176, 133, 82, 0.35);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; padding-top: .5rem; padding-bottom: .5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--bone); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--bronze), var(--bronze-dark));
  display: grid; place-items: center; color: var(--charcoal); font-weight: 900;
}
.brand__name { font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand__name span { color: var(--bronze); }
.header-call {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bronze); color: var(--charcoal);
  font-weight: 800; text-decoration: none;
  padding: .6rem 1rem; border-radius: var(--radius); min-height: 44px;
}
.header-call:hover { background: var(--bone); }
.header-call__label { display: none; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(176,133,82,0.22), transparent 60%),
    var(--charcoal);
  color: var(--bone);
}
.hero__grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.hero__title { margin-bottom: .5rem; }
.hero__title em { color: var(--bronze); font-style: normal; }
.hero__sub { font-size: 1.15rem; color: #D7D3CC; max-width: 52ch; }
.hero__points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.hero__points li { padding-left: 1.6rem; position: relative; color: #E8E4DD; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem; border-radius: 2px; background: var(--bronze);
}

/* ---- Forms / quote card ---- */
.quote-card {
  background: var(--bone); color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
}
.quote-card__title { font-size: 1.25rem; margin-bottom: .25rem; }
.quote-card__note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.field { margin-bottom: .9rem; }
.field > label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field .req { color: var(--bronze-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; min-height: 50px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--bronze); outline: none; box-shadow: 0 0 0 3px rgba(176,133,82,0.25);
}
.field--row { display: grid; gap: .9rem; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: #FBE9E7; border: 1px solid #E0857A; color: #7A2018;
  padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600;
}
.form-disclaimer { font-size: .8rem; color: var(--ink-soft); margin: .75rem 0 0; }

/* ---- Price band ---- */
.price-band { text-align: center; }
.price-figure { font-size: clamp(2.6rem, 9vw, 4.5rem); font-weight: 900; color: var(--bronze); letter-spacing: -0.03em; line-height: 1; }
.price-figure small { display: block; font-size: 1rem; font-weight: 700; color: #D7D3CC; letter-spacing: .02em; margin-top: .5rem; }
.includes { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 760px;
  display: grid; gap: .75rem; grid-template-columns: 1fr; text-align: left; }
.includes li { padding-left: 2rem; position: relative; }
.includes li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--charcoal); background: var(--bronze); font-weight: 900;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem;
}

/* ---- Process ---- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: step; margin-top: 2rem; }
.step { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--charcoal); color: var(--bronze);
  font-weight: 900; font-size: 1.15rem; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---- Better-than-epoxy ---- */
.compare { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
.compare__card { border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(255,255,255,0.12); background: var(--charcoal-2); }
.compare__card h3 { color: var(--bone); }
.compare__card ul { margin: .5rem 0 0; padding-left: 1.1rem; color: #D7D3CC; }
.compare__card--win { border-color: var(--bronze); background: linear-gradient(180deg, rgba(176,133,82,0.14), transparent); }

/* ---- Gallery ---- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bone-2); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- Reviews ---- */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
.review { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.review__stars { color: var(--bronze-dark); letter-spacing: .15em; font-size: 1.05rem; }
.review__body { margin: .6rem 0 1rem; }
.review__name { font-weight: 800; margin: 0; }
.review__meta { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ---- Towns ---- */
.towns { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.towns li { padding: .35rem 0 .35rem 1.4rem; position: relative; break-inside: avoid; }
.towns li::before { content: "\25A0"; color: var(--bronze); position: absolute; left: 0; font-size: .7rem; top: .65em; }

/* ---- FAQ (native details) ---- */
.faq { max-width: 760px; margin: 2rem auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--bronze-dark); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: var(--charcoal); color: #C9C5BE; padding: 3rem 0 5.5rem; }
.site-footer a { color: var(--bronze); }
.footer__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.footer__brand { color: var(--bone); font-weight: 800; font-size: 1.2rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.5rem; font-size: .85rem; }

/* ---- Sticky mobile call bar ---- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--bronze); padding: .6rem var(--gap);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  color: var(--charcoal); font-weight: 900; font-size: 1.15rem; text-decoration: none; min-height: 48px;
}

/* ===================================================================
   Responsive — tablet / desktop
   =================================================================== */
@media (min-width: 600px) {
  .field--row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .includes { grid-template-columns: 1fr 1fr; }
  .header-call__label { display: inline; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  /* call bar is a mobile aid — hide on wide screens (header call persists) */
  .callbar { display: none; }
  .site-footer { padding-bottom: 3rem; }
}

/* ---- Motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
