/* ==========================================================================
   Jacksonville Deck Pros — shared stylesheet
   Warm wood + coastal water palette. Mobile-first, zero dependencies.
   ========================================================================== */

:root {
  --walnut-950: #241708;
  --walnut-900: #33220f;
  --walnut-800: #46311a;
  --cedar-700: #8a5a33;
  --cedar-600: #a3703f;
  --sand-50: #faf6ed;
  --sand-100: #f2e9d8;
  --sand-200: #e6d8bf;
  --tide-900: #0a3540;
  --tide-800: #0c4a57;
  --tide-700: #10606f;
  --tide-600: #147a8c;
  --tide-100: #dceff2;
  --foam: #eef7f8;
  --ink: #221b12;
  --ink-mute: #5a4f40;
  --white: #ffffff;
  --hairline: #ddd2bd;
  --r: 6px;
  --lift: 0 3px 12px rgba(36, 23, 8, 0.14);
  --measure: 74rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--sand-50);
  /* clearance for the fixed mobile call bar */
  padding-bottom: 4.5rem;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--tide-700); }
a:hover, a:focus { color: var(--tide-900); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--walnut-950);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tide-900);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */
.site-head {
  background: var(--sand-50);
  border-bottom: 4px double var(--cedar-700);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--walnut-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.12;
}

.wordmark svg { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; }

.head-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--tide-700);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--lift);
  min-height: 44px;
}
.head-phone:hover, .head-phone:focus { background: var(--tide-900); }
.head-phone svg { width: 1.1rem; height: 1.1rem; }
.head-phone .num { display: none; }

.mainnav { background: var(--walnut-900); }

.mainnav ul {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
}

.mainnav a {
  display: inline-block;
  color: var(--sand-100);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  min-height: 44px;
}

.mainnav a:hover,
.mainnav a:focus,
.mainnav a[aria-current="page"] {
  background: var(--cedar-700);
  color: #fff;
}

/* Mobile nav: collapsed behind a CSS-only Menu toggle */
.menu-box { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle { display: none; }
@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-weight: 700; font-size: 0.95rem; color: var(--walnut-950);
    border: 2px solid var(--cedar-700); border-radius: 6px;
    padding: 0.45rem 0.7rem; cursor: pointer; user-select: none;
    margin-left: auto; margin-right: 0.6rem;
  }
  .mainnav { display: none; }
  .menu-box:checked ~ .mainnav { display: block; }
  .menu-box:checked ~ div .menu-toggle { background: var(--cedar-700); color: #fff; }
}

/* --------------------------------------------------------------------------
   Hero — dual conversion
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(150deg, var(--walnut-950) 0%, var(--walnut-800) 62%, var(--cedar-700) 130%);
  color: var(--sand-100);
  padding: 2.4rem 0 2.6rem;
  border-bottom: 4px solid var(--tide-700);
}

.hero h1 { color: #fff; }

.hero .kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-200);
  margin-bottom: 0.6rem;
}

.hero .hero-lede {
  font-size: 1.15rem;
  max-width: 39rem;
  color: var(--sand-100);
}

.hero-cols { display: grid; gap: 1.6rem; }

.hero-proof {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.3rem;
}

.hero-proof li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-proof svg {
  width: 1.25rem; height: 1.25rem;
  flex: 0 0 auto; margin-top: 0.2rem;
}

.btn-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--tide-600);
  color: #fff !important;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 1rem 1.4rem;
  border-radius: var(--r);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  min-height: 56px;
}
.btn-phone:hover, .btn-phone:focus { background: var(--tide-800); }
.btn-phone svg { width: 1.4rem; height: 1.4rem; }
.btn-phone small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.92;
}

.btn-sms {
  background: #fff;
  color: var(--tide-800) !important;
  border: 2px solid var(--tide-700);
  margin-bottom: 0.6rem;
  box-shadow: none;
}
.btn-sms:hover, .btn-sms:focus { background: var(--foam); }

.answer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sand-200);
  margin-top: 0.5rem;
}

/* Quote form card */
.lead-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r);
  border-top: 5px solid var(--tide-600);
  padding: 1.3rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.lead-card h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }

.lead-card .form-lede {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 0.9rem;
}

.lead-card label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.lead-card input,
.lead-card select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.85rem;
  border: 2px solid var(--sand-200);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}

.lead-card input:focus,
.lead-card select:focus {
  outline: 3px solid var(--tide-600);
  outline-offset: 1px;
  border-color: var(--tide-700);
}

.btn-send {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: var(--cedar-700);
  border: 0;
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  cursor: pointer;
  min-height: 52px;
}
.btn-send:hover, .btn-send:focus { background: var(--walnut-800); }

.form-fineprint {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin: 0.6rem 0 0;
  text-align: center;
}

.form-success {
  background: var(--tide-100);
  border-left: 4px solid var(--tide-700);
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   Assurance strip
   -------------------------------------------------------------------------- */
.assure {
  background: var(--tide-100);
  border-bottom: 1px solid var(--hairline);
}

.assure ul {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}

.assure li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tide-900);
  margin: 0;
}

.assure svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Bands (page sections)
   -------------------------------------------------------------------------- */
.band { padding: 2.6rem 0; }

.band-alt {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.band-intro { max-width: 47rem; }

.lede { font-size: 1.15rem; }

/* Service cards */
.svc-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--sand-50);
  border: 1px solid var(--hairline);
  border-bottom: 4px solid var(--cedar-700);
  border-radius: var(--r);
  padding: 1.25rem;
  box-shadow: var(--lift);
}

