/* ============================================================
   Tower Tree Services
   Premium-natural: forest green, warm sand, Fraunces + Inter
   (design system shared with the M&M Gardening build)
   ============================================================ */

:root {
  --forest: #1C3B2A;
  --forest-deep: #142b1f;
  --leaf: #3F7D52;
  --leaf-light: #6FA67B;
  --sage: #A7C4A0;
  --sand: #F4EFE6;
  --cream: #FBF9F4;
  --ink: #20271F;
  --muted: #5C6B58;
  --line: #E4DECF;
  --white: #ffffff;
  --shadow: 0 18px 50px -22px rgba(20, 43, 31, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(20, 43, 31, 0.4);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest);
}

a { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--leaf); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #356b46; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-outline:hover { border-color: var(--leaf); color: var(--leaf); transform: translateY(-2px); }
.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.95rem; }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { background: rgba(251, 249, 244, 0.97); box-shadow: 0 14px 40px -20px rgba(20,43,31,0.6); }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: var(--sand); color: var(--forest); }
.nav-links .nav-cta {
  background: var(--forest);
  color: var(--white);
  font-weight: 600;
  padding: 0.55rem 1.2rem;
}
.nav-links .nav-cta:hover { background: var(--leaf); color: var(--white); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 75% 10%, rgba(111,166,123,0.35), transparent 55%),
    linear-gradient(160deg, #1f4530 0%, var(--forest) 45%, var(--forest-deep) 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(10,22,15,0.35), rgba(10,22,15,0.35)),
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0.05) 68%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--sage);
  margin-bottom: 1.4rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 600;
}
.hero h1 .accent { color: var(--sage); font-style: italic; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 38ch;
  margin: 1.6rem 0 2.2rem;
  color: rgba(255,255,255,0.88);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.hero-badge {
  background: rgba(20,43,31,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  backdrop-filter: blur(6px);
  min-width: 150px;
}
.hero-badge strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  color: var(--white);
  line-height: 1.05;
}
.hero-badge span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--forest-deep);
  color: var(--white);
  padding: 1.2rem 1.5rem;
}
.trust-list {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.trust-list svg { width: 20px; height: 20px; color: var(--sage); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.5rem; }
.section--alt { background: var(--sand); }
.section--green {
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(111,166,123,0.25), transparent 60%),
    linear-gradient(160deg, #1f4530, var(--forest));
  color: var(--white);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head--light h2, .section-head--light .lede { color: var(--white); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.8rem;
}
.section--green .eyebrow { color: var(--sage); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
}
.section--green .lede { color: rgba(255,255,255,0.85); }

/* ---------- Services ---------- */
.services-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage); }
.svc-icon {
  display: inline-flex;
  width: 54px; height: 54px;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  color: var(--leaf);
  border-radius: 15px;
  margin-bottom: 1.2rem;
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.svc-card p { color: var(--muted); font-size: 0.98rem; }
.services-note {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  text-align: center;
  color: var(--muted);
}
.services-note a { color: var(--leaf); font-weight: 600; }

/* ---------- Safety & credentials ---------- */
.creds-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.cred {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cred:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage); }
.cred strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  color: var(--leaf);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.cred h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cred p { color: var(--muted); font-size: 0.9rem; }
.cred-logos {
  max-width: var(--max);
  margin: 2.2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cred-logos img {
  height: 64px;
  width: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  object-fit: contain;
}

/* ---------- About ---------- */
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-stats {
  display: flex;
  gap: 2.2rem;
  margin: 1.8rem 0 2rem;
}
.about-stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  color: var(--leaf);
}
.about-stats span { font-size: 0.85rem; color: var(--muted); }
.about-card {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.about-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 1.3rem; }
.check-list { list-style: none; display: grid; gap: 0.9rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--leaf);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Areas ---------- */
.areas-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.areas-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}
.area {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.area:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }
.area strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--white);
}
.area span { font-size: 0.85rem; color: var(--sage); }

/* ---------- Gallery ---------- */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #2c5740, #1f4530);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Bottom scrim so the white caption stays readable over any photo. */
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,32,23,0.78) 0%, rgba(15,32,23,0.12) 42%, transparent 65%);
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item figcaption {
  position: relative;
  z-index: 1;
  margin: 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(20,43,31,0.55);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.gallery-note {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  text-align: center;
  color: var(--muted);
}
.gallery-note a { color: var(--leaf); font-weight: 600; }

/* ---------- Reviews ---------- */
.reviews-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.review p { font-size: 1.02rem; color: var(--ink); margin-bottom: 1rem; }
.review p::before { content: "“"; color: var(--sage); font-family: 'Fraunces', serif; font-size: 1.4em; line-height: 0; }
.review footer { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.reviews-cta { text-align: center; margin-top: 2.2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-copy .eyebrow { color: var(--sage); }
.contact-copy h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-copy > p { color: rgba(255,255,255,0.85); margin: 1rem 0 2rem; max-width: 42ch; }
.info-cards { display: grid; gap: 0.9rem; }
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--white);
  transition: background 0.18s ease, transform 0.18s ease;
}
a.info-card:hover { background: rgba(255,255,255,0.14); transform: translateX(3px); }
.icon-chip {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  border-radius: 12px;
  flex: none;
}
.icon-chip svg { width: 22px; height: 22px; color: var(--white); }
.info-card small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  font-weight: 600;
}
.info-card strong { font-weight: 600; font-size: 0.98rem; word-break: break-word; }

/* ---------- Form ---------- */
.form-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(63,125,82,0.15);
}
.form-field textarea { resize: vertical; }
.form-fine { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.9rem; }
.form-fine a { color: var(--leaf); font-weight: 600; }
.form-done, .form-error {
  text-align: center;
  padding: 1.4rem 1rem 0.4rem;
}
.form-done h3 { color: var(--leaf); margin-bottom: 0.5rem; }
.form-done p, .form-error p { color: var(--muted); font-size: 0.95rem; }
.form-error p { color: #b4452f; }

/* ---------- Footer ---------- */
.footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 0.6rem; }
.footer-brand {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-logo {
  height: 44px;
  width: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 0.35rem 0.8rem;
}
.footer p { font-size: 0.92rem; }
.footer-contact a { color: var(--sage); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-fine { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 0.8rem; }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; }
.footer-credit a { color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { color: var(--sage); text-decoration: underline; }

/* ---------- Floating actions (bottom-right) ---------- */
.float-actions {
  position: fixed;
  bottom: 1.2rem; right: 1.2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(20,43,31,0.7);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.float-btn svg { width: 28px; height: 28px; }
.float-btn:hover { transform: scale(1.06); }
.float-call { background: var(--leaf); display: none; }   /* mobile only */
.float-wa {
  position: relative;
  background: #25D366;
}
.float-wa::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.float-label {
  position: absolute;
  right: calc(100% + 0.7rem);
  white-space: nowrap;
  background: var(--forest);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-wa:hover .float-label { opacity: 1; transform: translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-logo { height: 32px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem; right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open { opacity: 1; transform: scaleY(1); pointer-events: auto; }
  .nav-links a { padding: 0.8rem 1rem; }
  .nav-links .nav-cta { text-align: center; margin-top: 0.3rem; }
  .float-call { display: flex; }
  .trust-list { justify-content: flex-start; }
  .services-grid, .reviews-grid, .creds-grid { grid-template-columns: 1fr; }
  .areas-grid--two { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5rem; }
  .hero { padding-top: 6rem; }
  .gallery { grid-auto-rows: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .float-wa::after { animation: none !important; }
}
