/* =========================================================
   D&G Sunshine Landscaping LLC — Landscaping Website
   Colors live here. Change --green to re-brand the whole site.
   ========================================================= */
:root {
  --green: #1f9d55;
  --green-dark: #137a40;
  --green-deep: #0c2e1c;
  --green-soft: #e9f6ee;
  --ink: #111614;
  --muted: #5c6661;
  --line: #e4e9e6;
  --bg: #ffffff;
  --tint: #f5f8f6;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 12px 32px rgba(16, 24, 20, .06);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
h1, h2, h3, .lead { text-wrap: balance; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--green); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow--light { color: #7fdca4; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 40ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; font-weight: 700; border: 0; cursor: pointer;
  border-radius: 999px; padding: 14px 26px; font-size: 1rem; font-family: inherit;
  transition: background .2s, transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,157,85,.28); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(31,157,85,.45); outline-offset: 3px;
}
.btn--small { padding: 9px 18px; font-size: .9rem; }
.btn--big { padding: 20px 40px; font-size: 1.15rem; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn--ghost:hover { background: var(--green-soft); box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav__inner { height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; min-width: 0; }
.nav__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__inner .btn--small { white-space: nowrap; flex: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  font-weight: 700; font-size: .92rem; color: var(--green-dark);
}
.nav__phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__phone:hover { color: var(--green); }
.footer__phone { color: #fff; font-weight: 700; }
.footer__phone:hover { text-decoration: underline; }

.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--green); flex: none;
  display: grid; place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark--lg { width: 48px; height: 48px; border-radius: 14px; }
.brand-mark--lg svg { width: 26px; height: 26px; }

/* ---------- Hero video ---------- */
.hero {
  position: relative; margin-top: var(--nav-h); width: 100%;
  aspect-ratio: 16 / 9; max-height: calc(100svh - var(--nav-h));
  background: #f1efe9; overflow: hidden;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }

/* Logo: hidden until the video ends, then fades + slides into the lower right */
.hero__logo {
  position: absolute; right: clamp(14px, 3vw, 40px); bottom: clamp(14px, 3vw, 40px);
  opacity: 0; transform: translate(40px, 24px) scale(.94);
  transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.hero__logo.is-in { opacity: 1; transform: none; }
.hero__sound {
  position: absolute; left: clamp(14px, 3vw, 40px); bottom: clamp(14px, 3vw, 40px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0; border-radius: 999px; padding: 10px 16px 10px 12px; box-shadow: 0 10px 26px rgba(0,0,0,.16);
  transition: transform .2s, background .2s;
}
.hero__sound:hover { transform: scale(1.04); }
.hero__sound:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__sound .icon-sound { display: none; }
.hero__sound.is-on .icon-sound { display: block; }
.hero__sound.is-on .icon-muted { display: none; }
.hero__sound.is-on { color: var(--green-dark); }
.logo-card {
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 12px 16px; border-radius: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.14);
}
.logo-img { display: block; width: clamp(120px, 15vw, 210px); height: auto; }
.nav__logo { width: 40px; height: auto; flex: none; }


/* ---------- Intro headline ---------- */
.intro { padding: clamp(64px, 10vw, 120px) 0; text-align: center; }
.intro__inner { display: flex; flex-direction: column; align-items: center; }
.intro .lead { margin: 22px auto 36px; max-width: 34ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section--tint { background: var(--tint); }
/* While the gallery is hidden, the quote section takes its tint so backgrounds keep alternating */
#gallery[hidden] + #quote { background: var(--tint); }
.section--dark { background: var(--green-deep); color: #fff; }
.section__head { margin-bottom: clamp(36px, 6vw, 64px); }
.section__head .lead { margin-top: 16px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s; overflow: hidden;
}
/* Card photo (stock photo across the top of each service card) */
.card__media { margin: -32px -32px 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media + .card__icon { position: relative; margin-top: -26px; border: 4px solid #fff; box-sizing: content-box; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,24,20,.04), 0 24px 48px rgba(16,24,20,.1); }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card h3 { margin-bottom: 10px; }
.card > p:not(.card__tag) { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; font-weight: 500; font-size: .95rem; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.card__link { margin-top: auto; font-weight: 700; color: var(--green-dark); display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.card__link span { transition: transform .2s; }
.card__link:hover span { transform: translateX(4px); }

/* Wide banner photo between sections */
.banner { position: relative; overflow: hidden; background: var(--green-soft); }
.banner img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }

/* Side photos next to text sections (Service Area = photo left, Why Us = photo right) */
.side-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-soft); }
.side-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.side-photo--tall img { aspect-ratio: 4 / 5; }

/* Service area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.area__body { display: flex; flex-direction: column; gap: 32px; }
.area .lead { margin-top: 18px; }
.area__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area__list li {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 20px; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
}
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); flex: none; }

/* Why us */
.why-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why { display: grid; grid-template-columns: 1fr; gap: 28px; }
.why__item { border-top: 2px solid var(--ink); padding-top: 24px; }
.why__num { display: block; font-weight: 800; color: var(--green); font-size: .95rem; margin-bottom: 18px; }
.why__item h3 { font-size: 1.6rem; margin-bottom: 10px; }
.why__item p { color: var(--muted); max-width: 32ch; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pair { margin: 0; }
.pair__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius); overflow: hidden; }
.ph, .pair__grid img { aspect-ratio: 3 / 4; width: 100%; height: 100%; object-fit: cover; position: relative; }
.ph { display: flex; align-items: flex-end; padding: 12px; }
.ph--before { background: linear-gradient(160deg, #e9e3d6, #cdbf9f); }
.ph--after  { background: linear-gradient(160deg, #bfe6cb, #2f9e5c); }
.ph span {
  background: rgba(255,255,255,.9); color: var(--ink); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
}
.ph::after {
  content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .78rem; font-weight: 600; color: rgba(17,22,20,.45); text-align: center; padding: 0 10px;
}
.ph--after::after { color: rgba(255,255,255,.8); }
.pair figcaption { margin-top: 14px; font-weight: 600; font-size: .95rem; }

/* Quote form */
.quote { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.quote__intro .lead { margin-top: 18px; }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: .88rem; font-weight: 600; }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iPhone zoom-in */
  color: var(--ink); background: var(--tint); border: 1.5px solid transparent; border-radius: 14px;
  padding: 15px 16px; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6661' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field.is-invalid input, .field.is-invalid select { border-color: #d64545; background: #fff6f6; }
.form__error { color: #c03030; font-weight: 600; font-size: .92rem; }
.form__fine { text-align: center; color: var(--muted); font-size: .85rem; }

.thanks {
  grid-column: 2; text-align: center; background: var(--green-soft); border-radius: 28px;
  padding: clamp(40px, 7vw, 72px) 28px; display: grid; justify-items: center; gap: 14px;
  animation: pop .6s cubic-bezier(.22,1,.36,1);
}
.thanks[hidden] { display: none; }
.thanks:focus { outline: none; }
.thanks h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.thanks p { color: var(--muted); max-width: 34ch; margin-bottom: 10px; }
.thanks__check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.thanks__check svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: end; }
.contact__list { display: grid; gap: 0; }
.contact__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.contact__label { color: rgba(255,255,255,.6); font-weight: 500; }
.contact__value { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
a.contact__item:hover .contact__value { color: #7fdca4; }

/* Footer */
.footer { background: var(--green-deep); color: rgba(255,255,255,.55); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }

/* Sticky phone CTA */
.mobile-cta { display: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =================== Tablet =================== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__phone { margin-left: auto; }
  .nav__inner { justify-content: space-between; }
  .cards, .why, .gallery { grid-template-columns: 1fr; }
  .cards, .gallery { max-width: 560px; margin: 0 auto; }
  .why { gap: 36px; }
  .area, .quote, .contact, .why-layout { grid-template-columns: 1fr; gap: 36px; }
  .side-photo { max-width: 560px; width: 100%; margin: 0 auto; }
  .side-photo--tall img { aspect-ratio: 4 / 3; }
  .banner img { aspect-ratio: 2 / 1; }
  .thanks { grid-column: auto; }
}

/* =================== Phone =================== */
@media (max-width: 600px) {
  :root { --nav-h: 58px; }
  .container, .nav__inner { padding-left: 20px; padding-right: 20px; }
  .nav__name { font-size: .98rem; }
  .nav__name-long { display: none; }
  .nav__inner { gap: 12px; }
  .nav__phone { width: 40px; height: 40px; justify-content: center; border-radius: 999px; background: var(--green-soft); }
  .nav__phone-text { display: none; }

  h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hero__logo { right: 10px; bottom: 10px; }
  .hero__sound { left: 10px; bottom: 10px; padding: 8px 12px 8px 10px; font-size: .78rem; gap: 6px; }
  .hero__sound svg { width: 16px; height: 16px; }
  .logo-card { padding: 6px 8px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
  .logo-img { width: 92px; }
  .nav__logo { width: 34px; }

  .btn--big { width: 100%; padding: 18px 24px; }
  .card { padding: 26px 22px; }
  .area__list { grid-template-columns: 1fr; gap: 10px; }
  .area__list li { padding: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__item { flex-direction: column; gap: 4px; }
  .footer__inner { flex-direction: column; padding-bottom: 96px; }

  .mobile-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 60; background: var(--green); color: #fff; text-align: center; font-weight: 700;
    padding: 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(12,46,28,.3);
    transform: translateY(140%); transition: transform .4s cubic-bezier(.22,1,.36,1);
  }
  .mobile-cta.is-shown { transform: none; }
}

/* Small phones (360-400px): keep the name, call button and quote button on one line */
@media (max-width: 400px) {
  .nav__inner { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .nav__brand { gap: 8px; }
  .nav__logo { width: 30px; }
  .nav__phone { width: 36px; height: 36px; }
  .nav__inner .btn--small { padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__logo { transition: opacity .3s; transform: none !important; }
}
