/* Vine Scout
   Palette: pale karst limestone, with the forest and Vranac of the logo.
   Type: Gloock (headings, wine-label contrast) and Schibsted Grotesk (everything else).
   Structure: sections meet in stepped edges, like dry-stone vineyard terraces. */
:root {
  --forest: #1F3A2E;
  --forest-deep: #15281F;
  --vranac: #5B1E2D;
  --stone: #E6E4DD;      /* page background: pale limestone */
  --paper: #F3F2ED;      /* raised surfaces */
  --cream: #F1EEE6;      /* light text on dark */
  --gold-light: #E9D6A8;
  --must: #C9A452;       /* gold, for small marks on dark only */
  --line: #CFCBC0;
  --ink-soft: #4A5A51;
  --serif: "Gloock", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step: clamp(36px, 5vw, 64px);       /* height of a terrace step */
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.65, 0, .25, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.06; letter-spacing: -0.01em; font-synthesis: none; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); z-index: 50;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--vranac); outline-offset: 3px; }

/* Header */
.site-header {
  position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; padding-bottom: 22px; color: var(--forest);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -0.01em;
}
.brand:hover { color: inherit; }
.mark-grapes { fill: var(--vranac); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-weight: 600; font-size: 16px; }
nav a { color: inherit; text-decoration: none; padding: 10px 0; }
nav a:hover { color: var(--vranac); }
nav a.lang { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 6px 9px; border: 1.5px solid currentColor; border-radius: var(--radius); }
nav a.lang:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
nav a.btn { padding: 11px 18px; }

/* The home page header sits over the hero photograph */
.site-header-over { position: absolute; top: 0; left: 0; right: 0; color: var(--cream); }
.site-header-over .mark-grapes { fill: currentColor; }
.site-header-over nav a:hover { color: var(--gold-light); }
.site-header-over nav a.lang:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

/* Mobile menu: the script adds the button; without it the links simply wrap */
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .js-nav .nav-toggle {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
    font: inherit; font-size: 16px; font-weight: 700; color: inherit; background: none; cursor: pointer;
    border: 1.5px solid currentColor; border-radius: var(--radius); padding: 9px 14px; line-height: 1;
  }
  .nav-toggle-icon { position: relative; width: 16px; height: 10px; }
  .nav-toggle-icon::before, .nav-toggle-icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform .35s var(--ease), top .35s var(--ease);
  }
  .nav-toggle-icon::before { top: 0; }
  .nav-toggle-icon::after { top: 8px; }
  .is-open .nav-toggle-icon::before { top: 4px; transform: rotate(45deg); }
  .is-open .nav-toggle-icon::after { top: 4px; transform: rotate(-45deg); }
  .js-nav .site-header .brand { position: relative; z-index: 2; }
  .js-nav .site-header nav {
    position: fixed; inset: 0; z-index: 1; overflow-y: auto;
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0;
    padding: 108px var(--gutter) 48px; background: var(--forest); color: var(--cream);
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--ease), visibility 0s linear .55s;
  }
  .js-nav .site-header.is-open nav { visibility: visible; clip-path: inset(0); transition: clip-path .55s var(--ease), visibility 0s; }
  .js-nav .site-header nav a {
    width: 100%; padding: 12px 0; color: var(--cream); border-bottom: 1px solid rgba(241, 238, 230, 0.16);
    font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 8.5vw, 42px); line-height: 1.1;
  }
  .js-nav .site-header nav a:hover { color: var(--gold-light); }
  .js-nav .site-header nav a.lang { width: auto; margin-top: 28px; border: 1.5px solid var(--cream); font-family: var(--sans); font-size: 15px; padding: 8px 12px; }
  .js-nav .site-header nav a.btn { width: auto; margin-top: 16px; border: 0; font-family: var(--sans); font-size: 17px; font-weight: 700; padding: 15px 22px; background: var(--cream); color: var(--vranac); }
  .js-nav .site-header.is-open { color: var(--cream); }
  .js-nav .site-header.is-open .mark-grapes { fill: currentColor; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 15px 24px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-dark:hover { background: var(--forest-deep); color: var(--cream); }
.btn-plum, nav a.btn-plum { background: var(--vranac); color: var(--cream); }
.btn-plum:hover, nav a.btn-plum:hover { background: #47161F; color: var(--cream); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--vranac); }
.btn-cream:hover { background: #FFFFFF; color: var(--vranac); }
.btn-outline-light { border-color: rgba(241, 238, 230, 0.8); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }

.lead { font-size: 20px; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--vranac); }
.eyebrow-light { color: var(--gold-light); }
.text-link { font-weight: 700; padding: 12px 0; align-self: flex-start; }
.text-link-light { color: var(--cream); }
.text-link-light:hover { color: var(--gold-light); }

/* Sections */
.band-paper { background: var(--paper); }
.band-plum { background: var(--vranac); color: var(--cream); }
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 40px; }
.section-title { font-size: clamp(2.3rem, 5vw, 4rem); }

/* Contact */
.contact { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.contact-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-intro > p { font-size: 18px; max-width: 30rem; }
.contact-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 18px; font-weight: 700; }
.form {
  flex: 1 1 420px; min-width: 0; background: var(--paper); border-radius: var(--radius);
  border-top: 4px solid var(--vranac); padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 8px;
}
.form label { font-weight: 700; font-size: 15px; margin-top: 10px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--forest); background: #FFFFFF;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--forest); outline: 3px solid rgba(31, 58, 46, 0.18); outline-offset: 0; }
.form button { margin-top: 18px; align-self: flex-start; }
.hidden { display: none; }
.form-note { font-size: 14px; margin-top: 10px; color: var(--ink-soft); }

/* Long-form pages (privacy) */
.prose { max-width: 720px; padding-top: 32px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 14px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose .updated { color: var(--ink-soft); font-size: 15px; }

/* Footer */
.site-footer { background: var(--forest); color: var(--cream); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-top: 44px; padding-bottom: 44px; font-size: 15px; }
.brand-light { color: var(--cream); font-size: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-light); }

/* Simple pages */
.simple {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; text-align: center; padding: 48px 24px;
}
.simple h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.simple p { max-width: 32rem; font-size: 18px; }

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .lead { font-size: 18px; }
}

