/* ===========================================================
   Lutz Fences / 76 FENCE Lutz — site stylesheet
   =========================================================== */

:root {
  --navy: #17356b;
  --navy-dark: #0d2447;
  --blue: #2f5b9b;
  --blue-dark: #244a80;
  --red: #e22a38;
  --red-dark: #b91f2b;
  --ink: #1c2733;
  --gray-700: #45505c;
  --gray-500: #6b7686;
  --gray-200: #e4e8ee;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 71, 0.10);
  --shadow-sm: 0 2px 10px rgba(15, 42, 71, 0.08);
  --max: 1180px;
  /* Theme tokens: a site's content/<name>.py THEME['vars'] overrides these. */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Inter', sans-serif;
  --head-weight: 800;
  --head-case: none;
  --head-spacing: normal;
  --hero-bg: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  --hero-eyebrow: #ff8a94;
  --eyebrow: var(--red);
  --alt-bg: var(--gray-100);
  --btn-radius: 999px;
  --section-pad: 64px;
  --accent: var(--blue);
  --accent-dark: var(--navy-dark);
  --gold: #c9a227;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-spacing); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--gray-700); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--alt-bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #c9d5e3; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; color: var(--eyebrow); margin-bottom: .6em;
}
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: var(--btn-radius); font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header */
.topbar {
  background: var(--navy-dark); color: #c9d5e3; font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px;}
.topbar a { color: #c9d5e3; }
.topbar a:hover { color: var(--white); }
.topbar .topbar-phone { font-weight: 700; color: var(--white); }

header.site-header {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 50;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.05rem; flex: none; }
.brand img { height: 48px; width: auto; }
.brand small { display: block; font-weight: 600; font-size: .64rem; letter-spacing: .06em; color: var(--gray-500); text-transform: uppercase;
  max-width: 150px; line-height: 1.3; margin-top: 1px; }

nav.primary-nav { display: flex; align-items: center; gap: 0; min-width: 0; }
nav.primary-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; flex-wrap: nowrap; }
nav.primary-nav > ul > li { position: relative; display: flex; align-items: center; align-self: stretch; }
nav.primary-nav > ul > li > a, nav.primary-nav > ul > li > button.nav-toggle {
  display: flex; align-items: center; gap: 3px; padding: 10px 8px; font-weight: 600; font-size: .85rem;
  line-height: 1.2; color: var(--navy); background: none; border: none; cursor: pointer; border-radius: 8px;
  font-family: inherit; white-space: nowrap; height: 100%;
}
nav.primary-nav > ul > li > button.nav-toggle span { line-height: 1; }
nav.primary-nav > ul > li > a:hover, nav.primary-nav > ul > li > button.nav-toggle:hover { background: var(--gray-100); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: var(--shadow); border-radius: 10px; padding: 10px; min-width: 250px; border: 1px solid var(--gray-200);
}
nav.primary-nav > ul > li.open .dropdown { display: block; }
@media (hover: hover) {
  nav.primary-nav:not(.open) > ul > li:hover .dropdown { display: block; }
}
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.dropdown a:hover { background: var(--gray-100); color: var(--blue); }
.dropdown .dd-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); padding: 6px 12px 2px; font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { font-weight: 800; color: var(--navy); font-size: .98rem; white-space: nowrap; }
.header-phone span { display: block; font-size: .64rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer;
  position: relative; z-index: 61; width: 44px; height: 44px; line-height: 1; padding: 0; }

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--white); padding: 76px 0 84px; position: relative; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #d3ddea; font-size: 1.1rem; max-width: 560px; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge { font-size: .85rem; color: #d3ddea; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.hero-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: 28px; backdrop-filter: blur(4px);
}
.hero-panel h3 { color: var(--white); margin-bottom: .3em; }
.hero-panel p { color: #c9d5e3; font-size: .92rem; }
.hero-panel form { display: grid; gap: 10px; margin-top: 14px; }
.hero-panel input, .hero-panel textarea, .hero-panel select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.95); font-family: inherit; font-size: .92rem;
}

