/* ============================================================
   RICHMOND LANDSCAPING — style.css
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:    #1e4620;
  --green-mid:     #2d6a30;
  --green-fresh:   #4a9451;
  --green-light:   #a8d5ab;
  --gold:          #c8a552;
  --gold-light:    #e8c97a;
  --cream:         #f8f4ed;
  --cream-dark:    #efe9dc;
  --white:         #ffffff;
  --text:          #1c2b1d;
  --text-muted:    #556b57;
  --border:        #d4e8d6;
  --shadow-sm:     0 2px 12px rgba(30,70,32,.08);
  --shadow-md:     0 8px 32px rgba(30,70,32,.14);
  --shadow-lg:     0 20px 60px rgba(30,70,32,.18);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn--primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn--outline:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--nav {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--gold);
  padding: 10px 22px;
  font-size: .88rem;
}
.btn--nav:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; padding: 16px; }

/* ---------- SECTION SHARED ---------- */
section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header--light * { color: var(--white); }
.section-header--light .section-eyebrow { color: var(--gold-light); }

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-fresh);
  margin-bottom: 12px;
}
.section-eyebrow--light { color: var(--gold-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-sub {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
.nav.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.nav.scrolled .nav__logo,
.nav.scrolled .nav__links a:not(.btn) { color: var(--text); }
.nav.scrolled .nav__hamburger span { background: var(--text); }
.nav.scrolled .nav__links a:not(.btn):hover { color: var(--green-mid); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  display: block;
}
.logo-leaf {
  font-size: 1.4rem;
  color: var(--green-light);
}
.nav__logo .accent { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.9);
  font-size: .93rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }

.mobile-link {
  padding: 13px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--green-mid); }
.mobile-link:last-child { border-bottom: none; }
.mobile-link--cta {
  margin-top: 12px;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  border-radius: 50px;
  text-align: center;
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('images/projects/c2c4860c-f964-47ad-9595-514298a4fdb2.JPG');
  background-size: cover;
  background-position: center 40%;
  padding: 120px 0 80px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,45,20,.82) 0%,
    rgba(30,70,32,.65) 50%,
    rgba(10,30,12,.75) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(200,165,82,.4);
  border-radius: 50px;
}
.hero__headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat__label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

.hero__logo-wrap {
  margin-bottom: 36px;
}
.hero__logo-img {
  width: 260px;
  max-width: 80vw;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.12);
  display: block;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  border-radius: 4px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 60px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 20px;
}
.scroll-dot {
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-8px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--cream); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  border: 1px solid var(--border);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card__front {
  padding: 32px 28px;
}
.service-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}
.service-card__front h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card__front p {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1), padding 0.3s;
  padding: 0 28px;
  border-top: 0px solid var(--border);
}
.service-card.expanded .service-card__expand {
  max-height: 400px;
  padding: 0 28px 28px;
  border-top-width: 1px;
  border-top-color: var(--border);
  border-top-style: solid;
  padding-top: 20px;
}
.service-card__expand ul {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__expand li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.service-card__expand li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-fresh);
  font-weight: 700;
}

.service-card__toggle {
  width: 100%;
  justify-content: center;
  transition: var(--transition);
}
.service-card.expanded .service-card__toggle {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.why-us::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(6px);
}
.why-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}
.why-card__icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.why-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}
.why-card p {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  line-height: 1.65;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--white); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-dark);
}
.gallery__item img {
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery__item:hover img { transform: scale(1.07); }

.gallery__item--tall {
  grid-row: span 2;
}
.gallery__item--wide {
  grid-column: span 2;
}

.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,30,12,.85) 0%, transparent 100%);
  color: var(--white);
  padding: 24px 18px 16px;
  font-size: .85rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0e2e10 100%);
  padding: 96px 0;
}

.quote__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.quote__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
}
.quote__sub {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.quote__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .93rem;
}
.quote__feature span {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.quote__form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.quote__form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,48,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23556b57' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-note {
  text-align: center;
  font-size: .78rem;
  color: #9aab9c;
  margin-top: 10px;
}

.quote__success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.quote__success h3 {
  font-size: 1.8rem;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.quote__success p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================================
   CONTACT & MAP
   ============================================================ */
.contact { background: var(--white); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__item h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact__item p, .contact__item a {
  color: var(--text);
  font-size: .93rem;
  line-height: 1.6;
  transition: color var(--transition);
}
.contact__item a:hover { color: var(--green-mid); }

.contact__social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-mid);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.social-btn:hover {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
  transform: translateY(-2px);
}

.contact__map {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact__map iframe { width: 100%; height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green-deep);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.05rem;
}
.footer__brand .logo-leaf { color: var(--green-light); font-size: 1.2rem; }
.footer__copy {
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-light); }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  background: var(--gold);
  color: var(--green-deep);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 6px 24px rgba(200,165,82,.45);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(200,165,82,.55);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .review-card { flex: 0 0 calc(50% - 12px); }
  .quote__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__map { height: 360px; }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero__stats { gap: 20px; }
  .stat__divider { display: none; }
  .review-card { flex: 0 0 calc(100% - 0px); }
  .gallery__grid { grid-template-columns: 1fr; }
  .quote__form-wrap { padding: 28px 20px; }
  .quote__form .form-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .floating-cta { bottom: 20px; right: 20px; padding: 12px 18px; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2.4rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }
}
