/* ==========================================================================
   HOME — hero + about section
   ========================================================================== */

/* ---------------------------------- Hero -------------------------------- */

/* Outer section: min-height so image fills the viewport nicely */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* content sits over lower half, stats pin to bottom */
  background: var(--color-emerald-deep); /* fallback while image loads */
}

/* ── Photo layer ───────────────────────────────────── */
.hero__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Multi-stop overlay: dark at bottom for text, subtle at top */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18)  0%,
      rgba(0, 0, 0, 0.42) 45%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 40, 20, 0.45) 0%,
      transparent 65%
    );
}

/* ── Content container ─────────────────────────────── */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: var(--space-7) var(--space-5);
  padding-top: calc(var(--space-7) * 2); /* clear fixed header */
}

/* Eyebrow badge */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  background: rgba(226, 199, 136, 0.12);
  border: 1px solid rgba(226, 199, 136, 0.35);
  border-radius: 50px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  margin-bottom: var(--space-4);
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* H1 */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  color: #fff;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero__title-since {
  display: block;
  font-size: 0.48em;
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-top: 0.35em;
  opacity: 0.9;
}

/* Body text */
.hero__text {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: var(--space-5);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* CTA row */
.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-5);
}

/* WhatsApp hero variant button */
.btn--whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn--whatsapp-hero svg { width: 1.1rem; height: 1.1rem; }
.btn--whatsapp-hero:hover { background: #1ebe5d; transform: translateY(-1px); }

/* Outline-light variant for dark backgrounds */
.btn--outline-light {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}

/* Trust badge row */
.hero__trust {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}

.hero__trust li svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--color-gold-light);
  flex-shrink: 0;
}

/* ── Stats bar ─────────────────────────────────────── */
.hero__stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226, 199, 136, 0.2);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: var(--space-4) 0;
}

.stat {
  text-align: center;
  padding-inline: var(--space-3);
}

/* Dividers between stat cells */
.stat + .stat {
  border-left: 1px solid rgba(226, 199, 136, 0.18);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-gold-light);
  line-height: 1.1;
}
.stat__label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.62);
  margin-top: 4px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 700px) {
  .hero {
    min-height: min(85vh, 620px);
  }

  .hero__img {
    object-position: 70% center; /* shift right on mobile to show more of the image */
  }

  .hero__inner {
    padding-top: calc(var(--space-7) + 20px);
  }

  .hero__cta { gap: var(--space-2); }

  .hero__trust { gap: var(--space-3); }

  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .stat + .stat { border-left: none; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid rgba(226,199,136,0.18); }
  .stat:nth-child(2) { border-left: 1px solid rgba(226,199,136,0.18); }
  .stat:nth-child(4) { border-left: 1px solid rgba(226,199,136,0.18); }
}

@media (max-width: 420px) {
  .hero__trust { display: none; } /* too cramped on very small phones */
  .hero__cta .btn--outline-light { display: none; } /* keep only 2 CTAs */
}

/* ---------------------------------- About -------------------------------- */
.about { padding-block: var(--space-7); }

.about h2 { max-width: 20ch; margin-bottom: var(--space-4); }

.about__intro {
  max-width: 70ch;
  font-size: var(--fs-md);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-6);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.about-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.about-card__icon {
  width: 60px;
  height: 60px;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.about-card h3 { margin-bottom: var(--space-2); }
.about-card p { color: var(--color-ink-soft); }

@media (max-width: 700px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Services ----------------------------- */
.services {
  background: var(--color-cream-deep);
  padding-block: var(--space-7);
}

.services h2 { margin-bottom: var(--space-5); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-emerald-soft);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.service-card p { color: var(--color-ink-soft); font-size: 0.95rem; }

/* ---------------------------------- Gallery (homepage preview) ----------- */
.gallery-preview { padding-block: var(--space-7); }

.gallery-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.gallery-preview__head h2 { margin-bottom: 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: var(--space-3);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item--featured {
  grid-column: span 2;
  grid-row: span 2;
}
/* Signature arch mask on the featured image only */
.gallery__item--featured img {
  border-radius: 50% 50% var(--radius-md) var(--radius-md) / 22% 22% var(--radius-md) var(--radius-md);
}

@media (max-width: 800px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery__item--featured { grid-column: span 2; grid-row: span 2; }
  .gallery__item--featured img { border-radius: var(--radius-md); }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--featured { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; height: auto; }
  .gallery__item { aspect-ratio: 4/3; height: auto; }
}

/* ---------------------------------- Packages teaser ----------------------- */
.packages-teaser {
  background: var(--color-emerald-deep);
  color: var(--color-cream);
  padding-block: var(--space-7);
}
.packages-teaser h2 { color: var(--color-cream); }
.packages-teaser__intro { max-width: 60ch; color: rgba(250, 245, 234, 0.82); font-size: var(--fs-md); margin-top: var(--space-3); }

.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.package-card {
  position: relative;
  display: block;
  background: rgba(250, 245, 234, 0.06);
  border: 1px solid rgba(250, 245, 234, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.package-card:hover {
  transform: translateY(-3px);
  background: rgba(250, 245, 234, 0.1);
  box-shadow: var(--shadow-md);
}

.package-card__icon { width: 44px; height: 44px; color: var(--color-gold-light); margin-bottom: var(--space-3); }

.package-card__badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-light);
  border: 1px solid rgba(226, 199, 136, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: var(--space-3);
}

.package-card h3 { color: var(--color-cream); margin-bottom: var(--space-2); }
.package-card p { color: rgba(250, 245, 234, 0.8); margin-bottom: var(--space-4); max-width: 42ch; }

.package-card__cta {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--color-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.package-card__cta svg { width: 1em; height: 1em; transition: transform var(--transition); }
.package-card:hover .package-card__cta svg { transform: translateX(4px); }

@media (max-width: 700px) {
  .packages-grid { grid-template-columns: 1fr; }
}
