/* Green Homes — design tokens + base chrome (header, footer, buttons, forms) */

:root {
  --gh-green-900: #0f3a2e;
  --gh-green-800: #155341;
  --gh-green-700: #1c6b54;
  --gh-green-600: #25856a;
  --gh-green-500: #2fa37f;
  --gh-green-200: #b9dccd;
  --gh-green-100: #e6f1ec;
  --gh-green-50:  #f3f9f6;
  --gh-gold:      #c9a86a;
  --gh-gold-dark: #a98a4f;
  --gh-ink:       #1a2421;
  --gh-ink-soft:  #4a5651;
  --gh-muted:     #7c8a85;
  --gh-line:      #e5ebe8;
  --gh-bg:        #ffffff;
  --gh-bg-soft:   #fafbfa;
  --gh-shadow-sm: 0 2px 6px rgba(15,58,46,.06);
  --gh-shadow-md: 0 10px 30px rgba(15,58,46,.08);
  --gh-shadow-lg: 0 20px 60px rgba(15,58,46,.12);
  --gh-radius:    14px;
  --gh-radius-sm: 8px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gh-ink);
  background: var(--gh-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--gh-green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gh-green-500); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--gh-green-900); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 22px; }
h4 { font-size: 16px; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gh-green-700); }
p { color: var(--gh-ink-soft); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -40px; left: 16px; background: var(--gh-green-700); color: #fff;
  padding: 8px 14px; border-radius: var(--gh-radius-sm); z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.gh-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1), background-color .3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gh-header.is-scrolled { border-color: var(--gh-line); box-shadow: var(--gh-shadow-sm); }
.gh-header--transparent {
  position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: none; box-shadow: none;
}
.gh-header--transparent.is-scrolled {
  position: fixed; background: rgba(255,255,255,.95); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--gh-line); box-shadow: var(--gh-shadow-md);
}
.gh-header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 84px;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gh-header.is-scrolled .gh-header__row {
  height: 64px;
}
.gh-brand img {
  height: 52px;
  width: auto;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gh-header.is-scrolled .gh-brand img {
  height: 42px;
}

.gh-brand { display: flex; align-items: center; gap: 12px; color: var(--gh-green-900); }
.gh-brand:hover { color: var(--gh-green-700); }
.gh-brand__mark { width: 40px; height: 40px; }
.gh-brand__wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.gh-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .04em; color: var(--gh-green-700); }
.gh-brand__tagline { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gh-green-500); }

.gh-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gh-nav a {
  color: var(--gh-ink); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: var(--gh-radius-sm);
}
.gh-nav a:hover { background: var(--gh-green-50); color: var(--gh-green-700); }
.gh-nav a.is-active { color: var(--gh-green-700); background: var(--gh-green-50); }
.gh-nav__user { color: var(--gh-green-700) !important; font-weight: 600 !important; }
.gh-nav__divider { width: 1px; height: 22px; background: var(--gh-line); margin: 0 4px; }

.gh-nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.gh-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--gh-green-700); margin: 4px 0; border-radius: 2px; transition: transform .2s; }

@media (max-width: 960px) {
  .gh-nav__toggle { display: block; }
  .gh-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gh-line);
    box-shadow: var(--gh-shadow-md); padding: 16px 24px; flex-direction: column; align-items: stretch; gap: 4px;
    display: none;
  }
  .gh-nav.is-open { display: flex; }
  .gh-nav a { padding: 12px 14px; }
  .gh-nav__divider { display: none; }
}

