/* American Irrigation — New Braunfels, TX
   Design tokens: navy #0A3161, dark navy #081F3D, red #B31942 (hover #971536),
   gold #E0A62E, page bg #F7F7F4, ink #1A2437, body gray #4A5568, muted #8A93A3,
   borders #E5E4DE. Type: Anton (headings) + Public Sans (everything else). */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #F7F7F4;
  font-family: 'Public Sans', sans-serif;
  color: #1A2437;
}

a { color: #0A3161; }
a:hover { color: #B31942; }

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

section[id] { scroll-margin-top: 62px; }

/* ---------- Top utility bar ---------- */

.topbar {
  background: #081F3D;
  color: #FFFFFF;
  font-size: 13px;
  padding: 9px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-msg { opacity: .85; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-hours { opacity: .85; }

.topbar-phone {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}
.topbar-phone:hover { color: #FFFFFF; }

/* ---------- Sticky nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E4DE;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  color: #0A3161;
  white-space: nowrap;
}

.wordmark-star { color: #B31942; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0A3161;
}
.nav-links a:hover { color: #B31942; }

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

.btn {
  background: #B31942;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.btn:hover { background: #971536; color: #FFFFFF; }

.btn-nav {
  font-size: 14px;
  padding: 12px 20px;
}

.btn-hero {
  font-size: 17px;
  padding: 17px 32px;
}

/* ---------- Flag stripe ---------- */

.flag-stripe {
  height: 6px;
  background: linear-gradient(90deg, #B31942 0 33.34%, #F2F2EE 33.34% 66.67%, #0A3161 66.67% 100%);
}

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

.hero {
  background: #0A3161;
  color: #FFFFFF;
  text-align: center;
  padding: 104px 24px 150px;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-gold { color: #E0A62E; }
.eyebrow-red { color: #B31942; }

.hero h1 {
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: .01em;
  text-wrap: balance;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-top: 6px;
}

.hero-rating strong { color: #FFFFFF; }

.rating-sep { opacity: .45; }

.stars {
  color: #E0A62E;
  letter-spacing: 3px;
  font-size: 16px;
}
.stars-lg { font-size: 17px; }

/* ---------- Hero photo card ---------- */

.hero-photo-wrap {
  max-width: 1080px;
  margin: -96px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.hero-photo-frame {
  height: 420px;
  border: 8px solid #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(8,31,61,.22);
  overflow: hidden;
  background: #DCE3DA;
}

.hero-photo-frame img,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Source photos are portrait phone shots; pick the band with the trench + greenery. */
.hero-photo-frame img { object-position: 50% 32%; }

/* ---------- Sections (shared) ---------- */

.section { padding: 96px 32px; }
.section-services { padding: 96px 32px 88px; }
.section-white { background: #FFFFFF; }

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 42px;
  letter-spacing: .01em;
  color: #0A3161;
}

.section-sub {
  margin: 0 auto;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: #4A5568;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

/* ---------- Service cards ---------- */

.service-card {
  background: #FFFFFF;
  border: 1px solid #E5E4DE;
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.service-card:hover {
  border-color: #B31942;
  box-shadow: 0 10px 24px rgba(8,31,61,.10);
  transform: translateY(-2px);
}

.card-accent {
  width: 14px;
  height: 14px;
  background: #B31942;
}

.service-card h3 {
  font-size: 21px;
  letter-spacing: .02em;
  color: #0A3161;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A5568;
}

.card-cta {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #B31942;
}

/* ---------- Stats strip ---------- */

.stats {
  background: #0A3161;
  color: #FFFFFF;
  padding: 64px 32px;
}

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  color: #FFFFFF;
}

.stat-star { color: #E0A62E; }

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

/* ---------- Reviews ---------- */

.review-card {
  background: #F7F7F4;
  border: 1px solid #E5E4DE;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #1A2437;
}

.review-author {
  margin-top: auto;
  font-size: 14px;
}
.review-author strong { color: #0A3161; }
.review-author span { color: #8A93A3; }

.reviews-more {
  text-align: center;
  margin-top: 36px;
}

.reviews-more a {
  font-weight: 600;
  font-size: 15px;
}

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

.about-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}

.about-photo {
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  background: #DCE3DA;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-copy h2 {
  font-size: 42px;
  letter-spacing: .01em;
  color: #0A3161;
}

.about-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #4A5568;
  text-wrap: pretty;
}

.area { margin-top: 8px; }

.area-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0A3161;
  margin-bottom: 12px;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #FFFFFF;
  border: 1px solid #E5E4DE;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  color: #1A2437;
}

/* ---------- Service-area map ---------- */

.map-wrap {
  max-width: 1080px;
  margin: 56px auto 0;
}

.map-frame {
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E4DE;
}

#area-map {
  width: 100%;
  height: 100%;
}

.map-caption {
  text-align: center;
  font-size: 13px;
  color: #8A93A3;
  margin-top: 10px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #F7F7F4;
  border: 1px solid #E5E4DE;
  border-radius: 10px;
  padding: 22px 28px;
}

.faq-q {
  all: unset;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.faq-q h3 {
  font-size: 19px;
  letter-spacing: .02em;
  color: #0A3161;
}

.faq-icon {
  font-size: 22px;
  font-weight: 700;
  color: #B31942;
  line-height: 1;
  font-family: 'Public Sans', sans-serif;
}
.faq-icon::before { content: '+'; }
.faq-item.open .faq-icon::before { content: '−'; }

.faq-a {
  display: none;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A5568;
}
.faq-item.open .faq-a { display: block; }

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

.contact {
  background: #0A3161;
  color: #FFFFFF;
  padding: 96px 32px;
  scroll-margin-top: 62px;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.contact h2 {
  font-size: 42px;
  letter-spacing: .01em;
}

.contact-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}

.contact-phone {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  color: #FFFFFF;
  text-decoration: none;
}
.contact-phone:hover { color: #E0A62E; }

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: rgba(255,255,255,.85);
}

.gold-link { color: #E0A62E; }
.gold-link:hover { color: #E0A62E; text-decoration: underline; }

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

.footer {
  background: #081F3D;
  color: rgba(255,255,255,.75);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.wordmark-footer {
  font-size: 18px;
  color: #FFFFFF;
}

.footer-phone {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}
.footer-phone:hover { color: #FFFFFF; }

/* ---------- Mobile (single breakpoint) ---------- */

@media (max-width: 780px) {
  .nav-links { display: none; }
  .topbar-msg { display: none; }
  .wordmark { font-size: clamp(14px, 4.6vw, 18px); }
  .hero-photo-frame { height: 240px; }
  /* Keep wordmark + call button on one row down to 320px-wide phones. */
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .btn-nav { font-size: clamp(11px, 3.6vw, 14px); padding: 10px 14px; }
}
