/* ============================================================
   HOMEPAGE LAYOUT CSS — exact measurements from live site
   ============================================================ */

/* ---- Base body font (matches live site; shell.css supplies this on
   inner pages but the homepage doesn't load shell.css, so set it here.
   Without this, body copy falls back to Times New Roman) ---- */
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Raleway', sans-serif;
  color: #3a3a3a;
}

/* ---- Shared container ---- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ============================================================
   ROW 0 — Hero Slideshow (650px, full-width)
   ============================================================ */
.hero-section {
  width: 100%;
  height: 650px;
  overflow: hidden;
  position: relative;
  background-color: #5d7555; /* avg color of hero image — prevents white flash before it paints */
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
/* First slide (LCP) background in CSS so it can be served responsively */
.hero-slide.s1 { background-image: url('/images/sl1.avif'); }

/* ============================================================
   ROW 1 — Intro text (height 761px, padding 20px)
   ============================================================ */
.section-intro {
  padding: 20px;
}
.section-intro .page-container {
  max-width: 1200px;
}
.section-intro h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 60px;
  font-weight: 500;
  color: #002d74;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 20px 0;
  padding: 20px 0 0 0;
}
.section-intro p {
  font-size: 16px;
  line-height: 1.857; /* ~29.7px */
  color: #3a3a3a;
  margin: 0 0 25.6px 0;
}
.section-intro a {
  color: #46711b;
  text-decoration: none;
  font-weight: 700;
}
.section-intro a:hover { color: #002d74; }

/* ============================================================
   ROW 2 — Comprehensive Services heading (height 250px)
   ============================================================ */
.section-services-heading {
  padding: 20px;
}
.section-services-heading h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #002d74;
  margin: 0 0 20px 0;
  line-height: 1.3;
}
.section-services-heading p {
  font-size: 16px;
  line-height: 1.857;
  color: #3a3a3a;
  margin: 0 0 25.6px 0;
}
.section-services-heading a { color: #46711b; text-decoration: none; font-weight: 700; }

/* ============================================================
   ROWS 3–11 — Service rows (height 276px, 2 cols 50/50)
   ============================================================ */
.section-service-row {
  padding: 20px;
}
.service-row-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}
.service-row-text {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding-right: 20px;
}
.service-row-text h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 21px;
  font-weight: 500;
  color: #002d74;
  margin: 0 0 20px 0;
  line-height: 1.3;
}
.service-row-text p {
  font-size: 16px;
  line-height: 1.857;
  color: #3a3a3a;
  margin: 0 0 25.6px 0;
}
.service-row-text a { color: #46711b; text-decoration: none; font-weight: 700; }
.service-row-text a:hover { color: #002d74; }
.service-row-image {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
}
.service-row-image img {
  width: 300px;
  height: 188px;
  display: block;
  margin: 0 auto;
}

/* ============================================================
   ROW 12 — Service Areas + Resources (height 539px, 2 cols)
   ============================================================ */
.section-links-two-col {
  padding: 20px;
}
.links-two-col-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}
.links-col {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding-right: 20px;
}
.links-col:last-child { padding-right: 0; }
.links-col h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #002d74;
  margin: 0 0 20px 0;
}
.links-col p {
  font-size: 16px;
  line-height: 1.857;
  color: #3a3a3a;
  margin: 0 0 20px 0;
}
.links-col p a {
  color: #46711b;
  text-decoration: none;
  font-weight: 700;
}
.links-col ul {
  list-style: disc;
  margin: 0 0 0 48px;
  padding: 0;
}
.links-col ul li {
  margin-bottom: 0;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.857;
}
.links-col ul li a {
  color: #46711b;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.857;
}
.links-col ul li a:hover { color: #002d74; }

/* ============================================================
   ROWS 13–14 — Service Cards (gray bg #ebebeb)
   Row 13: full-width label + 3 cards, padding 20px 20px 0px
   Row 14: 3 cards, padding 0px 20px 20px
   ============================================================ */
.section-service-cards-header {
  background: #ebebeb;
  padding: 20px 20px 0;
}
.section-service-cards-header .page-container {
  max-width: 1200px;
}
.cards-label {
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #002d74;
  text-align: center;
  margin: 0 0 20px 0;
  letter-spacing: 4px;
}
.section-service-cards-body {
  background: #ebebeb;
  padding: 0 20px 20px;
}
.service-cards-grid {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
.service-cards-grid-3 {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 0;
  gap: 20px;
  padding-top: 20px;
}
.service-card {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 254px;
  height: 152px;
  display: block;
  margin: 0 auto;
}
.service-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.service-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #002d74;
  margin: 0 0 12px 0;
  text-align: center;
  line-height: 1.3;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}
.service-card ul li {
  font-size: 14px;
  line-height: 26px;
  color: #002d74;
  text-align: center;
}
.service-card ul li::before {
  content: none;
}
.card-read-more {
  display: inline-block;
  align-self: center;
  color: #46711b;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  border: none;
  padding: 0;
  text-align: center;
  font-family: 'Raleway', sans-serif;
}
.card-read-more:hover {
  color: #002d74;
}

/* ============================================================
   ROW 15 — About (height 801px, white bg, 0 padding, 50/50)
   ============================================================ */
.section-about {
  background: #ffffff;
}
.about-inner {
  display: flex;
  min-height: 682px;
}
.about-text {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding: 60px 50px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Constrain the copy to ~414px wide so it wraps tall like the live site,
   which drives the row to the live height (~682px) instead of running wide */
.about-text .about-label,
.about-text h2,
.about-text p {
  max-width: 414px;
  width: 100%;
}
.about-text p.about-label {
  font-family: 'Raleway', sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #002d74;
  line-height: 1.1;
  margin: 0 0 10px 0;
}
.about-text h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #46711b;
  margin: 0 0 20px 0;
  line-height: 1.3;
}
.about-text p {
  font-size: 16px;
  line-height: 1.857;
  color: #3a3a3a;
  margin: 0 0 25.6px 0;
}
.about-text a { color: #46711b; text-decoration: none; font-weight: 700; }
.about-text a:hover { color: #002d74; }
.about-cta-btn {
  display: inline-block;
  background: #002d74;
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  text-decoration: none;
  text-align: center;
  align-self: center;
  letter-spacing: 1px;
}
.about-cta-btn:hover { background: #001a50; color: #ffffff !important; }
.about-image {
  flex: 0 0 50%;
  width: 50%;
  background-size: cover;
  background-position: center;
  min-height: 682px;
}

/* ============================================================
   ROW 16 — Contact (height 676px, bg #7ab029, padding 20px)
   2-col layout: left = H2(48px white) + info, right = form
   ============================================================ */
.section-contact {
  background: #46711b;
  padding: 20px;
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}
.contact-left {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding-right: 40px;
}
.contact-left h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 24px 0;
  line-height: 1.1;
}
.contact-left p {
  font-size: 16px;
  line-height: 1.857;
  color: #ffffff;
  margin: 0 0 12px 0;
}
.contact-left a {
  color: #ffffff;
  text-decoration: none;
}
.contact-left a:hover { text-decoration: underline; }
.contact-right {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
}
.contact-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-form-row input {
  flex: 1;
}
.contact-right input[type="text"],
.contact-right input[type="email"],
.contact-right input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  border: none;
  box-sizing: border-box;
  background: #ffffff;
  margin-bottom: 12px;
  display: block;
  color: #555555;
}
.contact-right button[type="submit"] {
  background: #002d74;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 40px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-right button[type="submit"]:hover { background: #001a50; }
.contact-right textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  border: none;
  box-sizing: border-box;
  background: #ffffff;
  margin-bottom: 12px;
  display: block;
  color: #555555;
  resize: vertical;
}
.contact-social {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}
.contact-social a {
  color: #ffffff;
  font-size: 22px;
  text-decoration: none;
}
.contact-social a svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.contact-social a:hover { opacity: 0.8; }

/* ============================================================
   ROW 17 — Areas Served (height 240px, bg #002d74, 6 cols)
   Layout: full-width header + 2 empty spacers + 3 content cols
   ============================================================ */
.section-areas-served {
  background: #002d74;
  padding: 20px;
}
.areas-header {
  max-width: 1200px;
  margin: 0 auto 20px;
  text-align: center;
}
.areas-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 3px;
  margin: 0;
}
.areas-grid {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  gap: 80px;
}
.areas-spacer { display: none; }
.areas-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.areas-col a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.857;
}
.areas-col a:hover { color: #7fbc42; }

/* ============================================================
   Footer copyright bar
   ============================================================ */
.site-footer {
  margin: 0;
  padding: 0;
}
.site-below-footer-wrap {
  background: #002d74;
  padding: 20px 40px;
}
.ast-builder-footer-grid-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.site-footer-below-section-1,
.site-footer-below-section-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ast-footer-copyright p {
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { height: 300px; }
  /* Serve small mobile hero image (the LCP) instead of the 1733px desktop one */
  .hero-slide.s1 { background-image: url('/images/sl1-mobile.avif'); }
  .section-intro h1 { font-size: 32px; }
  .service-row-inner { flex-direction: column; }
  .service-row-text { flex: 1 1 100%; width: 100%; padding-right: 0; }
  .service-row-image { flex: 1 1 100%; width: 100%; }
  .links-two-col-inner { flex-direction: column; }
  .links-col { flex: 1 1 100%; width: 100%; padding-right: 0; }
  .service-cards-grid,
  .service-cards-grid-3 { flex-direction: column; }
  .about-inner { flex-direction: column; }
  .about-text { flex: 1 1 100%; width: 100%; padding: 40px 20px; }
  .about-image { flex: 1 1 100%; width: 100%; min-height: 300px; }
  .contact-left { flex: 1 1 100%; width: 100%; padding-right: 0; margin-bottom: 20px; }
  .contact-right { flex: 1 1 100%; width: 100%; }
  .areas-grid { flex-wrap: wrap; justify-content: center; }
  .areas-spacer { display: none; }
  .areas-col { flex: 0 0 160px; text-align: center; }
}

/* Visually-hidden text for screen readers / crawlers (descriptive link text) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
