/* ========================================
   NorthPeak Home Services - Styles
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c2c2c;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a4d7c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.25;
  color: #1a2e44;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #f5f7fa;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-heading p {
  color: #555;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #c45a11;
  color: #fff;
  border-color: #c45a11;
}

.btn-primary:hover {
  background: #a84a0d;
  border-color: #a84a0d;
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: #1a4d7c;
  border-color: #1a4d7c;
}

.btn-secondary:hover {
  background: #eef3f8;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #dde3ea;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #1a4d7c;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.95rem;
}

.logo-text strong {
  color: #1a2e44;
  font-size: 1.05rem;
}

.logo-text span {
  color: #666;
  font-size: 0.8rem;
}

.header-phone {
  font-weight: 700;
  color: #1a4d7c;
  white-space: nowrap;
  text-decoration: none;
}

.header-phone:hover {
  text-decoration: underline;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  color: #1a4d7c;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ccd4de;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #1a2e44;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a4d7c 0%, #245f96 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.hero-content {
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  color: #fff;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-trust li {
  position: relative;
  padding-left: 1.1rem;
}

.hero-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f0b429;
  font-weight: 700;
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.intro-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: #f5f7fa;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 1.25rem;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: #1a4d7c;
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.95rem;
  color: #555;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 1.5rem;
}

.service-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.why-item {
  padding: 0.25rem 0;
}

.why-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Process */
.process-steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a4d7c;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 1.5rem;
}

.review-card p {
  font-style: italic;
  color: #444;
  margin-bottom: 1rem;
}

.review-card footer {
  font-size: 0.9rem;
  color: #666;
}

.review-card cite {
  font-style: normal;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 0 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1a2e44;
  padding: 1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  color: #1a4d7c;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
  padding-top: 0.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-list li {
  display: grid;
  gap: 0.25rem;
}

.contact-list strong {
  color: #1a2e44;
  font-size: 0.9rem;
}

.contact-note {
  background: #f5f7fa;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  padding: 1.5rem;
}

.contact-note h3 {
  margin-top: 0;
}

.contact-note h3:not(:first-child) {
  margin-top: 1.25rem;
}

.contact-note p {
  font-size: 0.95rem;
  color: #555;
}

.contact-disclaimer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #dde3ea;
  font-size: 0.85rem;
  color: #777;
}

/* Footer */
.site-footer {
  background: #1a2e44;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .services-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #dde3ea;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav li {
    border-bottom: 1px solid #eef1f5;
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1.25rem;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }
}

@media (max-width: 540px) {
  .services-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 0.9375rem;
  }

  .logo-text span {
    display: none;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }
}

/* Nav toggle open state */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
