/* Dunedin Mowing — shared styles */
:root {
  --primary: #00C261;
  --primary-dark: #165526;
  --secondary: #CFEDDD;
  --text: #1a1a1a;
  --muted: #5b6b63;
  --bg: #ffffff;
  --border: #e4e4e7;
  --radius: 6px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
main { padding-top: var(--header-h); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header-left { display: flex; align-items: center; gap: 16px; }
.logo img { height: 48px; width: auto; }
.main-nav { display: none; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 16px; }

.call-now-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-dark); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  position: fixed; top: 16px; right: 16px; z-index: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.call-now-btn svg { animation: pulse 2s infinite; flex-shrink: 0; }
.call-now-btn .call-number { display: none; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.55; } }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 550;
  background: #fff; padding: 90px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; font-size: 20px; font-weight: 600; }
.mobile-menu nav a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
  .call-now-btn { position: static; box-shadow: none; }
  .call-now-btn .call-number { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); font-weight: 600; font-size: 17px;
  padding: 14px 32px; border: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #00a854; }
.btn-outline-white { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-white:hover { background: #fff; color: #111; }
.btn-secondary { background: #fff; border: 1px solid var(--border); color: #111; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  padding: 96px 0; overflow: hidden;
}
.hero-home { min-height: 900px; justify-content: flex-start; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 16px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.hero-home-inner {
  max-width: 640px; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  padding: 28px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
}
.hero h1 { font-size: 32px; font-weight: 800; line-height: 1.1; margin: 0 0 16px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 17px; color: #e5e5e5; margin: 0 0 24px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-page { min-height: 500px; text-align: center; justify-content: center; }
.hero-page .hero-content { max-width: 760px; margin: 0 auto; }
.hero-page h1 { font-size: 36px; }

@media (min-width: 640px) {
  .hero h1 { font-size: 44px; }
  .hero-page h1 { font-size: 52px; }
  .hero-actions { flex-direction: row; }
}
@media (min-width: 960px) {
  .hero h1 { font-size: 60px; }
  .hero-page h1 { font-size: 60px; }
}

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--secondary); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-primary { background: var(--primary); color: #fff; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-header h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.section-header p { font-size: 17px; color: var(--muted); margin: 0; }
.section-dark .section-header p, .section-primary .section-header p { color: rgba(255,255,255,0.85); }
h2.section-title { font-size: 28px; font-weight: 800; margin: 0 0 16px; }

@media (min-width: 640px) {
  .section-header h2, h2.section-title { font-size: 36px; }
}

/* ---------- Trust badges ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center;
  max-width: 900px; margin: 0 auto;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; }
.trust-item svg { width: 40px; height: 40px; opacity: .85; }
.trust-item h3 { font-size: 16px; font-weight: 600; margin: 0; }
.stars { display: flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 22px; height: 22px; }
.trust-item-rating { grid-column: span 2; }
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(5, 1fr); }
  .trust-item-rating { grid-column: span 1; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; background: #fff;
}
.card-img { height: 190px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(0,194,97,0.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; }
.card-body h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.card-body p { color: var(--muted); margin: 0; flex: 1; }

/* ---------- Feature rows (services page) ---------- */
.feature-row { display: grid; gap: 40px; align-items: center; margin-bottom: 64px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.12); border: 4px solid #fff; aspect-ratio: 4/3; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-text ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.feature-text li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.feature-text li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.feature-text h2 { font-size: 26px; font-weight: 800; margin: 4px 0 8px; }
.feature-text > p.lead { font-size: 17px; color: var(--muted); }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.reverse .feature-img { order: 2; }
}

/* ---------- Why-us split (about-style panel on home) ---------- */
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.why-list-item { display: flex; gap: 16px; }
.why-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,194,97,0.15); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 20px; height: 20px; }
.why-list-item h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.why-list-item p { margin: 0; color: var(--muted); }
.why-img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.12); border: 4px solid #fff; aspect-ratio: 1/1; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.check-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,194,97,0.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}

