@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5E6D3;
  --caramel: #C8874A;
  --teal: #5E7D76;
  --sage: #8FAF9B;
  --wood: #A67C52;
  --vanilla: #FFF6EA;
  --magenta: #FF4FD8;
  --lavender: #9B7BFF;
  --text-dark: #2C1810;
  --text-mid: #5A4033;
  --text-light: #8B6F5E;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Nunito', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(44, 24, 16, 0.10);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.16);
  --transition: 0.3s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
html.hide #preloader { display: none; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--cream); overflow-x: hidden; }
body.fixed { overflow: hidden; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Preloader ── */
#preloader {
  position: fixed; inset: 0;
  background: var(--vanilla);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
#preloader img { width: 72px; }

/* ── Shared typography ── */
.section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--caramel); margin-bottom: 10px;
}
.section-sub {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.75; max-width: 580px;
  margin: 0 auto 56px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 15px 72px; border-radius: 50px;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--magenta) 100%);
  color: #fff; font-family: var(--font-body);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(200, 135, 74, 0.38);
  cursor: pointer; border: none;
  animation: pulse 2s ease-in-out infinite;
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(255, 79, 216, 0.42); }

/* ── Header ── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 10px 0;
  background: var(--vanilla); box-shadow: var(--shadow);
  transition: padding var(--transition);
}
#header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#header.scrolled { padding: 6px 0; }

.logo img { height: 84px; width: auto; }

#desktop-nav { display: flex; gap: 34px; }
#desktop-nav .nav-link {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-mid); transition: var(--transition);
  position: relative;
}
#desktop-nav .nav-link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 2px; background: var(--caramel);
  transition: right var(--transition);
}
#desktop-nav .nav-link:hover::after { right: 0; }
#desktop-nav .nav-link:hover { color: var(--caramel); }

.burger-btn {
  background: transparent; border: 0;
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.burger-btn span {
  display: block; width: 26px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition);
}
.burger-btn.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
#mobile-menu {
  position: fixed; inset: 0;
  background: var(--teal);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 36px; z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
#mobile-menu.opened { opacity: 1; pointer-events: all; }
#mobile-menu .nav-link {
  font-family: var(--font-heading);
  font-size: 2.2rem; color: var(--vanilla);
  transition: var(--transition);
}
#mobile-menu .nav-link:hover { color: var(--caramel); }

/* ── Hero ── */
#home {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--teal);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero bg.webp') center / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(94,125,118,0.88) 0%, rgba(44,24,16,0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
  padding-top: 110px; padding-bottom: 72px; min-height: 100vh;
}
.hero-content { display: flex; flex-direction: column; gap: 22px; }
.hero-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage);
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  font-weight: 700; color: var(--vanilla); line-height: 1.08;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255, 246, 234, 0.82);
  line-height: 1.75; max-width: 460px;
}
.hero-img { display: flex; align-items: flex-end; justify-content: center; }
.hero-img img {
  max-height: 72vh; object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── About / Features ── */
#about { background: var(--cream); padding: 108px 0; }
#about .container { text-align: center; }
#about h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  color: var(--text-dark); margin-bottom: 16px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; text-align: left;
}
.feature-card {
  background: var(--vanilla); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  border: 1px solid rgba(200, 135, 74, 0.10);
  position: relative; overflow: hidden; transition: var(--transition);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--caramel), var(--magenta));
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2.1rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; color: var(--text-dark); margin-bottom: 9px;
}
.feature-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; }

/* ── Gameplay ── */
#gameplay {
  background: var(--teal); padding: 108px 0;
  position: relative; overflow: hidden;
}
#gameplay::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 175, 155, 0.12) 0%, transparent 70%);
}
#gameplay .container { position: relative; z-index: 2; }
#gameplay .section-label { color: var(--sage); }
#gameplay h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  color: var(--vanilla); margin-bottom: 60px; max-width: none;
}
.steps-list { display: flex; flex-direction: column; }
.step-item {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 24px; padding: 32px 0;
  border-bottom: 1px solid rgba(255, 246, 234, 0.09);
  align-items: flex-start;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: transparent;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--magenta) 100%);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: #fff; flex-shrink: 0; line-height: 1;
  box-shadow: 0 4px 16px rgba(255, 79, 216, 0.30);
}
.step-content h3 {
  font-family: var(--font-heading); font-size: 1.2rem;
  color: var(--vanilla); margin-bottom: 8px;
}
.step-content p { font-size: 0.93rem; color: rgba(255, 246, 234, 0.72); line-height: 1.65; }

