/* assets/css/pages.css */

/* Home Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(var(--overlay-bg), var(--overlay-bg)), url('../images/hero/hero-bg.jpg') no-repeat center center/cover;
  padding: var(--space-6);
  overflow: hidden;
  color: var(--color-white);
}

/* Fallback background if image fails to load */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--text-secondary) 0%, var(--bg-secondary) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: var(--z-base);
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  font-size: var(--font-5xl);
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  color: var(--color-white);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: var(--font-lg);
  margin-bottom: var(--space-6);
  color: var(--bg-primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Rising Steam Decorative Animation */
.steam-container {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.steam-line {
  width: 3px;
  height: 20px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-round);
  opacity: 0.8;
  animation: steamRise 3s infinite linear;
}

.steam-line:nth-child(2) {
  animation-delay: 0.8s;
  height: 30px;
}

.steam-line:nth-child(3) {
  animation-delay: 1.6s;
  height: 25px;
}

@keyframes steamRise {
  0% {
    transform: translateY(0) scaleY(1);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-40px) scaleY(1.5);
    opacity: 0;
  }
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Section Layouts */
.section-padding {
  padding: var(--space-10) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  color: var(--text-muted);
}

/* Grids and Cards */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card-title {
  font-size: var(--font-lg);
  margin: 0;
}

.product-card-price {
  font-weight: bold;
  color: var(--accent);
}

/* Reviews Carousel UI */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

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

/* Opening Timetable */
.hours-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-color);
}

.hours-table td {
  padding: var(--space-3) 0;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

/* Map Placeholder Styling */
.map-placeholder {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  height: 350px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-5);
}
