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

:root {
  --color-primary: #1a3c2e;
  --color-accent: #c8a96e;
  --color-light: #f5f0e8;
  --color-dark: #0d1f18;
  --color-text: #2c2c2c;
  --color-white: #ffffff;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --header-height: 72px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(26, 60, 46, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: background var(--transition);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-img--desktop {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 42px;
}

.header__logo-img--mobile {
  display: none;
}

@media (max-width: 480px) {
  .header__inner {
    padding: 0 16px;
  }

  .header__logo-img--desktop {
    display: none;
  }

  .header__logo-img--mobile {
    display: none;
  }
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--transition);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__nav a:hover {
  color: var(--color-accent);
}

.header__nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.header__toggle span:nth-child(1),
.header__toggle span:nth-child(3) {
  width: 28px;
}

.header__toggle span:nth-child(2) {
  width: 20px;
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 9px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -9px);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .header {
    background: transparent;
    backdrop-filter: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
  }

  .header.header--scrolled {
    background: rgba(26, 60, 46, 0.95);
    backdrop-filter: blur(8px);
  }
  .header__toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    transition: right 0.4s ease;
    padding: 80px 40px 40px;
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero__logo-mobile {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 31, 24, 0.4), rgba(13, 31, 24, 0.6));
  z-index: 1;
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  mix-blend-mode: screen;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 24px;
  max-width: 800px;
}

@media (min-width: 769px) {
  .hero__logo-mobile {
    display: none;
  }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.7;
  animation: floatDown 2s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Welcome --- */
.welcome {
  padding: 120px 24px;
  background: var(--color-light);
}

.welcome__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.welcome__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 32px;
}

.welcome__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  line-height: 1.3;
}

.welcome__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .welcome {
    padding: 80px 20px;
  }
}

/* --- Casa --- */
.casa {
  padding: 120px 24px;
  background: var(--color-white);
}

.casa__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.casa__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 24px;
}

.casa__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 20px;
}

.casa__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.casa__text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.casa__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.casa__item {
  background: var(--color-light);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.casa__item:hover {
  transform: translateY(-4px);
}

.casa__item-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-accent);
  line-height: 1;
  min-height: 1em;
}

.casa__item-num:empty::before {
  content: '•';
  font-size: 2.5rem;
  color: var(--color-accent);
}

.casa__item-label {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .casa {
    padding: 80px 20px;
  }
  .casa__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .casa__accent {
    margin-left: auto;
    margin-right: auto;
  }
  .casa__title {
    text-align: center;
  }
  .casa__text {
    text-align: center;
  }
}

/* --- Pool --- */
.pool {
  position: relative;
  padding: 140px 24px;
  overflow: hidden;
}

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

.pool__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 24, 0.45);
  z-index: 1;
}

.pool__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pool__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 28px;
}

.pool__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 24px;
}

.pool__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.pool__text strong {
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 480px) {
  .pool {
    padding: 100px 20px;
  }
}

/* --- Games --- */
.games {
  position: relative;
  padding: 120px 24px;
  background: linear-gradient(135deg, #fdf6e3, #f5e6ca, #fdf6e3);
  overflow: hidden;
}

.games__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 30%, #e74c3c 2px, transparent 2px),
    radial-gradient(circle at 70% 20%, #e74c3c 2px, transparent 2px),
    radial-gradient(circle at 40% 70%, #3498db 2px, transparent 2px),
    radial-gradient(circle at 85% 60%, #2ecc71 2px, transparent 2px),
    radial-gradient(circle at 15% 80%, #f39c12 2px, transparent 2px),
    radial-gradient(circle at 55% 40%, #9b59b6 2px, transparent 2px),
    radial-gradient(circle at 90% 85%, #e74c3c 2px, transparent 2px),
    radial-gradient(circle at 10% 15%, #2ecc71 2px, transparent 2px),
    radial-gradient(circle at 65% 90%, #3498db 2px, transparent 2px),
    radial-gradient(circle at 30% 50%, #f39c12 2px, transparent 2px);
  background-size: 100% 100%;
}

.games__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.games__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 28px;
}

.games__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 24px;
}

.games__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.games__text strong {
  color: var(--color-accent);
  font-weight: 600;
}

.games__text strong:last-child {
  display: block;
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .games {
    padding: 80px 20px;
  }
}

/* --- Village --- */
.village {
  padding: 120px 24px;
  background: var(--color-white);
}

.village__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.village__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 28px;
}

.village__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 24px;
}

.village__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.village__text strong {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 480px) {
  .village {
    padding: 80px 20px;
  }
}

/* --- Location --- */
.location {
  padding: 120px 24px 0;
  background: var(--color-light);
}

.location__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 60px;
}

.location__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 28px;
}

.location__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 20px;
}

.location__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.location__text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.location__map-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
}

.location__map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.location__map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

@media (max-width: 768px) {
  .location {
    padding: 80px 20px 0;
  }
  .location__map-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  padding: 60px 24px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  height: 32px;
  width: auto;
  opacity: 0.6;
  margin-bottom: 40px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

.footer__copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.footer__credit {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer__heart {
  display: inline-block;
  color: #e74c3c;
  animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.footer__link {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__link:hover {
  opacity: 0.7;
}

/* --- Main content spacer --- */
.main {
  margin-top: 0;
}

/* --- Sections placeholder --- */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.section p {
  font-size: 1.1rem;
  max-width: 700px;
  color: #555;
}

/* --- Reveal animation --- */
.welcome,
.casa,
.pool,
.games,
.village,
.location,
.footer,
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome.visible,
.casa.visible,
.pool.visible,
.games.visible,
.village.visible,
.location.visible,
.footer.visible,
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
