/* ===========================================================
   SOUTHWEST SAWYERS — Site Stylesheet
   Brand system: "info carousel" direct-response style
   Colors: olive-forest green, burnt orange, black, white
   =========================================================== */

:root {
  --green: #295E34;
  --green-dark: #1B4332;
  --orange: #CA6E2C;
  --black: #171512;
  --off-black: #23211d;
  --white: #ffffff;
  --cream: #F6F1E9;
  --grey-green: #4b5c4f;
  --border-radius: 6px;
  --max-width: 1180px;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--off-black);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.rule {
  width: 72px;
  height: 4px;
  background: var(--orange);
  margin: 10px 0 24px;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ===== Topo texture background ===== */
.topo-bg {
  position: relative;
  background-color: var(--green-dark);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M0 60 C 80 20, 160 100, 240 60 S 400 20, 400 60'/%3E%3Cpath d='M0 130 C 80 90, 160 170, 240 130 S 400 90, 400 130'/%3E%3Cpath d='M0 200 C 80 160, 160 240, 240 200 S 400 160, 400 200'/%3E%3Cpath d='M0 270 C 80 230, 160 310, 240 270 S 400 230, 400 270'/%3E%3Cpath d='M0 340 C 80 300, 160 380, 240 340 S 400 300, 400 340'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 500px 500px;
}
.topo-bg.light {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23295E34' stroke-opacity='0.08' stroke-width='1.5'%3E%3Cpath d='M0 60 C 80 20, 160 100, 240 60 S 400 20, 400 60'/%3E%3Cpath d='M0 130 C 80 90, 160 170, 240 130 S 400 90, 400 130'/%3E%3Cpath d='M0 200 C 80 160, 160 240, 240 200 S 400 160, 400 200'/%3E%3Cpath d='M0 270 C 80 230, 160 310, 240 270 S 400 230, 400 270'/%3E%3Cpath d='M0 340 C 80 300, 160 380, 240 340 S 400 300, 400 340'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 500px 500px;
}

/* ===== Top utility bar ===== */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--white); }
.topbar .phone { color: var(--orange); font-weight: 600; }

/* ===== Header / Nav ===== */
header.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
}
.logo img {
  height: 54px;
  width: 54px;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
}
.logo-tagline {
  color: var(--orange);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav > .nav-item { position: relative; }
nav.main-nav a.top-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 0;
  display: inline-block;
}
nav.main-nav a.top-link:hover,
nav.main-nav a.top-link.active { color: var(--green); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  border: 1px solid #e5e0d5;
  border-top: 3px solid var(--orange);
  min-width: 260px;
  padding: 10px 0;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--cream); color: var(--green); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #b25f22; }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn-outline-dark { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline-dark:hover { background: var(--green); color: var(--white); }

/* mobile nav toggle (checkbox hack — no JS dependency) */
.nav-toggle { display: none; }
.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 26px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  color: var(--white);
  padding: 90px 0 54px;
  text-align: center;
}
.hero h1 { color: var(--white); max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .progress-wrap { margin: 4px auto 30px; }
.hero .subhead {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: #e9e7df;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ===== Marquee ticker ===== */
.marquee {
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
}
.marquee-track {
  display: inline-block;
  animation: scroll-left 18s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

/* ===== Cards / grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid #eae5d8;
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.card h3 { color: var(--green); }

.placeholder-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.placeholder-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.5'%3E%3Cpath d='M0 40 C 60 10, 120 70, 180 40 S 300 10, 300 40'/%3E%3Cpath d='M0 100 C 60 70, 120 130, 180 100 S 300 70, 300 100'/%3E%3Cpath d='M0 160 C 60 130, 120 190, 180 160 S 300 130, 300 160'/%3E%3Cpath d='M0 220 C 60 190, 120 250, 180 220 S 300 190, 300 220'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
}

.card-photo {
  width: 100%;
  height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius);
  display: block;
}
@media (max-width: 860px) {
  .card-photo { height: 220px; }
}

/* Large single feature photo (service/about pages) — no small fixed-height cap */
.feature-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius);
  display: block;
}

/* checklist */
ul.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
ul.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
ul.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--orange);
  font-weight: 700;
}

/* highlight bar */
.highlight {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 3px;
}

/* callout box */
.callout {
  border: 2px solid var(--green);
  border-radius: var(--border-radius);
  padding: 24px;
  background: var(--white);
}

/* CTA band */
.cta-band {
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--white); }
.contact-line { font-size: 1.15rem; margin-top: 18px; }
.contact-line a { color: var(--orange); font-weight: 700; }

