/**
 * Front Page Styles
 * Homepage sections with consistent spacing, responsive design, and smooth animations
 * 
 * Sections:
 * - Hero (fullscreen with parallax)
 * - Stats (4 animated stat cards)
 * - Latest Experiences (3 compact experience cards)
 * - How It Works (4-step process)
 * - FAQ (accordion-style)
 * - Testimonials (3 customer reviews)
 * - Booking CTA (call-to-action)
 * 
 * @package TablyClub
 */

/* ===== HERO HOME - CENTERED ===== */
.tc-hero-home {
  background: var(--tc-background-alt);
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tc-hero-home.tc-bg-cream {
  background: var(--tc-background-alt);
}

.tc-hero-home.tc-bg-white {
  background: white;
}

.tc-hero-home.tc-bg-sage {
  background: #e8f5e9;
}

/* Background Image */
.tc-hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--tc-background-alt) 0%, var(--tc-secondary-peach) 100%);
  opacity: 0.7;
  z-index: 0;
}

.tc-hero-home__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--tc-space-xl) var(--tc-container-padding);
}

.tc-hero-home__title {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--tc-space-md);
  color: var(--tc-primary-navy);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tc-hero-home__subtitle {
  font-size: var(--tc-text-xl);
  color: var(--tc-text-secondary);
  margin-bottom: var(--tc-space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.tc-hero-home__actions {
  display: flex;
  gap: var(--tc-space-md);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tc-hero-home__image {
  margin-top: var(--tc-space-xl);
  border-radius: var(--tc-radius-xl);
  overflow: hidden;
  box-shadow: var(--tc-shadow-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tc-hero-home__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--tc-transition-slow);
}

.tc-hero-home__image:hover img {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .tc-hero-home {
    min-height: 70vh;
  }
  
  /* BIGGER title on mobile */
  .tc-hero-home__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: 1.5rem;
  }
  
  /* BIGGER subtitle on mobile */
  .tc-hero-home__subtitle {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
  }
  
  .tc-hero-home__actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  /* SMALLER buttons on mobile */
  .tc-hero-home__actions .tc-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* ===== STATS ===== */
.tc-stats {
  padding: clamp(3rem, 6vw, 4rem) 0;
  /* Background color set via Customizer inline styles */
  position: relative;
  overflow: hidden;
}

.tc-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 107, 74, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Background color classes removed - using Customizer inline styles instead */

.tc-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .tc-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.tc-stat {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tc-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tc-color-3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tc-stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tc-stat:hover::before {
  transform: scaleX(1);
}

.tc-stat__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--tc-color-3);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-family: var(--tc-font-heading);
}

.tc-stat__label {
  font-size: 0.875rem;
  color: var(--tc-primary-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.8;
}

/* ===== EXPERIENCE / MENU PREVIEW ===== */
.tc-experience {
  background: var(--tc-background);
}

.tc-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--tc-space-lg);
}

.tc-menu-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tc-space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.tc-menu-preview__category {
  background: white;
  padding: var(--tc-space-lg);
  border-radius: var(--tc-radius-md);
  border: 2px solid var(--tc-color-3);
}

.tc-menu-preview__category-title {
  font-size: var(--tc-text-2xl);
  margin-bottom: var(--tc-space-md);
  color: var(--tc-primary-navy);
  padding-bottom: var(--tc-space-sm);
  border-bottom: 2px solid var(--tc-color-3);
}

.tc-menu-preview__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tc-space-sm);
}

.tc-menu-preview__list li {
  padding-left: var(--tc-space-md);
  position: relative;
  color: var(--tc-text-primary);
  font-size: var(--tc-text-base);
}

.tc-menu-preview__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tc-color-3);
  font-weight: bold;
}

