/* ==========================================================
   HOME PAGE — Hero, Services, Stats, Testimonials, CTA
   ========================================================== */

/* --- Hero --- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide static fallback when video is present */
.hero-video + .hero-img-fallback {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video + .hero-img-fallback { display: block; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 58, 0.85) 0%,
    rgba(26, 58, 58, 0.5) 50%,
    rgba(15, 36, 36, 0.7) 100%
  );
}

/* Subtle grain texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.hero-label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-md);
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 750px;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Decorative circle */
.hero-accent {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 108, 0.15);
  z-index: 3;
  pointer-events: none;
}

.hero-accent::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 108, 0.08);
}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
    align-items: flex-end;
    padding-bottom: 6rem;
  }
  .hero-accent { display: none; }
  .hero-scroll { display: none; }
}

/* --- Services Section --- */
.services-section {
  background: var(--bg-light);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(26, 58, 58, 0.95) 0%,
    rgba(26, 58, 58, 0.6) 60%,
    transparent 100%
  );
  z-index: 2;
}

.service-card-content .text-label {
  color: var(--secondary);
  margin-bottom: var(--space-xs);
  display: block;
}

.service-card-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.service-card-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.service-card-arrow {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 3;
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-card-arrow {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/9; }
}

/* --- About Preview Section --- */
.about-preview {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about-preview-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-preview-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  pointer-events: none;
}

.about-preview-content .text-label {
  margin-bottom: var(--space-sm);
  display: block;
}

.about-preview-content h2 {
  margin-bottom: var(--space-md);
}

.about-preview-content p {
  margin-bottom: var(--space-lg);
}

/* --- Stats Section --- */
.stats-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.stats-section .bg-pattern {
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .stat-item:nth-child(2)::after { display: none; }
}

/* --- Testimonials --- */
.testimonials-section {
  background: var(--bg-warm);
  position: relative;
}

.testimonial-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-md);
  color: var(--secondary);
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-style: italic;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Swiper custom styles */
.testimonials-slider .swiper-pagination {
  position: relative;
  margin-top: var(--space-xl);
}

.testimonials-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--accent);
  opacity: 0.5;
  transition: all var(--duration-fast) var(--ease-out);
}

.testimonials-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--secondary);
  width: 24px;
  border-radius: 4px;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 58, 0.92) 0%,
    rgba(26, 58, 58, 0.8) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
}

.cta-content .text-label {
  margin-bottom: var(--space-sm);
  display: block;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xl);
}

.cta-content .btn {
  margin: 0 var(--space-xs);
}

/* --- Location Section --- */
.location-section {
  background: var(--white);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.location-detail svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-detail span {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.6;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-warm);
  border: 1px solid var(--border);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Membership Comparison Table --- */
.membership-section {
  background: var(--bg-light);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.membership-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.membership-card.featured {
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-gold);
  transform: scale(1.04);
  z-index: 2;
}

.membership-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.membership-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.membership-tier {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-xs);
}

.membership-card h3 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.membership-price {
  margin-bottom: var(--space-xl);
}

.membership-price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

.membership-price .period {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.membership-features {
  text-align: left;
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.membership-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: var(--text-sm);
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

.membership-features li:last-child {
  border-bottom: none;
}

.feature-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--secondary);
}

.feature-x {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-light);
  opacity: 0.4;
}

.membership-card .btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .membership-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-inline: auto;
  }
  .membership-card.featured {
    transform: none;
    order: -1;
  }
  .membership-card.featured:hover {
    transform: translateY(-4px);
  }
}

/* --- Press Trust Strip --- */
.press-strip {
  padding: var(--space-2xl) 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.press-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.press-logo {
  color: var(--text-light);
  opacity: 0.5;
  transition: opacity var(--duration-fast) var(--ease-out);
  height: 28px;
  display: flex;
  align-items: center;
}

.press-logo:hover {
  opacity: 0.8;
}

.press-logo svg {
  height: 100%;
  width: auto;
}

/* --- Instagram Feed --- */
.instagram-section {
  background: var(--white);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.insta-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .press-logos {
    gap: 1.5rem;
  }
  .press-logo {
    height: 22px;
  }
}