.svc-card svg.svc-glyph { width: 2.4rem; height: 2.4rem; margin-bottom: 0.6rem; }

.svc-card h3 { margin-bottom: 0.4rem; }

.svc-card h3 a { color: var(--walnut-950); text-decoration: none; }
.svc-card h3 a:hover, .svc-card h3 a:focus {
  text-decoration: underline;
  color: var(--tide-700);
}

.svc-card p { flex: 1; font-size: 0.95rem; margin-bottom: 0.75rem; }

.more-link { font-weight: 700; text-decoration: none; }
.more-link:hover, .more-link:focus { text-decoration: underline; }

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  background: var(--white);
  box-shadow: var(--lift);
  border-radius: var(--r);
  overflow: hidden;
}

.price-table caption {
  caption-side: bottom;
  font-size: 0.8rem;
  color: var(--ink-mute);
  padding: 0.5rem;
  text-align: left;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
}

.price-table thead th {
  background: var(--tide-900);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tbody tr:nth-child(even) { background: var(--foam); }

.table-scroll { overflow-x: auto; }

/* FAQ */
.qa-item {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--tide-600);
  border-radius: var(--r);
  margin-bottom: 0.75rem;
  box-shadow: var(--lift);
}

.qa-item summary {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--walnut-950);
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style-position: inside;
}

.qa-item summary:hover { color: var(--tide-700); }

.qa-item .qa-body { padding: 0 1.1rem 1rem; }

/* Interior page hero */
.page-hero {
  background: linear-gradient(150deg, var(--tide-900) 0%, var(--tide-700) 100%);
  color: var(--foam);
  padding: 2rem 0;
  border-bottom: 4px solid var(--cedar-700);
}

.page-hero h1 { color: #fff; margin-bottom: 0.35rem; }

.page-hero .hero-lede {
  color: var(--tide-100);
  font-size: 1.1rem;
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.page-hero .btn-phone { max-width: 26rem; background: var(--cedar-700); }
.page-hero .btn-phone:hover, .page-hero .btn-phone:focus { background: var(--walnut-800); }

/* Two-column content with rail */
.two-col { display: grid; gap: 2rem; }

.body-copy h2 { margin-top: 1.75rem; }
.body-copy h2:first-child { margin-top: 0; }
.body-copy h3 { margin-top: 1.25rem; }

/* Callouts */
.note {
  background: var(--foam);
  border-left: 5px solid var(--tide-700);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.note-flag {
  background: #fbeedd;
  border-left-color: var(--cedar-700);
}

.note p:last-child { margin-bottom: 0; }

/* Rail (sidebar) */
.rail .rail-box {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 1.1rem;
  box-shadow: var(--lift);
  margin-bottom: 1.25rem;
}

.rail h2 { font-size: 1.1rem; }

.rail ul { list-style: none; padding: 0; margin: 0; }

.rail li { margin: 0; border-bottom: 1px solid var(--hairline); }
.rail li:last-child { border-bottom: 0; }

.rail li a {
  display: block;
  padding: 0.6rem 0.2rem;
  text-decoration: none;
  font-weight: 600;
}

.rail .rail-call {
  background: var(--tide-900);
  color: var(--foam);
  text-align: center;
  border: 0;
}

.rail .rail-call h2 { color: #fff; }
.rail .rail-call .btn-phone { font-size: 1.15rem; margin-top: 0.5rem; }

/* Plain-list rails (facts, figures) */
.rail .fact-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0.2rem;
  font-size: 0.95rem;
}

/* CTA strip */
.cta-strip {
  background: var(--walnut-950);
  color: var(--sand-100);
  text-align: center;
  padding: 2.4rem 0;
  border-top: 4px solid var(--tide-700);
}

.cta-strip h2 { color: #fff; }
.cta-strip .btn-phone { max-width: 24rem; margin: 1rem auto 0; }
.cta-strip p { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* Area blocks */
.area-block h3 { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Footer — deliberately NAP-free (no street address)
   -------------------------------------------------------------------------- */
.foot {
  background: var(--tide-900);
  color: var(--tide-100);
  padding: 2.25rem 0 1.5rem;
  font-size: 0.92rem;
}

.foot-cols {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.foot h2 {
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.4rem; }

.foot a { color: var(--foam); text-decoration: none; }
.foot a:hover, .foot a:focus { text-decoration: underline; color: #fff; }

.foot-phone { font-size: 1.3rem; font-weight: 800; color: #fff !important; }

.foot-base {
  border-top: 1px solid var(--tide-800);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #9cc4cc;
}

/* --------------------------------------------------------------------------
   Fixed mobile call bar
   -------------------------------------------------------------------------- */
.callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 50;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
}

.callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem 0.5rem;
  min-height: 56px;
}

.callbar .cb-phone { background: var(--tide-600); color: #fff; }
.callbar .cb-quote { background: var(--cedar-700); color: #fff; }
.callbar svg { width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   Larger screens
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .assure ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .head-phone .num { display: inline; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }

  .hero { padding: 3.6rem 0 4rem; }

  .hero-cols {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 2.75rem;
  }

  .btn-phone { max-width: 26rem; justify-content: flex-start; }
  .hero .answer-note { text-align: left; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 2fr 1fr; }
  .foot-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .mainnav a { font-size: 0.95rem; padding: 0.65rem 0.75rem; }
}

/* Print */
@media print {
  .callbar, .mainnav { display: none; }
}