@media (min-width: 768px) {
  .tc-menu-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LATEST EXPERIENCES ===== */
.tc-latest-experiences {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.tc-latest-experiences__header {
  max-width: 800px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

/* Override global title margin for consistent spacing */
.tc-latest-experiences .tc-section__title {
  margin-bottom: 1rem;
}

.tc-latest-experiences__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

.tc-latest-experiences__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 1200px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  justify-items: center;
}

/* Responsive grid: center items when count is less than columns */
@media (min-width: 768px) {
  .tc-latest-experiences__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .tc-latest-experiences__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Single card: center it */
.tc-latest-experiences__grid:has(.tc-latest-exp-card:only-child) {
  grid-template-columns: minmax(260px, 400px);
  justify-content: center;
}

/* Two cards: center them */
@media (min-width: 768px) {
  .tc-latest-experiences__grid:has(.tc-latest-exp-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(260px, 400px));
    justify-content: center;
  }
}

/* Latest Experience Card - Compact size matching How It Works tiles */
.tc-latest-exp-card {
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
}

.tc-latest-exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--tc-color-3);
}

/* Image Section - Compact */
.tc-latest-exp-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--tc-color-5);
}

.tc-latest-exp-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.tc-latest-exp-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tc-latest-exp-card:hover .tc-latest-exp-card__image {
  transform: scale(1.05);
}

.tc-latest-exp-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tc-latest-exp-card:hover .tc-latest-exp-card__overlay {
  opacity: 1;
}

.tc-latest-exp-card__view-btn {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tc-latest-exp-card__price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--tc-color-3);
  color: var(--tc-color-1);
  padding: 8px 14px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.tc-price-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.tc-price-value {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

/* Content Section - Compact */
.tc-latest-exp-card__content {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tc-latest-exp-card__title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tc-latest-exp-card__title a {
  color: var(--tc-color-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tc-latest-exp-card__title a:hover {
  color: var(--tc-color-3);
}

.tc-latest-exp-card__excerpt {
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.65;
  color: #666;
  margin-bottom: 1rem;
  flex: 1;
}

.tc-latest-exp-card__meta {
  display: flex;
  gap: 15px;
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tc-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.tc-meta-item svg {
  opacity: 0.7;
  width: 14px;
  height: 14px;
}

/* Button - Matches footer subscribe button exactly */
.tc-latest-exp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--tc-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  white-space: nowrap;
}

/* Styling will be applied via functions.php to match footer subscribe button */

.tc-latest-exp-btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
  width: auto;
}

.tc-latest-experiences__cta {
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .tc-latest-experiences__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .tc-latest-exp-card__meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== MORE THAN FOOD ===== */
.tc-more-than-food__content {
  max-width: 800px;
  margin: 0 auto var(--tc-space-lg);
  font-size: var(--tc-text-lg);
  line-height: 1.8;
  text-align: center;
}

.tc-more-than-food__content p {
  max-width: 100%;
  margin-bottom: var(--tc-space-md);
}

.tc-more-than-food__image {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--tc-radius-lg);
  overflow: hidden;
  box-shadow: var(--tc-shadow-lg);
}

.tc-more-than-food__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.tc-more-than-food__image:hover img {
  transform: scale(1.05);
}

/* ===== TESTIMONIALS ===== */
.tc-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tc-space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.tc-testimonial {
  background: white;
  padding: var(--tc-space-lg);
  border-radius: var(--tc-radius-md);
  box-shadow: var(--tc-shadow-md);
  transition: var(--tc-transition-base);
}

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

.tc-testimonial__text {
  font-size: var(--tc-text-lg);
  font-style: italic;
  color: var(--tc-text-primary);
  margin-bottom: var(--tc-space-md);
  line-height: 1.6;
}

.tc-testimonial__author {
  font-weight: 600;
  color: var(--tc-color-3);
  font-size: var(--tc-text-base);
}

@media (min-width: 768px) {
  .tc-testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== BOOKING CTA ===== */
/* Background color set via Customizer inline styles */

.tc-booking-cta__content {
  max-width: 700px;
  margin: 0 auto;
}

.tc-booking-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--tc-space-md);
  font-weight: 700;
}

.tc-booking-cta__text {
  font-size: var(--tc-text-lg);
  margin-bottom: var(--tc-space-lg);
  line-height: 1.6;
}

.tc-btn--large {
  padding: 1.25rem 3rem;
  font-size: var(--tc-text-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .tc-hero-home {
    min-height: auto;
    padding: var(--tc-space-lg) 0;
  }
  
  .tc-stat {
    padding: var(--tc-space-sm);
  }
  
  .tc-menu-preview__category {
    padding: var(--tc-space-md);
  }
  
  .tc-testimonial {
    padding: var(--tc-space-md);
  }
}
