:root {
  --green-deep: #1d3a2a;
  --green: #2d6a4f;
  --green-light: #52b788;
  --gold: #d4a574;
  --gold-deep: #a67c52;
  --terracotta: #c97b5e;
  --cream: #f5ecd9;
  --cream-dark: #e8dcc0;
  --earth: #5a3e2b;
  --sky-top: #8ec5e8;
  --sky-bot: #f5d4a3;
  --ink: #1a1410;
  --muted: rgba(26, 20, 16, 0.65);
  --muted-light: rgba(245, 236, 217, 0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

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

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 236, 217, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.15);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-deep);
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  padding: 3px;
  border: 1px solid rgba(45, 106, 79, 0.15);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(45, 106, 79, 0.2));
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-parent {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 3px;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--green-deep);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { width: 100%; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- CTA buttons ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--green-deep);
  box-shadow: 0 4px 14px -4px rgba(45, 106, 79, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn-cta:hover {
  transform: translateY(-2px);
  background: var(--green-deep);
  box-shadow: 0 8px 22px -4px rgba(45, 106, 79, 0.6);
}
.btn-cta--top { padding: 10px 18px; font-size: 13px; }
.btn-cta--big { padding: 18px 36px; font-size: 16px; letter-spacing: 0.08em; }
.btn-cta--pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 14px -4px rgba(45, 106, 79, 0.5),
                         0 0 0 0 rgba(212, 165, 116, 0.5); }
  50%      { box-shadow: 0 4px 14px -4px rgba(45, 106, 79, 0.5),
                         0 0 0 16px rgba(212, 165, 116, 0); }
}

