/* =========================================================
   Lansing Gutter Solutions -- site stylesheet
   Plain CSS, no build tooling, mobile-first, no external fonts
   or frameworks so pages stay lightweight and fast.
   ========================================================= */

:root {
  --primary: #163a5f;      /* deep navy - header/footer */
  --primary-dark: #0e2740;
  --secondary: #3d7ea6;    /* steel blue - accents/links */
  --accent: #e07a3e;       /* burnt orange - CTAs */
  --accent-dark: #c2632c;
  --light-bg: #f4f7fa;
  --card-bg: #ffffff;
  --text: #232b32;
  --text-light: #57626c;
  --border: #dde3e9;
  --radius: 6px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.25rem;
}

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

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: #dce6ef;
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.top-bar a {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.brand .brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
}

.brand .brand-tag {
  font-size: 0.78rem;
  color: #b9cbdb;
  font-weight: 400;
}

.brand:hover {
  text-decoration: none;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone .phone-number {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone .phone-number:hover {
  text-decoration: none;
  color: var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* ---------- Nav ---------- */
nav.main-nav {
  background: var(--primary-dark);
}

nav.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 10px 0;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  color: #e7edf3;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a:focus {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
}

/* dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  z-index: 50;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  color: var(--text);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--light-bg);
  color: var(--secondary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 56px 0;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero-content {
  flex: 1 1 420px;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #e7edf3;
  margin-bottom: 22px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  flex: 1 1 300px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 20px;
}

.hero-badges ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-badges li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-weight: 600;
}

.hero-badges li:last-child {
  border-bottom: none;
}

/* small page hero for interior pages */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 34px 0;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.page-hero p {
  margin: 0;
  color: #e7edf3;
  max-width: 700px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #cfe0ee;
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: #fff;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section {
  padding: 48px 0;
}

section.alt {
  background: var(--light-bg);
}

h2 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--primary);
}

h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.section-intro {
  max-width: 760px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
}

.card h3 {
  font-size: 1.1rem;
}

.card a.card-link {
  font-weight: 700;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--primary-dark);
  color: #fff;
  padding: 22px 0;
}

.trust-strip .grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
  gap: 16px;
}

.trust-strip strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}

.trust-strip span {
  color: #b9cbdb;
  font-size: 0.85rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 34px 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner .phone-number {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

/* ---------- Lists with checks ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 800;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
}

table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background: var(--light-bg);
  color: var(--primary-dark);
}

/* ---------- FAQ / accordion (no JS needed) ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  color: var(--secondary);
  font-weight: 800;
  margin-right: 10px;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--text-light);
}

/* ---------- Blog cards ---------- */
.blog-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.blog-topic-tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Service area list ---------- */
.area-list {
  columns: 2;
  list-style: none;
  padding: 0;
}

.area-list li {
  padding: 4px 0;
}

@media (min-width: 500px) {
  .area-list {
    columns: 3;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--primary-dark);
  color: #cfd9e3;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 6px;
}

footer a {
  color: #cfd9e3;
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 0.8rem;
  color: #9fb0bf;
  text-align: center;
}

.footer-bottom p {
  margin: 4px 0;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  nav.main-nav .container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list {
    flex-direction: column;
    display: none;
    width: 100%;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .area-list {
    columns: 1;
  }
}
