/*
 * ============================================================
 *  SMEDEREVO CITY GUIDE — STYLESHEET v2
 *  Style: Narrative scroll · Editorial · Pasta Mancini inspired
 *  Palette: Cream · Stone · Wine · Gold
 * ============================================================
 *  1.  Custom Properties
 *  2.  Reset & Base
 *  3.  Typography
 *  4.  Utilities
 *  5.  Navbar
 *  6.  Hero
 *  7.  Intro (Quote + Stats)
 *  8.  Split Sections
 *  9.  Parallax Break
 *  10. Wine Section
 *  11. Live Info Strip
 *  12. Photo Grid (Landmarks)
 *  13. Timeline
 *  14. Advertise
 *  15. Contact
 *  16. Footer
 *  17. Back to Top
 *  18. AOS overrides
 *  19. Responsive
 * ============================================================
 */


/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --cream:        #F5F0E8;
  --cream-dark:   #EDE6D8;
  --stone:        #1C1410;
  --stone-mid:    #3A2E24;
  --stone-light:  #7A6855;
  --wine:         #8B2635;
  --wine-light:   #B03A4A;
  --gold:         #C4943A;
  --gold-light:   #D4AA58;
  --white:        #FAFAF8;

  /* Text */
  --text:         #1C1410;
  --text-muted:   #6B5B48;
  --text-faint:   #A09080;

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(28, 20, 16, 0.08);
  --shadow-md:    0 8px 32px rgba(28, 20, 16, 0.12);
  --shadow-lg:    0 20px 60px rgba(28, 20, 16, 0.18);

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-w:  1280px;
  --section-py:   120px;
  --gap:          32px;

  /* Motion */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --dur:          0.3s;
  --dur-slow:     0.6s;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--stone);
}

p {
  color: var(--text-muted);
  line-height: 1.8;
}


/* ============================================================
   4. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

.section {
  padding-block: var(--section-py);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-title-lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-top: 12px;
  color: var(--stone);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-top: 16px;
}

/* Eyebrow label (shared across sections) */
.split-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}


/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: background var(--dur) var(--ease),
              padding   var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(28, 20, 16, 0.08);
}

.nav-container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--dur);
  flex-shrink: 0;
}

.navbar.scrolled .nav-logo {
  color: var(--stone);
}

.nav-logo i {
  font-size: 1.1rem;
  color: var(--gold);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color var(--dur);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar.scrolled .nav-link {
  color: var(--text-muted);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--stone);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  transition: all var(--dur);
}

.lang-toggle:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.navbar.scrolled .lang-toggle {
  color: var(--stone-light);
  border-color: rgba(28,20,16,0.2);
}

.navbar.scrolled .lang-toggle:hover {
  color: var(--stone);
  border-color: var(--stone);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--white);
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}

.navbar.scrolled .hamburger span {
  background: var(--stone);
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,20,16,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--dur);
}

.mobile-overlay.active {
  opacity: 1;
}


/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 10, 5, 0.35) 0%,
    rgba(15, 10, 5, 0.50) 50%,
    rgba(15, 10, 5, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: clamp(24px, 5vw, 80px);
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 48px;
  line-height: 1.6;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 16px 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 40px;
  transition: all var(--dur) var(--ease);
}

.btn-hero:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  letter-spacing: 0.16em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2.4s var(--ease) infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollWheel 2.4s var(--ease) infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(0); }
}

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


/* ============================================================
   7. INTRO — QUOTE + STATS
   ============================================================ */
.intro-section {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--white);
  text-align: center;
}

.intro-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--stone);
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.5;
  margin-bottom: 72px;
  position: relative;
  padding: 0 40px;
}

.intro-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 6rem;
  font-family: var(--font-serif);
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  font-style: normal;
}

/* Stats row */
.intro-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 32px;
}

.intro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: clamp(28px, 4vw, 64px);
}

.intro-stat-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--stone);
  line-height: 1;
}

.stat-suf {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--wine);
}

.stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.intro-stat-divider {
  width: 1px;
  height: 56px;
  background: var(--cream-dark);
  flex-shrink: 0;
}


