/* Page-owned styles for home page */

#home-main {
  display: block;
}

/* Hero section */
.hero-section {
  position: relative;
  background-color: var(--color-sun-yellow);
  padding-block: var(--space-3xl);
  overflow: hidden;
  border-block-end: var(--border-retro);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero-title {
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  max-width: 800px;
  margin-inline: auto;
  margin-block-end: 0;
}

.hero-subtitle {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-block-start: var(--space-md);
}

.hero-sunrays {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.15) 0, transparent 40%),
                    radial-gradient(circle at 80% 30%, rgba(255, 140, 0, 0.12) 0, transparent 35%),
                    radial-gradient(circle at 50% 80%, rgba(255, 140, 0, 0.1) 0, transparent 45%);
  pointer-events: none;
}

.hero-starburst {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L55 35 L90 10 L70 45 L100 50 L70 55 L90 90 L55 65 L50 100 L45 65 L10 90 L30 55 L0 50 L30 45 L10 10 L45 35 Z' fill='%23FF8C00' opacity='0.25'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-starburst-left {
  inset-block-start: var(--space-md);
  inset-inline-start: var(--space-md);
  transform: rotate(-15deg);
}

.hero-starburst-right {
  inset-block-end: var(--space-md);
  inset-inline-end: var(--space-md);
  transform: rotate(20deg);
}

/* Story section */
.story-section {
  background-color: var(--color-cream);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: center;
}

.story-copy {
  min-width: 0;
}

.story-copy h2 {
  margin-block-end: var(--space-md);
}

.story-copy p {
  max-width: 65ch;
  margin-block-end: 0;
}

.story-figure {
  min-width: 0;
  margin-block-end: 0;
}

.story-figure img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
}

.story-figure figcaption {
  text-align: center;
  margin-block-start: var(--space-sm);
}

/* Menu favourites section */
.menu-favourites-section {
  background-color: var(--color-cream);
}

.section-heading {
  text-align: center;
  margin-block-end: var(--space-xl);
}

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

.menu-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-header {
  background-color: var(--color-sun-yellow);
  border: var(--border-retro);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: var(--space-sm) var(--space-md);
  margin: calc(-1 * var(--surface-card-padding));
  margin-block-end: var(--space-md);
}

.card-header h3 {
  margin-block-end: 0;
  text-align: center;
}

.card-header-sky {
  background-color: var(--color-sky-blue);
}

.menu-card p,
.format-card p {
  max-width: 45ch;
  margin-block-end: 0;
}

/* Poker section */
.poker-section {
  background-color: var(--color-sky-blue);
}

.poker-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-xl);
  align-items: center;
}

.poker-figure {
  min-width: 0;
  margin-block-end: 0;
}

.poker-figure img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
}

.poker-figure figcaption {
  text-align: center;
  margin-block-start: var(--space-sm);
}

.poker-copy {
  min-width: 0;
}

.poker-copy h2 {
  margin-block-end: var(--space-md);
}

.poker-copy p {
  max-width: 65ch;
  margin-block-end: 0;
}

/* Formats section */
.formats-section {
  background-color: var(--color-cream);
}

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

.format-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Gallery section */
.gallery-section {
  background-color: var(--color-cream);
}

.gallery-intro {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-block-end: var(--space-xl);
}

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

.gallery-figure {
  min-width: 0;
  margin-block-end: 0;
}

.gallery-figure img {
  width: 100%;
  max-width: 100%;
  transition: transform var(--transition-fast);
}

.gallery-figure:hover img {
  transform: scale(1.03);
}

.gallery-figure-square img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
}

.gallery-figure-oval img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-oval);
}

.gallery-figure-arch img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-arch);
}

/* FAQ section */
.faq-section {
  background-color: var(--color-sky-blue);
}

.faq-container {
  max-width: 800px;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background-color: var(--color-cream);
  border: var(--border-retro);
  border-radius: var(--radius-card);
  padding: var(--space-md);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-inline-end: var(--space-xl);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  margin-block-start: var(--space-md);
}

.faq-answer p {
  max-width: 60ch;
  margin-block-end: 0;
}

/* Contact section */
.contact-section {
  background-color: var(--color-cream);
}

.contact-container {
  max-width: 600px;
  margin-inline: auto;
}

.contact-intro {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-block-end: var(--space-xl);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.contact-details p {
  margin-block-end: 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-sm);
  border: var(--border-retro);
  border-radius: var(--radius-card);
  background-color: var(--color-cream);
  color: var(--color-deep-brown);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

.form-feedback {
  min-height: 1.5em;
  margin-block-end: 0;
  font-weight: 700;
}

.form-feedback.success {
  color: var(--color-deep-brown);
}

.form-feedback.error {
  color: var(--color-juicy-orange);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .story-grid,
  .poker-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .story-figure,
  .poker-figure {
    order: -1;
  }

  .menu-cards,
  .formats-cards,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-block: var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .menu-cards,
  .formats-cards,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .story-copy p,
  .poker-copy p {
    max-width: 100%;
  }

  .menu-card p,
  .format-card p,
  .faq-answer p,
  .gallery-intro,
  .contact-intro {
    max-width: 100%;
  }

  .contact-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-block: var(--space-xl);
  }

  .hero-starburst {
    width: 80px;
    height: 80px;
  }

  .section-heading {
    font-size: var(--text-h2-size);
  }
}
