/* Great Shape Lawn Mowing — site styles */

:root {
  --green: #2E9E2B;
  --green-dark: #227A20;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --gray-light: #F4F4F4;
  --gray-mid: #6B6B6B;
  --gray-border: #E2E2E2;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

* { 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(--black);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--gray-mid); }

.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

section { padding: 64px 0; }
.section-alt { background: var(--gray-light); }

.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--black);
  white-space: nowrap;
}
.brand img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--black);
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--green-dark); }

.call-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.call-now-btn:hover { background: var(--green-dark); }
.call-now-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.call-now-btn .call-number { display: inline; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-border);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { display: inline-flex; }
  .call-now-btn .call-number { display: none; }
}

/* Hero */
.hero {
  padding: 56px 0 64px;
}
.hero-copy p.lead { font-size: 1.1rem; color: var(--black); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.stars { color: #F5A623; font-size: 1.1rem; letter-spacing: 2px; }
.trust-row span { color: var(--gray-mid); font-size: 0.92rem; }
.trust-row .stars { color: #FFC700; font-size: 1.6rem; }
.trust-row span { font-size: 1.15rem; font-weight: 700; }

/* Home hero — full-bleed background photo */
.hero-photo {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-image: linear-gradient(rgba(10,10,10,0.62), rgba(10,10,10,0.5)), url('/images/great-shape-lawn-mowing-truck-and-mower-saint-heliers.jpg');
  background-size: cover;
  background-position: center 80%;
}
.hero-photo .container { display: block; }
.hero-photo .hero-copy { max-width: 620px; }
.hero-photo h1,
.hero-photo .eyebrow { color: var(--white); }
.hero-photo p.lead { color: #f1f1f1; }
.hero-photo .trust-row span { color: #e4e4e4; }
.hero-photo .trust-row .stars { color: #FFC700; }
.hero-photo .btn-outline { border-color: #fff; color: #fff; }
.hero-photo .btn-outline:hover { background: #fff; color: var(--black); }

@media (max-width: 780px) {
  .hero-photo { min-height: 900px; padding: 44px 0; }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
}
.service-card .price {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.service-card .price small { font-weight: 600; font-size: 0.85rem; color: var(--gray-mid); }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.why-item { text-align: center; }
.why-item .icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
}
.why-item .icon svg { width: 26px; height: 26px; }
@media (max-width: 780px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.step-item { text-align: center; }
.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}
@media (max-width: 780px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reviews */
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}
.review-card .stars { display: block; margin-bottom: 10px; }
.review-card p { color: var(--black); font-style: italic; }
.review-card .reviewer { color: var(--gray-mid); font-size: 0.9rem; font-style: normal; font-weight: 700; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
.review-widget-wrap {
  margin-top: 40px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quote-banner {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
}
.quote-banner span { display: block; font-size: 0.95rem; font-weight: 600; font-style: normal; margin-top: 10px; opacity: 0.9; }

/* CTA banner */
.cta-banner {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #cfcfcf; }

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
@media (max-width: 780px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero img { height: 260px; }
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  background: var(--gray-light);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-detail .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
}
.contact-detail .icon svg { width: 20px; height: 20px; }
.contact-detail h3 { margin-bottom: 2px; }
.contact-detail p { margin: 0; }
.contact-detail a { text-decoration: none; color: var(--gray-mid); }
.contact-detail a:hover { color: var(--green-dark); }

.map-card {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
}
.map-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Forms (shared: contact page + chatbot) */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-error {
  color: #B3261E;
  font-size: 0.88rem;
  margin: -6px 0 14px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.form-success .icon svg { width: 26px; height: 26px; }
.form-success p.fallback { margin-top: 12px; font-size: 0.92rem; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #d8d8d8;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h3 { color: var(--white); }
.footer-grid a {
  display: block;
  color: #b8b8b8;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img {
  height: 44px;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 8px;
}
.footer-brand span { font-weight: 800; color: var(--white); font-size: 1.1rem; }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--white); text-decoration: underline; }

/* Chatbot widget */
.chat-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  padding: 0;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-launcher img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.15s ease;
}
.chat-launcher .close-icon {
  position: absolute;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.chat-launcher .close-icon svg { width: 26px; height: 26px; }
.chat-launcher.open img { opacity: 0; }
.chat-launcher.open .close-icon { opacity: 1; }

.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: #22C55E;
  border: 2px solid var(--white);
  border-radius: 50%;
  z-index: 1;
}
.chat-launcher.open .status-dot { opacity: 0; }

.chat-window {
  position: fixed;
  bottom: 96px;
  right: 22px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 900;
  display: none;
  flex-direction: column;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--green);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.6);
}
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-header span { display: block; font-size: 0.78rem; opacity: 0.9; }
.chat-body { padding: 18px 20px; }
.chat-body p.intro { font-size: 0.9rem; color: var(--gray-mid); margin-bottom: 16px; }

@media (max-width: 480px) {
  .chat-window { right: 16px; bottom: 88px; width: calc(100vw - 32px); }
  .chat-launcher { right: 16px; bottom: 16px; }
}