.btn-ghost {
  color: var(--green-deep);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, #b8d4e8 40%, var(--sky-bot) 80%, var(--cream) 100%);
}
.sun {
  position: absolute;
  top: 18%;
  right: 14%;
  width: 140px; height: 140px;
  background: radial-gradient(circle, #fff8d6 0%, #f5d27a 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  animation: sunGlow 6s ease-in-out infinite;
}
@keyframes sunGlow {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); opacity: 1; }
}
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  filter: blur(8px);
  animation: drift linear infinite;
}
.cloud-1 { top: 20%; left: -10%; width: 220px; height: 50px; animation-duration: 60s; }
.cloud-2 { top: 30%; left: -20%; width: 180px; height: 40px; animation-duration: 80s; animation-delay: -20s; opacity: 0.7; }
.cloud-3 { top: 12%; left: -30%; width: 280px; height: 60px; animation-duration: 100s; animation-delay: -50s; opacity: 0.6; }
@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(140vw); }
}
.mountains {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: auto;
}
.mountains-back  { bottom: 28%; fill: #6a8a78; opacity: 0.6; }
.mountains-mid   { bottom: 18%; fill: #4a6e5a; opacity: 0.85; }
.mountains-front { bottom: 0;   fill: var(--green-deep); }
.mist {
  position: absolute;
  bottom: 25%;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  filter: blur(4px);
  animation: mistDrift 12s ease-in-out infinite;
}
@keyframes mistDrift {
  0%, 100% { transform: translateX(-30px); opacity: 0.5; }
  50% { transform: translateX(30px); opacity: 0.8; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-copy { max-width: 640px; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow--center { text-align: center; }
.eyebrow--gold { color: var(--gold-deep); }
.eyebrow--cream { color: var(--gold); }

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.98;
  color: var(--green-deep);
  letter-spacing: -0.015em;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  margin-top: 24px;
  color: var(--ink);
  max-width: 520px;
}
.hero-sub strong { color: var(--green-deep); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--green);
  border-radius: 14px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  margin-left: -2px;
  width: 4px; height: 6px;
  background: var(--green);
  border-radius: 2px;
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Sections ---------- */
.section { padding: 120px 24px; position: relative; }
.section--cream { background: var(--cream); }
.section--green {
  background: linear-gradient(180deg, var(--green-deep) 0%, #16291f 100%);
  color: var(--cream);
}
.section--earth {
  background: linear-gradient(180deg, var(--cream-dark) 0%, #d4c198 100%);
  color: var(--earth);
}

@media (max-width: 880px) {
  .section { padding: 80px 24px; }
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}
h2.big   { font-size: clamp(44px, 6.5vw, 88px); }
h2.light { color: var(--cream); }
h2.light em { color: var(--gold); -webkit-text-fill-color: var(--gold); }
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 .hl { color: var(--green); font-style: italic; }
.section--green h2 .hl { color: var(--green-light); }
.section--earth h2 .hl { color: var(--terracotta); }

.section p { font-size: 17px; margin-top: 16px; color: var(--muted); }
.section p.lead { font-size: 19px; color: var(--ink); }
.section--green p { color: var(--muted-light); }
.section--earth p { color: rgba(90, 62, 43, 0.8); }
.section p strong, .section--green p strong, .section--earth p strong {
  color: inherit;
  font-weight: 700;
  filter: none;
}
.section--cream p strong { color: var(--green-deep); }
.section--green p strong { color: var(--cream); }
.section--earth p strong { color: var(--earth); }

/* ---------- Two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse .col-illus { order: 2; }
.col-text { max-width: 560px; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 50px; }
  .two-col.reverse .col-illus { order: 0; }
}

/* ---------- Stats ---------- */
.stats {
  list-style: none;
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stats li {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--green-deep);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Ornament (compass) ---------- */
.col-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--green);
}
.ornament {
  width: 280px;
  max-width: 80%;
  animation: spinSlow 60s linear infinite;
}
.ornament svg { width: 100%; height: auto; }
@keyframes spinSlow {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.ornament-cap {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold-deep);
}

/* ---------- Attractions grid ---------- */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 70px;
}
.attraction {
  background: rgba(245, 236, 217, 0.06);
  border: 1px solid rgba(245, 236, 217, 0.12);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(4px);
}
.attraction:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(245, 236, 217, 0.1);
}
.att-icon {
  display: inline-block;
  font-size: 28px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.attraction h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.2;
}
.attraction p {
  font-size: 14px;
  color: var(--muted-light);
  margin-top: 0;
}
@media (max-width: 880px) { .attractions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .attractions-grid { grid-template-columns: 1fr; } }

/* ---------- Leaf card ---------- */
.col-illus {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--green-deep);
}
.leaf-card {
  width: 280px;
  max-width: 80%;
  animation: sway 6s ease-in-out infinite;
  transform-origin: top center;
}
.leaf-card svg { width: 100%; height: auto; }
@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.leaf-cap {
  display: block;
  margin-top: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--earth);
  text-align: center;
}

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.feature-list li {
  padding: 12px 0;
  padding-left: 28px;
  border-bottom: 1px solid rgba(90, 62, 43, 0.15);
  position: relative;
  color: var(--earth);
  font-size: 16px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 14px; height: 2px;
  background: var(--terracotta);
}

/* ---------- Culture grid ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 70px;
}
.culture-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid rgba(45, 106, 79, 0.12);
  box-shadow: 0 12px 30px -16px rgba(45, 106, 79, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.culture-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.culture-card--cheese::before { background: var(--gold); }
.culture-card--coffee::before { background: var(--earth); }
.culture-card--faith::before  { background: var(--terracotta); }
.culture-card--craft::before  { background: var(--green); }
.culture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(45, 106, 79, 0.35);
}
.culture-icon {
  display: inline-block;
  font-size: 40px;
  margin-bottom: 16px;
}
.culture-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.culture-card p { font-size: 15px; margin-top: 0; color: var(--muted); }
@media (max-width: 880px) { .culture-grid { grid-template-columns: 1fr; } }

/* ---------- CTA Final ---------- */
.cta-final {
  position: relative;
  padding: 160px 24px;
  background: linear-gradient(180deg, #16291f 0%, var(--green-deep) 60%, #1f4530 100%);
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: auto;
  fill: rgba(212, 165, 116, 0.15);
}
.cta-final .wrap { position: relative; z-index: 2; }
.cta-sub { font-size: 18px; margin: 24px 0 40px; color: var(--muted-light); }

/* ---------- Footer ---------- */
.foot {
  background: #0f1f15;
  padding: 32px 24px;
  border-top: 1px solid rgba(212, 165, 116, 0.15);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-light);
  flex-wrap: wrap;
  gap: 12px;
}
.foot a { color: var(--gold); text-decoration: none; }
.foot a:hover { color: var(--cream); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Editable inline (cityName) ---------- */
[data-tpl="cityName"], [data-tpl="cityNickname"] {
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 -4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
[data-tpl="cityName"]:hover, [data-tpl="cityNickname"]:hover {
  background: rgba(212, 165, 116, 0.18);
  box-shadow: inset 0 -1px 0 var(--gold-deep);
}
[data-tpl="cityName"].editing, [data-tpl="cityNickname"].editing {
  background: rgba(212, 165, 116, 0.3);
  box-shadow: 0 0 0 2px var(--gold-deep);
  cursor: text;
}

.edit-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  background: rgba(29, 58, 42, 0.95);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}
.edit-banner button {
  background: none;
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 3px 10px;
  margin-left: 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.edit-banner button:hover { background: var(--gold); color: var(--green-deep); }

/* ---------- Footer brand ---------- */
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  padding: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(212, 165, 116, 0.3);
}
.foot-name { display: block; color: var(--muted-light); font-size: 13px; }
.foot-name span { color: var(--cream); font-weight: 600; }
.foot-tag {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--gold);
  margin-top: 2px;
}
