/* ─────────────────────────────────────────────────────────────
   Malachi 3:11 Pest Control · stylesheet
   Modern · friendly · sans-serif. Saturated green hero,
   white content sections, dark CTAs, soft pale-green bands.
   ───────────────────────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Tokens */
:root {
  --green:        #1FA66B;
  --green-deep:   #168550;
  --green-darker: #0E6238;
  --green-soft:   #E9F7EE;
  --green-soft-2: #F4FBF6;

  --ink:        #14171A;
  --ink-soft:   #4A5159;
  --ink-mute:   #7A828C;
  --paper:      #FFFFFF;
  --line:       #E7EAEC;
  --line-soft:  #F1F3F4;

  --shadow-sm: 0 1px 2px rgba(20,23,26,0.06), 0 0 1px rgba(20,23,26,0.06);
  --shadow-md: 0 12px 30px -12px rgba(20,23,26,0.18), 0 4px 12px -6px rgba(20,23,26,0.08);
  --shadow-lg: 0 24px 60px -20px rgba(20,23,26,0.25), 0 8px 20px -10px rgba(20,23,26,0.12);

  --font: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Roboto Condensed", "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 10vw, 140px);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 112px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: var(--paper); }

a { transition: color .25s var(--ease), opacity .25s var(--ease); }

/* ─────────────────────────────────────────────
   Header
   Transparent over hero, white when scrolled.
   ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.header-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
}
.header-inner .site-nav { margin-left: auto; }
.brand img {
  height: 80px;
  width: auto;
  display: block;
  transition: filter .3s var(--ease);
}
.site-nav {
  display: flex;
  gap: 32px;
  justify-content: flex-end;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color .25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 4px; right: 100%;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.site-nav a:hover::after { right: 4px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.header-cta:hover {
  background: var(--green);
  color: var(--paper);
  transform: translateY(-1px);
}

/* State: over hero (top) — transparent bg, white text */
.site-header[data-state="top"] {
  background: transparent;
}
.site-header[data-state="top"] .site-nav a {
  color: var(--paper);
}
.site-header[data-state="top"] .header-cta {
  background: var(--ink);
  color: var(--paper);
}

/* State: scrolled — white bg, dark text */
.site-header[data-state="scrolled"] {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header[data-state="scrolled"] .brand img { filter: none; }
.site-header[data-state="scrolled"] .site-nav a { color: var(--ink); }

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  padding: calc(var(--header-h) + clamp(60px, 12vh, 140px)) var(--gutter) clamp(80px, 14vh, 160px);
  text-align: center;
  color: var(--paper);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(31, 166, 107, 0.72), rgba(31, 166, 107, 0.72)),
    url('https://cdn.post205.com/malachi311/hero-garden-1920w.jpg') center/cover no-repeat;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(10,70,30,0.25);
}
.hero-sub {
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: rgba(255,255,255,0.94);
  font-weight: 400;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.btn--outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.95);
}
.btn--outline:hover {
  background: var(--paper);
  color: var(--green-deep);
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.4);
}
.btn--solid {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}
.btn--solid:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(14,147,68,0.5);
}

/* Hero bottom: static (non-stretching) band + fixed-size peak SVG.
   The peak is always 320×80px so it reads identical on mobile and desktop. */