/* ------------------------------------------------------------------
   Montenegrin wine guide and regions map
   ------------------------------------------------------------------ */
:root {
  --sea: #C8D8D6;
  --lake: #A3C1C2;
  --teal: #2E6E73;
  --ochre: #A8762A;
}

nav a[aria-current="page"] { color: var(--vranac); box-shadow: inset 0 -2px 0 var(--vranac); }

.page-hero { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.5px; max-width: 20ch; }
.page-hero .lead { max-width: 44rem; }
.page-hero .aside { max-width: 44rem; font-weight: 600; }
.crumb { font-weight: 700; align-self: flex-start; }

.keyfacts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--forest); }
.keyfacts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 18px 24px 0 0; }
.keyfacts dt { font-size: 15px; line-height: 1.4; max-width: 22ch; }
.keyfacts dd { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-synthesis: none; line-height: 1.1; color: var(--vranac); }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: inline-block; padding: 9px 16px; border: 1.5px solid var(--forest); border-radius: var(--radius);
  color: var(--forest); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
}
.jump a:hover { background: var(--forest); color: var(--cream); }
.jump a.jump-strong { background: var(--forest); color: var(--cream); }
.jump a.jump-strong:hover { background: #16291F; }

/* Grapes */
.grape-group { padding-top: 72px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.grape-group .section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.grape-group > p { max-width: 44rem; }
.grape-list { padding-bottom: 40px; }
.grape-entry {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px 64px;
  border-top: 2px solid var(--vranac); padding: 32px 0 56px; scroll-margin-top: 16px;
}
.grape-head { display: flex; flex-direction: column; gap: 14px; }
.grape-head h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.grape-pron { font-size: 15px; letter-spacing: 0.02em; color: var(--ink-soft); }
.grape-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.2;
  padding: 5px 10px; border-radius: var(--radius); background: var(--stone);
}
.tag-red::before, .tag-white::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--vranac); }
.tag-white::before { background: var(--gold-light); box-shadow: inset 0 0 0 1.5px #b79f63; }
.glance { margin: 10px 0 0; display: flex; flex-direction: column; }
.glance div { padding: 11px 0; border-top: 1px solid var(--line); }
.glance dt { font-size: 14px; font-weight: 700; }
.glance dd { margin: 2px 0 0; font-size: 16px; line-height: 1.5; }
.grape-body { display: flex; flex-direction: column; gap: 16px; max-width: 40rem; font-size: 18px; }

/* Regions teaser */
.region-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.region-teaser div { border-top: 2px solid var(--forest); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.region-teaser h3 { font-size: 24px; }
.btn-cream { background: var(--cream); color: var(--vranac); }
.btn-cream:hover { background: #FFFFFF; color: var(--vranac); }
.cta-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-row p { max-width: 36rem; font-size: 18px; }
.cta-copy { display: flex; flex-direction: column; gap: 12px; }

.sources { padding-top: 0; padding-bottom: 72px; }
.sources h2 { font-size: 26px; margin-bottom: 14px; }
.sources ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; max-width: 60rem; }
.sources li { margin-bottom: 6px; }
.sources p { font-size: 15px; max-width: 60rem; margin-top: 12px; }

/* Map page */
.map-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "map cards" "nav cards";
  gap: 28px 40px; align-items: start; padding-bottom: 72px;
}
.map-col { grid-area: map; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map-layout > .area-cards { grid-area: cards; min-width: 0; }
.map-layout > .area-nav { grid-area: nav; min-width: 0; }
.js-map > .area-cards { position: sticky; top: 16px; }
.map-note { font-size: 14px; color: var(--ink-soft); }

.wine-map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sea); }
.wine-map svg { display: block; width: 100%; height: auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.wine-map.is-zoomed svg { touch-action: none; cursor: grab; }
.wine-map.is-dragging svg { cursor: grabbing; }
.wine-map .nb { fill: #DEDBD2; stroke: #CBC6B9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wine-map .land { fill: var(--paper); }
.wine-map .border { fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.wine-map .lake { fill: var(--lake); pointer-events: none; }
.wine-map .area {
  cursor: pointer; outline: none; stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; fill-opacity: 0.84; transition: fill-opacity 0.15s;
}
.wine-map .area-skadar { fill: var(--vranac); }
.wine-map .area-coast { fill: var(--teal); }
.wine-map .area-nudo { fill: var(--ochre); }
.wine-map .area-north { fill: var(--forest); fill-opacity: 0.3; stroke: var(--forest); stroke-dasharray: 5 3; }
.wine-map .area-soft { fill: url(#vs-hatch); fill-opacity: 1; stroke: var(--teal); stroke-width: 1; stroke-dasharray: 4 3; }
.wine-map .hatch-bg { fill: var(--paper); }
.wine-map .hatch-line { stroke: var(--teal); stroke-width: 2.2; opacity: 0.45; }
.wine-map.has-selection .area-soft:not(.is-selected) { opacity: 0.45; }
.wine-map .area-soft.is-selected, .wine-map .area-soft.is-hover { stroke-width: 2; stroke-dasharray: none; }
.wine-map .area:hover, .wine-map .area:focus-visible { fill-opacity: 1; }
.wine-map .area:focus-visible { stroke: var(--forest); stroke-width: 3; stroke-dasharray: none; }
.wine-map.has-selection .area { fill-opacity: 0.24; }
.wine-map.has-selection .area:hover { fill-opacity: 0.6; }
.wine-map.has-selection .area.is-selected { fill-opacity: 1; stroke: var(--forest); stroke-width: 2.5; stroke-dasharray: none; }
.wine-map text { font-family: var(--sans); pointer-events: none; }
.wine-map .town, .wine-map .peak, .wine-map .lbl { pointer-events: none; }
.wine-map .lbl-water { font-family: var(--serif); font-size: 14px; font-weight: 400; font-synthesis: none; fill: #3A6568; letter-spacing: 0.5px; }
.wine-map .lbl-nb { font-size: 11px; font-weight: 700; letter-spacing: 2px; fill: #8F8A7D; }
.wine-map .town circle { fill: var(--forest); stroke: var(--paper); stroke-width: 1.5; }
.wine-map .town text { font-size: 12.5px; font-weight: 600; fill: var(--forest); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }
.wine-map .town-minor text { font-weight: 400; font-size: 11.5px; }
.wine-map .town-minor circle { r: 2.4px; }
.wine-map.is-zoomed-out .town-minor { display: none; }
.wine-map.is-narrow.is-zoomed-out .town-sec { display: none; }
.wine-map.is-narrow .lbl-nb { font-size: 9px; letter-spacing: 1.5px; }
.wine-map.is-narrow .lbl-water { font-size: 12px; }
.wine-map .river { fill: none; stroke: #8DB2B4; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.wine-map .river-out { stroke-width: 1.1; opacity: 0.8; }
.wine-map .lbl-range { font-family: var(--serif); font-style: italic; font-size: 12.5px; letter-spacing: 1.5px; fill: #8E846F; }
.wine-map .peak path { fill: #8E846F; }
.wine-map .peak text { font-size: 11px; font-weight: 600; fill: #6C6452; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.wine-map .peak .ele { font-weight: 400; }
.wine-map.is-zoomed-out .peak text { display: none; }
.wine-map.is-narrow.is-zoomed-out .lbl-range-g { display: none; }
.wine-map.has-selection .lbl-range-g, .wine-map.has-hover .lbl-range-g { opacity: 0.5; }
.wine-map .area.is-hover { fill-opacity: 1; stroke: var(--forest); stroke-width: 2; stroke-dasharray: none; }

.wine-map .winery { cursor: pointer; outline: none; }
.wine-map .winery .pin { fill: var(--gold-light); stroke: var(--vranac); stroke-width: 2.5; }
.wine-map .winery .badge { fill: #FFFFFF; stroke: var(--vranac); stroke-width: 2; }
.wine-map .winery:hover .pin, .wine-map .winery:focus-visible .pin { fill: #FFFFFF; stroke: var(--forest); stroke-width: 3.5; }
.wine-map .winery:hover .badge, .wine-map .winery:focus-visible .badge { stroke: var(--forest); stroke-width: 3; }
.wine-map .winery text { font-size: 12.5px; font-weight: 700; fill: var(--vranac); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; display: none; pointer-events: auto; }
.wine-map.show-names .winery text { display: block; }

.map-controls { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.map-controls button {
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1; color: var(--forest); background: var(--paper);
  border: 1.5px solid var(--forest); border-radius: var(--radius); min-width: 40px; height: 40px; padding: 0 14px; cursor: pointer;
}
.map-controls button:hover:not(:disabled) { background: var(--forest); color: var(--cream); }
.map-controls button:disabled { opacity: 0.4; cursor: default; }
.map-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; white-space: nowrap;
  background: var(--forest); color: var(--cream); font-size: 14px; font-weight: 600; line-height: 1.2; padding: 7px 11px; border-radius: var(--radius);
}
.map-tip[hidden] { display: none; }
.map-credit { position: absolute; left: 12px; right: 12px; bottom: 8px; font-size: 10.5px; line-height: 1.3; color: #4f7275; pointer-events: none; }

.area-cards { display: flex; flex-direction: column; gap: 20px; }
.area-card { background: var(--paper); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.js-map .area-card { display: none; }
.js-map .area-card.is-active { display: flex; }
.area-kicker { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.area-kicker a { color: inherit; }
.area-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.area-official { font-size: 15px; color: var(--ink-soft); margin-top: -8px; }
.facts { margin: 6px 0 0; display: flex; flex-direction: column; }
.facts div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; font-weight: 700; padding-top: 2px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; }
.area-hint { font-weight: 700; color: var(--vranac); }
.area-producers { border-top: 2px solid var(--vranac); padding-top: 14px; }
.area-producers h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.area-producers ul { margin: 0; padding-left: 20px; }

.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none; }
.swatch-skadar { background: var(--vranac); }
.swatch-coast { background: var(--teal); }
.swatch-nudo { background: var(--ochre); }
.swatch-north { background: rgba(31, 58, 46, 0.3); box-shadow: inset 0 0 0 1.5px var(--forest); }
.swatch-hatch { background: repeating-linear-gradient(45deg, rgba(46, 110, 115, 0.5) 0 2px, var(--paper) 2px 5px); box-shadow: inset 0 0 0 1.5px var(--teal); }

.area-nav { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; font-weight: 400; }
.area-group { display: flex; flex-direction: column; gap: 9px; }
.area-region { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-weight: 700; color: var(--forest); text-decoration: none; padding: 4px 0; }
.area-region:hover { color: var(--vranac); }
.area-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.area-group li a {
  display: inline-block; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--forest); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.2;
}
.area-group li a:hover { border-color: var(--forest); }
.area-nav a[aria-current="true"] { color: var(--vranac); }
.area-group li a[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.table-note { font-size: 15px; color: var(--ink-soft); max-width: 60rem; margin-top: -20px; }
.data-table th, .data-table td { text-align: left; padding: 11px 16px 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 14px; border-top: 0; border-bottom: 2px solid var(--forest); }
.data-table td.num, .data-table th.num { text-align: right; padding-right: 28px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.group th { font-family: var(--serif); font-size: 20px; font-weight: 400; font-synthesis: none; border-top: 2px solid var(--forest); }
.data-table tr.group th .swatch { margin-right: 9px; }
.data-table tr.group td { border-top: 2px solid var(--forest); font-weight: 700; }
.data-table tbody th { font-weight: 400; }
.data-table tbody tr:not(.group) th { padding-left: 22px; }

@media (max-width: 900px) {
  .grape-entry { grid-template-columns: minmax(0, 1fr); padding-bottom: 44px; }
  .map-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "cards" "nav"; gap: 24px; }
  .js-map > .area-cards { position: static; }
}
@media (max-width: 520px) {
  .area-card { padding: 24px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .keyfacts dd { font-size: 26px; }
  .map-controls button { min-width: 36px; height: 36px; padding: 0 11px; }
  .data-table { min-width: 0; font-size: 15px; }
  .data-table td.num, .data-table th.num { padding-right: 0; white-space: normal; }
  .data-table th, .data-table td { padding-right: 10px; }
  .data-table tr.group th { font-size: 17px; }
  .data-table tbody tr:not(.group) th { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wine-map .area { transition: none; }
}


/* ------------------------------------------------------------------
   Home page: hero curtain, terraces and scroll-driven panels
   ------------------------------------------------------------------ */

/* Hero. It stays put while the page slides up over it; the photographs crossfade slowly. */
.hero-photo {
  position: sticky; top: var(--hero-top, 0px); z-index: 0;
  overflow: hidden; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1080px;
  display: flex; align-items: flex-end; background: var(--forest); color: var(--cream);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%;
  opacity: 0; transition: opacity 2.4s cubic-bezier(.45, 0, .2, 1); will-change: opacity;
}
.hero-slide.is-on { opacity: 1; z-index: 2; }
.hero-slide.is-under { opacity: 1; z-index: 1; transition: none; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 31, 24, 0.55) 0%, rgba(16, 31, 24, 0) 24%),
    linear-gradient(0deg, rgba(16, 31, 24, 0.88) 0%, rgba(16, 31, 24, 0.45) 42%, rgba(16, 31, 24, 0) 72%);
}
.hero-photo::before {   /* darkens gently as the next panel covers the hero */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: #0F1D16; opacity: var(--cover, 0);
}
.hero-inner { width: 100%; padding-top: 128px; padding-bottom: clamp(36px, 5vw, 64px); }
.hero-photo h1 {
  font-size: clamp(2.9rem, 7.6vw, 7rem); line-height: 0.95; letter-spacing: -0.025em; max-width: 10.5em;
  animation: hero-lift 1.2s var(--ease) 0.1s both;
}
@keyframes hero-lift {
  from { clip-path: inset(-20% -4% 100% -4%); transform: translateY(0.3em); }
  to { clip-path: inset(-20% -4% -20% -4%); transform: none; }
}
.hero-foot {
  position: relative; margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(22px, 2.4vw, 30px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 56px;
}
.hero-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(241, 238, 230, 0.4);
  transform-origin: 0 50%; animation: hero-rule 1.2s var(--ease) 0.5s both;
}
@keyframes hero-rule { from { transform: scaleX(0); } to { transform: none; } }
.hero-foot .lead { color: var(--cream); font-size: clamp(17px, 1.35vw, 20px); max-width: 33rem; }
.hero-foot > .lead, .hero-foot > .actions { animation: hero-fade 1s var(--ease-out) both; animation-delay: 0.8s; }
.hero-foot > .actions { animation-delay: 0.95s; }
@keyframes hero-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-kicker { font-size: 15px; font-weight: 700; color: var(--gold-light); margin-bottom: 18px; animation: hero-fade 1s var(--ease-out) both; }
.photo-band-copy .eyebrow { margin-bottom: -6px; }

/* Everything after the hero slides over it */
.slabs { position: relative; z-index: 1; }
/* How it works: three steps set down like terraces, joined by one line that draws once */
.how { background: var(--stone); }
.how .wrap { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(80px, 10vw, 136px); }
.how-title { margin-bottom: clamp(40px, 5vw, 64px); }
.how-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.how-head p { font-size: 18px; color: var(--ink-soft); max-width: 26rem; }
.route { --gap: clamp(24px, 3vw, 40px); --drop: clamp(40px, 5vw, 72px); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stop { position: relative; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.stop:nth-child(2) { margin-top: var(--drop); }
.stop:nth-child(3) { margin-top: calc(var(--drop) * 2); }
.stop::before {   /* the tread */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(100% + var(--gap)); background: var(--vranac);
  transform-origin: 0 50%;
}
.stop:last-child::before { width: 100%; }
.stop + .stop::after {   /* the riser down from the previous step */
  content: ""; position: absolute; left: calc(-1 * var(--gap)); top: calc(-1 * var(--drop)); width: 2px; height: calc(var(--drop) + 2px); background: var(--vranac);
  transform-origin: 50% 0;
}
.stop-photo { margin: 0 0 10px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #D3CFC4; }
.stop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stop h3 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.9rem, 2.6vw, 2.4rem); }
.stop-num { font-size: 0.62em; color: var(--vranac); }
.stop p { font-size: 17px; max-width: 24rem; }
/* the line draws once when the steps come into view */
.js-route .stop::before { transform: scaleX(0); transition: transform .7s var(--ease); }
.js-route .stop + .stop::after { transform: scaleY(0); transition: transform .3s var(--ease); }
.js-route .stop > * { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s var(--ease-out); }
.js-route .route.is-drawn .stop::before, .js-route .route.is-drawn .stop + .stop::after { transform: none; }
.js-route .route.is-drawn .stop > * { opacity: 1; transform: none; }
.js-route .stop:nth-child(1) > * { transition-delay: .1s; }
.js-route .stop:nth-child(2)::after { transition-delay: .7s; }
.js-route .stop:nth-child(2)::before { transition-delay: 1s; }
.js-route .stop:nth-child(2) > * { transition-delay: .9s; }
.js-route .stop:nth-child(3)::after { transition-delay: 1.7s; }
.js-route .stop:nth-child(3)::before { transition-delay: 2s; }
.js-route .stop:nth-child(3) > * { transition-delay: 1.9s; }

/* Who we work with: two halves, the darker one a terrace higher */
.audiences { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.aud {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(56px, 7vw, 104px) clamp(28px, 5vw, 80px) clamp(64px, 8vw, 112px);
}
.aud > * { max-width: 31rem; }
.aud:first-child { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.aud:last-child { padding-right: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.aud-light { --aud-bg: var(--stone); background: var(--stone); margin-top: var(--step); }
.aud-dark { --aud-bg: var(--forest); }
.aud-dark { background: var(--forest); color: var(--cream); }
.aud h2 { font-size: clamp(2.1rem, 3.3vw, 3.1rem); line-height: 1.03; }
.aud-for { font-size: 15px; font-weight: 700; color: var(--vranac); }
.aud-dark .aud-for { color: var(--must); }
.aud-list { list-style: none; margin: 4px 0 0; padding: 0; }
.aud-list li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); font-size: 17px; }
.aud-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--vranac); }
.aud-dark .aud-list li { border-top-color: rgba(241, 238, 230, 0.18); }
.aud-dark .aud-list li::before { background: var(--must); }

/* Photo band */
.photo-band {
  position: relative; overflow: hidden; isolation: isolate; color: var(--cream);
  min-height: clamp(480px, 72vh, 740px); display: flex; align-items: center; background: var(--forest);
}
.photo-band-img {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 45%;
  z-index: -2; will-change: transform;
}
.photo-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 31, 24, 0.72), rgba(16, 31, 24, 0.15) 70%); }
.photo-band-inner { width: 100%; padding-top: 104px; padding-bottom: calc(104px + var(--step)); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.photo-band .section-title { max-width: 15ch; }
.photo-band-right::after { background: linear-gradient(270deg, rgba(16, 31, 24, 0.84) 0%, rgba(16, 31, 24, 0.58) 42%, rgba(16, 31, 24, 0.05) 78%); }
.photo-band-right .photo-band-inner { align-items: flex-end; }
.photo-band-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; width: min(560px, 100%); }

/* Contact rises over the bottom of the photo band, one terrace on the left */
.contact-slab {
  position: relative; background: var(--stone); margin-top: calc(-1 * var(--step));
  clip-path: polygon(0 0, 40% 0, 40% var(--step), 100% var(--step), 100% 100%, 0 100%);
}
.contact-slab .contact { padding-top: calc(var(--step) + clamp(56px, 8vw, 104px)); padding-bottom: clamp(64px, 9vw, 112px); }
.contact-photo { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; max-width: 540px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }

@media (max-width: 880px) {
  .hero-photo::after { background: linear-gradient(180deg, rgba(16, 31, 24, 0.55) 0%, rgba(16, 31, 24, 0) 22%), linear-gradient(0deg, rgba(16, 31, 24, 0.92) 0%, rgba(16, 31, 24, 0.6) 50%, rgba(16, 31, 24, 0.15) 100%); }
  .hero-inner { padding-top: 112px; }
  .hero-foot { gap: 22px; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .stop:nth-child(n) { margin-top: 0; }
  .stop::before, .stop:last-child::before { width: 100%; }
  .stop + .stop::after { display: none; }
  .stop-photo { aspect-ratio: 3 / 2; }
  .js-route .stop:nth-child(n)::before, .js-route .stop:nth-child(n) > * { transition-delay: 0s; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .aud { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
  .aud-light { margin-top: 0; }
  /* on phones the step sits across the top of the first panel; painted, not clipped */
  .audiences > :first-child {
    padding-top: calc(var(--step) + 52px);
    background:
      linear-gradient(var(--aud-bg), var(--aud-bg)) right top / 42% 100% no-repeat,
      linear-gradient(var(--aud-bg), var(--aud-bg)) left var(--step) / 100% 100% no-repeat;
  }
  .contact-photo { display: none; }
  .photo-band-right::after { background: linear-gradient(0deg, rgba(16, 31, 24, 0.86), rgba(16, 31, 24, 0.4)); }
  .photo-band-right .photo-band-inner { align-items: flex-start; }
  .contact-slab { clip-path: polygon(0 0, 52% 0, 52% var(--step), 100% var(--step), 100% 100%, 0 100%); }
}
@media (max-width: 520px) {
  .hero-photo { min-height: 580px; }
  .hero-photo h1 { font-size: clamp(2.8rem, 13vw, 3.9rem); }
  .hero-foot .actions { width: 100%; }
  .hero-foot .actions .btn { flex: 1 1 auto; }
  .photo-band { min-height: 0; }
  .photo-band-inner { padding-top: 80px; }
}

/* Scroll reveal on the guide pages: only hidden once the script is running */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s var(--ease-out); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .reveal-d1 { transition-delay: 0.1s; }
.js-reveal .reveal-d2 { transition-delay: 0.2s; }

/* ---------- Montenegrin wine page ---------- */
.page-hero-tight { padding-bottom: 36px; }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.guide-intro .lead { font-size: 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); line-height: 1; letter-spacing: -0.02em; }
.map-guide { padding-bottom: 32px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.map-legend a { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); text-decoration: none; padding: 4px 0; }
.map-legend a:hover, .map-legend a[aria-current="true"] { color: var(--vranac); }
.area-more { font-weight: 700; align-self: flex-start; }
.map-guide .area-card { min-height: 100%; }
.js-map .area-cards .area-card.is-active { animation: card-in 0.28s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.keyfacts-band .keyfacts { margin: 0; }
.keyfacts-band { padding-bottom: 72px; }

/* Grape carousel. Buttons and tabs drive an eased scroll; the tab underline,
   progress line and slide fades follow the scroll position continuously. */
.grapes-section { padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); background: var(--stone); border-top: 1px solid var(--line); }
.grapes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 28px; }
.grapes-head > div:first-child { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button {
  width: 50px; height: 50px; border-radius: var(--radius); border: 1.5px solid var(--forest); background: transparent; color: var(--forest);
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s, opacity .2s;
}
.carousel-arrows button:hover:not(:disabled) { background: var(--forest); color: var(--cream); }
.carousel-arrows button:disabled { opacity: 0.28; cursor: default; }
.grape-tabs {
  position: relative; display: flex; gap: 0 clamp(22px, 3vw, 44px); margin: 0 0 28px; padding: 0; list-style: none;
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.grape-tabs::-webkit-scrollbar { display: none; }
.grape-tabs li { flex: none; }
.grape-tabs a {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 0 14px;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); line-height: 1.1; transition: color .3s;
}
.grape-tabs a:hover, .grape-tabs a[aria-current="true"] { color: var(--forest); }
.grape-tabs .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vranac); }
.grape-tabs .dot-white { background: var(--gold-light); box-shadow: inset 0 0 0 1.5px #b79f63; }
.grape-tabs .tab-bar {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 3px; background: var(--vranac);
  transform-origin: 0 0; pointer-events: none;
}
.grape-tabs:not(.has-bar) a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--vranac); }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; outline: none;
}
.carousel-track.is-animating { scroll-snap-type: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--vranac); outline-offset: 4px; }
.grape-slide {
  flex: 0 0 calc(100% - clamp(56px, 8vw, 120px)); scroll-snap-align: start;
  background: var(--paper); border-radius: var(--radius); border-top: 4px solid var(--vranac);
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 52px) clamp(36px, 4.4vw, 56px); gap: 24px 64px;
}
.grape-slide:has(.tag-white) { border-top-color: var(--must); }
.js-carousel .grape-slide { opacity: var(--o, 1); }
.js-carousel .grape-slide > * { transform: translate3d(var(--shift, 0px), 0, 0); }
.grape-slide .grape-head h3 { font-size: clamp(2.6rem, 4.6vw, 3.8rem); }
.band-plum + .sources { padding-top: 64px; }
.grape-more { display: none; }
.carousel-foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.carousel-progress { position: relative; flex: 0 1 220px; height: 2px; background: var(--line); overflow: hidden; }
.carousel-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--forest); }
.carousel-count { font-size: 14px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Tasting call to action with a photograph */
.cta-photo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 40px 56px; }
.cta-photo .cta-copy { gap: 18px; align-items: flex-start; }
.cta-photo figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }

@media (max-width: 900px) {
  .guide-intro { grid-template-columns: minmax(0, 1fr); }
  .cta-photo { grid-template-columns: minmax(0, 1fr); }
  .wine-map.is-narrow .map-credit { display: none; }
  .js-carousel .grape-slide:not(.is-open) .grape-body > p:nth-child(n+2) { display: none; }
  .js-carousel .grape-more {
    display: inline-block; align-self: flex-start; font: inherit; font-weight: 700; font-size: 16px; color: var(--vranac);
    background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  }
}
@media (max-width: 760px) {
  .grapes-head { margin-bottom: 20px; }
  .carousel-arrows { display: none; }
  /* the grape names stay at the top of the screen while you read a long entry */
  .grape-tabs {
    position: sticky; top: 0; z-index: 5; background: var(--stone);
    margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .grape-tabs.at-end { -webkit-mask-image: none; mask-image: none; }
  .grape-tabs a { font-size: 21px; padding: 14px 0 14px; }
  .grape-slide { flex-basis: calc(100% - 26px); padding: 28px 22px 30px; }
  .carousel-track { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wine-map .area { transition: none; }
  .hero-slide { transition: none; }
  .js-route .stop::before, .js-route .stop + .stop::after, .js-route .stop > * { transition: none; }
  .hero-photo h1, .hero-foot > .lead, .hero-foot > .actions, .hero-foot::before { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .js-map .area-cards .area-card.is-active { animation: none; }
  .js-nav .site-header nav { transition: none; }
}
.map-guide { grid-template-areas: "map cards"; }
@media (max-width: 900px) { .map-guide { grid-template-areas: "map" "cards"; } }
