/* ============================================================
   THE CHAPEL AT WIMBERLEY — Home Page Styles
   ============================================================ */

/* ───────────────────────────────────────
   HERO SECTION
─────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100svh; /* svh for correct mobile browser chrome */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-charcoal); /* Fallback color */
}

/* Videos */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Static poster fallback (always behind video) */
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-poster picture,
.hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 2;
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--space-md);
  max-width: 860px;
  animation: heroFadeUp 0.8s var(--ease-smooth) 0.3s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.hero-calligraphy {
  font-family: var(--font-display);
  font-size: calc(var(--text-hero) * 1.25);
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 auto var(--space-lg);
  max-width: 560px;
  letter-spacing: 0.02em;
}

.hero-btns {
  justify-content: center;
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0));
  margin: 0 auto;
}


/* ───────────────────────────────────────
   SECTION: THE CONCEPT
─────────────────────────────────────── */

.section-concept {
  padding: var(--space-2xl) 0;
}

.section-concept .reveal:first-child {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.section-concept .label-tag {
  display: block;
  margin-bottom: 14px;
}

.section-concept .section-title {
  max-width: none;
  margin: 0 0 var(--space-sm);
  line-height: 1.08;
}

.section-concept .title-rule {
  margin: 0 0 var(--space-md);
}

.section-concept .section-body {
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

.section-gallery-teaser > .container > .text-center.reveal:first-child,
.section-experiences > .container > .text-center.reveal:first-child,
.section-who > .container > .text-center.reveal:first-child {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section-gallery-teaser > .container > .text-center.reveal:first-child .label-tag,
.section-experiences > .container > .text-center.reveal:first-child .label-tag,
.section-who > .container > .text-center.reveal:first-child .label-tag {
  display: block;
  margin-bottom: 14px;
}

.section-gallery-teaser > .container > .text-center.reveal:first-child .section-title,
.section-experiences > .container > .text-center.reveal:first-child .section-title,
.section-who > .container > .text-center.reveal:first-child .section-title {
  margin: 0 0 var(--space-sm);
  line-height: 1.12;
}

.section-gallery-teaser > .container > .text-center.reveal:first-child .section-desc,
.section-experiences > .container > .text-center.reveal:first-child .section-desc,
.section-who > .container > .text-center.reveal:first-child .section-desc {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-who > .container > .text-center.reveal:first-child {
  max-width: 640px;
  text-align: center;
}

/* How-it-works 3-step */
.concept-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: calc(var(--space-xl) + var(--space-sm));
  text-align: left;
}

@media (min-width: 768px) {
  .concept-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.concept-step {
  position: relative;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
}

.concept-step__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.concept-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.concept-step__desc {
  font-size: var(--text-base);
  color: var(--color-mid);
  line-height: 1.6;
  margin: 0;
}

.concept-footnote {
  margin-top: var(--space-xl);
  font-family: var(--font-subhead);
  font-size: var(--text-md);
  color: var(--color-mid);
}


/* ───────────────────────────────────────
   SECTION: WHY INDOOR MATTERS
─────────────────────────────────────── */

.section-indoor {
  padding: var(--space-2xl) 0;
}

.indoor-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .indoor-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.indoor-copy {
  order: 2;
}

@media (min-width: 900px) {
  .indoor-copy {
    order: 1;
  }
}

.indoor-copy h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.indoor-copy p {
  font-size: var(--text-md);
  color: var(--color-mid);
  margin-bottom: var(--space-md);
  max-width: 480px;
}

.indoor-copy .btn-text {
  margin-top: var(--space-sm);
  display: inline-block;
}

.indoor-image {
  order: 1;
}

@media (min-width: 900px) {
  .indoor-image {
    order: 2;
  }
}

.indoor-image__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.indoor-image__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* Badge */
.indoor-image__badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 40px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-charcoal);
  box-shadow: var(--shadow-md);
  line-height: 1.3;
}

.indoor-image__badge > span:first-child {
  color: var(--color-sage);
  font-size: var(--text-md);
}


/* ───────────────────────────────────────
   SECTION: GALLERY TEASER
─────────────────────────────────────── */

.section-gallery-teaser {
  padding: var(--space-2xl) 0;
}

.gallery-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Large thumb spans full width on mobile */
.gallery-teaser .gallery-thumb--large {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .gallery-teaser {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
  }

  .gallery-teaser .gallery-thumb--large {
    grid-column: auto;
    grid-row: 1 / 3;
  }
}

.gallery-teaser .gallery-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Mobile: use aspect-ratio (not height: 100%) so sizing never collapses */
.gallery-teaser .gallery-thumb img,
.gallery-teaser .gallery-thumb video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform var(--duration-slow) var(--ease-smooth),
              filter var(--duration-slow) var(--ease-smooth);
}

.gallery-teaser .gallery-thumb iframe {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
}

.gallery-teaser .gallery-thumb--large img,
.gallery-teaser .gallery-thumb--large video {
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .gallery-teaser .gallery-thumb img,
  .gallery-teaser .gallery-thumb video {
    aspect-ratio: unset;
    height: 260px;
  }

  .gallery-teaser .gallery-thumb iframe {
    aspect-ratio: unset;
    height: 260px;
  }

  .gallery-teaser .gallery-thumb--large img,
  .gallery-teaser .gallery-thumb--large video {
    height: 100%;
    aspect-ratio: unset;
  }
}

.gallery-teaser .gallery-thumb:not(.gallery-thumb--video):hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.gallery-teaser .gallery-thumb--video {
  cursor: default;
}

.gallery-teaser-cta {
  text-align: center;
}


/* ───────────────────────────────────────
   SECTION: EXPERIENCES OVERVIEW
─────────────────────────────────────── */

.section-experiences {
  padding: var(--space-2xl) 0;
}

.experiences-grid .experience-card--featured {
  border-color: var(--color-gold);
  position: relative;
}

.experiences-grid .experience-card--featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: 0 0 6px 6px;
}