/* ---------- Buttons ---------- */
.gh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--font-body); padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center;
}
.gh-btn:focus-visible { outline: 3px solid var(--gh-green-200); outline-offset: 2px; }
.gh-btn--primary { background: var(--gh-green-700); color: #fff !important; }
.gh-btn--primary:hover { background: var(--gh-green-800); color: #fff !important; transform: translateY(-1px); }
.gh-btn--ghost { background: transparent; color: var(--gh-green-700); border-color: var(--gh-green-700); }
.gh-btn--ghost:hover { background: var(--gh-green-50); }
.gh-btn--gold { background: var(--gh-gold); color: var(--gh-green-900); }
.gh-btn--gold:hover { background: var(--gh-gold-dark); color: #fff; }
.gh-btn--lg { padding: 16px 30px; font-size: 16px; }
.gh-btn--sm { padding: 8px 16px; font-size: 13px; }
.gh-btn--block { width: 100%; }
.gh-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Main / sections ---------- */
.gh-main { flex: 1; }
.gh-section { padding: 80px 0; }
.gh-section--soft { background: var(--gh-green-50); }
.gh-section--ink { background: var(--gh-green-900); color: #fff; }
.gh-section--ink h2, .gh-section--ink h3, .gh-section--ink h4 { color: #fff; }
.gh-section--ink p { color: rgba(255,255,255,.78); }
.gh-section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.gh-section__head p { margin-top: 12px; }
.gh-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gh-green-600); font-weight: 600; margin-bottom: 12px; }

/* ---------- Cards ---------- */
.gh-card { background: #fff; border: 1px solid var(--gh-line); border-radius: var(--gh-radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.gh-card:hover { transform: translateY(-3px); box-shadow: var(--gh-shadow-md); border-color: var(--gh-green-200); }
.gh-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gh-green-100); color: var(--gh-green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.gh-card__icon svg { width: 26px; height: 26px; }
.gh-card h3 { margin-bottom: 8px; }

/* ---------- Forms ---------- */
.gh-form { display: grid; gap: 16px; }
.gh-form__row { display: grid; gap: 16px; }
.gh-form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .gh-form__row--2 { grid-template-columns: 1fr; } }
.gh-field { display: flex; flex-direction: column; gap: 6px; }
.gh-field label { font-size: 13px; font-weight: 500; color: var(--gh-ink); }
.gh-field input, .gh-field select, .gh-field textarea {
  font: 400 15px var(--font-body); padding: 12px 14px; border: 1.5px solid var(--gh-line);
  border-radius: var(--gh-radius-sm); background: #fff; color: var(--gh-ink); transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.gh-field input:focus, .gh-field select:focus, .gh-field textarea:focus {
  outline: none; border-color: var(--gh-green-500); box-shadow: 0 0 0 3px var(--gh-green-100);
}
.gh-field textarea { min-height: 120px; resize: vertical; }
.gh-form__error { background: #fdecec; color: #8a1f1f; padding: 12px 16px; border-radius: var(--gh-radius-sm); font-size: 14px; }
.gh-form__ok { background: var(--gh-green-100); color: var(--gh-green-900); padding: 12px 16px; border-radius: var(--gh-radius-sm); font-size: 14px; }

/* ---------- Footer ---------- */
.gh-footer { background: var(--gh-green-900); color: rgba(255,255,255,.8); margin-top: auto; }
.gh-footer a { color: rgba(255,255,255,.78); }
.gh-footer a:hover { color: var(--gh-green-200); }
.gh-footer__grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding: 64px 24px 40px; }
@media (max-width: 900px) { .gh-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gh-footer__grid { grid-template-columns: 1fr; } }
.gh-footer h4 { color: #fff; margin-bottom: 14px; font-size: 13px; }
.gh-brand--footer .gh-brand__name { color: #fff; }
.gh-brand--footer .gh-brand__tagline { color: var(--gh-green-200); }
.gh-footer__about { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 14px; max-width: 360px; }
.gh-footer__list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gh-footer__legal { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.gh-footer__legal .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gh-footer__legal a { color: rgba(255,255,255,.7); }

/* ---------- Utilities ---------- */
.gh-grid { display: grid; gap: 24px; }
.gh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gh-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .gh-grid--3, .gh-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gh-grid--2, .gh-grid--3, .gh-grid--4 { grid-template-columns: 1fr; } }
.gh-pill { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--gh-green-100); color: var(--gh-green-700); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.gh-pill--gold { background: var(--gh-gold); color: var(--gh-green-900); }
.gh-muted { color: var(--gh-muted); }
.gh-text-center { text-align: center; }
.gh-mt-8 { margin-top: 32px; } .gh-mt-4 { margin-top: 16px; } .gh-mt-2 { margin-top: 8px; }
.gh-mb-4 { margin-bottom: 16px; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: #fff;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ---------- Premium Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.96);
}

.reveal-active {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}

/* Stagger animation delay classes */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.reveal-active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay fallback classes */
.reveal-stagger.reveal-active > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.reveal-active > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.reveal-active > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.reveal-active > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.reveal-active > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.reveal-active > *:nth-child(6) { transition-delay: 0.55s; }

/* Image zoom-on-hover effect */
.proj-card__img img, .service-card img, .hero__art img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-card:hover .proj-card__img img, .service-card:hover img {
  transform: scale(1.05);
}
.hero__art {
  overflow: hidden;
}
.hero__art:hover img {
  transform: scale(1.03);
}

