/* ============================================================
   GUTTER MULE — MAIN STYLES
   Layout + components. All color refs go through CSS vars in themes.css
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

.hidden { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-text); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover { background: var(--text); color: var(--bg); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-mark-sm { width: 32px; height: 32px; }

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-word-1 { color: var(--logo-color-1); }
.logo-word-2 { color: var(--logo-color-2); }

.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.btn-phone:hover { color: var(--accent); }
.phone-icon { font-size: 0.9rem; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .btn-phone span:not(.phone-icon) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--hero-bg);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg-overlay);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.price-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--btn-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.price-stamp-label { opacity: 0.85; }
.price-stamp-value { font-size: 1.05rem; }
.price-stamp-value strong { font-size: 1.3rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-highlight {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}
.hero-bullets li::first-letter { color: var(--accent); font-weight: 700; }

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-illustration svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

.hero-badge-card {
  display: flex;
  justify-content: center;
}

.badge-stamp {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: 6px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: rotate(-6deg);
}
.badge-stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--accent-text);
  border-radius: 50%;
  opacity: 0.3;
}
.badge-stamp-top { font-size: 0.85rem; opacity: 0.85; }
.badge-stamp-mid {
  font-size: 1.6rem;
  line-height: 1.05;
  margin: 0.5rem 0;
}
.badge-stamp-bot { font-size: 0.85rem; opacity: 0.85; }

.badge-stamp-light {
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--accent);
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge-card { display: none; }
  .hero-illustration svg { max-width: 400px; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 2rem 0;
}
.trustbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-item {}
.trust-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.trust-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* ============================================================
   SECTIONS / TYPOGRAPHY
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head-light .section-eyebrow,
.section-head-light .section-title,
.section-head-light .section-sub {
  color: inherit;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { padding: 5rem 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  background: var(--bg-raised);
  border-radius: var(--btn-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card:hover .service-icon {
  transform: scale(1.06) rotate(-3deg);
  background: var(--bg-surface);
}
.service-card-cta .cta-card-mark { margin: 0 auto 0.75rem; }

.service-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.badge-flat    { background: var(--accent); color: var(--accent-text); }
.badge-popular { background: var(--primary); color: var(--primary-text); }
.badge-protect { background: var(--bg-dark); color: var(--text-on-dark); }
.badge-fix     { background: var(--text-muted); color: var(--bg); }
.badge-roof    { background: var(--accent); color: var(--accent-text); }

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}
.service-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card-cta {
  background: var(--bg-raised);
  border: 2px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.cta-card-mark {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.service-card-cta h3 { color: var(--text); }
.service-card-cta p { flex: 1; }

@media (max-width: 880px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHY US
   ============================================================ */
.whyus {
  background: var(--whyus-bg);
  color: var(--whyus-text);
  padding: 5rem 0;
}
.whyus .section-title,
.whyus .section-eyebrow,
.whyus .section-sub { color: inherit; }
.whyus .section-eyebrow { color: var(--primary); opacity: 1; }

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.whyus-item {}
.whyus-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.whyus-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--whyus-text);
}
.whyus-item p {
  opacity: 0.85;
  font-size: 1rem;
}

@media (max-width: 880px) { .whyus-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 5rem 0; background: var(--bg-raised); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.faq-body p { margin: 0; }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.area { padding: 5rem 0; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.area-county {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--card-radius);
  padding: 1.75rem;
}
.area-county-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.area-cities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
}
.area-cities li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.15rem 0;
}
.area-cities li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 880px) { .area-grid { grid-template-columns: 1fr; } }

/* ============================================================
   QUOTE / LEAD FORM
   ============================================================ */
.quote { padding: 5rem 0; background: var(--bg-raised); }

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.quote-copy { padding-top: 1rem; }
.quote-copy .section-title { text-align: left; margin-top: 0.75rem; }
.quote-copy .section-eyebrow { color: var(--accent); }

.quote-promises {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1rem;
}
.quote-promises li {
  padding-left: 1.5rem;
  position: relative;
}
.quote-promises li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.quote-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 6px solid var(--primary);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--btn-radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 5rem 0; background: var(--bg-surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-copy .section-title { text-align: left; margin-top: 0.75rem; }
.about-copy .section-eyebrow { color: var(--accent); }
.about-copy p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}
.about-signature {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-style: italic;
}
.about-card { display: flex; justify-content: center; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card .badge-stamp { width: 200px; height: 200px; }
}

/* ============================================================
   LOGO PICKER
   ============================================================ */
.logo-picker { padding: 5rem 0; background: var(--bg); border-top: 1px solid var(--border); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.logo-option {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.5rem 1.25rem;
  margin: 0;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.logo-option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.logo-frame {
  background: var(--bg-raised);
  border-radius: var(--btn-radius);
  padding: 1.5rem 1rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px dashed var(--border-strong);
}
.logo-frame img { max-width: 100%; max-height: 120px; }
.logo-option figcaption {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.logo-option figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-option figcaption span { display: block; }

@media (max-width: 960px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .logo-grid { grid-template-columns: 1fr; } }

/* ============================================================
   LAYOUT-SWITCHER LINK (small addendum to theme switcher panel)
   ============================================================ */
.layout-jump-links {
  border-top: 1px solid var(--border);
  padding: 0.6rem 0.5rem 0.25rem;
  margin-top: 0.25rem;
}
.layout-jump-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.layout-jump-links a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.layout-jump-links a.current {
  background: var(--bg-raised);
  color: var(--accent);
}
.layout-jump-links a:hover { background: var(--bg-raised); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta {
  background: var(--finalcta-bg);
  color: var(--finalcta-text);
  padding: 4rem 0;
  text-align: center;
}
.finalcta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.finalcta p {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  opacity: 0.9;
}
.finalcta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.finalcta .btn-secondary {
  border-color: var(--finalcta-text);
  color: var(--finalcta-text);
}
.finalcta .btn-secondary:hover {
  background: var(--finalcta-text);
  color: var(--finalcta-bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer-brand .logo-word-1 { color: var(--text-on-dark); }
.footer-brand .logo-word-2 { color: var(--primary); }
.footer-tag {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer ul li { font-size: 0.95rem; opacity: 0.85; }
.footer ul a { color: var(--footer-text); }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