/* ── Menu & Garden ── */
#menu { background: var(--vanilla); padding: 108px 0; }
#menu .container { text-align: center; }
#menu h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  color: var(--text-dark); margin-bottom: 16px;
}
.seasons-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; text-align: left; margin-top: 56px;
}
.season-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid rgba(166, 124, 82, 0.13);
  box-shadow: var(--shadow); transition: var(--transition);
  position: relative;
}
.season-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.season-card:nth-child(1) { border-top: 4px solid var(--sage); }
.season-card:nth-child(2) { border-top: 4px solid var(--caramel); }
.season-card:nth-child(3) { border-top: 4px solid var(--wood); }
.season-card:nth-child(4) { border-top: 4px solid var(--lavender); }
.season-icon { font-size: 2.2rem; margin-bottom: 14px; }
.season-card h3 {
  font-family: var(--font-heading); font-size: 1.25rem;
  color: var(--text-dark); margin-bottom: 12px;
}
.season-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.68; }

/* ── Gallery ── */
#gallery { background: var(--cream); padding: 108px 0; }
#gallery .container { text-align: center; }
#gallery .section-label { color: var(--teal); }
#gallery h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  color: var(--text-dark); margin-bottom: 56px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
  object-fit: cover; aspect-ratio: 9 / 16;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ── Community ── */
#community {
  background: var(--teal); padding: 108px 0;
  position: relative; overflow: hidden;
}
#community::before {
  content: ''; position: absolute; bottom: -130px; left: -130px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.07) 0%, transparent 70%);
}
#community .container { position: relative; z-index: 2; text-align: center; }
#community .section-label { color: var(--sage); }
#community h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  color: var(--vanilla); margin-bottom: 56px;
}
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 64px;
}
.stat-item {
  background: rgba(255, 246, 234, 0.07);
  border-radius: var(--radius); padding: 28px 14px;
  border: 1px solid rgba(255, 246, 234, 0.10);
}
.stat-num {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.stat-label { font-size: 0.82rem; color: rgba(255, 246, 234, 0.58); letter-spacing: 0.05em; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; text-align: left;
}
.testimonial-card {
  background: rgba(255, 246, 234, 0.07);
  border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid rgba(255, 246, 234, 0.09);
}
.testimonial-card blockquote {
  font-size: 0.9rem; color: #fff;
  line-height: 1.68; font-style: italic; margin-bottom: 18px;
}
.testimonial-card cite {
  font-size: 0.8rem; color: rgba(255, 246, 234, 0.82);
  font-style: normal; font-weight: 700;
}

/* ── Footer ── */
#footer {
  position: relative; background: #1a0e07;
  padding: 40px 0 28px; overflow: hidden;
}
.footer-bg {
  position: absolute; inset: 0;
  background: url('../img/footer bg.webp') center / cover no-repeat;
  opacity: 0.18;
}
.footer-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,14,7,0.55) 0%, rgba(26,14,7,0.75) 100%);
}
.footer-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 32px; row-gap: 10px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  grid-column: 1; grid-row: 1;
}
.footer-logo img { height: 60px; width: auto; }
.footer-logo span {
  font-family: var(--font-heading); font-size: 1.1rem;
  color: var(--vanilla); opacity: 0.85;
}
.footer-tagline {
  font-size: 0.88rem; color: rgba(255, 246, 234, 0.60); font-style: italic;
  grid-column: 1; grid-row: 2;
}
.footer-links {
  display: flex; gap: 24px; justify-content: flex-end;
  grid-column: 3; grid-row: 1;
}
.footer-links a {
  font-size: 0.84rem; color: rgba(255, 246, 234, 0.72);
  font-weight: 700; transition: color var(--transition); letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--caramel); }
.footer-copy {
  font-size: 0.78rem; color: rgba(255, 246, 234, 0.38);
  grid-column: 3; grid-row: 2; text-align: right;
  margin-top: 0;
}

/* ── Legal pages ── */
.legal-page { background: var(--vanilla); padding: 140px 0 100px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 {
  font-family: var(--font-heading); font-size: 2.4rem;
  color: var(--text-dark); margin-bottom: 8px;
}
.legal-content .legal-date {
  font-size: 0.85rem; color: var(--text-light); margin-bottom: 40px;
}
.legal-content h2 {
  font-family: var(--font-heading); font-size: 1.3rem;
  color: var(--text-dark); margin: 32px 0 10px;
}
.legal-content p, .legal-content li {
  font-size: 0.93rem; color: var(--text-mid);
  line-height: 1.75; margin-bottom: 10px;
}
.legal-content ul { padding-left: 20px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #desktop-nav { display: none; }
  .burger-btn { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
  .hero-sub { max-width: 100%; margin: 0 auto; }
  .hero-img { order: -1; }
  .hero-img img { max-height: 44vh; }
  .hero-content .btn-primary { align-self: center; }

  .seasons-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; }

  #about, #gameplay, #menu, #gallery, #community { padding: 80px 0; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .step-item { grid-template-columns: 60px 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center; text-align: center; gap: 16px;
  }
  .footer-logo { grid-column: 1; grid-row: 1; }
  .footer-tagline { grid-column: 1; grid-row: 2; }
  .footer-links { grid-column: 1; grid-row: 3; justify-content: center; }
  .footer-copy { grid-column: 1; grid-row: 4; text-align: center; }
}
