/* ==========================================================================
   Bosch Home Inspections — Shared Stylesheet
   --------------------------------------------------------------------------
   Brand tokens (colors, fonts) live in :root below — edit there and the
   whole site updates.
   ========================================================================== */

:root {
  /* Brand colors */
  --color-primary: #26282b;      /* charcoal: headers, footer, headings */
  --color-primary-light: #3a3d42;
  --color-accent: #da7756;       /* warm terracotta — CTAs, highlights */
  --color-accent-dark: #c15f3c;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f3;       /* alternating section background */
  --color-text: #2b2d30;
  --color-text-muted: #5f6368;
  --color-border: #e2e2e0;

  /* Typography */
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 1080px;
  --radius: 6px;
}

/* ---- Reset / base ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

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

/* ---- Header / navigation ---- */

.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

@media (max-width: 640px) {
  .logo img {
    height: 32px;
    max-width: 62vw;
    object-fit: contain;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom: 2px solid var(--color-accent);
}

.site-nav .nav-cta {
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border-bottom: none;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--color-accent-dark);
  border-bottom: none;
}

/* ---- Hero ---- */

.hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  padding: 4.5rem 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Page-top hero variant for interior pages */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  padding: 3.25rem 0;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-top: 0.5rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Sections ---- */

.section {
  padding: 4rem 0;
}

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

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-lede {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-center {
  text-align: center;
}

.section-center .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Card grids ---- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.97rem;
  color: var(--color-text-muted);
}

.card .card-note {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

/* ---- Split section (photo + text) ---- */

.split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(30, 32, 35, 0.12);
}

@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split img {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---- Checklist (what's covered) ---- */

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
  margin-top: 1rem;
}

.checklist li {
  padding-left: 1.7rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
}

/* ---- CTA band ---- */

.cta-band {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.75rem;
}

/* ---- Contact page ---- */

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.contact-card a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--color-accent-dark);
}

.contact-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ---- Detail lists (about page) ---- */

.detail-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.detail-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.75rem 0 1.25rem;
  font-size: 0.92rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-contact {
  text-align: right;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

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

  .grid-2,
  .grid-3,
  .grid-4,
  .checklist,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0;
    text-align: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-photo img {
    max-width: 300px;
    margin: 0 auto;
  }
}