/* Page hero (inner pages) */
.page-hero { background: var(--hero-bg); color: var(--white); padding: 56px 0; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--hero-eyebrow); }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.breadcrumbs { font-size: .82rem; color: #aebedc; margin-bottom: 14px; }
.breadcrumbs a { color: #aebedc; }
.breadcrumbs a:hover { color: var(--white); }
.page-hero .lead { color: #d3ddea; max-width: 700px; font-size: 1.05rem; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: .35em; font-size: 1.08rem; }
.card p { font-size: .92rem; margin-bottom: .6em; }
.card a.more { font-weight: 700; font-size: .86rem; }

.tile-img {
  border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3;
  display: flex; align-items: flex-end; color: var(--white); box-shadow: var(--shadow-sm);
}
.tile-img .ph, .tile-img > svg, .tile-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img .tile-label {
  position: relative; z-index: 2; padding: 16px; font-weight: 700; font-size: 1rem;
  background: linear-gradient(0deg, rgba(10,20,35,.82) 0%, rgba(10,20,35,0) 100%); width: 100%;
}

a.tile-link { color: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
a.tile-link:hover { color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow); }
a.tile-link > img { transition: transform .3s ease; }
a.tile-link:hover > img { transform: scale(1.04); }

/* Placeholder photo swatches (no real photography yet) */
.ph {
  background: repeating-linear-gradient(135deg, var(--navy) 0 18px, var(--navy-dark) 18px 36px);
}
.ph.ph-1 { background: repeating-linear-gradient(135deg, #16406b 0 18px, #0f2a47 18px 36px); }
.ph.ph-2 { background: repeating-linear-gradient(135deg, #1d6fd6 0 18px, #14508f 18px 36px); }
.ph.ph-3 { background: repeating-linear-gradient(135deg, #45505c 0 18px, #2b333c 18px 36px); }
.ph.ph-4 { background: repeating-linear-gradient(135deg, #c8102e 0 18px, #8f0b21 18px 36px); }

.badge-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 8px 16px; font-size: .82rem; font-weight: 700; color: var(--navy);
}

/* Two column content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev .split-media { order: 2; }
.split > *, .grid > *, .hero .container > *, .footer-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--white); }
.stat span { font-size: .85rem; color: #c9d5e3; }

/* Pricing table */
table.pricing { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.pricing th, table.pricing td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: .92rem; }
table.pricing th { background: var(--navy); color: var(--white); font-weight: 700; }
table.pricing tr:last-child td { border-bottom: none; }
table.pricing td:not(:first-child) { font-weight: 700; color: var(--navy); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px; font-weight: 700;
  font-size: 1rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit;
}
.faq-q .plus { font-size: 1.3rem; color: var(--blue); flex: none; transition: transform .2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 18px; margin: 0; }

/* Town chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--gray-100); border: 1px solid var(--gray-200); padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.chip:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Map */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Formspree AJAX states */
[data-fs-success] {
  display: none; background: #e7f4ec; border: 1px solid #b9e0c6; color: #1c6b3a;
  padding: 14px 16px; border-radius: 8px; font-weight: 600; font-size: .92rem; margin-bottom: 14px;
}
.fs-error[data-fs-error]:not(:empty) {
  display: block; background: #fdeaea; border: 1px solid #f3bcbc; color: #a41c1c;
  padding: 12px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600; margin: 4px 0 6px;
}
.fs-error[data-fs-error]:empty { display: none; }
.fs-field-error { display: block; color: #d3242f; font-size: .78rem; font-weight: 600; margin: -6px 0 8px; }
.fs-field-error:empty { display: none; margin: 0; }
.hero-panel .fs-field-error { color: #ffd6d6; }
button[data-fs-submit-btn]:disabled { opacity: .65; cursor: not-allowed; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--gray-200); font-family: inherit; font-size: .95rem; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.consent { font-size: .78rem; color: var(--gray-500); }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: #b9c6da; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer.site-footer h4 { color: var(--white); font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
footer.site-footer a { color: #b9c6da; }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer p { color: #b9c6da; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 9px; font-size: .88rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 46px; }
.footer-brand span { font-weight: 800; color: var(--white); font-size: 1.05rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.footer-social a:hover { background: var(--blue); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: #8093ac;
}
.footer-bottom a { color: #8093ac; }

/* Sticky mobile call bar */
.mobile-call-bar { display: none; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.small { font-size: .85rem; color: var(--gray-500); }
.divider { height: 1px; background: var(--gray-200); margin: 40px 0; }

/* Responsive */
/* Header, three stages (the phone number always stays in the header):
   1. Wide: the full menu.
   2. Medium (<= 1220px): Residential / Commercial / Other Services (.nav-extra) leave the header;
      Home, Fence Gallery, About, Contact stay, and the menu button opens the full menu in a drawer.
   3. Narrow (<= 900px): only the menu button. */
@media (max-width: 1220px) {
  nav.primary-nav > ul > li.nav-extra { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 14px; right: 14px; }
  nav.primary-nav.open { display: flex; position: fixed; inset: 0 0 0 auto; width: min(320px,86vw); background: var(--white);
    flex-direction: column; align-items: stretch; padding: 64px 20px 80px; box-shadow: -10px 0 30px rgba(0,0,0,.2); z-index: 60; overflow-y: auto; }
  nav.primary-nav.open > ul { flex-direction: column; width: 100%; gap: 0; }
  nav.primary-nav.open > ul > li { width: 100%; display: block; border-bottom: 1px solid var(--gray-200); }
  nav.primary-nav.open > ul > li > a, nav.primary-nav.open > ul > li > button.nav-toggle {
    width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1rem; height: auto; text-align: left;
  }
  nav.primary-nav.open .dropdown { position: static; box-shadow: none; border: none; display: none; padding: 0 0 10px 10px; min-width: 0; }
  nav.primary-nav.open > ul > li.open .dropdown { display: block; }
}
@media (max-width: 900px) {
  nav.primary-nav:not(.open) { display: none; }
}
/* Phones: the phone number always stays; give up the quote button (the estimate form leads the
   page), then the subtitle, then the brand text, before the phone ever gets squeezed. */
@media (max-width: 540px) {
  .header-cta .btn { display: none; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .container { padding: 0 16px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .header-cta .btn { padding: 10px 16px; font-size: .84rem; }
  .brand span { font-size: .95rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: var(--red); color: var(--white); text-align: center; padding: 14px; font-weight: 800;
    letter-spacing: .03em; box-shadow: 0 -6px 20px rgba(0,0,0,.2);
  }
  body { padding-bottom: 54px; }
  .hero { padding: 44px 0 56px; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
.nav-scrim { display: none; position: fixed; inset: 0; background: rgba(10,20,35,.5); z-index: 45; }
.nav-scrim.open { display: block; }

/* Warranty */
.warranty-seal {
  flex: none; width: 150px; height: 150px; border-radius: 50%;
  background: var(--navy); color: var(--white); border: 5px solid var(--red);
  box-shadow: 0 0 0 5px var(--white), 0 0 0 7px var(--navy), var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1;
}
.warranty-seal .ws-num { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; }
.warranty-seal .ws-unit { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; margin-top: 2px; }
.warranty-seal .ws-label { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #c9d5e3; margin-top: 6px; line-height: 1.25; }
.warranty-seal.lg { width: 220px; height: 220px; }
.warranty-seal.lg .ws-num { font-size: 4.6rem; }
.warranty-seal.lg .ws-unit { font-size: 1.1rem; }
.warranty-seal.lg .ws-label { font-size: .78rem; }
.warranty-strip { padding: 48px 0; }
.warranty-callout {
  display: flex; gap: 40px; align-items: center; background: var(--white);
  border: 1px solid var(--gray-200); border-left: 6px solid var(--red); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: var(--shadow-sm);
}
.warranty-callout h2 { font-size: 1.5rem; }
.warranty-hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.check-list, .x-list { list-style: none; padding: 0; margin: 0; }
.check-list li, .x-list li { position: relative; padding: 7px 0 7px 32px; border-bottom: 1px solid var(--gray-200); font-size: .95rem; }
.check-list li:last-child, .x-list li:last-child { border-bottom: 0; }
.check-list li::before, .x-list li::before {
  position: absolute; left: 0; top: 8px; width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: var(--white);
}
.check-list li::before { content: "\2713"; background: var(--navy); }
.x-list li::before { content: "\2715"; background: var(--gray-500); }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 26px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem;
}
.terms h3 { font-size: 1.05rem; margin-top: 1.6em; }
.terms p { font-size: .95rem; }
@media (max-width: 980px) {
  .warranty-hero { grid-template-columns: 1fr; }
  .warranty-hero .warranty-seal { order: -1; }
}
@media (max-width: 760px) {
  .warranty-callout { flex-direction: column; align-items: flex-start; gap: 22px; padding: 26px 22px; }
  .warranty-seal.lg { width: 170px; height: 170px; }
  .warranty-seal.lg .ws-num { font-size: 3.5rem; }
}

/* ===========================================================
   Layout variants (chosen per site in generator/content/<site>.py THEME)
   =========================================================== */

/* Hero with a photo behind it (THEME hero='image' or 'centered' + hero_image) */
.hero.hero-photo {
  background: linear-gradient(100deg, rgba(10,24,45,.92) 0%, rgba(10,24,45,.72) 45%, rgba(10,24,45,.35) 100%),
              var(--hero-photo) center / cover no-repeat;
}
.hero.hero-photo .hero-panel { background: rgba(255,255,255,.97); border-color: transparent; box-shadow: var(--shadow); }
.hero.hero-photo .hero-panel h3 { color: var(--navy); }
.hero.hero-photo .hero-panel p, .hero.hero-photo .hero-panel .consent { color: var(--gray-700); }
.hero.hero-photo .hero-panel input { border-color: var(--gray-200); }

/* Centered hero: headline + CTAs, no form (the estimate form gets its own section) */
.hero.hero-centered { padding: 110px 0 120px; text-align: center; }
.hero.hero-centered .container { display: block; max-width: 860px; }
.hero.hero-centered p.lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.hero.hero-centered .cta-row, .hero.hero-centered .hero-badges { justify-content: center; }
.hero.hero-centered.hero-photo {
  background: linear-gradient(180deg, rgba(10,24,45,.55) 0%, rgba(10,24,45,.78) 100%), var(--hero-photo) center / cover no-repeat;
}

/* Homepage "process" steps reuse the numbered .steps cards; style cards link whole */
a.style-card, a.related-card { display: block; color: inherit; }
a.style-card:hover, a.related-card:hover { color: inherit; }
a.style-card .more, a.related-card .more { font-weight: 700; font-size: .86rem; color: var(--blue); }
.estimate-split { align-items: start; }
.hub-intro { max-width: 780px; margin: 0 auto 36px; }

/* Guide layout for detail pages: article + "at a glance" sidebar */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.guide-main { max-width: 720px; }
.guide-main h2 { font-size: 1.45rem; margin-top: 1.6em; }
.guide-main > p:first-child { font-size: 1.08rem; color: var(--ink); }
.guide-side { position: sticky; top: 110px; }
.glance h3 { font-size: 1.05rem; }
.glance .check-list { margin: 10px 0 18px; }
.glance-phone { display: block; text-align: center; margin-top: 10px; font-weight: 700; font-size: .9rem; }
.guide-photo { padding: 0 0 var(--section-pad); }
.guide-photo .tile-img.wide { aspect-ratio: 21 / 8; }
@media (max-width: 980px) {
  .guide { grid-template-columns: 1fr; gap: 28px; }
  .guide-side { position: static; }
  .guide-photo .tile-img.wide { aspect-ratio: 16 / 9; }
}

/* ---------- Theme: rugged (Brooksville) — slab headings, squared corners, warm neutrals ---------- */
.theme-rugged .card, .theme-rugged .tile-img, .theme-rugged .hero-panel, .theme-rugged .form-card,
.theme-rugged .warranty-callout, .theme-rugged table.pricing { border-radius: 4px; }
.theme-rugged .card { border-top: 4px solid var(--accent); box-shadow: none; }
.theme-rugged .card:hover { box-shadow: var(--shadow-sm); }
.theme-rugged .card .icon { background: var(--accent); color: var(--white); border-radius: 4px; }
.theme-rugged .eyebrow { letter-spacing: .14em; }
.theme-rugged .section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin: 14px auto 0; }
.theme-rugged .guide-main h2 { border-left: 5px solid var(--accent); padding-left: 14px; }
.theme-rugged .chip, .theme-rugged .badge { border-radius: 4px; }
.theme-rugged .section-navy { background: var(--accent-dark); }

/* ---------- Theme: refined (North Tampa) — serif headings, light page heroes, soft cards ---------- */
.theme-refined .page-hero { background: var(--alt-bg); color: var(--ink); border-bottom: 1px solid var(--gray-200); padding: 72px 0 64px; }
.theme-refined .page-hero h1 { color: var(--navy); }
.theme-refined .page-hero .lead { color: var(--gray-700); }
.theme-refined .page-hero .eyebrow { color: var(--accent); }
.theme-refined .page-hero .breadcrumbs, .theme-refined .page-hero .breadcrumbs a { color: var(--gray-500); }
.theme-refined .page-hero .btn-outline { border-color: var(--navy); color: var(--navy); }
.theme-refined .page-hero .btn-outline:hover { background: var(--navy); color: var(--white); }
.theme-refined .card { border: none; border-radius: 18px; box-shadow: 0 6px 24px rgba(15,42,71,.07); }
.theme-refined .tile-img, .theme-refined .warranty-callout, .theme-refined .form-card { border-radius: 18px; }
.theme-refined .card .icon { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 50%; }
.theme-refined .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .95rem; font-style: italic; font-weight: 600; }
.theme-refined .section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.theme-refined .section-navy { background: var(--accent-dark); }
.theme-refined .guide { grid-template-columns: 300px minmax(0, 1fr); }
.theme-refined .guide-side { order: -1; }
.theme-refined .estimate-split .form-card { box-shadow: 0 10px 34px rgba(15,42,71,.10); border: none; }
@media (max-width: 980px) {
  .theme-refined .guide { grid-template-columns: 1fr; }
  .theme-refined .guide-side { order: 0; }
}

/* Two-step estimate form */
.est-progress { font-size: .82rem; color: var(--gray-500); margin: 4px 0 12px; }
.est-progress b { color: var(--navy); }
.est-progress span { font-style: italic; }
.est-form label, .est-choices legend { display: block; font-weight: 700; font-size: .82rem; color: var(--navy); margin-bottom: 5px; }
.est-form .form-row { margin-bottom: 10px; }
.est-form select, .est-form input[type=number] {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--gray-200); font-family: inherit; font-size: .95rem; background: var(--white);
}
.est-choices { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.est-choices > div { display: flex; flex-wrap: wrap; gap: 8px; }
.est-choice { position: relative; margin: 0 !important; cursor: pointer; }
.est-choice input { position: absolute; opacity: 0; pointer-events: none; }
.est-choice span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white);
  font-weight: 600; font-size: .9rem; color: var(--ink); transition: all .12s ease;
}
.est-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.est-choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.est-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.est-actions .btn { flex: 1 1 160px; }
.est-back { background: none; border: 0; padding: 10px 0 0; color: var(--gray-500); font: inherit; font-size: .88rem; cursor: pointer; }
.est-back:hover { color: var(--navy); }
/* in the dark hero panel */
.hero-panel .est-form { display: block; margin-top: 10px; }
.hero-panel .est-form label, .hero-panel .est-choices legend { color: var(--white); }
.hero-panel .est-progress { color: #aebedc; }
.hero-panel .est-progress b { color: var(--white); }
.hero-panel .est-back { color: #c9d5e3; }
.hero-panel .est-form .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-panel .est-form .form-row.full { grid-template-columns: 1fr; }
.hero.hero-photo .hero-panel .est-form label, .hero.hero-photo .hero-panel .est-choices legend,
.hero.hero-photo .hero-panel .est-progress b { color: var(--navy); }
.hero.hero-photo .hero-panel .est-progress, .hero.hero-photo .hero-panel .est-back { color: var(--gray-500); }
@media (max-width: 420px) {
  .hero-panel .est-form .form-row { grid-template-columns: 1fr; }
}
.est-form label.est-choice { display: inline-block; font-weight: 600; }

/* Estimate pop-up: centered on desktop, full-screen sheet on phones */
.est-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.est-modal[hidden] { display: none; }
.est-modal-backdrop { position: absolute; inset: 0; background: rgba(10,20,35,.6); }
.est-modal-panel {
  position: relative; width: min(540px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border-radius: 14px; padding: 0; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.est-modal-head {
  position: relative; background: var(--hero-bg); color: var(--white); padding: 20px 26px 18px;
  border-bottom: 4px solid var(--red);
}
.est-modal-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .98rem; margin-bottom: 12px; }
.est-modal-brand img { width: 46px; height: 46px; }
.est-modal-brand small { display: block; font-weight: 600; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-eyebrow); }
.est-modal-head h3 { color: var(--white); margin: 0 0 4px; font-size: 1.45rem; }
.est-modal-trust { margin: 0; font-size: .8rem; color: #c9d5e3; }
.est-modal-body { padding: 18px 26px 20px; }
.est-modal-call { margin: 14px 0 0; font-size: .9rem; text-align: center; }
.est-modal-call a { font-weight: 800; }
.est-modal-panel .consent { font-size: .75rem; color: var(--gray-500); margin: 8px 0 0; text-align: center; }
.est-modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.1);
  font-size: 1.8rem; line-height: 1; color: var(--white); cursor: pointer; border-radius: 50%;
}
.est-modal-close:hover { background: rgba(255,255,255,.22); }
html.modal-open, html.modal-open body { overflow: hidden; }
@media (max-width: 600px) {
  .est-modal { padding: 0; align-items: stretch; }
  .est-modal-panel { width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; }
  .est-modal-head { padding: 16px 18px 14px; }
  .est-modal-brand { margin-bottom: 8px; }
  .est-modal-brand img { width: 38px; height: 38px; }
  .est-modal-head h3 { font-size: 1.25rem; }
  .est-modal-body { padding: 14px 18px 28px; }
  .est-modal-panel .form-row { grid-template-columns: 1fr; gap: 10px; }
  .est-modal-panel .form-row.est-cityzip { grid-template-columns: 1fr 110px; }
}

/* Estimate form: both steps occupy the same grid cell, so the form is always as tall as the
   taller step (no jump when switching). One spacing rhythm and one control height for both. */
.est-steps { display: grid; }
.est-step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.est-step:not(.is-active) { visibility: hidden; }
.est-step .est-progress { margin: 0 0 2px; }
.est-form .est-step .form-row { margin: 0; gap: 12px; }
.est-form .est-step label, .est-form .est-choices legend { margin: 0 0 5px; padding: 0; line-height: 1.3; }
.est-choices { margin: 0; }
.est-form .est-step input:not([type=radio]), .est-form .est-step select {
  height: 46px; padding: 0 14px; box-sizing: border-box; font-size: .95rem;
}
.est-choice span { height: 46px; display: inline-flex; align-items: center; padding: 0 18px; }
.est-step .est-next, .est-step .est-actions { margin-top: auto; }
.est-actions { margin-top: auto; }
.est-actions { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.est-actions .btn { flex: 1 1 auto; }
.est-back { flex: none; padding: 0 4px; }
.est-form .fs-field-error:empty { display: none; }

/* HOA approval guide */
.hoa-guide .hoa-step h2 { display: flex; align-items: center; gap: 12px; }
.hoa-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-family: var(--font-body);
}
.hoa-local { margin: 24px 0 8px; background: var(--alt-bg); border-left: 5px solid var(--accent); }
.hoa-local h2 { font-size: 1.2rem; margin-top: 0; }
.hoa-guide .glance .hoa-print { margin-top: 10px; }
.hoa-disclaimer { margin-top: 2.2em; font-style: italic; }
@media print {
  .topbar, .site-header, .nav-scrim, .mobile-call-bar, .site-footer, .section-navy, .cta-row, .hoa-print,
  .glance .btn, .est-modal { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 12px; }
  .page-hero h1, .page-hero .lead { color: #000 !important; }
  .guide { display: block; }
  .guide-side { position: static; margin-top: 20px; }
  .card { box-shadow: none !important; border: 1px solid #ccc; }
}

/* ---------- Detail layout: cards ---------- */
.cards-intro { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.cards-intro p:first-child { font-size: 1.12rem; color: var(--ink); }
.hl-title { text-align: center; font-size: 1.2rem; margin-bottom: 16px; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 34px; }
.hl-tile { display: flex; gap: 10px; align-items: flex-start; background: var(--alt-bg); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; color: var(--navy); font-size: .93rem; }
.hl-tile span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.topic-card h2 { font-size: 1.25rem; }
.topic-grid { margin-top: 8px; }

/* ---------- Detail layout: longform ---------- */
.longform .container { max-width: 820px; }
.lf-highlights { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 30px; background: var(--alt-bg); }
.lf-highlights strong { display: block; color: var(--navy); margin-bottom: 8px; }
.lf-highlights ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lf-highlights li { background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.lf-article > p:first-child { font-size: 1.12rem; color: var(--ink); }
.lf-article h2 { font-size: 1.45rem; margin-top: 1.5em; }
.lf-photo { aspect-ratio: 16 / 7; margin: 26px 0; }
.lf-cta { margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lf-cta .glance-phone { display: inline; margin: 0; }

/* ---------- Homepage neighborhoods ---------- */
a.hood-card { display: block; color: inherit; }
a.hood-card:hover { color: inherit; }
a.hood-card .more { font-weight: 700; font-size: .86rem; color: var(--blue); }

/* ---------- Theme: classic (Carrollwood) — traditional serif, navy & gold, cream sections ---------- */
.theme-classic .card { border-top: 3px solid var(--gold); }
.theme-classic .card .icon { background: var(--gold); color: var(--white); }
.theme-classic .section-head h2 { position: relative; padding-bottom: 14px; }
.theme-classic .section-head h2::after { content: "◆"; display: block; color: var(--gold); font-size: .8rem; margin-top: 8px; }
.theme-classic .hero-panel { border-color: rgba(201,162,39,.5); }
.theme-classic .hl-tile span { background: var(--gold); }
.theme-classic .section-navy { background: var(--accent-dark); border-top: 4px solid var(--gold); }

/* ---------- Theme: modern (Westchase) — bold uppercase sans, charcoal, square edges ---------- */
.theme-modern .card, .theme-modern .tile-img, .theme-modern .hero-panel, .theme-modern .form-card,
.theme-modern .warranty-callout, .theme-modern .hl-tile, .theme-modern .lf-highlights, .theme-modern .est-modal-panel { border-radius: 2px; }
.theme-modern .card { box-shadow: none; border: 1px solid var(--gray-200); border-left: 4px solid var(--ink); }
.theme-modern .card:hover { border-left-color: var(--red); }
.theme-modern .card .icon { background: var(--ink); color: var(--white); border-radius: 2px; }
.theme-modern .eyebrow { letter-spacing: .2em; font-size: .72rem; }
.theme-modern h3 { text-transform: none; letter-spacing: 0; }
.theme-modern .chip, .theme-modern .badge, .theme-modern .est-choice span, .theme-modern .lf-highlights li { border-radius: 2px; }
.theme-modern .section-navy { background: var(--accent-dark); }

/* ---------- Theme: coastal (South Tampa) — refined serif, bay teal, sand sections ---------- */
.theme-coastal .page-hero { border-bottom: 5px solid var(--accent); }
.theme-coastal .card { border: 1px solid #e3dccd; box-shadow: none; border-radius: 6px; }
.theme-coastal .card .icon { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; }
.theme-coastal .eyebrow { font-variant: small-caps; text-transform: lowercase; letter-spacing: .1em; font-size: .95rem; }
.theme-coastal .section-head h2::after { content: ""; display: block; width: 90px; height: 2px; background: var(--accent); margin: 16px auto 0; }
.theme-coastal .section-navy { background: var(--accent-dark); }

/* ---------- Theme: fresh (Starkey) — friendly rounded type, green & sky, soft tiles ---------- */
.theme-fresh .card, .theme-fresh .tile-img, .theme-fresh .hero-panel, .theme-fresh .form-card,
.theme-fresh .warranty-callout, .theme-fresh .hl-tile, .theme-fresh .lf-highlights, .theme-fresh .est-modal-panel { border-radius: 20px; }
.theme-fresh .card { border: none; background: var(--alt-bg); box-shadow: none; }
.theme-fresh .card:hover { box-shadow: 0 8px 26px rgba(30,90,60,.12); }
.theme-fresh .card .icon { background: var(--accent); color: var(--white); border-radius: 50%; }
.theme-fresh .section-alt { background: var(--white); }
.theme-fresh .section-alt .card { background: var(--alt-bg); }
.theme-fresh .eyebrow { background: rgba(46,125,50,.1); color: var(--accent); padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.theme-fresh .hero .eyebrow, .theme-fresh .page-hero .eyebrow { background: rgba(255,255,255,.14); color: var(--hero-eyebrow); }
.theme-fresh .section-navy { background: var(--accent-dark); }
.theme-fresh .guide { grid-template-columns: 300px minmax(0, 1fr); }
.theme-fresh .guide-side { order: -1; }
@media (max-width: 980px) {
  .theme-fresh .guide { grid-template-columns: 1fr; }
  .theme-fresh .guide-side { order: 0; }
}

/* Trust strip under the homepage hero */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.trust-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.trust-item { padding: 18px 14px; text-align: center; border-right: 1px solid var(--gray-200); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: .95rem; font-family: var(--font-head); }
.trust-item span { display: block; font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
@media (max-width: 900px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .trust-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* Hero background video (THEME hero_video); poster image shows first and for reduced motion */
.hero-has-video { position: relative; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-has-video::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,24,45,.88) 0%, rgba(10,24,45,.65) 50%, rgba(10,24,45,.35) 100%); }
.hero-has-video.hero-centered::before { background: linear-gradient(180deg, rgba(10,24,45,.55) 0%, rgba(10,24,45,.8) 100%); }
.hero-has-video > .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Reviews, financing, care */
.reviews-intro { font-size: 1.08rem; text-align: center; max-width: 720px; margin: 0 auto 28px; }
a.review-link { display: block; color: inherit; }
a.review-link .more { font-weight: 700; font-size: .88rem; color: var(--blue); }
.review-quotes { margin-top: 24px; }
.review-quote blockquote { margin: 0 0 10px; font-size: 1.02rem; color: var(--ink); }
.review-quote figcaption { font-weight: 700; color: var(--navy); font-size: .9rem; }
.leave-review { margin-top: 28px; text-align: center; background: var(--alt-bg); }
.financing-notes { margin-top: 28px; }
.care-grid { margin: 14px 0 10px; }
.care-grid .card h3 { margin-bottom: 8px; }

/* ---------- Photo bands (home page lifestyle images) ---------- */
.photo-band { position: relative; min-height: clamp(340px, 42vw, 520px); display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--navy-dark); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,18,36,.78) 0%, rgba(8,18,36,.45) 45%, rgba(8,18,36,0) 75%); }
.photo-band .container { position: relative; z-index: 2; width: 100%; }
.photo-band-text { max-width: 480px; padding: 48px 0; }
.photo-band-text h2 { color: var(--white); font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .35em; }
.photo-band-text p { color: rgba(255,255,255,.9); font-size: 1.08rem; margin: 0 0 1.4em; }
@media (max-width: 700px) {
  .photo-band { align-items: flex-end; }
  .photo-band::before { background: linear-gradient(0deg, rgba(8,18,36,.85) 0%, rgba(8,18,36,.55) 55%, rgba(8,18,36,.1) 100%); }
  .photo-band-text { padding: 140px 0 36px; }
}