/* FAQ accordion (CSS-only) */
.faq-item { border-bottom: 1px solid #e5e0d5; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  font-size: 1.02rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--orange); font-weight: 700; }
.faq-item[open] summary::before { content: "\2212 "; }
.faq-item p { padding-bottom: 16px; color: #4a463d; }

/* table */
table.compare { width: 100%; border-collapse: collapse; margin: 20px 0; }
table.compare th, table.compare td { border: 1px solid #e5e0d5; padding: 12px 14px; text-align: left; font-size: 0.95rem; }
table.compare th { background: var(--green); color: var(--white); text-transform: uppercase; font-family: var(--font-head); font-size: 0.85rem; }

/* breadcrumb */
.breadcrumb { font-size: 0.82rem; color: #7a7566; padding: 14px 0 0; }
.breadcrumb a:hover { color: var(--green); }

/* icon doodle */
.doodle-icon { width: 40px; height: 40px; stroke: var(--orange); fill: none; stroke-width: 2; }

/* form */
.form-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  color: var(--off-black);
}
.form-box label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; }
.form-box input, .form-box select, .form-box textarea {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 16px;
  border: 1px solid #d8d2c2;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* footer */
footer.site-footer {
  background: var(--black);
  color: #cfcbbf;
  padding: 50px 0 24px;
  font-size: 0.9rem;
}
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
footer.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #3a382f;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #8a8677;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   MOBILE NAVIGATION + RESPONSIVE REFINEMENTS
   =========================================================== */
@media (max-width: 900px) {
  .nav-wrap { flex-wrap: wrap; row-gap: 12px; }
  .nav-wrap > a.btn.btn-outline-dark { display: none; }

  .nav-toggle-label { display: flex; margin-left: auto; }

  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 75vh;
    overflow-y: auto;
    border-top: 1px solid #e5e0d5;
    padding-top: 4px;
    order: 5;
  }
  .nav-toggle-checkbox:checked ~ nav.main-nav { display: flex; }

  nav.main-nav > .nav-item { width: 100%; }
  nav.main-nav a.top-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #eee;
  }

  .dropdown {
    display: block !important;
    position: static;
    left: auto;
    top: auto;
    box-shadow: none;
    border: none;
    background: var(--cream);
    min-width: 0;
    width: 100%;
    padding: 2px 0 10px;
  }
  .dropdown a { padding: 10px 8px 10px 18px; font-size: 0.86rem; }
}

@media (max-width: 700px) {
  .topbar .container > span:first-child { display: none; }
  .topbar .container { justify-content: center; }

  .logo img { height: 42px; width: 42px; }
  .logo-name { font-size: 1.05rem; }
  .logo-tagline { font-size: 0.58rem; }

  .hero { padding: 50px 0 32px; }
  .hero .subhead { font-size: 1rem; }
  .hero .cta-row .btn { width: 100%; text-align: center; }

  section { padding: 44px 0; }
  section.tight { padding: 28px 0; }

  .stats-band { padding: 28px 0 44px; }
  .progress-labels { flex-wrap: wrap; gap: 6px; justify-content: center; text-align: center; }

  .cta-band .cta-row .btn { width: 100%; text-align: center; }
  .contact-line { font-size: 1rem; }

  table.compare { display: block; overflow-x: auto; white-space: nowrap; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== Blog ===== */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card .placeholder-img, .blog-card .card-photo { border-radius: var(--border-radius) var(--border-radius) 0 0; }
.blog-card-body { padding: 22px 24px 26px; }
.blog-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  margin-bottom: 8px;
}
.blog-card h3 { margin-bottom: 8px; }
.blog-card p { color: #4a463d; font-size: 0.95rem; }
.blog-meta { color: #7a7566; font-size: 0.82rem; margin-bottom: 0; }
.blog-card .read-more { color: var(--green); font-weight: 600; font-size: 0.88rem; }
.blog-card .read-more:hover { color: var(--orange); }

.article-wrap { max-width: 760px; margin: 0 auto; }
.article-photo { margin: 22px 0 28px; }
.article-photo img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}
.article-photo figcaption {
  font-size: 0.85rem;
  color: #7a7566;
  margin-top: 8px;
  text-align: center;
}
.article-wrap h2 { margin-top: 1.4em; color: var(--green-dark); }
.article-wrap h3 { color: var(--green); margin-top: 1.2em; }
.article-wrap p, .article-wrap li { font-size: 1.02rem; color: #33312b; }
.article-meta {
  color: #7a7566;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.source-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e0d5;
  font-size: 0.82rem;
  color: #7a7566;
}
.source-note a { color: var(--green); text-decoration: underline; }
.placeholder-notice {
  background: #fdf3e7;
  border: 1px solid var(--orange);
  border-radius: var(--border-radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #6b4520;
  margin-bottom: 28px;
}

/* ===== Homes Protected stat band ===== */
.stats-band { text-align: center; padding: 36px 0 60px; }
.stats-band h2 { color: var(--white); }
.stats-band .stat-lede { color: #e9e5da; max-width: 640px; margin: 0 auto 32px; }
.progress-wrap { max-width: 680px; margin: 0 auto; }
.progress-track {
  width: 100%;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}
.progress-current { color: #e7b98a; font-weight: 700; }
.progress-goal { color: #c9c4b8; }
.stat-footnote { color: #a8a396; font-size: 0.8rem; margin-top: 18px; margin-bottom: 0; }
