/* Happy Lawns — Bay of Plenty ------------------------------------------- */

:root {
  --primary: #1E7B3E;
  --primary-dark: #124A26;
  --primary-light: #E9F6EB;
  --ink: #0F2016;
  --ink-soft: #4B5B4F;
  --off-white: #FBFBF8;
  --white: #ffffff;
  --border: #E3E8DE;
  --gold: #F5A623;
  --shadow: 0 14px 30px rgba(15, 32, 22, 0.14);
  --shadow-sm: 0 4px 14px rgba(15, 32, 22, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .8em;
  background: var(--primary-light);
  padding: 7px 14px;
  border-radius: 999px;
}
.eyebrow.on-dark { background: rgba(255,255,255,.14); color: var(--white); }
.eyebrow::before { content: "●"; font-size: .55rem; color: var(--primary); }
.eyebrow.on-dark::before { color: #8FE0A8; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline.on-dark { border-color: var(--white); color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--primary-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 500; background: rgba(251, 251, 248, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--primary); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.call-btn { display: flex; align-items: center; gap: 9px; background: var(--primary); color: var(--white); padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.call-btn:hover { background: var(--primary-dark); }
.call-btn svg { width: 17px; height: 17px; flex-shrink: 0; animation: ring 2.6s infinite; }
.call-btn .call-number { white-space: nowrap; }

@keyframes ring { 0%, 84%, 100% { transform: rotate(0); } 86% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 90% { transform: rotate(-10deg); } 92% { transform: rotate(8deg); } 94% { transform: rotate(0); } }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: all .2s ease; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .call-btn .call-number { display: none; }
  .main-nav { position: fixed; top: 71px; left: 0; right: 0; bottom: 0; background: var(--off-white); flex-direction: column; justify-content: flex-start; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.2rem; }
  .menu-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 130px 0 100px;
  overflow: hidden;
  background-color: var(--primary-dark);
  background-image: linear-gradient(120deg, rgba(9, 26, 15, .82), rgba(9, 26, 15, .5) 46%, rgba(9, 26, 15, .22)), url('/images/hero-happy-lawns-magnolia-mowing.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center, center bottom;
  background-size: cover, cover;
  color: var(--white);
}
.hero h1 { color: var(--white); }
.hero > .container > .hero-content > p { color: rgba(255,255,255,.9); }
.hero-content { max-width: 660px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 44px; }
.hero-badges .stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.hero-badges .stat span { font-size: .78rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; }

.hero-rating { position: absolute; top: 110px; right: 24px; background: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); text-align: center; }
.hero-rating .stars { color: var(--gold); font-size: .9rem; letter-spacing: 1px; }
.hero-rating .score { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.hero-rating small { color: var(--ink-soft); font-size: .72rem; }

@media (max-width: 900px) { .hero { min-height: 580px; padding: 110px 0 80px; } .hero-rating { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--primary-light); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Trust cards ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.trust-card .ic { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.trust-card h4 { margin-bottom: 6px; font-size: 1.02rem; }
.trust-card p { font-size: .86rem; margin: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-card .service-card-body { padding: 20px; }
.service-card p { font-size: .9rem; margin-bottom: 0; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.services-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-detail-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.service-detail-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-detail-card .body { padding: 26px; }
.service-detail-card .num { color: var(--primary); font-weight: 800; font-size: .85rem; letter-spacing: .06em; }
@media (max-width: 760px) { .services-detail { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.gallery-grid img:hover { transform: scale(1.03); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Trust story / about ---------- */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.story-photos { position: relative; }
.story-photos img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.story-photos .story-chip { position: absolute; bottom: -22px; right: -18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.story-photos .story-chip img { width: 32px; height: auto; box-shadow: none; border-radius: 0; }
.story-photos .story-chip span { font-weight: 800; color: var(--ink); font-size: .84rem; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-photos { margin-bottom: 30px; } }

/* ---------- Reviews ---------- */
.reviews-widget { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 42px; }
.reviews-widget-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.reviews-summary { display: flex; align-items: center; gap: 16px; }
.reviews-summary .g-badge { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); font-size: 1.3rem; }
.reviews-summary .stars { color: var(--gold); letter-spacing: 2px; }
.reviews-summary small { display: block; color: var(--ink-soft); font-size: .82rem; }
.reviews-summary strong { font-size: 1.1rem; }

.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--primary-light); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.review-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; display: block; }
.review-card p { font-size: .92rem; margin-bottom: 16px; color: var(--ink); }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.review-card .who strong { font-size: .88rem; color: var(--ink); }
.review-card .who span { font-size: .76rem; color: var(--ink-soft); }
@media (max-width: 900px) { .review-cards { grid-template-columns: 1fr; } }

.review-pull { display: flex; align-items: center; gap: 20px; background: var(--primary-light); border-radius: var(--radius-lg); padding: 26px 30px; margin: 50px 0; border-left: 5px solid var(--primary); }
.review-pull .stars { color: var(--gold); flex-shrink: 0; font-size: 1.1rem; letter-spacing: 2px; }
.review-pull p { margin: 0; color: var(--ink); }
.review-pull p strong { display: block; margin-top: 6px; color: var(--ink); font-size: .85rem; }
@media (max-width: 640px) { .review-pull { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); border-radius: var(--radius-lg); padding: 58px; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 480px; margin: 0 auto 26px; }
.cta-banner .btn-primary { background: var(--white); color: var(--primary-dark); }
.cta-banner .btn-primary:hover { background: var(--gold); color: var(--ink); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font-size: 16px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); font-family: inherit; background: var(--off-white); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); background: var(--white); }
.field textarea { resize: vertical; min-height: 100px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.6rem; }
.form-error { display: none; background: #fdecea; color: #a4261a; border: 1px solid #f3c6c1; border-radius: var(--radius); padding: 12px 14px; font-size: .85rem; margin-bottom: 14px; }
.form-error.show { display: block; }
.form-fallback { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-fallback a { color: var(--primary); font-weight: 700; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card h4 { margin-bottom: 4px; }
.info-card p, .info-card a { margin: 0; font-size: .92rem; }
.info-card a { color: var(--primary); font-weight: 600; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 220px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.82); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 38px; border-radius: 6px; }
.footer-brand span { font-weight: 800; color: var(--white); font-size: 1.1rem; }
.site-footer h5 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #8FE0A8; }
.site-footer p { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-bottom a { text-decoration: underline; color: var(--white); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Chatbot ---------- */
.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer; background: var(--primary); box-shadow: 0 10px 26px rgba(15,32,22,.35); display: flex; align-items: center; justify-content: center; padding: 0; }
.chat-launcher img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-launcher .close-icon { display: none; color: var(--white); font-size: 1.6rem; font-weight: 300; }
.chat-launcher.open .close-icon { display: block; }
.chat-launcher.open img { display: none; }
.chat-launcher .pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--primary); animation: pulse 2.4s infinite; }
.chat-launcher.open .pulse { display: none; }
.chat-launcher .status-dot { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #2ECC71; border: 3px solid var(--white); z-index: 3; }
.chat-launcher.open .status-dot { display: none; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

.chat-window { position: fixed; right: 22px; bottom: 96px; z-index: 900; width: 340px; max-width: calc(100vw - 44px); max-height: calc(100vh - 140px); overflow-y: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(15,32,22,.3); border: 1px solid var(--border); transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none; transition: all .18s ease; }
.chat-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head small { color: rgba(255,255,255,.8); font-size: .76rem; }
.chat-body { padding: 18px 20px 22px; }
.chat-body .chat-msg { background: var(--primary-light); border-radius: var(--radius); padding: 12px 14px; font-size: .85rem; color: var(--ink); margin-bottom: 16px; }
.chat-body .field input, .chat-body .field textarea { font-size: 16px; }
.chat-body .field { margin-bottom: 12px; }
.chat-body .btn { margin-top: 4px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.page-hero { padding: 64px 0 56px; background: var(--primary-light); text-align: center; }
.page-hero .eyebrow { display: inline-flex; }
