/* ============================================
   Rhoades & Son Home Inspections
   Brand colors: #0d2548 (navy), #faf7ca (cream), #1a7a8a (teal)
   ============================================ */

:root {
  --navy: #0d2548;
  --cream: #faf7ca;
  --teal: #1a7a8a;
  --teal-hover: #15636f;
  --warm-white: #f8f6f1;
  --light-gray: #edeae3;
  --text: #2a2a28;
  --text-muted: #5c5b57;
  --border: #d8d5cc;
  --max-width: 1100px;
}

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

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

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

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

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

/* ---- Layout ---- */

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

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

.section {
  padding: 64px 0;
}

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

.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.page-content {
  padding: 48px 24px;
}

.page-content h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

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

.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

/* ---- Navigation ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  background: var(--navy);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
}

.nav-logo-name {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.nav-logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-phone:hover { color: #fff; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

/* ---- Trust Bar ---- */

.trust-bar {
  background: var(--cream);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 500;
}

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

.hero {
  background: var(--navy);
  padding: 64px 24px 72px;
  text-align: center;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ---- About Preview ---- */

.about-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-gray);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-text .btn {
  margin-top: 8px;
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Process Steps ---- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.step {
  text-align: center;
  padding: 16px 12px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Service Area Tags ---- */

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.area-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.area-tag-link {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}
.area-tag-link:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ---- CTA Section ---- */

.cta-section {
  background: var(--navy);
  padding: 56px 24px;
}

.cta-section h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.cta-phone {
  display: block;
  color: var(--cream);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-decoration: none;
}
.cta-phone:hover { color: #fff; }

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

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo-img {
  width: 100px;
  height: auto;
  opacity: 0.85;
}

.footer-info {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 2;
}

.footer-info a {
  color: var(--cream);
  text-decoration: none;
  display: block;
}
.footer-info a:hover { color: #fff; }

.footer-copy {
  display: block;
  margin-top: 8px;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .trust-bar {
    gap: 16px;
    padding: 10px 16px;
  }

  .trust-item { font-size: 0.72rem; }

  .hero { padding: 40px 20px 48px; }
  .hero h1 { font-size: 1.5rem; }

  .about-row {
    flex-direction: column;
    gap: 20px;
  }

  .about-photo {
    width: 100%;
    height: 200px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-info { text-align: center; }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    flex-direction: column;
    gap: 8px;
  }
}
