/* Greenridge Property Care — pure vanilla CSS */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --background: #f6f4ee;
  --foreground: #1c2a22;
  --card: #fbfaf5;
  --primary: #21402f;
  --primary-foreground: #f6f4ee;
  --secondary: #ece7d8;
  --muted: #e9e4d3;
  --muted-foreground: #5c6a5f;
  --accent: #c8994a;
  --accent-foreground: #1c2a22;
  --border: #ded8c6;
  --moss: #3d5f47;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 500;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 22px;
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
}
.brand-mark svg { width: 16px; height: 16px; }
.nav { display: none; gap: 32px; font-size: 14px; font-weight: 500; color: #fff; }
.nav a { transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-cta {
  display: none;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.05); }
@media (min-width: 768px) {
  .nav, .nav-cta { display: inline-flex; }
}

/* Header on non-hero pages */
.site-header--solid {
  position: relative;
  background: var(--primary);
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.1s;
}
.hero__slide.is-active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  z-index: 2;
}
.hero__slide.is-exit {
  opacity: 1;
  clip-path: inset(100% 0 0 0);
  z-index: 1;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 7s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(33, 64, 47, 0.72), transparent 60%),
    linear-gradient(135deg, rgba(33, 64, 47, 0.85), rgba(33, 64, 47, 0.35) 55%, transparent);
}

.hero__body {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  height: calc(100% - 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 768px) { .hero__body { padding: 0 40px 110px; } }

.hero__text { max-width: 780px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.4s, transform 0.6s 0.4s;
}
.hero__kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero__title {
  font-size: clamp(44px, 8vw, 108px);
  line-height: 1.02;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__title .line:nth-child(2) span { transition-delay: 0.15s; }
.hero__tagline {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.4vw, 21px);
  color: rgba(255,255,255,0.88);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 1s, transform 0.6s 1s;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 1.2s, transform 0.6s 1.2s;
}
.hero__slide.is-active + .hero__body-clone .hero__kicker,
.hero__slide.is-active + .hero__body-clone .hero__tagline,
.hero__slide.is-active + .hero__body-clone .hero__actions { opacity: 1; transform: translateY(0); }

/* Reveal state (applied via JS on active slide swap) */
.hero__text.is-in .hero__kicker,
.hero__text.is-in .hero__tagline,
.hero__text.is-in .hero__actions { opacity: 1; transform: translateY(0); }
.hero__text.is-in .hero__title .line span { transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-foreground); }
.btn-primary:hover { transform: scale(1.05); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Progress */
.hero__progress {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__dot {
  position: relative;
  height: 4px;
  width: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  transition: width 0.5s;
}
.hero__dot.is-active { width: 96px; }
.hero__dot .fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
}
.hero__dot.is-active .fill { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: translateX(0); } }
.hero__count {
  margin-left: 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--moss);
}
.section-title {
  margin-top: 16px;
  font-size: clamp(32px, 4.5vw, 60px);
}
.section-lead {
  margin-top: 24px;
  color: var(--muted-foreground);
  font-size: 18px;
  max-width: 560px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; }
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
}
.service:hover { background: var(--secondary); }
.service__row { display: flex; justify-content: space-between; align-items: center; }
.service__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(33, 64, 47, 0.1);
  color: var(--primary);
  transition: background 0.3s, color 0.3s;
}
.service:hover .service__icon { background: var(--accent); color: var(--accent-foreground); }
.service__icon svg { width: 20px; height: 20px; }
.service__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.service__title { font-size: 24px; }
.service__body { color: var(--muted-foreground); font-size: 14px; }

/* ---------- About / parallax ---------- */
.about {
  background: var(--primary);
  color: var(--primary-foreground);
  overflow: hidden;
}
.about .container { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .about .container { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about__image {
  position: relative;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) { .about__image { height: 620px; } }
.about__image img {
  position: absolute;
  inset: 0;
  height: 120%;
  width: 100%;
  object-fit: cover;
  will-change: transform;
}
.about__eyebrow { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; }
.about__title { margin-top: 20px; font-size: clamp(32px, 4.5vw, 60px); }
.about__lead { margin-top: 24px; font-size: 18px; color: rgba(255,255,255,0.85); }
.about__list { margin-top: 32px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.9); }
.about__list li::before {
  content: ""; margin-top: 10px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ---------- Impact ---------- */
.impact { position: relative; background: var(--secondary); overflow: hidden; }
.impact__bg {
  position: absolute;
  inset: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 18vw;
  color: rgba(33, 64, 47, 0.06);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  will-change: transform;
}
.impact .container { position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--background); padding: 40px; }
.stat__value {
  font-family: "Fraunces", serif;
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat__label { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); }
.quote { margin-top: 80px; max-width: 900px; }
.quote blockquote {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.35;
  color: var(--foreground);
}
.quote figcaption {
  margin-top: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* ---------- Contact ---------- */
.contact .container { display: grid; gap: 64px; }
@media (min-width: 768px) { .contact .container { grid-template-columns: 2fr 3fr; } }
.contact__meta dl { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; }
.contact__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.contact__meta dd { margin-top: 4px; }
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) { .contact-form { padding: 40px; } }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--foreground);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
}
.contact-form button {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--moss); }

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: var(--primary-foreground); padding: 64px 0 32px; }
.footer .container > .grid {
  display: grid; gap: 48px;
}
@media (min-width: 768px) { .footer .container > .grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 {
  font-family: "Fraunces", serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.8); }
.footer p.tag { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.75); max-width: 420px; }
.footer address { font-style: normal; font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.7; }
.footer__bar {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) { .footer__bar { flex-direction: row; justify-content: space-between; } }

/* ---------- Page hero for interior pages ---------- */
.page-hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 40px 0 96px;
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(40px, 6vw, 76px);
  max-width: 900px;
}
.page-hero p { margin-top: 20px; max-width: 640px; color: rgba(255,255,255,0.85); font-size: 18px; }
