/* =========================================================
   Vauberrynimblt — Alpine Storybook Luxury
   Aesthetic: Editorial | Card style: Framed canvas
   ========================================================= */

:root {
  --cream: #f5efe3;
  --cream-alt: #ede2cc;
  --forest: #1f3d2b;
  --forest-dark: #14281c;
  --burgundy: #6e2136;
  --burgundy-dark: #4f1626;
  --copper: #b5651d;
  --copper-soft: #d68a44;
  --stone: #8a8478;
  --stone-dark: #55503f;
  --ink: #241f1b;
  --shadow: rgba(36, 31, 27, 0.28);
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }

p { margin: 0 0 var(--space-3); }

a {
  color: var(--forest);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--burgundy); }

*:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-6) 0;
}
.section--alt { background: var(--cream-alt); }
.section--dark {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--burgundy);
  margin: 0 0 var(--space-2);
}
.section--dark .eyebrow { color: var(--copper-soft); }

hr.rule {
  border: none;
  border-top: 2px solid var(--stone);
  opacity: 0.4;
  margin: var(--space-5) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--forest-dark); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--forest-dark); }

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-secondary:hover { background: var(--burgundy); color: var(--cream); }

.btn-cta {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
  padding: 10px 18px;
  font-size: 0.85rem;
}
.btn-cta:hover { background: var(--burgundy-dark); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--cream);
  border-bottom: 3px solid var(--forest);
  height: 60px;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest-dark);
  overflow-wrap: anywhere;
}
.logo:hover .logo-text { color: var(--burgundy); }

.site-nav { min-width: 0; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: anywhere;
}
.site-nav a:hover { color: var(--burgundy); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--forest);
  border-radius: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--forest-dark);
}

.mobile-nav {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--forest);
  z-index: 50;
  box-shadow: 0 12px 24px var(--shadow);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-nav a {
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mobile-nav a:hover { color: var(--copper-soft); }
.mobile-nav .btn-cta { align-self: flex-start; }

@media (max-width: 767px) {
  .site-header { height: 52px; }
  .header-inner { padding: 0 var(--space-3); }
  .site-nav { display: none; }
  .header-cta .btn-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { top: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #294a37 0%, var(--forest-dark) 65%, var(--ink) 100%);
  color: var(--cream);
  padding: var(--space-6) 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-layers { position: absolute; inset: 0; z-index: 0; }
.hero-layer { position: absolute; left: 0; right: 0; width: 100%; }
.hero-layer--back { bottom: 0; opacity: 0.35; }
.hero-layer--mid { bottom: -10px; opacity: 0.55; }
.hero-layer--front { bottom: -20px; opacity: 0.85; }
.hero-route { position: absolute; right: 4%; top: 12%; width: 42%; max-width: 420px; opacity: 0.7; }
.hero-route-path {
  fill: none;
  stroke: var(--copper-soft);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
  animation: route-flow 6s linear infinite;
}
@keyframes route-flow {
  to { stroke-dashoffset: -220; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 var(--space-4);
  margin: 0 auto;
}
.hero-lead { font-size: 1.1rem; max-width: 560px; color: var(--cream); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 480px) {
  .hero { min-height: 440px; }
  .hero-route { width: 60%; top: 6%; }
}

/* ---------- Framed canvas cards (row layout) ---------- */
.village-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.village-grid > * { min-width: 0; }

.card-frame {
  position: relative;
  padding: 0 20px 20px 0;
  min-width: 0;
}
.card-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 100%;
  height: 100%;
  background: var(--copper);
  border-radius: 6px;
  z-index: 0;
}
.village-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border: 2px solid var(--forest);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card-frame:hover .village-card,
.card-frame:focus-within .village-card {
  transform: translateY(-8px);
  box-shadow: 0 18px 28px var(--shadow);
}
.village-card img {
  width: 320px;
  min-width: 320px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}
.village-card-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
  justify-content: center;
}
.village-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.village-card-tags li {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--burgundy);
  background: var(--cream-alt);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 3px 10px;
}
.village-card-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--forest);
}
.village-card-link:hover { color: var(--burgundy); }

@media (max-width: 767px) {
  .card-frame { padding: 0 0 16px 0; }
  .card-frame::before { top: 12px; left: 0; }
  .village-card { flex-direction: column; }
  .village-card img {
    width: 100%;
    min-width: 0;
    height: 190px;
  }
  .village-card-body { padding: var(--space-4); }
}

/* ---------- Content layout ---------- */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-5) 0;
}
.page-hero .eyebrow { color: var(--copper-soft); }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--cream-alt);
}
.breadcrumb a { color: var(--copper-soft); }

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.content-columns > * { min-width: 0; }

.callout {
  background: var(--cream-alt);
  border-left: 4px solid var(--copper);
  padding: var(--space-4);
  border-radius: 4px;
}

.sidebar-card {
  background: var(--cream-alt);
  border: 2px solid var(--stone);
  border-radius: 6px;
  padding: var(--space-4);
}
.sidebar-card h3 { margin-bottom: var(--space-2); }
.sidebar-card ul { padding-left: 20px; margin: 0; }
.sidebar-card li { margin-bottom: var(--space-2); }

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}
.pros-cons > div {
  min-width: 0;
  border: 2px solid var(--forest);
  border-radius: 6px;
  padding: var(--space-4);
}
.pros-cons .cons { border-color: var(--burgundy); }
.pros-cons ul { margin: 0; padding-left: 20px; }
.pros-cons li { margin-bottom: var(--space-2); }

table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
}
.table-wrap { overflow-x: auto; }
table.compare th, table.compare td {
  border: 1px solid var(--stone);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
table.compare th {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-serif);
}
table.compare tr:nth-child(even) td { background: var(--cream-alt); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 620px;
}
.form-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.form-field label { font-weight: 700; }
.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 2px solid var(--stone);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--forest); }
.form-field.is-invalid input,
.form-field.is-invalid textarea { border-color: var(--burgundy); }
.error-msg {
  color: var(--burgundy-dark);
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status {
  padding: var(--space-3);
  border-radius: 4px;
  background: var(--cream-alt);
  border: 2px solid var(--forest);
  display: none;
}
.form-status.is-visible { display: block; }

.map-block {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--forest);
  background:
    radial-gradient(circle at 30% 30%, rgba(181,101,29,0.25), transparent 40%),
    linear-gradient(135deg, #dfd6bd 0%, #cbbf9d 45%, #a9b79a 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-block svg { width: 60px; height: 60px; }
.map-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: rgba(31,61,43,0.88);
  color: var(--cream);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */
.legal-section { margin-bottom: var(--space-5); }
.legal-section h2 { border-bottom: 2px solid var(--stone); padding-bottom: var(--space-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: var(--cream-alt);
  padding: var(--space-6) 0 var(--space-4);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}
.footer-inner > * { min-width: 0; }
.site-footer h2, .site-footer h3 { color: var(--cream); }
.site-footer a { color: var(--copper-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(245,239,227,0.2);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--copper);
  border-radius: 8px;
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 10px 30px var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie-actions button {
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.cookie-actions button:hover { background: var(--cream); color: var(--ink); }
.cookie-actions [data-cookie-choice="accept"] {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}
.cookie-actions [data-cookie-choice="accept"]:hover { background: var(--copper-soft); }

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .content-columns { grid-template-columns: 1fr; }
}

@media (max-width: 399px) {
  .container { padding: 0 var(--space-3); }
  h1 { font-size: 1.8rem; }
  .btn { padding: 10px 16px; font-size: 0.88rem; }
  .cookie-banner { padding: var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}