/* ───────────────────────────────────────
   SECTION: WIMBERLEY GETAWAY
─────────────────────────────────────── */

.section-getaway {
  padding: var(--space-2xl) 0;
}

.getaway-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.getaway-header h2 {
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.getaway-header p {
  color: var(--color-mid);
  font-size: var(--text-md);
}

.getaway-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .getaway-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .getaway-tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.getaway-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--color-charcoal);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .getaway-tile {
    aspect-ratio: 2 / 3;
  }
}

.getaway-tile--placeholder {
  background-color: var(--color-mid);
}

.getaway-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 10, 0.55);
  z-index: 1;
}

.getaway-tile__content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  color: var(--color-white);
  text-align: center;
}

.getaway-tile__content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 6px;
}

.getaway-tile__content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: none;
}


/* ───────────────────────────────────────
   SECTION: WHO THIS IS FOR
─────────────────────────────────────── */

.section-who {
  padding: var(--space-2xl) 0;
}

.section-who .card-grid {
  margin-top: var(--space-lg);
}

.who-card {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.who-card__icon {
  color: var(--color-sage);
  margin: 0 auto var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

.who-card__desc {
  font-size: var(--text-base);
  color: var(--color-mid);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}


/* ───────────────────────────────────────
   SECTION: SOCIAL PROOF
─────────────────────────────────────── */

.section-proof {
  padding: var(--space-2xl) 0;
}

.testimonials-grid {
  gap: var(--space-md);
}

/* Credibility line */
.credibility-line {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.credibility-text {
  font-size: var(--text-md);
  color: var(--color-mid);
  max-width: none;
}

.credibility-link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.credibility-link:hover {
  color: var(--color-gold-light);
}


/* ───────────────────────────────────────
   SECTION: CLOSING CTA
─────────────────────────────────────── */

.cta-section--closing {
  padding: var(--space-2xl) 0;
}

.cta-section--closing .section-title {
  color: var(--color-white);
}

.cta-section--closing .section-body {
  color: rgba(255, 255, 255, 0.8);
}

.cta-section--closing .label-tag {
  color: var(--color-gold-light);
}
