/* Huntsville Water Restoration - Custom styles */
/* Navy #1a365d, Action Orange #f97316 */

:root {
  --navy: #1a365d;
  --orange: #f97316;
  --orange-hover: #ea580c;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 4rem;
  /* space for fixed mobile CTA */
}

/* Header & nav - layout in CSS so nav isn't janky before Tailwind loads */
.site-header {
  background-color: var(--navy);
  color: white;
}

.site-header .header-inner,
.site-header>div {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header>div>a:first-child {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-header a {
  color: white;
  text-decoration: none;
}

.site-header a:hover {
  color: var(--orange);
}

.phone-link {
  color: #fff !important;
  font-weight: 600;
}

.phone-link:hover {
  color: #e0f2fe !important;
}

/* CTAs */
.btn-primary {
  background-color: var(--orange);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  color: white;
}

/* Fixed mobile Tap to Call */
.tap-to-call-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--orange);
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.tap-to-call-fixed:hover {
  background-color: var(--orange-hover);
  color: white;
}

@media (min-width: 768px) {
  .tap-to-call-fixed {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: white;
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

/* Priority Response Districts – muted slate column text */
.site-footer .priority-districts {
  color: #94a3b8;
}

.site-footer .priority-districts a {
  color: #94a3b8;
}

.site-footer .priority-districts a:hover {
  color: var(--orange);
}

/* Content headings */
h1,
h2,
h3 {
  color: var(--navy);
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
}

.hero-content {
  flex: 1 1 20rem;
  min-width: 0;
}

/* Hero image: fixed aspect-ratio slot, sensible max size so it doesn't dominate */
.hero-image-wrap {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 32rem;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 0.5rem;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .hero {
    flex-wrap: nowrap;
    padding: 3rem 1.5rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrap {
    order: 2;
  }
}

@media (max-width: 767px) {
  .hero-image-wrap {
    max-width: none;
    width: 100%;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrap {
    order: 2;
  }
}

/* Our Services section */
.services-intro {
  margin-top: 3.5rem;
  padding: 0 1rem;
}

.services-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem 0;
  text-align: center;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* Trust section with image */
.trust-section-wrap {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
}

.trust-two-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  background-color: #f8fafc;
  border-left: 4px solid var(--orange);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem;
}

.trust-two-col .trust-copy {
  flex: 1 1 20rem;
  min-width: 0;
}

/* Trust image: fixed size and aspect-ratio so it doesn't crop or space weird */
.trust-two-col .trust-image-wrap {
  flex: 0 0 18rem;
  width: 18rem;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.5rem;
}

.trust-two-col .trust-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

@media (max-width: 600px) {
  .trust-two-col .trust-image-wrap {
    flex: 1 1 100%;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
  }
}

/* Trust badges / sections */
.trust-section {
  background-color: #f8fafc;
  border-left: 4px solid var(--orange);
}

/* FAQ section */
.faq-section-wrap {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3.5rem;
  padding: 2rem 1rem;
}

.faq-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--navy);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.faq-answer {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
}

/* Blog content wrapper */
.blog-content {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}