:root {
  --neutron-bg: #ffffff;
  --neutron-color-scheme: light;
  --green: #6bc396;
  --green-light: #8fd5b3;
  --orange: #fd834c;
  --orange-dark: #eb662a;
  --blue-bg: #e6f0fa;
  --topbar-bg: #eeeeee;
  --ink: #313131;
  --ink-soft: #666666;
  --line: #dddddd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Maven Pro", Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Maven Pro", Montserrat, system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1rem;
}

p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.eyebrow {
  font-family: "Maven Pro", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.center {
  text-align: center;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-family: "Maven Pro", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.button-pill {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--orange);
}

.button-pill:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.button-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.button-outline:hover {
  background: var(--green);
  color: #fff;
}

.button-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.button-outline-light:hover {
  background: #fff;
  color: var(--green);
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Hanging green logo "tab" that protrudes below the header into the hero.
   Slides down from above on load, matching the original AOS slide-down. */
@keyframes logo-tab-slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.logo-tab {
  position: absolute;
  top: 0;
  left: max(2.5rem, calc((100% - 1120px) / 2 + 2.5rem));
  z-index: 5;
  background: var(--green);
  padding: 2.55rem 0.35rem 1.4rem;
  line-height: 0;
  transition: background 0.3s ease;
  animation: logo-tab-slide-down 1.05s ease;
}

.logo-tab:hover {
  background: var(--green-light);
}

@media (prefers-reduced-motion: reduce) {
  .logo-tab {
    animation: none;
  }
}

.logo-tab img {
  width: 285px;
  max-width: 40vw;
  display: block;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--topbar-bg);
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
  color: #999999;
}

.topbar-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-schedule svg {
  flex: none;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
}

.topbar-links a {
  color: #00adef;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: "Maven Pro", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 4px solid transparent;
}

.site-nav a:hover {
  color: #fd834c;
}

/* Active-page nav accent (green bar above current page), keyed off the
   bodyAttrs data-page each route sets in head(). */
body[data-page="home"] .header-main .site-nav a[href="/"],
body[data-page="contact"] .header-main .site-nav a[href="/contact"] {
  color: var(--green);
  border-top-color: var(--green);
}

/* Hero */
.hero {
  position: relative;
  padding: 6.2rem 0 11.75rem;
  color: #fff;
  overflow: hidden;
  background: #0a5888;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 127, 48, 0.24);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-inner h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-inner .button-pill {
  margin-top: 1.875rem;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  max-width: 44rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Benefit cards (overlap hero) */
.benefits {
  margin-top: -7.5rem;
  position: relative;
  z-index: 2;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.benefit-card {
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  padding: 1.6rem 2.2rem 1.9rem;
  min-height: 15rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.benefit-icon {
  height: 40px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  color: #fff;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Sections */
.section {
  padding: 5rem 0;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}

.service-item {
  text-align: center;
}

.service-item h4 {
  margin-bottom: 0.6rem;
}

.service-item p {
  font-size: 1rem;
  margin: 0;
}

/* Testimonials */
.testimonials-section {
  background: var(--blue-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--green);
  border-radius: 6px;
  padding: 2rem;
  margin: 0 0 1rem;
}

.testimonial-card p {
  color: #fff;
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.testimonial-attribution span {
  font-weight: 600;
  font-size: 1rem;
}

/* Team */
.team-section {
  padding-top: 4rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--blue-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.team-intro p {
  margin-bottom: 1.5rem;
}

.team-photo {
  align-self: stretch;
  min-height: 41rem;
  background: url("/images/technician.png") center top / cover no-repeat;
}

.team-owner p {
  font-size: 1rem;
}

/* CTA band */
.cta-band {
  background: var(--green-light);
  padding: 1.5rem 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-text {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-icons {
  height: 72px;
  width: 72px;
  object-fit: contain;
}

.cta-band-text h3 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.cta-band-text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--green);
  margin-top: auto;
  color: #fff;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem 0 1.25rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}

.footer-legal p {
  margin: 0.15rem 0;
  color: inherit;
}

.footer-legal a {
  color: #fff;
  text-decoration: underline;
}

.footer-credit {
  opacity: 0.85;
}

/* Contact page */
.contact-section {
  background: var(--blue-bg);
}

.contact-section h1 {
  margin-bottom: 0.75rem;
}

.contact-lede {
  font-size: 1.15rem;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border-radius: 6px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card-primary {
  background: var(--green);
  color: #fff;
}

.contact-card-primary h3 {
  color: #fff;
}

.contact-card-primary p {
  color: rgba(255, 255, 255, 0.92);
}

.contact-card-primary .contact-card-icon {
  filter: brightness(0) invert(1);
}

.contact-card-icon {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
}

.contact-card p {
  margin: 0 0 1rem;
}

.contact-cta {
  margin-top: auto;
  background: #fff;
  color: var(--green);
  border: 1px solid var(--orange);
  font-size: 1.25rem;
}

.contact-cta:hover {
  background: var(--orange);
  color: #fff;
}

.contact-email {
  color: #00adef;
  font-size: 1.375rem;
  font-weight: 700;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-meta h4 {
  margin-bottom: 0.25rem;
}

.contact-meta p {
  margin: 0;
}

.contact-banner {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
}

@media (max-width: 991px) {
  /* Header stacks: topbar, then logo row (no hang), then nav row — matching
     the original's tablet order. Mobile (≤767) reorders logo first. */
  .site-header {
    display: flex;
    flex-direction: column;
  }

  .topbar {
    order: 1;
  }

  .logo-tab {
    order: 2;
    position: static;
    display: block;
    width: fit-content;
    margin: 0.5rem 0 0.5rem 2.5rem;
    padding: 0.6rem 1rem;
    animation: none;
  }

  .header-main {
    order: 3;
  }

  h1 {
    font-size: 3rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-photo {
    display: none;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Header stacks fully, centered: logo, schedule, email, phone, burger */
  .logo-tab {
    order: 0;
    margin: 0 auto;
  }

  .logo-tab img {
    width: 300px;
    max-width: 80vw;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0 1rem;
  }

  .topbar-links {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .header-main {
    justify-content: center;
  }

  .site-nav a {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero {
    padding: 2.5rem 0 5rem;
  }

  .hero-sub {
    font-size: 1.7rem;
  }

  .benefits {
    margin-top: -2.5rem;
  }

  .benefits-grid {
    padding: 0 0.625rem;
    gap: 1.75rem;
  }

  .benefit-card {
    min-height: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-text {
    flex-direction: column;
    text-align: center;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
  }
}
