/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #F5EDE3;
  --bg-secondary: #E8D5BF;
  --bg-card: #FFFAF5;
  --text-primary: #3E2723;
  --text-secondary: #5D4037;
  --text-muted: #8D6E63;
  --accent: #C75B12;
  --accent-light: #E8A04C;
  --accent-glow: rgba(199, 91, 18, 0.15);
  --border: #D7C4AA;
  --shadow-sm: 0 2px 8px rgba(62, 39, 35, 0.08);
  --shadow-md: 0 4px 20px rgba(62, 39, 35, 0.1);
  --shadow-lg: 0 8px 40px rgba(62, 39, 35, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: 'SN Pro', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle wood-grain texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(93, 64, 55, 0.5) 40px,
      rgba(93, 64, 55, 0.5) 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(93, 64, 55, 0.3) 80px,
      rgba(93, 64, 55, 0.3) 81px
    );
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(245, 237, 227, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(62, 39, 35, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo:hover {
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav__links a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}
.nav__links a.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    170deg,
    #3E2723 0%,
    #5D4037 30%,
    #8D6E63 55%,
    #C75B12 80%,
    #E8A04C 100%
  );
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__trees {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  opacity: 0.6;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  color: #FFFAF5;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero__cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFAF5;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.hero__cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFAF5;
  transform: translateY(-2px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 200%; }
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 0 auto;
}

/* ===== HISTORY ===== */
.history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.history-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.history-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.history-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.history-card:hover::before {
  opacity: 1;
}

.history-card__year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.history-card__heading {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.history-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== NATURE ===== */
.nature-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.nature-lead {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.nature-seasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.season {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.season:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.season__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.season__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.season p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.nature-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.fact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fact-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.fact-card__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.fact-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== GASTRO ===== */
.gastro-intro {
  text-align: center;
  max-width: 700px;
  margin: -1rem auto 2.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.gastro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cafe-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.cafe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cafe-card__icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.cafe-card__name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cafe-card__desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cafe-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ===== WEATHER ===== */
.weather-widget {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}

.weather-widget__loading p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.weather-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.weather-main {
  margin-bottom: 1.5rem;
}

.weather-main__icon {
  font-size: 3.5rem;
  margin-bottom: 0.25rem;
}

.weather-main__temp {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.weather-main__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.weather-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.weather-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.weather-detail__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.weather-detail__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.weather-widget__error p {
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent-light);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-copy a:hover {
  color: var(--accent-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .history-grid,
  .gastro-grid {
    grid-template-columns: 1fr;
  }

  .nature-content {
    grid-template-columns: 1fr;
  }

  .nature-facts {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 237, 227, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 200;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links a {
    font-size: 1.3rem;
    padding: 0.75rem 1.5rem;
  }
  .nav__burger {
    display: flex;
    z-index: 250;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero__title {
    font-size: 3.2rem;
  }

  .nature-seasons {
    grid-template-columns: 1fr;
  }

  .weather-details {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