.hero-band {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 22px;
  background: var(--paper);
  z-index: 1;
  pointer-events: none;
}
.hero-peak {
  position: absolute;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 54px;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Chevron icon sitting on the wave — plain glyph, no container */
.scroll-cue {
  position: absolute;
  bottom: clamp(14px, 2vw, 26px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color .25s var(--ease);
  z-index: 2;
}
.scroll-cue:hover { color: var(--green-darker); }

/* ─────────────────────────────────────────────
   Verse band
   ───────────────────────────────────────────── */
.verse {
  background: var(--paper);
  padding: clamp(64px, 9vw, 110px) var(--gutter) clamp(48px, 6vw, 80px);
  text-align: center;
}
.verse-inner {
  max-width: 860px;
  margin: 0 auto;
}
.verse-text {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  font-weight: 400;
}
.verse-text .open-quote,
.verse-text .close-quote {
  color: var(--green);
  font-weight: 500;
}
.verse-text .lord {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
}
.verse-cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  margin-left: 4px;
}
.verse-mascot {
  margin: clamp(36px, 5vw, 56px) 0 0;
}
.verse-mascot img {
  width: clamp(96px, 12vw, 140px);
  height: auto;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   Services
   ───────────────────────────────────────────── */
.services {
  background: var(--green-soft-2);
  padding: var(--section-pad) var(--gutter);
}
.services-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 64px);
}
.services-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.services-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.service-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.service-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-soft);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.service-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-content > p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.service-content h4 {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.method-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.method-list li { padding-left: 4px; }

/* ─────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   Videos (YouTube embeds)
   ───────────────────────────────────────────── */
.videos {
  background: var(--paper);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.videos-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.video {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.video-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   Certifications / accreditations row
   ───────────────────────────────────────────── */
.certifications {
  background: var(--paper);
  padding: clamp(32px, 5vw, 64px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.cert-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  justify-items: center;
}
.cert-grid img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.cert-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.contact {
  background: var(--paper);
  padding: var(--section-pad) var(--gutter);
}
.contact-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-head h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.contact-phones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-phones a {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 26px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 4px 0;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.contact-phones a:hover {
  color: var(--green-deep);
  transform: translateX(4px);
}

/* Form */
/* [hidden] must beat display:flex; otherwise the form keeps showing after submit */
[hidden] { display: none !important; }

.contact-form-wrap {
  width: 100%;
}
.contact-form {
  background: var(--green-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.honeypot { display: none !important; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  resize: vertical;
}
.field input:hover,
.field textarea:hover { border-color: #C9D3D8; }
.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22,185,92,0.15);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.contact-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.form-status {
  margin: 6px 0 0;
  padding: 12px 14px;
  background: #FBEAE9;
  color: #8B1F1F;
  border: 1px solid #E9C2BE;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.45;
}
.form-success {
  background: var(--green-soft-2);
  border: 1px solid var(--green-soft);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.form-success-icon {
  color: var(--green-deep);
  margin-bottom: 4px;
}
.form-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px);
  color: var(--ink);
}
.form-success > p {
  margin: 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.form-success .btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.form-success .btn:hover {
  background: var(--green-deep);
  color: var(--paper);
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(60px, 8vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-brand img {
  width: 150px;
  height: auto;
}
.footer-social {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  gap: clamp(20px, 2.4vw, 28px);
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  text-decoration: none;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover {
  color: var(--green-deep);
  transform: translateY(-2px);
}
.footer-address {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 78ch;
  color: var(--ink-soft);
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────────
   Tablet
   ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .videos-inner { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
}

/* ─────────────────────────────────────────────
   Mobile
   ───────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --header-h: 80px; }

  .header-inner { gap: 8px; padding: 0 24px; }
  .site-nav { display: none; }
  .brand img { height: 52px; }
  .header-cta { padding: 9px 16px; font-size: 13px; }

  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 120px;
  }
  .hero-title { font-size: clamp(28px, 7vw, 36px); line-height: 1.15; }
  .hero-sub { font-size: 15px; }
  .hero-cta { margin-bottom: 0; }
  .hero-cta .btn { padding: 13px 22px; font-size: 14px; }

  .verse { padding-top: 24px; padding-bottom: 36px; }
  .verse-text { font-size: 17px; }
  .verse-mascot { margin-top: 28px; }

  .method-list { grid-template-columns: 1fr; gap: 8px; }

  .field-row { grid-template-columns: 1fr; }
  .contact-phones a { font-size: 20px; }

  .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cert-grid img { max-height: 60px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