/* ============================================================
   8. SPLIT SECTIONS
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.split-img-left .split-image { order: 1; }
.split-img-left .split-text  { order: 2; }

.split-img-right .split-image { order: 2; }
.split-img-right .split-text  { order: 1; }

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.split-image:hover img {
  transform: scale(1.03);
}

.split-text {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 100px) clamp(40px, 6vw, 90px);
  gap: 20px;
}

.split-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  color: var(--stone);
  margin-top: 4px;
}

.split-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 480px;
}

.split-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.split-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--stone-light);
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 40px;
  border: 1px solid var(--cream-dark);
}

.split-tag i {
  color: var(--wine);
  font-size: 0.72rem;
}

/* Alternating section backgrounds */
.split-img-right .split-text {
  background: var(--cream);
}


/* ============================================================
   9. PARALLAX BREAK
   ============================================================ */
.parallax-break {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 5, 0.62);
}

.parallax-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.02em;
}


/* ============================================================
   10. WINE SECTION
   ============================================================ */
.wine-section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
  overflow: hidden;
}

.wine-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wine-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 5, 0.72);
}

.wine-content {
  position: relative;
  z-index: 2;
}

.wine-intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 64px;
}

.wine-eyebrow {
  color: var(--gold-light);
}

.wine-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
  margin-bottom: 20px;
}

.wine-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.68);
}

.wine-lead em {
  color: var(--gold-light);
  font-style: italic;
}

/* Wine cards */
.wine-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin-inline: auto;
}

.wine-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.wine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.wine-card:hover img {
  transform: scale(1.05);
}

.wine-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(to top, rgba(10,5,5,0.85), transparent);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
}

.wine-card-body i {
  color: var(--gold-light);
}


/* ============================================================
   11. LIVE INFO STRIP
   ============================================================ */
.liveinfo-section {
  padding-block: clamp(64px, 8vw, 100px);
  background: var(--cream-dark);
}

.liveinfo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--stone);
  text-align: center;
  margin-bottom: 48px;
}

.liveinfo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  row-gap: 32px;
}

.liveinfo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: clamp(20px, 3vw, 48px);
}

.liveinfo-icon {
  font-size: 1.4rem;
  color: var(--wine);
  flex-shrink: 0;
}

.liveinfo-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.liveinfo-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.liveinfo-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1;
}

.liveinfo-divider {
  width: 1px;
  height: 44px;
  background: var(--cream-dark);
  flex-shrink: 0;
}

.liveinfo-refresh {
  margin-left: clamp(12px, 2vw, 32px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  transition: all var(--dur);
}

.liveinfo-refresh:hover {
  color: var(--wine);
  border-color: var(--wine);
  transform: rotate(180deg);
}


/* ============================================================
   12. PHOTO GRID (LANDMARKS)
   ============================================================ */
.landmarks-section {
  padding-block: var(--section-py);
  background: var(--white);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px 420px;
  gap: 12px;
}

/* Large item spans 2 columns */
.photo-grid-large {
  grid-column: span 2;
}

/* Tall item spans 2 rows */
.photo-grid-tall {
  grid-row: span 2;
}

.photo-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--cream-dark);
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.photo-grid-item:hover img {
  transform: scale(1.05);
}

.photo-grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 18px;
  background: linear-gradient(to top, rgba(15,10,5,0.78) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease);
}

.photo-grid-item:hover .photo-grid-overlay {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   13. TIMELINE
   ============================================================ */
.timeline-section {
  padding-block: var(--section-py);
  background: var(--cream);
}

.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  margin-top: 64px;
}

.timeline-axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cream-dark);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 56px;
  position: relative;
}

/* Left items: card left, dot center */
.tl-left {
  flex-direction: row-reverse;
  text-align: right;
}

.tl-left .tl-card {
  margin-right: calc(50% + 48px);
}

.tl-right .tl-card {
  margin-left: calc(50% + 48px);
}

/* Dot */
.tl-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--stone-light);
  z-index: 2;
  transition: all var(--dur);
  flex-shrink: 0;
}

.tl-dot-accent {
  border-color: var(--gold);
  color: var(--gold);
}

.tl-dot-danger {
  border-color: var(--wine);
  color: var(--wine);
}

.timeline-item:hover .tl-dot {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--white);
}

/* Card */
.tl-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  width: calc(50% - 48px);
}

.tl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cream-dark);
}

.tl-card-highlight {
  border-color: var(--gold);
  border-width: 1px;
}

.tl-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 8px;
}

.tl-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 10px;
}

.tl-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.tl-highlight-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}


/* ============================================================
   14. ADVERTISE
   ============================================================ */
.advertise-section {
  background: var(--white);
}

.advertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.advertise-main p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.advertise-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.advertise-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.advertise-benefits li i {
  color: var(--wine);
  margin-top: 3px;
  flex-shrink: 0;
}

.advertise-cta-panel {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 40px;
}

.advertise-cta-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 16px;
}

.advertise-cta-panel > p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.advertise-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.adv-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--stone-light);
  background: var(--white);
  padding: 7px 14px;
  border-radius: 40px;
  border: 1px solid var(--cream-dark);
}

.adv-tag i { color: var(--wine); font-size: 0.72rem; }

.adv-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: var(--wine);
  padding: 14px 28px;
  border-radius: 40px;
  transition: all var(--dur);
}

.adv-email-link:hover {
  background: var(--wine-light);
}


/* ============================================================
   15. CONTACT
   ============================================================ */
.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 16px;
}

.contact-info-block > p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-detail-row span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 4px;
}

.contact-detail-row strong {
  font-size: 0.95rem;
  color: var(--stone);
}

.contact-email-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wine);
  display: block;
  transition: color var(--dur);
}

.contact-email-link:hover { color: var(--wine-light); }

/* Form */
.contact-form-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--dur);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--wine);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--stone);
  padding: 15px 36px;
  border-radius: 40px;
  cursor: pointer;
  transition: all var(--dur);
}

.form-submit:hover {
  background: var(--wine);
}


/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--stone);
  color: rgba(255,255,255,0.65);
}

.footer-main {
  padding-block: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-logo i {
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: all var(--dur);
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--dur);
}

.footer-col ul a:hover {
  color: var(--white);
}

.visit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 14px;
}

.visit-item i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.footer-email {
  color: var(--gold);
  font-weight: 500;
  transition: opacity var(--dur);
}

.footer-email:hover { opacity: 0.75; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 28px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
}

.footer-bottom i.fa-heart {
  color: var(--wine);
  margin-inline: 4px;
}


/* ============================================================
   17. MAP SECTION
   ============================================================ */
.map-section-wrap {
  background: var(--cream);
}

/* Map container */
.map-container {
  width: 100%;
  height: 520px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-dark);
  position: relative;
  z-index: 0;
}

/* Clip corners without overflow:hidden (which can break Leaflet popups) */
.map-container .leaflet-container {
  border-radius: var(--r-lg);
}

/* Override Leaflet popup styles */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--cream-dark);
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1 !important;
}

.leaflet-popup-tip-container { margin-top: -1px; }

.leaflet-popup-close-button {
  color: var(--text-faint) !important;
  font-size: 18px !important;
  top: 10px !important;
  right: 10px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
}

.leaflet-popup-close-button:hover { color: var(--stone) !important; }

/* Custom popup card */
.map-popup {
  min-width: 220px;
  max-width: 260px;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--cream-dark);
}

.map-popup-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.map-popup-icon--heritage { background: rgba(139,38,53,0.1);  color: var(--wine); }
.map-popup-icon--church   { background: rgba(196,148,58,0.12); color: var(--gold); }
.map-popup-icon--culture  { background: rgba(58,95,139,0.10);  color: #3A5F8B; }
.map-popup-icon--nature   { background: rgba(61,107,79,0.10);  color: #3D6B4F; }
.map-popup-icon--wine     { background: rgba(107,58,125,0.10); color: #6B3A7D; }

.map-popup-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1.2;
}

.map-popup-body {
  padding: 10px 16px 14px;
}

.map-popup-desc {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* Custom markers */
.map-marker {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  border: 2px solid rgba(255,255,255,0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-marker i {
  transform: rotate(45deg);
  font-size: 0.9rem;
}

.map-marker--heritage { background: var(--wine);  color: #fff; }
.map-marker--church   { background: var(--gold);  color: #fff; }
.map-marker--culture  { background: #3A5F8B;      color: #fff; }
.map-marker--nature   { background: #3D6B4F;      color: #fff; }
.map-marker--wine     { background: #6B3A7D;      color: #fff; }

.map-marker:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.30);
}

/* Layer toggles */
.map-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.map-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 40px;
  border: 1.5px solid var(--cream-dark);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  user-select: none;
}

.map-toggle-btn i { font-size: 0.78rem; }

.map-toggle-btn:hover {
  border-color: var(--stone-light);
  color: var(--stone);
}

.map-toggle-btn.active {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--white);
}

.map-toggle-btn[data-layer="heritage"].active { background: var(--wine);  border-color: var(--wine); }
.map-toggle-btn[data-layer="church"].active   { background: var(--gold);  border-color: var(--gold); color: var(--stone); }
.map-toggle-btn[data-layer="culture"].active  { background: #3A5F8B;      border-color: #3A5F8B; }
.map-toggle-btn[data-layer="nature"].active   { background: #3D6B4F;      border-color: #3D6B4F; }
.map-toggle-btn[data-layer="wine"].active     { background: #6B3A7D;      border-color: #6B3A7D; }

/* Legend */
.map-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--cream-dark);
}

.map-legend-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.map-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.legend-heritage { background: rgba(139,38,53,0.12);  color: var(--wine); }
.legend-church   { background: rgba(196,148,58,0.15); color: var(--gold); }
.legend-culture  { background: rgba(58,95,139,0.12);  color: #3A5F8B; }
.legend-nature   { background: rgba(61,107,79,0.12);  color: #3D6B4F; }
.legend-wine     { background: rgba(107,58,125,0.12); color: #6B3A7D; }

/* Responsive */
@media (max-width: 768px) {
  .map-container { height: 380px; }
  .map-legend { gap: 12px; padding: 14px 16px; }
  .map-legend-items { gap: 12px; }
}

@media (max-width: 480px) {
  .map-container { height: 300px; }
  .map-toggles { gap: 8px; }
  .map-toggle-btn { padding: 7px 14px; font-size: 0.75rem; }
}


/* ============================================================
   18. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--stone);
  color: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--wine);
}


/* ============================================================
   18. AOS OVERRIDES
   ============================================================ */
[data-aos] {
  transition-duration: 700ms !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* ============================================================
   19. RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  :root { --section-py: 88px; }

  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-img-left .split-image,
  .split-img-right .split-image { order: 1; height: 420px; }

  .split-img-left .split-text,
  .split-img-right .split-text  { order: 2; }

  .split-text {
    padding: 48px 40px;
  }

  .split-text p { max-width: 100%; }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 260px 360px;
  }

  .photo-grid-large { grid-column: span 2; }
  .photo-grid-tall  { grid-row: span 1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand { grid-column: span 2; }

  .advertise-grid { gap: 40px; }
  .contact-grid   { gap: 48px; }

  .tl-left .tl-card  { margin-right: calc(50% + 32px); }
  .tl-right .tl-card { margin-left:  calc(50% + 32px); }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  :root { --section-py: 64px; }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 80vw);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 28px;
    z-index: 1001;
    transition: right var(--dur-slow) var(--ease);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    color: var(--text-muted);
    font-size: 1rem;
  }

  .nav-link:hover, .nav-link.active { color: var(--stone); }

  .hamburger { display: flex; }

  .mobile-overlay { display: block; pointer-events: none; }
  .mobile-overlay.active { pointer-events: all; }

  /* Hero */
  .hero-title { font-size: clamp(3rem, 15vw, 5.5rem); }

  /* Intro stats */
  .intro-stats { flex-direction: column; gap: 8px; }
  .intro-stat-divider { width: 48px; height: 1px; }

  /* Split */
  .split-image { height: 320px; }

  /* Parallax */
  .parallax-break { height: 340px; }

  /* Wine cards */
  .wine-cards { grid-template-columns: 1fr; }

  /* Live info strip */
  .liveinfo-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 0;
  }

  .liveinfo-item { padding: 14px 0; width: 100%; }
  .liveinfo-divider { width: 100%; height: 1px; }
  .liveinfo-refresh { margin-left: 0; margin-top: 12px; }

  /* Photo grid */
  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
  }

  .photo-grid-large,
  .photo-grid-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Timeline */
  .timeline-axis { left: 20px; }

  .timeline-item {
    flex-direction: column;
    padding-left: 60px;
  }

  .tl-left  { flex-direction: column; text-align: left; }
  .tl-dot   { left: 20px; }

  .tl-left .tl-card,
  .tl-right .tl-card {
    margin: 0;
    width: 100%;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  /* Advertise & Contact */
  .advertise-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Back to top */
  .back-to-top { bottom: 24px; right: 20px; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.8rem, 18vw, 4rem); }
  .intro-quote { padding: 0 20px; font-size: 1.2rem; }
  .parallax-text { font-size: 1.8rem; }
  .wine-title { font-size: 1.8rem; }
}
