/* Base styles */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f9fafb;
  line-height: 1.6;
}


/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem; /* 20px */
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

/* Brand (fixes the old logo-main collision) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link { display: inline-flex; align-items: center; }

.brand-logo {
  width: 170px;     /* 170px */
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.brand-sub {
  display: block;
  font-size: 0.875rem; /* 14px */
  color: #6b7280;
  white-space: nowrap;
}

/* Nav */
.nav { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #4b5563;
}

.nav-link:hover { background-color: #e5e7eb; }

.nav-link-active {
  background-color: #2563eb;
  color: #ffffff;
}

/* Hero (index uses this; safe to keep) */
.hero {
  padding: 3rem 0 2.5rem;
  background: radial-gradient(circle at top left, #e5f0ff, #f9fafb);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  max-width: 35rem;
}

.hero-actions {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-points {
  list-style: disc;
  padding-left: 1.25rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Hero side card (index) */
.hero-panel { display: flex; justify-content: flex-end; }

.hero-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.hero-card h2 { margin-top: 0; margin-bottom: 0.75rem; font-size: 1.125rem; }

.hero-photo {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background-color: transparent;
  padding: 0;
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { font-size: 0.95rem; padding: 0.15rem 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-secondary {
  background-color: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.btn-secondary:hover { background-color: #f3f4f6; }

.btn-ghost {
  background-color: transparent;
  color: #111827;
  border-color: #d1d5db;
}

.btn-ghost:hover { background-color: #f3f4f6; }

/* Sections */
.section { padding: 2.75rem 0; }
.section-alt { background-color: #f3f4f6; }

.section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.section-intro {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #4b5563;
  max-width: 60ch;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards / steps */
.card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
}

.card h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.1rem; }

/* Steps */
.step { position: relative; padding-left: 2.5rem; }

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }

.checklist li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  color: #16a34a;
}

/* CTA section */
.section-cta {
  background-color: #111827;
  color: #f9fafb;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-cta p { max-width: 30rem; }

.section-cta .btn-primary {
  background-color: #f97316;
  border-color: #f97316;
}

.section-cta .btn-primary:hover {
  background-color: #ea580c;
  border-color: #ea580c;
}

.section-cta .btn-ghost {
  color: #e5e7eb;
  border-color: #4b5563;
}

.section-cta .btn-ghost:hover { background-color: #1f2937; }

/* Footer */
.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.footer-links a { color: #e5e7eb; }
.footer-links a:hover { text-decoration: underline; }

.footer-note { flex: 1 0 100%; margin-top: 0.5rem; }

/* ---------------------------
   About page specific styling
--------------------------- */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

.about-hero-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.about-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.about-name { margin: 0 0 0.25rem; font-size: 1.25rem; }
.about-title { margin: 0 0 0.75rem; color: #4b5563; }

.about-facts {
  margin: 0;
  padding-left: 1.1rem;
  color: #4b5563;
}

.about-hero-copy .lead {
  font-size: 1.05rem;
  color: #111827;
  margin-top: 0;
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1rem;
  color: #111827;
}

.signature {
  margin-top: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-card { grid-template-columns: 120px 1fr; }
  .about-photo { width: 120px; height: 120px; }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-sub { white-space: normal; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { justify-content: flex-start; }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-hero-card { grid-template-columns: 1fr; }
  .about-photo { width: 100%; height: auto; }
}

/* Contact page – location video */
.location-video-wrapper {
  width: 100%;
  max-width: 720px;        /* 720px cap */
  margin: 1.5rem auto;
  border-radius: 0.75rem;  /* 12px */
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #000000; /* black (#000000) */
  aspect-ratio: 16 / 9;    /* forces proper video ratio */
}

.location-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* or contain if you prefer */
}

/* =========================
   Contact page - Map Modal
   (matches your existing HTML/JS)
   ========================= */

/* Modal backdrop */
.map-modal {
  position: fixed;
  inset: 0;
  display: none;                 /* JS sets to flex */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.80);
  z-index: 9999;
  padding: 1.25rem;              /* 20px */
}

/* The enlarged image */
.map-modal-content {
  max-width: min(1120px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;        /* 12px */
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  cursor: zoom-out;
}

/* Close button */
.map-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  user-select: none;
}

.map-close:hover {
  background: rgba(17, 24, 39, 1);
}

/* If you still have the "Click to enlarge" overlay, prevent it from blocking clicks */
.map-click-overlay {
  pointer-events: none;
}
/* Build Gallery */
.build-card img {
  border-radius: 0.75rem;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
/* Contact page – coverage map (inline) */
.location-map-wrapper {
  width: 100%;
  max-width: 720px;          /* matches your video cap */
  margin: 1.25rem auto 0;
  position: relative;        /* needed for overlay positioning */
}

.location-map {
  width: 100%;
  max-width: 520px;          /* <-- this is the “never huge again” knob */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  cursor: zoom-in;
}

/* “Click to enlarge” overlay */
.map-click-overlay {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  background: rgba(229, 240, 255, 0.92); /* soft baby blue overlay */
  border: 1px solid rgba(37, 99, 235, 0.25);
  pointer-events: none; /* won’t block clicking the image */
}
.build-card img:hover {
  transform: scale(1.03);
}

.service-area-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  background-color: #f3f4f6;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.service-area-note h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #111827;
}

.service-area-note ul {
  margin: 0 0 0.5rem 1.1rem;
}

.service-area-note li {
  margin-bottom: 0.25rem;
}
.service-area-mini {
  margin-top: 0.5rem;
}

.coverage-link-wrapper {
  margin-top: 0.4rem;
}

.coverage-link {
  display: inline-block;
  font-weight: 600;
  color: #2563eb; /* brand blue */
  text-decoration: underline;
  transition: color 0.2s ease, transform 0.1s ease;
}

.coverage-link:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}
/* Widen layout on large desktop screens only */
@media (min-width: 1200px) {
  .container {
    max-width: 1280px; /* was 1120px, desktop only */
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.6fr);
  }
}
/* Header Schedule Button */
.schedule-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.schedule-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}
   
/* Panic Strip */
.panic-strip {
  margin: 2rem auto 0 auto;
  padding: 1.5rem 1.75rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;

  max-width: 900px;        /* controls width */
  text-align: left;        /* keep text readable */
}
.panic-content strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.4rem;
}

.panic-content p {
  margin: 0 0 0.75rem;
  color: #4b5563;
}

.panic-btn {
  font-weight: 600;
}

/* Panic Modal Content */
.panic-modal-content {
  background: #ffffff;
  max-width: 720px;
  width: 95%;
  border-radius: 0.75rem;
  padding: 2rem;
  position: relative;
}

.panic-modal-content h2 {
  margin-top: 0;
}

.panic-modal-content ol {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.panic-modal-content li {
  margin-bottom: 0.5rem;
}
    .diagnostic-highlight {
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  background-color: #e5f0ff; /* light blue */
  border: 1px solid #2563eb;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}
    .policy-note {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}
    .schedule-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  padding: 1rem;
}

.schedule-modal-content {
  background: #ffffff;
  max-width: 500px;
  width: 100%;
  border-radius: 0.75rem;
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.schedule-modal-content h2 {
  margin-top: 0;
}

.schedule-modal-content ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: #374151;
}

.schedule-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
    /* Social icon (header) */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #2563eb;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}
/* =========================
   Reviews (Contact page)
   ========================= */

.review-preview {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5e7eb;
}

.review-stars,
.review-stars span {
  color: #fbbc04;           /* Google star yellow */
}

.review-stars {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0.35rem 0 0.75rem;
}

.review-link,
.review-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: underline;
  color: #2563eb;
}

.review-open-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.review-open-btn:hover {
  background: #f3f4f6;
}

/* Reviews modal (uses your same modal/backdrop pattern) */
.review-modal {
  position: fixed;
  inset: 0;
  display: none;                 /* JS sets to flex */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.80);
  z-index: 9999;
  padding: 1.25rem;
}

.review-modal-content {
  background: #ffffff;
  width: min(820px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  padding: 1.5rem;
  position: relative;
}

.review-modal-content h2 {
  margin: 0 0 0.75rem;
}

.review-modal-content .review-item {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.review-item:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  color: #4b5563;
  font-size: 0.95rem;
  margin: 0.25rem 0 0.5rem;
}

.review-name {
  font-weight: 700;
  color: #111827;
}

.review-date {
  color: #6b7280;
}

.review-text {
  margin: 0;
  color: #111827;
}

.review-close {
  position: sticky; /* stays visible while scrolling inside modal */
  top: 0;
  float: right;
  margin-left: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #111827;
  background: rgba(243, 244, 246, 0.95);
  border: 1px solid #d1d5db;
  cursor: pointer;
  user-select: none;
}

.review-close:hover {
  background: #e5e7eb;
}
.youtube-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 1.5rem auto;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #000000;
  aspect-ratio: 16 / 9;
}

.youtube-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Mobile header cleanup
   ========================= */
@media (max-width: 768px) {

  /* Give the header some breathing room */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;                /* was too tall */
    padding: 0.65rem 0;
  }

  /* Keep brand content from looking like a weird two-column */
  .brand {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
  }

  /* Logo: smaller on mobile */
  .brand-logo {
    width: 150px;               /* tweak 140–160 if you want */
    height: auto;
  }

  /* Subtext: smaller and allowed to wrap */
  .brand-sub {
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: normal;
  }

  /* Make Schedule button not look like a giant billboard */
  .schedule-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
  }

  /* Nav: wrap cleanly and not look like huge pills */
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
  }

  /* Put Facebook icon at the end and keep it from floating awkwardly */
  .social-icon {
    align-self: flex-end;
    margin-top: -0.1rem;
  }
}

/* Optional: stop tiny horizontal scroll bugs */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }