/* Chattanooga Screens & Awnings — shared styles
   Palette from the logo: forest green #21412F, cream #F5F1E8, charcoal ink. */

:root {
  --green: #21412F;
  --green-hover: #173226;
  --green-soft: #E8EDE9;
  --cream: #F5F1E8;
  --cream-2: #EBE6DA;
  --ink: #1A1C1B;
  --muted: #5A605C;
  --line: #E3DED3;
  --white: #ffffff;
  --max: 1080px;
  --header: 4.25rem;
  --radius: 1.25rem;
  --shadow: 0 1px 2px rgba(26, 28, 27, 0.04), 0 12px 32px rgba(33, 65, 47, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(33, 65, 47, 0.35);
}
a:hover { text-decoration-color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--cream);
  color-scheme: light only;
  color: var(--ink);
  border-bottom: 1px solid rgba(33, 65, 47, 0.08);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-burger span,
.nav-burger::before,
.nav-burger::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger span { content: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-nav a:hover { color: var(--green); }
.site-nav a.is-active { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 980px;
  border: 1px solid transparent;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--green-hover);
  color: var(--white);
  text-decoration: none;
}
.btn-light {
  background: var(--white);
  color: var(--green);
}
.btn-light:hover { background: var(--cream); color: var(--green); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: rgba(33, 65, 47, 0.28);
}
.btn-ghost:hover { background: var(--green-soft); color: var(--green); }
.btn-nav {
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
  color: var(--white) !important;
}
.btn-nav:hover { color: var(--white) !important; }

.hero-actions,
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: var(--cream);
}
.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.038em;
  max-width: 14ch;
}
.hero .lede,
.lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
  letter-spacing: -0.015em;
}

.page-hero {
  padding: 3.75rem 0 3rem;
  background: var(--cream);
}
.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.page-hero .lede { margin-bottom: 0; }

/* Sections */
.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section h2,
.block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.section .intro,
.prose { color: var(--muted); max-width: 40rem; }
.section-head { margin-bottom: 2.5rem; max-width: 40rem; }
.section-head p { color: var(--muted); margin: 0.4rem 0 0; }

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(26, 28, 27, 0.04), 0 18px 40px rgba(33, 65, 47, 0.1);
  text-decoration: none;
  color: inherit;
}
.card-body { padding: 1.65rem 1.65rem 1.85rem; }
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.card p { margin: 0 0 1rem; color: var(--muted); }
.card .more {
  font-weight: 560;
  font-size: 0.9375rem;
  color: var(--green);
}

/* Photos */
.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
  border-radius: var(--radius);
  line-height: 0;
}
.photo picture,
.photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo img {
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.photo.hero-photo {
  margin-top: 3.25rem;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(33, 65, 47, 0.08);
}
.photo.tall {
  aspect-ratio: 4 / 3;
  min-height: 22rem;
}
.card .photo {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.photo img.pos-upper { object-position: center 32%; }

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}
.benefit h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.benefit p { margin: 0; color: var(--muted); }

/* Trust */
.trust {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.trust p { color: var(--muted); }

/* Area */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 980px;
  font-size: 0.9375rem;
}

/* CTA band */
.cta-band {
  background: var(--green);
  color: var(--white);
  padding: 4.5rem 0;
}
.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}
.cta-band p { margin: 0 0 1.75rem; max-width: 34rem; color: rgba(255,255,255,0.82); }
.cta-band .btn-light { color: var(--green); }
 .cta-band a.phone-plain { color: var(--white); }
.cta-band .btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.55);
}
.cta-band .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}


/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.features { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.features li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.features li:last-child { border-bottom: 0; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.split-copy h2 { margin-top: 0; }
.service-block + .service-block { margin-top: 1rem; }

/* FAQ */
.faq { margin: 2rem 0 0; max-width: 42rem; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--green);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  padding-right: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.contact-lead .phone-xl {
  display: inline-block;
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.contact-lead .phone-xl:hover { color: var(--green); }
.contact-meta { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-meta li { margin: 0 0 0.85rem; color: var(--muted); }
.contact-meta strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.15rem; }

/* Form */
.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.9rem;
}
.form-card h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.form-card .form-intro { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.98rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.9rem 0 0.35rem;
}
.req { color: var(--green); }

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  appearance: none;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 65, 47, 0.15);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.15rem 0 1.25rem;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent input { margin-top: 0.2rem; accent-color: var(--green); flex: 0 0 auto; }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Legal pages */
.legal {
  max-width: 40rem;
  padding: 3.5rem 0 5rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.legal h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.5rem;
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--cream);
  color-scheme: light only;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 56px; width: auto; max-width: 220px; }
.footer-brand p { margin: 0.85rem 0 0; color: var(--muted); max-width: 18rem; }
.site-footer h2 {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 650;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-legal { display: flex; gap: 1rem; }

.thanks { padding: 6rem 0; text-align: center; }
.thanks h1 { letter-spacing: -0.03em; }


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.gallery .photo {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  border: 1px solid rgba(33, 65, 47, 0.08);
}
@media (max-width: 860px) {
  .wrap { width: min(100% - 2rem, var(--max)); }
  .nav-burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--cream);
    color-scheme: light only;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-nav a { padding: 0.75rem 0.5rem; }
  .site-nav .btn-nav { margin: 0.4rem 0 0.2rem; align-self: flex-start; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-burger::before { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span { opacity: 0; }
  .nav-toggle:checked + .nav-burger::after { transform: translateY(-6.5px) rotate(-45deg); }

  .cards, .benefits, .trust, .feature-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding: 3.25rem 0 3rem; }
  .hero h1 { max-width: 12ch; }
  .photo.hero-photo,
  .photo.tall { aspect-ratio: 4 / 3; min-height: 0; }
  .section { padding: 3.5rem 0; }
  .footer-brand img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .nav-burger::before, .nav-burger::after { transition: none; }
}

/* Keep the header and footer cream in dark mode so the dark green logo stays visible.
   iOS Safari otherwise auto-darkens light bars and leaves the logo unreadable. */
@media (prefers-color-scheme: dark) {
  .site-header,
  .site-nav,
  .site-footer {
    color-scheme: light only;
    background: #F5F1E8;
    color: #1A1C1B;
  }
  .site-header {
    border-bottom-color: rgba(33, 65, 47, 0.08);
  }
  .site-nav a,
  .site-footer a {
    color: #1A1C1B;
  }
  .site-nav a:hover,
  .site-nav a.is-active,
  .site-footer a:hover,
  .site-footer h2 {
    color: #21412F;
  }
  .nav-burger span,
  .nav-burger::before,
  .nav-burger::after {
    background: #21412F;
  }
  .footer-brand p,
  .footer-bottom {
    color: #5A605C;
  }
  .site-footer {
    border-top-color: #E3DED3;
  }
  .footer-bottom {
    border-top-color: #E3DED3;
  }
}
