/* ============================================================
   pages/home.css — Homepage Styles
   ============================================================ */

/* ── Hero fullscreen ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-lake.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(27,46,26,.55) 60%, rgba(27,46,26,.8) 100%),
    radial-gradient(ellipse at 30% 50%, transparent 50%, rgba(0,0,0,.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__eyebrow {
  font-family: var(--font-label);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber-pale);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s .3s ease both;
}

.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.hero__title {
  color: var(--warm-white);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .8s .5s ease both;
}

.hero__title em {
  font-style: italic;
  color: var(--amber-pale);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(253,250,244,.8);
  max-width: 500px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .8s .7s ease both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .9s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(253,250,244,.6);
  font-family: var(--font-label);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(253,250,244,.5), transparent);
  animation: scrollLine 1.5s 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0) translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1) translateY(0); opacity: 0; }
}

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--forest-mid);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(247,242,232,.1);
}

.stat-item {
  padding: 1.75rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(247,242,232,.1);
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(247,242,232,.06); }

.stat-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-family: var(--font-label);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(247,242,232,.6);
  margin-top: .4rem;
  display: block;
}

/* ── Intro section ───────────────────────────────────────────── */
.intro {
  padding: var(--section-pad) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.intro__img-wrap {
  position: relative;
}

.intro__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.intro__img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 120px;
  height: 120px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.intro__img-badge span:first-child {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1;
}

.intro__img-badge span:last-child {
  font-family: var(--font-label);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

.intro__text .label { display: block; margin-bottom: 1rem; }
.intro__text h2 { margin-bottom: 1.5rem; }
.intro__text p { color: var(--stone); margin-bottom: 1.5rem; }
.intro__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--stone);
}

.feature-item .dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Services grid ───────────────────────────────────────────── */
.services {
  background: var(--parchment);
}

.service-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  border-bottom: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: var(--amber);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.6rem;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
}

.service-card h3 { margin-bottom: .75rem; color: var(--forest-deep); }
.service-card p  { color: var(--stone); font-size: .95rem; }

/* ── Gallery teaser ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item:first-child { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,46,26,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}

.gallery-item:hover .gallery-overlay { background: rgba(27,46,26,.35); }

/* ── Testimonial ─────────────────────────────────────────────── */
.testimonials { background: var(--forest-deep); }

.testimonial-card {
  background: rgba(247,242,232,.05);
  border: 1px solid rgba(247,242,232,.1);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.testimonial-card__stars { color: var(--amber-light); margin-bottom: 1rem; font-size: 1rem; }

.testimonial-card__text {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(247,242,232,.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-card__author {
  font-family: var(--font-label);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-light);
}

/* ── CTA banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-deep) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/texture-wood.jpg') center/cover;
  opacity: .06;
}

.cta-banner h2 { color: var(--parchment); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(247,242,232,.7); max-width: 480px; margin: 0 auto 2.5rem; }
.cta-banner .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro__img-badge { right: .5rem; bottom: .5rem; width: 96px; height: 96px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(247,242,232,.1); }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-row: auto; }
}

@media (max-width: 580px) {
  .hero__actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .intro__features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
