/* All Lifestyles Property Maintenance — site styles
   Palette derived from client logo: green #4FBF6A */
:root {
  --green: #4fbf6a;
  --green-dark: #2f6b44;
  --green-darker: #1f4a30;
  --text: #1b2a20;
  --text-soft: #45564c;
  --bg: #ffffff;
  --bg-soft: #f3faf5;
  --border: #dfeee4;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 74, 48, 0.12);
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--green-darker); }
p { margin: 0 0 1em; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 0;
}

.brand img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.brand span { white-space: nowrap; }

.main-nav {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green-darker);
  cursor: pointer;
}

.call-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
}

.call-now-btn:hover { background: var(--green-dark); }

.call-now-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.call-now-number { display: inline; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--green-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 999px;
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 56px 0 64px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { font-size: 2.3rem; }
.hero .lede { font-size: 1.1rem; color: var(--text-soft); }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Home page hero: photo as full section background */
.hero-full {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.85) 100%),
    url('/images/hero-harbour-view-lawn.jpg') center/cover no-repeat;
  height: 900px;
  padding: 0;
  display: flex;
  align-items: center;
}
.hero-full .container { grid-template-columns: 1fr; }
.hero-full .hero-copy { max-width: 1000px; }
.hero-full h1 { font-size: 3.4rem; line-height: 1.15; }
.hero-full h1,
.hero-full .lede { color: var(--white); }
.hero-full .lede { color: #dff2e4; }
.hero-full .trust-strip { color: #eafbee; }
.hero-full .trust-strip svg { color: #baf0c8; }
.hero-full .btn-outline { color: var(--white); border-color: var(--white); }
.hero-full .btn-outline:hover { background: rgba(255,255,255,0.12); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.trust-strip span { display: flex; align-items: center; gap: 6px; }
.trust-strip svg { width: 16px; height: 16px; color: var(--green-dark); flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: 1.8rem; }
.section-head p { color: var(--text-soft); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card-body { padding: 20px 24px 24px; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--text-soft); margin-bottom: 0; font-size: 0.95rem; }
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  margin-top: -42px;
  margin-left: 16px;
  position: relative;
  border: 3px solid var(--white);
}
.service-icon svg { width: 20px; height: 20px; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .service-detail-img { order: -1; }
.service-detail-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 280px; object-fit: cover; }
.service-list { margin: 0; padding-left: 20px; color: var(--text-soft); }
.service-list li { margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-size: 0.85rem;
  padding: 24px 12px 10px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 360px; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.value-card {
  text-align: center;
  padding: 20px;
}
.value-card svg { width: 30px; height: 30px; color: var(--green-dark); margin-bottom: 10px; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 50px 0;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #cfe9d8; }
.cta-banner .btn { background: var(--green); }
.cta-banner .btn:hover { background: #63d382; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info-card h3 { font-size: 1.1rem; margin-top: 22px; }
.contact-info-card h3:first-child { margin-top: 0; }
.contact-info-card a { color: var(--green-dark); text-decoration: none; font-weight: 600; }

.contact-map {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  display: block;
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 90px; }

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
}
.form-status.error { color: #b3261e; }
.form-status.success { color: var(--green-dark); font-weight: 600; }

.form-success {
  text-align: center;
  padding: 20px 4px;
}
.form-success h3 { color: var(--green-dark); }
.form-success p { color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-darker);
  color: #d9ecdd;
  padding: 40px 0 60px;
  font-size: 0.92rem;
  position: relative;
}
.site-footer a { color: #ffffff; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-logo {
  height: 44px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 10px;
  display: block;
}
.footer-credit {
  position: absolute;
  bottom: 12px;
  right: 20px;
  font-size: 0.78rem;
  color: #ffffff;
}
.footer-credit a { color: #ffffff; text-decoration: underline; }

/* ---------- Chatbot ---------- */
.chat-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
}

.chat-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  background: var(--green);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.chat-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-toggle .chat-close-icon {
  display: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 64px;
}
.chat-widget.open .chat-toggle img { display: none; }
.chat-widget.open .chat-toggle .chat-close-icon { display: block; }

.chat-status-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  background: #22c55e;
  border: 2px solid var(--white);
  border-radius: 50%;
  z-index: 2;
}
.chat-widget.open .chat-status-dot { display: none; }

.chat-panel {
  display: none;
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 44px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,0.25);
  padding: 20px;
  border: 1px solid var(--border);
}
.chat-widget.open .chat-panel { display: block; }

.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.chat-panel-header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.chat-panel-header strong { display: block; font-size: 0.95rem; }
.chat-panel-header span { display: block; font-size: 0.78rem; color: var(--text-soft); }

.chat-panel .field input,
.chat-panel .field textarea { font-size: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-full { height: 640px; }
  .hero-full h1 { font-size: 2.6rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { height: 260px; }
  .values-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-img { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .call-now-number { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero-full h1 { font-size: 2rem; }
  .chat-panel { width: calc(100vw - 44px); }
  .brand span { display: none; }
  .hero-full { height: 520px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {

  .hero-copy {
    animation: heroFadeUp 0.8s ease both;
  }
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }

  .services-grid .reveal:nth-child(2),
  .gallery-grid .reveal:nth-child(2),
  .values-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .services-grid .reveal:nth-child(3),
  .gallery-grid .reveal:nth-child(3),
  .values-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .services-grid .reveal:nth-child(4),
  .gallery-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
  .services-grid .reveal:nth-child(5),
  .gallery-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
  .services-grid .reveal:nth-child(6),
  .gallery-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

  .service-card,
  .gallery-grid figure,
  .value-card {
    transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.25s ease;
  }
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(31, 74, 48, 0.2);
  }
  .gallery-grid figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(31, 74, 48, 0.2);
  }
  .value-card:hover { transform: translateY(-4px); }

  .btn, .btn-outline, .call-now-btn {
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn:hover, .call-now-btn:hover { transform: translateY(-2px); }
  .btn-outline:hover { transform: translateY(-2px); }

  .chat-toggle { transition: transform 0.2s ease; }
  .chat-toggle:hover { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
