/* ============================================================
   CHESAPEAKE ROOFLINE — Main Stylesheet
   Mobile-first, conversion-focused, fast
   ============================================================ */

:root {
  --ink: #242522;
  --muted: #66665f;
  --paper: #f4f0e7;
  --white: #fbfaf6;
  --line: #d8d0c2;
  --accent: #a45732;
  --accent-dark: #7d3f26;
  --accent-light: #f5ece6;
  --sage: #5f6b61;
  --sky: #e8f0ef;
  --shadow: 0 18px 50px rgba(36,37,34,.09);
  --radius: 16px;
  --radius-sm: 10px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 1rem;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); max-width: 920px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: Inter, sans-serif; font-weight: 700; }

/* Layout */
.wrap { width: min(1160px, 92%); margin: auto; }
.skip { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 9999; width: auto; height: auto; border-radius: 6px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #eee9df;
  font-size: .82rem;
  padding: 7px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; align-items: center; gap: 18px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 231, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navin {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: .92rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .navcta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
}
.nav-links .navcta:hover { background: var(--accent-dark); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ============================================================
   STICKY CALL BUTTON (mobile-friendly, non-intrusive)
   ============================================================ */
.sticky-call {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 6px 24px rgba(164,87,50,.45);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.sticky-call:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(164,87,50,.5);
}
.sticky-call svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .sticky-call { bottom: 16px; right: 16px; padding: 12px 16px; font-size: .86rem; }
  .sticky-call .call-label { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background: linear-gradient(140deg, #e8e0d2 0%, #f4f0e7 55%, #ddd6c9 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 60px;
  width: 480px;
  height: 240px;
  border-top: 2px solid rgba(164,87,50,.2);
  border-right: 2px solid rgba(164,87,50,.2);
  transform: skewY(-18deg) rotate(-3deg);
  border-radius: 30px;
  pointer-events: none;
}
.hero .eyebrow { margin-bottom: 16px; }
.hero p { font-size: 1.12rem; max-width: 700px; color: #47463e; }
.hero .note { margin-top: 14px; font-size: .84rem; color: var(--muted); max-width: 700px; }

/* Hero with image (split) */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-split .hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(36,37,34,.18); }
.hero-split .hero-img img { width: 100%; height: 380px; object-fit: cover; }

/* ============================================================
   ACTIONS / BUTTONS
   ============================================================ */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s, transform .12s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn.outline-white:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--ink); color: #e9e5dc; }
.section.sage { background: #e9eee9; }
.section.tight { padding: 50px 0; }

/* Intro */
.intro { max-width: 780px; }
.intro p { font-size: 1.08rem; color: #4a4940; }

/* Kicker / eyebrow */
.kicker, .eyebrow {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
  display: block;
}
.eyebrow { margin-bottom: 14px; }

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 18px rgba(36,37,34,.035);
  transition: box-shadow .15s, transform .12s;
}
.card:hover { box-shadow: 0 10px 30px rgba(36,37,34,.09); transform: translateY(-2px); }
.card .kicker { margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card.dark { background: var(--ink); color: #e9e5dc; border-color: transparent; }
.card.dark p { color: #c0bdb5; }
.card.accent-border { border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.card.featured { border-color: var(--accent); background: var(--accent-light); }

/* Icon card */
.icon-card { text-align: center; padding: 30px 20px; }
.icon-card .icon { font-size: 2rem; margin-bottom: 14px; }

/* ============================================================
   SPLIT LAYOUTS
   ============================================================ */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: start; }
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.center { align-items: center; }

/* ============================================================
   SERVICE LIST
   ============================================================ */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.service-list a {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .92rem;
  transition: border-color .12s, background .12s, transform .1s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-list a:hover { border-color: var(--accent); background: var(--accent-light); transform: translateY(-1px); }

/* ============================================================
   IMAGE SECTIONS
   ============================================================ */
.img-rounded { border-radius: var(--radius); overflow: hidden; }
.img-rounded img { width: 100%; object-fit: cover; }
.img-caption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.photo-grid .img-rounded { height: 220px; }
.photo-grid .img-rounded img { height: 100%; }

/* ============================================================
   CALLOUT BOXES
   ============================================================ */
.callout {
  background: #e5ded1;
  border-left: 4px solid var(--accent);
  padding: 22px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout h3 { margin-bottom: 10px; font-size: 1.1rem; }
.callout p { margin: 0; font-size: .95rem; }
.callout a { color: var(--accent); font-weight: 700; }

.alert-box {
  background: #fdf5f1;
  border: 1px solid #e8c4b0;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: .95rem;
}
.alert-box strong { color: var(--accent); }

.localbox {
  background: #ece6db;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius-sm);
  margin: 28px 0;
  font-size: .96rem;
}
.localbox strong { color: var(--accent-dark); }

.tip-box {
  background: var(--sky);
  border-left: 4px solid var(--sage);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem;
}

/* ============================================================
   CHECKLIST / PROCESS
   ============================================================ */
.checklist { list-style: none; padding: 0; margin: 22px 0; }
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; font-size: 1rem; }

.process-steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0; }
.process-steps li {
  counter-increment: step;
  padding: 16px 0 16px 52px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
}
.process-steps li strong { display: block; margin-bottom: 4px; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--ink);
  color: #e9e5dc;
  padding: 20px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 600;
}
.trust-item span.icon { font-size: 1.1rem; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.stat { text-align: center; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.stat .num { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat .label { font-size: .84rem; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 32px; }
.faq details {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 32px 18px 0;
  position: relative;
  list-style: none;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: .97rem; margin: 0; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumb { font-size: .82rem; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 7px; }

/* ============================================================
   ARTICLE / CONTENT
   ============================================================ */
.article { max-width: 840px; }
.article h2 { margin-top: 46px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 28px; }
.article ul li { margin-bottom: 6px; }

/* ============================================================
   AREAS / ZIP
   ============================================================ */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.area-item {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .92rem;
  transition: border-color .12s, background .12s;
}
.area-item:hover { border-color: var(--accent); background: var(--accent-light); }
.area-item .zip-badge { font-size: .76rem; font-weight: 600; color: var(--muted); display: block; margin-top: 3px; }

.zipgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 20px; }
.zip {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .88rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-size: .84rem; font-weight: 700; display: block; margin-bottom: 5px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf8;
  font: inherit;
  font-size: .96rem;
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form button { border: 0; cursor: pointer; font: inherit; }

/* ============================================================
   BANNER / ALERT
   ============================================================ */
.banner { padding: 18px 0; background: #ded7ca; border-bottom: 1px solid var(--line); }
.bannerin { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .77rem; background: var(--white); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #e9e5dc; padding: 60px 0 28px; }
.footergrid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .9fr; gap: 32px; }
.footer-logo { font-family: Georgia, serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.footer-logo span { color: var(--accent); }
.footer p, .footer li, .footer .small { color: #b0ada6; }
.footer h4 { color: #e9e5dc; font-family: Inter, sans-serif; font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 9px; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer-contact a { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: .95rem; color: #e9e5dc !important; }
.footer-contact a:hover { color: var(--accent) !important; }
.fine {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 20px;
  font-size: .78rem;
  color: #7a7872;
  line-height: 1.6;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.footer-bottom a { font-size: .82rem; color: #7a7872; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   UTILITY
   ============================================================ */
.center { text-align: center; }
.small { font-size: .88rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.gap-top { margin-top: 48px; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 70px 0 65px; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split .hero-img { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse, .split.even { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footergrid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .img-rounded { height: 180px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .topbar .wrap { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .topbar .tb-right { justify-content: center; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 6px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(36,37,34,.1);
  }
  .nav-links.open a { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links.open .navcta { border-radius: var(--radius-sm); text-align: center; margin-top: 8px; }
  .hero { padding: 60px 0 55px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footergrid { grid-template-columns: 1fr; gap: 28px; }
  .areas-grid { grid-template-columns: 1fr; }
  .zipgrid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .img-rounded { height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-items { gap: 18px; }
  .bannerin { flex-direction: column; }
  .section { padding: 55px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  .zipgrid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