.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.promise-card {
  background: rgba(0,194,97,0.08); border-radius: 12px; padding: 32px 24px;
  text-align: center; transition: background .15s;
}
.promise-card:hover { background: rgba(0,194,97,0.14); }
.promise-card .icon-badge { width: 64px; height: 64px; border-radius: 16px; background: #fff; }
.promise-card .icon-badge svg { width: 32px; height: 32px; }
.promise-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.promise-card p { color: var(--muted); margin: 0; }
@media (min-width: 960px) { .promise-grid { grid-template-columns: repeat(4, 1fr); } }

.dot-heading { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 4px; }
.dot-heading::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ---------- Reviews (static, crawlable) ---------- */
.reviews-static { display: grid; gap: 20px; margin-bottom: 32px; }
@media (min-width: 700px) { .reviews-static { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; }
.section-dark .review-card { background: rgba(255,255,255,0.08); }
.review-card .stars { margin-bottom: 8px; }
.review-card .stars svg { width: 16px; height: 16px; }
.review-card p { font-size: 14px; color: rgba(255,255,255,0.9); margin: 0 0 10px; }
.review-card .review-date { font-size: 12px; color: rgba(255,255,255,0.6); }
.reviews-summary { text-align: center; margin-bottom: 28px; }
.reviews-summary .score { font-size: 32px; font-weight: 800; }
.reviews-summary .stars { justify-content: center; margin: 6px 0; }

/* ---------- FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 17px; font-weight: 600; color: var(--text);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 220px; }
.faq-a-inner { padding-bottom: 18px; }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-banner h2 { font-size: 30px; font-weight: 800; margin: 0 0 12px; }
.cta-banner p { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.section-primary .cta-banner p, .section-dark .cta-banner p { color: rgba(255,255,255,0.85); }
.cta-contacts { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; font-size: 16px; font-weight: 600; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 8px; }
.cta-contacts a:hover { color: var(--primary); }
@media (min-width: 640px) { .cta-contacts { flex-direction: row; justify-content: center; gap: 32px; } }

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 32px; align-items: stretch; }
.location-card {
  background: #fff; border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.location-item { display: flex; gap: 16px; align-items: flex-start; }
.location-item svg { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.location-info h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin: 0 0 6px; }
.location-info p { margin: 0; font-size: 16px; color: var(--primary-dark); }
.location-info a:hover { color: var(--primary); }
.map-embed { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; border: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 860px) { .location-grid { grid-template-columns: 1fr 1.4fr; } }

/* ---------- Forms ---------- */
.quote-form-wrap { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1px solid rgba(0,194,97,0.2); }
.form-row { margin-bottom: 18px; }
.form-row-2col { display: grid; gap: 18px; grid-template-columns: 1fr; }
.form-row-2col .form-row { margin-bottom: 0; }
@media (min-width: 480px) { .form-row-2col { grid-template-columns: 1fr 1fr; } }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 16px; font-family: var(--font); background: #fff; color: var(--text);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.radio-group input { width: auto; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; margin-top: 14px; }
.form-msg.show { display: block; }
.form-msg.error { background: #fef2f2; color: #b91c1c; }
.form-msg.success { background: #ecfdf3; color: #166534; }
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-detail-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
.contact-detail-item a, .contact-detail-item p { font-size: 18px; font-weight: 600; margin: 0; }
.contact-detail-item a:hover { color: var(--primary); }

.contact-card-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(0,194,97,0.08); border-radius: 10px; padding: 20px;
}
.contact-card .icon-badge { margin: 0; flex-shrink: 0; }
.contact-card-label { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 2px; }
.contact-card-value { font-size: 18px; font-weight: 700; margin: 0; }
.contact-card-value:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 32px 0; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand img { height: 44px; width: 84px; object-fit: contain; flex-shrink: 0; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; max-width: 250px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-meta { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-meta a { text-decoration: underline; }
.footer-meta a:hover { color: #fff; }
@media (min-width: 900px) {
  .site-footer .container { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-brand { flex-direction: row; align-items: center; text-align: left; }
}

/* ---------- Chat widget ---------- */
.chat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle svg { width: 30px; height: 30px; color: #fff; }
.chat-toggle .icon-close { display: none; }
.chat-toggle.open .icon-chat { display: none; }
.chat-toggle.open .icon-close { display: block; }

.chat-panel {
  position: fixed; bottom: 100px; right: 24px; z-index: 400;
  width: min(340px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: none; flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--primary); color: #fff; padding: 16px 20px; border-radius: 16px 16px 0 0;
  display: flex; align-items: center; gap: 12px;
}
.chat-header .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-header .avatar svg { width: 22px; height: 22px; color: #fff; }
.chat-header .title { font-weight: 700; font-size: 16px; }
.chat-header .status { font-size: 12px; opacity: .85; }
.chat-body { padding: 18px 20px; }
.chat-body > p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.chat-body .form-row { margin-bottom: 12px; }
.chat-body input, .chat-body textarea { background: #F0F6F3; border: 1px solid #F0F6F3; }
.chat-body .btn-primary { width: 100%; background: var(--primary-dark); }
.chat-body .btn-primary:hover { background: #0e3a1a; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] > [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: .1s; }
[data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: .2s; }
[data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: .3s; }
[data-reveal-group] > [data-reveal]:nth-child(5) { transition-delay: .4s; }

/* ---------- Extra hover movement ---------- */
.btn { transition: background .15s, color .15s, transform .15s; }
.btn:active { transform: scale(0.97); }
.promise-card, .contact-card, .review-card { transition: background .15s, transform .2s; }
.promise-card:hover, .contact-card:hover { transform: translateY(-4px); }
.trust-item svg { transition: transform .25s; }
.trust-item:hover svg { transform: scale(1.12); }
.footer-brand img, .logo img { transition: transform .2s; }
.logo:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .promise-card, .contact-card, .review-card, .trust-item svg, .footer-brand img, .logo img { transition: none !important; }
}
