/* ==========================================================
   Worry Less Insulation Pros — Site Stylesheet
   Clean & modern with Ozarks accents
   ========================================================== */

:root {
  --blue: #1b6ca8;          /* primary — clear Ozark sky */
  --blue-dark: #124d79;
  --teal: #2e8b8b;          /* river water accent */
  --green: #4a7c59;         /* Ozark hills */
  --green-dark: #355940;
  --orange: #e8833a;        /* CTA — sunset over the hills */
  --orange-dark: #c96a24;
  --ink: #1f2933;
  --slate: #52606d;
  --mist: #f4f7f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 6px 24px rgba(31, 41, 51, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Skip link (accessibility = SEO) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-dark);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--blue-dark);
  color: #dceefb;
  font-size: .875rem;
  padding: .4rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar a { color: #fff; font-weight: 600; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.logo svg { width: 44px; height: 44px; flex: none; }
.logo .logo-text { line-height: 1.15; }
.logo .logo-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-dark);
  display: block;
}
.logo .logo-tag {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue-dark);
  border-radius: 6px;
  padding: .35rem .6rem;
  font-size: 1.2rem;
  color: var(--blue-dark);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem 0;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--orange);
}
.main-nav .nav-cta {
  background: var(--orange);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border-bottom: none;
}
.main-nav .nav-cta:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-outline:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--mist); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #eaf4fb 0%, #f4f9f6 100%);
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding: 4.5rem 0 7rem;
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--slate);
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-inline: auto;
}
.hero-ctas {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-hills {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 1;
}
.hero-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--green-dark);
  font-weight: 600;
}
.hero-badges span { display: flex; align-items: center; gap: .4rem; }
.hero-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  background: var(--white);
  border: 1.5px solid #d9e2ec;
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-tool-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-tool-pill .pill-badge {
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .15rem .6rem;
}
.hero-tool-pill .pill-arrow { color: var(--orange-dark); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--mist); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--blue-dark);
  margin-bottom: .6rem;
}
.section-heading p { color: var(--slate); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .5rem;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--blue);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--blue);
}
.service-card h3 { font-size: 1.2rem; color: var(--blue-dark); margin-bottom: .5rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; }
.service-card p { color: var(--slate); font-size: .95rem; flex: 1; margin-bottom: 1.25rem; }
.service-card .card-link {
  font-weight: 700;
  color: var(--orange-dark);
  text-decoration: none;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ---------- Feature / benefit lists ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.checklist { list-style: none; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: .8rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; color: var(--blue-dark); margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--teal) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.cta-band p { color: #d5e9f5; margin-bottom: 1.5rem; max-width: 620px; margin-inline: auto; }
.cta-band .hero-ctas { margin-top: .5rem; }

/* ---------- Service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  list-style: none;
  margin-top: 1rem;
}
.area-list li {
  background: var(--white);
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .9rem;
  color: var(--slate);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .9rem;
  padding: 1.1rem 1.4rem;
}
.faq-list summary {
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 1.02rem;
}
.faq-list details p { margin-top: .75rem; color: var(--slate); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, #eaf4fb 0%, #f4f9f6 100%);
  padding: 3.25rem 0 2.75rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--blue-dark);
  margin-bottom: .75rem;
  max-width: 820px;
  margin-inline: auto;
}
.page-hero p {
  color: var(--slate);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-size: 1.08rem;
}
.breadcrumbs {
  font-size: .85rem;
  margin-bottom: 1rem;
  color: var(--slate);
}
.breadcrumbs ol { list-style: none; display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: #9aa5b1; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Article content ---------- */
.content { max-width: 780px; margin-inline: auto; }
.content h2 { color: var(--blue-dark); margin: 2.25rem 0 .75rem; font-size: 1.45rem; }
.content h3 { color: var(--blue-dark); margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.content p { margin-bottom: 1rem; color: #3e4c59; }
.content ul, .content ol { margin: 0 0 1rem 1.4rem; color: #3e4c59; }
.content li { margin-bottom: .45rem; }
.callout {
  background: #eef6ee;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  color: var(--green-dark);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .3rem; color: var(--ink); }
input, select, textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid #cbd2d9;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  max-width: 720px;
  margin-inline: auto;
}
.form-note { font-size: .85rem; color: var(--slate); margin-top: .75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd2d9;
  padding: 3rem 0 1.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #cbd2d9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #3e4c59;
  padding-top: 1.25rem;
  text-align: center;
  font-size: .82rem;
  color: #9aa5b1;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 0; }
  .main-nav a { display: block; padding: .8rem 1.5rem; border-bottom: none; }
  .main-nav .nav-cta { margin: .5rem 1.5rem; text-align: center; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero .container { padding: 3rem 0 5.5rem; }
}
