/* ============================================================
   DESIGN SYSTEM
   ============================================================ */

html {
  scroll-behavior: smooth;
}

:root {
  --crimson:          #800020;
  --charcoal:         #1A1A1A;
  --oak:              #D2B48C;
  --cream:            #F5F0E8;
  --white:            #FFFFFF;
  --wine:             #ff507985;

  --font-display:     'Playfair Display', serif;
  --font-body:        'DM Sans', sans-serif;
  --font-mono:        'DM Mono', monospace;

  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

body {
  font-family:             var(--font-body);
  background:              var(--charcoal);
  color:                   var(--white);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:              hidden;
  max-width:               100vw;
}

body.menu-open {
  overflow: hidden;
}


/* ============================================================
   LAYOUT UTILITY — CONTAINER
   ============================================================ */

.container {
  width:      100%;
  max-width:  1440px;
  margin:     0 auto;
  padding:    0 48px;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}


/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.lang-switcher {
  position:    fixed;
  top:         0;
  right:       48px;
  height:      76px;
  display:     flex;
  align-items: center;
  gap:         6px;
  z-index:     1001;
}

.lang-link {
  font-family:     var(--font-body);
  font-size:       10px;
  font-weight:     400;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  color:           rgba(255, 255, 255, 0.35);
  text-decoration: none;
  cursor:          pointer;
  transition:      color 0.25s ease;
}

.lang-link:hover {
  color: var(--crimson);
}

.lang-link.active {
  color:  var(--oak);
  cursor: default;
  pointer-events: none;
}

.lang-divider {
  font-family: var(--font-body);
  font-size:   10px;
  color:       rgba(255, 255, 255, 0.2);
  user-select: none;
}

@media (max-width: 1280px) {
  .lang-switcher {
    display: none;
  }
}


/* ============================================================
   NAVIGATION — WRAPPER
   ============================================================ */

#main-nav {
  position:   fixed;
  top:        0;
  left:       0;
  width:      100%;
  z-index:    1000;
  background: transparent;
  transition: var(--transition-smooth);
}

/* Scrolled state — toggled by JS via .scrolled class */
#main-nav.scrolled {
  background:       rgba(26, 26, 26, 0.97);
  backdrop-filter:  blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:    1px solid rgba(210, 180, 140, 0.15);
  box-shadow:       0 4px 24px rgba(0, 0, 0, 0.3);
}


/* ============================================================
   NAVIGATION — INNER LAYOUT
   ============================================================ */

.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          76px;
}


/* ============================================================
   LOGO
   ============================================================ */

.nav-logo {
  display:         flex;
  align-items:     center;
  text-decoration: none;
  transition:      var(--transition-smooth);
}

.nav-logo:hover {
  opacity: 0.82;
}

.nav-logo-img {
  height:    36px;
  width:     auto;
  display:   block;
}


/* ============================================================
   NAV LINKS
   ============================================================ */

.nav-links {
  display:     flex;
  list-style:  none;
  gap:         36px;
  align-items: center;
}

.nav-links a {
  position:        relative;
  font-family:     var(--font-body);
  font-size:       12px;
  font-weight:     400;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  color:           rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition:      var(--transition-smooth);
}

/* Asymmetric underline: enters left→right, exits left→right */
.nav-links a::after {
  content:          '';
  position:         absolute;
  bottom:           -2px;
  left:             0;
  width:            100%;
  height:           1px;
  background-color: var(--crimson);
  transform:        scaleX(0);
  transform-origin: right center;
  transition:       transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-links a:hover {
  color:            var(--oak);
}

.nav-links a:hover::after {
  transform:        scaleX(1);
  transform-origin: left center;
}

.nav-links a.nav-link--active {
  color: var(--oak);
}

.nav-links a.nav-link--active::after {
  transform:        scaleX(1);
  transform-origin: left center;
}


/* ============================================================
   CTA BUTTON
   ============================================================ */

.nav-cta {
  display:         inline-block;
  padding:         9px 22px;
  border-radius:   2px;
  border:          1.5px solid var(--crimson);
  background:      transparent;
  color:           var(--crimson);
  font-family:     var(--font-body);
  font-size:       11px;
  font-weight:     500;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  text-decoration: none;
  cursor:          pointer;
  white-space:     nowrap;
  transition:      var(--transition-smooth);
}

/* Hover — transparent (top-of-page) state */
.nav-cta:hover {
  background: var(--crimson);
  color:      var(--white);
}

/* CTA — scrolled state: filled */
#main-nav.scrolled .nav-cta {
  background:   var(--crimson);
  color:        var(--white);
  border-color: var(--crimson);
}

/* Hover — scrolled state: darken */
#main-nav.scrolled .nav-cta:hover {
  filter: brightness(0.85);
}


/* ============================================================
   HAMBURGER
   ============================================================ */

.hamburger {
  display:         none;   /* visible only on mobile via media query */
  flex-direction:  column;
  justify-content: center;
  align-items:     center;
  gap:             5px;
  width:           36px;
  height:          36px;
  padding:         6px;
  background:      none;
  border:          none;
  cursor:          pointer;
}

.hamburger span {
  display:       block;
  width:         22px;
  height:        2px;
  background:    var(--white);
  border-radius: 1px;
  transition:    transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger color in scrolled state */
#main-nav.scrolled .hamburger span {
  background: var(--oak);
}

/* Hamburger → X, triggered by body.menu-open (set in main.js openMenu/closeMenu) */
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity:   0;
  transform: scaleX(0);
}

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   RESPONSIVE — MOBILE  (max-width: 1280px)
   ============================================================ */

@media (max-width: 1560px) {
  .nav-inner {
    padding-right: clamp(100px, 8vw, 200px);
  }
}

@media (max-width: 1280px) {

  .nav-inner {
    padding-right: 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}


/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */

@media (max-width: 768px) {

  /* --- Navbar behind the drawer ---
     #main-nav sits above .nav-drawer (both otherwise 1000) so the
     hamburger — nested inside #main-nav — stays visible/clickable
     as the close (X) control. The logo (and the scrolled-state bar
     background, if present) fade out separately so they don't show
     through next to the drawer. */

  body.menu-open #main-nav {
    z-index: 1001;
  }

  /* Scrolled bar fades out along with the logo while the drawer is open */
  body.menu-open #main-nav.scrolled {
    background:               transparent;
    backdrop-filter:          none;
    -webkit-backdrop-filter:  none;
    border-bottom-color:      transparent;
    box-shadow:               none;
  }

  body.menu-open .nav-logo {
    opacity:        0;
    pointer-events: none;
  }

  /* Fade back in on close takes a second longer than the fade out,
     and waits for the drawer's own exit animation to clear first */
  body:not(.menu-open) .nav-logo {
    transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
  }

  /* --- Overlay backdrop --- */

  .mobile-menu {
    position:       fixed;
    inset:          0;
    z-index:        999;
    background:     rgba(0, 0, 0, 0.5);
    opacity:        0;
    pointer-events: none;
    transition:     opacity 0.3s ease;
  }

  .mobile-menu.active {
    opacity:        1;
    pointer-events: auto;
  }

  /* --- Drawer panel --- */

  .nav-drawer {
    position:       fixed;
    top:            0;
    right:          0;
    width:          85vw;
    max-width:      360px;
    height:         100dvh;
    background:     var(--charcoal);
    display:        flex;
    flex-direction: column;
    transform:      translateX(100%);
    transition:     transform 0.35s ease-out;
    z-index:        1000;
    padding:        28px 28px 40px;
    overflow-y:     auto;
    box-sizing:     border-box;
  }

  .mobile-menu.active .nav-drawer {
    transform: translateX(0);
  }

  /* --- Header: logo (hamburger/X in the navbar handles open + close) --- */

  .nav-drawer__header {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    margin-bottom:   48px;
  }

  .nav-drawer__logo {
    height:  32px;
    width:   auto;
    display: block;
  }

  /* --- Links --- */

  .nav-drawer__links {
    flex:           1;
    display:        flex;
    flex-direction: column;
  }

  .nav-drawer__links a {
    position:        relative;
    font-family:     var(--font-body);
    font-size:       18px;
    font-weight:     400;
    color:           rgba(255, 255, 255, 0.85);
    padding:         16px 0;
    border-bottom:   1px solid rgba(210, 180, 140, 0.15);
    text-decoration: none;
    display:         block;

    /* Initial hidden state — animated in via GSAP in main.js */
    opacity:   0;
    transform: translateX(24px);
  }

  .nav-drawer__links a.nav-link--active {
    color: var(--white);
  }

  /* Active page — short crimson underline on the link itself, separate from the row separator */
  .nav-drawer__links a.nav-link--active::after {
    content:    '';
    position:   absolute;
    left:       0;
    bottom:     -1px;
    width:      32px;
    height:     2px;
    background: var(--crimson);
  }

  /* --- Footer: language switcher + CTA --- */

  .nav-drawer__footer {
    margin-top:     32px;
    display:        flex;
    flex-direction: column;
    gap:            16px;
  }

  .nav-drawer__footer .mobile-lang-switcher {
    display:     flex;
    align-items: center;
    gap:         10px;
  }

  .nav-drawer__footer .mobile-lang-switcher .lang-link {
    font-family:     var(--font-mono);
    font-size:       11px;
    letter-spacing:  0.15em;
    color:           rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition:      color 0.25s ease;
  }

  .nav-drawer__footer .mobile-lang-switcher .lang-link.active {
    color: var(--white);
  }

  .nav-drawer__footer .mobile-lang-switcher .lang-divider {
    color:     rgba(255, 255, 255, 0.25);
    font-size: 11px;
  }

  .nav-drawer__footer .mobile-cta {
    display:         block;
    width:           100%;
    padding:         16px 24px;
    background:      var(--crimson);
    color:           var(--white);
    border:          none;
    border-radius:   2px;
    font-family:     var(--font-body);
    font-size:       12px;
    font-weight:     500;
    letter-spacing:  0.1em;
    text-transform:  uppercase;
    text-decoration: none;
    text-align:      center;
    cursor:          pointer;
    box-sizing:      border-box;
    transition:      var(--transition-smooth);
  }

  .nav-drawer__footer .mobile-cta:hover {
    filter: brightness(0.85);
  }
}


/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  position:        relative;
  min-height:      100vh;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  align-items:     stretch;
  background:      var(--charcoal);
  overflow:        hidden;
}

#hero > .container {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
}

/* --- Background image rotator --- */

.hero-bg {
  position: absolute;
  inset:    0;
  z-index:  0;
}

.hero-bg-slide {
  position:            absolute;
  inset:               0;
  background-size:     cover;
  background-position: center right;
  opacity:             0;
  transition:          opacity 1.8s ease;
}

.hero-bg-slide.active {
  opacity: 1;
}

/* Uniform dark overlay over rotating background images */
.hero-bg-overlay {
  position:   absolute;
  inset:      0;
  background: rgba(26, 26, 26, 0.65);
  z-index:    1;
}

#hero .hero-bg-overlay {
  background: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.90) 0%,
    rgba(26, 26, 26, 0.85) 40%,
    rgba(26, 26, 26, 0.65) 60%,
    rgba(26, 26, 26, 0.60) 100%
  );
}

/* --- Content layer --- */

.hero-content {
  position:       relative;
  z-index:        2;
  padding-top:    160px;
  padding-bottom: 80px;
  width:          100%;
  max-width:      760px;
}

.hero-kicker,
.hero-title,
.hero-sub,
.hero-stats {
  text-align: left;
}

/* --- Kicker --- */

.hero-kicker {
  font-family:     var(--font-body);
  font-size:       11px;
  font-weight:     400;
  letter-spacing:  0.2em;
  text-transform:  uppercase;
  color:           var(--oak);
  margin-bottom:   32px;
  overflow:        hidden;
}

.hero-kicker span {
  display:   inline-block;
  transform: translateY(100%);
  opacity:   0;
}

/* --- H1 heading --- */

.hero-title {
  font-family:     var(--font-display);
  font-weight:     700;
  font-size:       clamp(48px, 6.4vw, 92px);
  line-height:     1.0;
  letter-spacing:  -0.02em;
  color:           var(--white);
  margin-bottom:   36px;
  display:         flex;
  flex-direction:  column;
  gap:             0;
  opacity:         0;  /* hides raw .hero-line text before JS wraps it */
}

.hero-line {
  display:        block;
  overflow:       hidden;
  padding-bottom: 0.15em;
  margin-bottom:  -0.15em;
}

.hero-line-inner {
  display:    block;
  transform:  translateY(110%);
  opacity:    0;
  will-change: transform, opacity;
}

/* Italic crimson accent — "vina koja" */
.hero-title em {
  font-style:  italic;
  font-weight: 600;
  color:       var(--crimson);
  -webkit-text-stroke-width: 0px;
  -webkit-text-stroke-color: var(--oak);
  text-shadow: 0 0 13px var(--wine);
}

#hero .hero-title em {
  color: #c0304a;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  #hero .hero-title em {
    background: linear-gradient(
      105deg,
      #800020 0%,
      #800020 35%,
      #a0223a 45%,
      #d4485a 49%,
      #f8d0d6 50%,
      #d4485a 51%,
      #a0223a 55%,
      #800020 65%,
      #800020 100%
    );
    background-size:            250% auto;
    -webkit-background-clip:    text;
    background-clip:            text;
    -webkit-text-fill-color:    transparent;
    color:                      transparent;
    text-shadow:                none;
    animation:                  shimmerText 4s linear infinite alternate;
  }
}

@keyframes shimmerText {
  from { background-position: 110% center; }
  to   { background-position: -10% center; }
}


/* --- Subtitle --- */

.hero-sub {
  font-family:    var(--font-body);
  font-size:      15px;
  font-weight:    300;
  line-height:    1.75;
  color:          rgba(255, 255, 255, 0.5);
  max-width:      480px;
  margin-bottom:  48px;
  opacity:        0;
  transform:      translateY(20px);
}

/* --- CTA buttons --- */

.hero-cta {
  display:        flex;
  align-items:    center;
  gap:            16px;
  margin-bottom:  80px;
  opacity:        0;
  transform:      translateY(20px);
  transform:      translateY(20px);
}

/* Primary — crimson filled */
.btn-primary {
  display:         inline-flex;
  align-items:     center;
  gap:             12px;
  font-family:     var(--font-body);
  font-size:       12px;
  font-weight:     500;
  letter-spacing:  0.06em;
  text-transform:  uppercase;
  color:           var(--white);
  background:      var(--crimson);
  border:          1.5px solid var(--crimson);
  padding:         11px 22px;
  border-radius:   2px;
  text-decoration: none;
  transition:      background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  overflow:        hidden;
}

.btn-primary:hover {
  background:   #660018;
  border-color: #660018;
}

/* Arrow slides right on hover */
.btn-arrow {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}

/* Secondary — outline only */
.btn-secondary {
  display:         inline-flex;
  align-items:     center;
  font-family:     var(--font-body);
  font-size:       12px;
  font-weight:     500;
  letter-spacing:  0.06em;
  text-transform:  uppercase;
  color:           rgba(255, 255, 255, 0.75);
  background:      transparent;
  border:          1.5px solid rgba(255, 255, 255, 0.25);
  padding:         11px 22px;
  border-radius:   2px;
  text-decoration: none;
  transition:      color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn-secondary:hover {
  color:        var(--white);
  background:   rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Stats row --- */

.hero-stats {
  display:   flex;
  gap:       56px;
  opacity:   0;
  transform: translateY(20px);
}

.hero-stat {
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.stat-number {
  font-family:    var(--font-display);
  font-size:      28px;
  font-weight:    600;
  color:          var(--oak);
  letter-spacing: -0.01em;
  line-height:    1;
}

.stat-label {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.4);
}


/* --- Hero responsive --- */

@media (max-width: 1024px) {
  #hero {
    align-items:     center;
    justify-content: center;
  }

  .hero-content {
    max-width:      100%;
    padding-top:    100px;
    padding-bottom: 40px;
  }

  .hero-bg-overlay {
    background: rgba(26, 26, 26, 0.65);
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: 100dvh;
  }

  .hero-content {
    padding-top:    100px;
    padding-bottom: 40px;
  }

  .hero-kicker {
    font-size: 9px;
  }

  .hero-sub {
    margin-bottom: 24px;
  }

  .hero-cta {
    margin-bottom: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: clamp(18px, 5vw, 24px);
  }

  .stat-label {
    font-size: 9px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top:    80px;
    padding-bottom: 32px;
  }

  .hero-title {
    font-size: clamp(44px, 12vw, 64px);
  }

  .hero-cta {
    flex-direction: column;
    align-items:    stretch;
    gap:            10px;
  }

  .btn-primary,
  .btn-secondary {
    width:           100%;
    justify-content: center;
    text-align:      center;
  }
}


/* ============================================================
   PAGE LOADER
   ============================================================ */

#loader {
  position:        fixed;
  inset:           0;
  background:      var(--charcoal);
  z-index:         9999;
  display:         flex;
  align-items:     center;
  justify-content: center;
  opacity:         1;
  pointer-events:  all;
  /* No CSS transition — GSAP owns all motion */
}

.loader-gif {
  mix-blend-mode: lighten;
  max-width:   120px;
  width:       100%;
  height:      auto;
  object-fit:  contain;
  display:     block;
}

body.loading {
  overflow: hidden;
}


/* ============================================================
   CUSTOM CURSOR — two-layer system
   ============================================================ */

/* Hide system cursor on desktop — GSAP drives all motion */
*, *::before, *::after {
  cursor: none !important;
}

/* Layer 1 — small crimson dot, precise, instant */
#cursor-dot {
  position:       fixed;
  top:            0;
  left:           0;
  width:          8px;
  height:         8px;
  background-color: var(--crimson);
  border-radius:  50%;
  pointer-events: none;
  z-index:        99999;
  transform:      translate(-50%, -50%);
  will-change:    transform, opacity;
}

/* Layer 2 — white outline ring, lagged, blend mode */
#cursor-follower {
  position:       fixed;
  top:            0;
  left:           0;
  width:          36px;
  height:         36px;
  border:         1.5px solid rgba(255, 255, 255, 0.7);
  border-radius:  50%;
  pointer-events: none;
  z-index:        99998;
  transform:      translate(-50%, -50%);
  will-change:    transform, opacity;
  mix-blend-mode: difference;
}

/* Restore system cursor on touch devices */
@media (pointer: coarse) {
  *, *::before, *::after {
    cursor: auto !important;
  }

  #cursor-dot,
  #cursor-follower {
    display: none !important;
  }
}


/* ============================================================
   PRODUCTS SECTION
   ============================================================ */

#products {
  background: var(--cream);
  padding:    120px 0;
}


/* --- Section header --- */

.section-header {
  max-width:     640px;
  margin-bottom: 72px;
}

.section-kicker {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--crimson);
  margin-bottom:  20px;
}

.section-title {
  font-family:    var(--font-display);
  font-size:      clamp(32px, 3.6vw, 52px);
  font-weight:    700;
  letter-spacing: -0.02em;
  line-height:    1.1;
  color:          var(--charcoal);
  margin-bottom:  20px;
}

.section-title em {
  font-style: italic;
  color:      var(--crimson);
}

.section-sub {
  font-family: var(--font-body);
  font-size:   15px;
  font-weight: 300;
  line-height: 1.75;
  color:       rgba(26, 26, 26, 0.55);
}


/* --- Products grid --- */

.products-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
  margin-bottom:         48px;
}


/* --- Product card --- */

.product-card {
  background:      var(--white);
  border-width:    1px;
  border-style:    solid;
  border-color:    rgba(210, 180, 140, 0.3);
  border-radius:   3px;
  overflow:        hidden;
  display:         flex;
  flex-direction:  column;
  will-change:     transform, opacity;
  text-decoration: none;
  color:           inherit;
  transition:      box-shadow 0.45s ease, border-color 0.35s ease;
}

.product-card:hover {
  box-shadow:   0 20px 60px rgba(26, 26, 26, 0.12);
  border-color: var(--crimson);
}


/* --- Card image --- */

.product-card-image {
  position:     relative;
  aspect-ratio: 4 / 3;
  overflow:     hidden;
}

.product-card-image img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.bacva-gore {
  object-position: center bottom;
}

.bacva-dolje {
  object-position: center top;
}

.product-badge {
  position:       absolute;
  top:            16px;
  left:           16px;
  background:     var(--crimson);
  color:          var(--white);
  font-family:    var(--font-mono);
  font-size:      9px;
  font-weight:    400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:        5px 10px;
  border-radius:  1px;
}


/* --- Card body --- */

.product-card-body {
  flex:           1;
  display:        flex;
  flex-direction: column;
  padding:        28px 32px 32px;
}

.product-brand {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--oak);
  margin-bottom:  10px;
}

.card-title {
  font-family:    var(--font-display);
  font-size:      22px;
  font-weight:    600;
  letter-spacing: -0.01em;
  line-height:    1.2;
  color:          var(--charcoal);
  margin-bottom:  14px;
  transition:     color 0.35s ease;
}

.product-card:hover .card-title {
  color: var(--crimson);
}

.product-desc {
  font-family:   var(--font-body);
  font-size:     13px;
  font-weight:   300;
  line-height:   1.7;
  color:         rgba(26, 26, 26, 0.6);
  margin-bottom: 24px;
}


/* --- Specs table --- */

.product-specs {
  border-top:     1px solid rgba(26, 26, 26, 0.08);
  padding-top:    20px;
  margin-bottom:  28px;
  display:        flex;
  flex-direction: column;
  gap:            10px;
  flex:           1;
}

.spec-row {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  gap:             12px;
}

.spec-row dt {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          rgba(26, 26, 26, 0.4);
  white-space:    nowrap;
}

.spec-row dd {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.04em;
  color:          var(--charcoal);
  text-align:     right;
}


/* --- Card CTA (visual only — entire card is the link) --- */

.card-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--crimson);
  margin-top:     auto;
}

.card-cta svg {
  flex-shrink: 0;
  transition:  transform 0.35s ease;
}

.product-card:hover .card-cta svg {
  transform: translateX(4px);
}


/* --- Horizontal equipment card --- */

.product-card--horizontal {
  grid-column:    1 / -1;
  flex-direction: row;
  height:         192px;
}

.product-card--horizontal .product-card-image {
  width:        60%;
  aspect-ratio: unset;
  height:       100%;
  flex-shrink:  0;
}

.product-card--horizontal .product-card-body {
  padding: 24px 32px;
}


/* --- Footer CTA --- */

.products-footer-cta {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            20px;
  border-top:     1px solid rgba(26, 26, 26, 0.12);
  padding-top:    48px;
}

.products-footer-cta .btn-primary {
  background:   transparent;
  color:        var(--charcoal);
  border-color: var(--charcoal);
}

.products-footer-cta .btn-primary:hover {
  background:   var(--charcoal);
  color:        var(--white);
  border-color: var(--charcoal);
  filter:       none;
}

.products-footer-text {
  font-family:    var(--font-body);
  font-size:      14px;
  font-weight:    300;
  letter-spacing: 0.04em;
  line-height:    1.6;
  color:          rgba(26, 26, 26, 0.5);
  text-align:     center;
}


/* --- Products responsive --- */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  #products {
    padding: 80px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-body {
    padding: 24px 24px 28px;
  }
}


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

#testimonials {
  background: var(--white);
  padding:    120px 0 0;
}

/* Scoped container padding — bottom space before ticker strip */
.testimonials-container {
  padding-bottom: 72px;
}

/* Centred header modifier */
.section-header--centered {
  text-align:   center;
  margin-left:  auto;
  margin-right: auto;
}

.section-header--centered .section-sub {
  max-width:    480px;
  margin-left:  auto;
  margin-right: auto;
}

/* Oak kicker override for testimonials & ticker */
#testimonials .section-kicker,
.ticker-kicker {
  color: var(--oak);
}


/* --- Testimonial grid --- */

.testimonials-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}


/* --- Testimonial card --- */

.testimonial-card {
  background:     var(--white);
  border:         1px solid rgba(210, 180, 140, 0.30);
  border-radius:  3px;
  padding:        40px 32px 36px;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  will-change:    transform, opacity;
  transition:     border-color 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  border-color: var(--oak);
  box-shadow:   0 8px 32px rgba(210, 180, 140, 0.25);
}

.testimonial-card:hover .testimonial-icon {
  border-color: var(--oak);
}

.testimonial-icon svg {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.testimonial-card:hover .testimonial-icon svg {
  fill:   var(--cream);
  stroke: var(--crimson);
}


/* --- Icon circle --- */

.testimonial-icon {
  width:           80px;
  height:          80px;
  border:          1px solid rgba(210, 180, 140, 0.3);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   20px;
  flex-shrink:     0;
  color:           var(--crimson);
  transition:      border-color 0.3s ease;
}

.testimonial-icon img {
  width:   50px;
  height:  50px;
  display: block;
  /* Approximate filter for --crimson (#800020) on black SVG icons */
  filter: invert(8%) sepia(100%) saturate(3000%) hue-rotate(334deg) brightness(80%) contrast(115%);
}


/* --- Badge pill --- */

.testimonial-badge {
  display:        inline-block;
  border:         1px solid rgba(210, 180, 140, 0.3);
  color:          var(--crimson);
  font-family:    var(--font-mono);
  font-size:      9px;
  font-weight:    400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding:        4px 12px;
  border-radius:  4px;
  margin-bottom:  24px;
  transition:     border-color 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover .testimonial-badge {
  border-color: var(--oak);
  background:   var(--cream);
}


/* --- Quote --- */

.testimonial-quote {
  font-family:   var(--font-display);
  font-size:     15px;
  font-style:    italic;
  font-weight:   700;
  line-height:   1.65;
  color:         var(--charcoal);
  margin-bottom: 24px;
}


/* --- Thin divider --- */

.testimonial-divider {
  width:        24px;
  height:       1px;
  background:   rgba(0, 0, 0, 0.15);
  border:       none;
  margin:       auto auto 20px;
  flex-shrink:  0;
}


/* --- Author --- */

.testimonial-name {
  font-family:   var(--font-body);
  font-size:     13px;
  font-weight:   500;
  color:         var(--charcoal);
  margin-bottom: 4px;
}

.testimonial-location {
  font-family: var(--font-body);
  font-size:   12px;
  font-weight: 300;
  color:       rgba(26, 26, 26, 0.5);
}


/* ============================================================
   CERTIFICATION TICKER
   ============================================================ */

.ticker-strip {
  padding:     0 0 56px;
  will-change: opacity;
}

.ticker-strip > .container {
  border-top:  1px solid rgba(0, 0, 0, 0.1);
  padding-top: 40px;
}

.ticker-kicker {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align:     center;
  margin-bottom:  28px;
}

.ticker-mask {
  overflow: hidden;
  width:    100%;
}

.ticker-inner {
  display:     flex;
  width:       max-content;
  will-change: transform;
  padding:     4px 0;
}


.ticker-badge {
  display:        inline-block;
  border:         1px solid rgba(0, 0, 0, 0.25);
  color:          rgba(0, 0, 0, 0.25);
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:        5px 16px;
  border-radius:  50px;
  white-space:    nowrap;
  cursor:         default;
  margin-right:   12px;
  transition:     color 0.25s ease, border-color 0.25s ease;
}

.ticker-badge:hover {
  color:        var(--crimson);
  border-color: var(--crimson);
}


/* --- Testimonials responsive --- */

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  #testimonials {
    padding-top: 80px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 32px 24px 28px;
  }
}


/* ============================================================
   QUIZ SECTION
   ============================================================ */

#quiz {
  background:  var(--charcoal);
  min-height:  100vh;
  padding:     120px 0 100px;
}

.quiz-container {
  width: 100%;
}


/* --- Section header --- */

.quiz-header {
  text-align:    center;
  margin-bottom: 48px;
}

.quiz-kicker {
  color:          var(--oak);
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom:  16px;
}

.quiz-title {
  font-family:   var(--font-display);
  font-size:     clamp(36px, 5vw, 56px);
  font-weight:   600;
  line-height:   1.15;
  color:         var(--white);
  margin-bottom: 20px;
}

.quiz-title em {
  font-style: italic;
  color:      var(--crimson);
}

.quiz-subtitle {
  font-family: var(--font-body);
  font-size:   15px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.55);
  max-width:   440px;
  margin:      0 auto 40px;
  line-height: 1.6;
}


/* --- Progress bar --- */

.quiz-progress {
  display:         flex;
  justify-content: center;
  gap:             8px;
}

.quiz-progress-segment {
  width:         24px;
  height:        3px;
  border-radius: 99px;
  background:    rgba(255, 255, 255, 0.15);
}

.quiz-progress-segment.active {
  background: var(--crimson);
}


/* --- Back button --- */

.quiz-back {
  display:       block;
  background:    none;
  border:        none;
  font-family:   var(--font-body);
  font-size:     12px;
  color:         rgba(255, 255, 255, 0.4);
  cursor:        pointer;
  padding:       8px 0;
  margin-top:    32px;
  margin-bottom: 24px;
  transition:    color 0.25s ease;
  visibility:    hidden;
}

.quiz-back:hover {
  color: rgba(255, 255, 255, 0.75);
}

.quiz-back.visible {
  visibility: visible;
}


/* --- Quiz step (animated wrapper) --- */

.quiz-step {
  will-change: transform, opacity;
}


/* --- Question text --- */

.quiz-question {
  font-family:   var(--font-display);
  font-size:     clamp(18px, 3vw, 22px);
  font-weight:   600;
  color:         var(--white);
  text-align:    center;
  margin-bottom: 36px;
}


/* --- Options grid --- */

.quiz-options-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   16px;
  max-width:             880px;
  margin:                0 auto;
}


/* --- Option card --- */

.quiz-option-card {
  position:       relative;
  background:     rgba(255, 255, 255, 0.05);
  border:         1px solid rgba(255, 255, 255, 0.12);
  border-radius:  4px;
  padding:        28px 20px;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            12px;
  cursor:         pointer;
  transition:     background 0.25s ease, border-color 0.25s ease;
  will-change:    transform, opacity;
  text-align:     center;
}

.quiz-option-card:not(.selected):hover {
  background:   transparent;
  border-color: var(--crimson);
}

.quiz-option-card:not(.selected):hover .quiz-option-icon {
  color: var(--crimson);
}

.quiz-option-card.selected {
  background:   rgba(128, 0, 32, 0.20);
  border-color: var(--crimson);
}


/* --- Card icon --- */

.quiz-option-icon {
  width:           36px;
  height:          36px;
  flex-shrink:     0;
  color:           rgba(255, 255, 255, 0.6);
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      color 0.25s ease;
}

.quiz-option-card.selected .quiz-option-icon {
  color: var(--crimson);
}


/* --- Card text --- */

.quiz-option-title {
  font-family:  var(--font-body);
  font-size:    14px;
  font-weight:  500;
  color:        var(--white);
  line-height:  1.3;
}

.quiz-option-card.selected .quiz-option-title {
  font-weight: 600;
}

.quiz-option-sub {
  font-family: var(--font-body);
  font-size:   12px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.quiz-option-card.selected .quiz-option-sub {
  color: rgba(255, 255, 255, 0.75);
}


/* --- Selected checkmark badge --- */

.quiz-check-badge {
  position:        absolute;
  top:             10px;
  right:           10px;
  width:           20px;
  height:          20px;
  border-radius:   50%;
  background:      rgba(60, 0, 12, 0.8);
  display:         flex;
  align-items:     center;
  justify-content: center;
  opacity:         0;
  transform:       scale(0.5);
  transition:      opacity 0.2s ease, transform 0.2s ease;
}

.quiz-option-card.selected .quiz-check-badge {
  opacity:   1;
  transform: scale(1);
}


/* --- Result wrapper --- */

.quiz-result {
  text-align:     center;
  max-width:      780px;
  margin:         0 auto;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  border:         1px solid var(--crimson);
  border-radius:  4px;
  padding:        48px 40px;
  background:     transparent;
}

.quiz-result-icon {
  width:           64px;
  height:          64px;
  border-radius:   50%;
  background:      rgba(128, 0, 32, 0.2);
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   24px;
  color:           var(--crimson);
}

.quiz-result-kicker {
  color:          var(--oak);
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom:  12px;
}

.quiz-result-title {
  font-family:   var(--font-display);
  font-size:     clamp(22px, 3vw, 30px);
  font-weight:   600;
  color:         var(--white);
  margin-bottom: 12px;
  line-height:   1.2;
}

.quiz-result-desc {
  font-family:   var(--font-body);
  font-size:     14px;
  font-weight:   300;
  color:         rgba(255, 255, 255, 0.65);
  max-width:     440px;
  line-height:   1.7;
  margin-bottom: 28px;
}


/* --- Result cards --- */

.quiz-result-blocks {
  display:         flex;
  gap:             16px;
  justify-content: center;
  flex-wrap:       wrap;
  width:           100%;
  margin-bottom:   28px;
}

.quiz-result-card {
  width:               200px;
  min-height:          200px;
  flex-shrink:         0;
  border-radius:       4px;
  overflow:            hidden;
  position:            relative;
  background-size:     cover;
  background-position: center;
  display:             flex;
  flex-direction:      column;
  justify-content:     flex-end;
  border:              1px solid #4a0012;
  transition:          border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration:     none;
  color:               inherit;
}

.quiz-result-card:hover {
  border-color: var(--crimson);
  box-shadow:   0 8px 32px rgba(128, 0, 32, 0.25);
}

.quiz-result-card:hover .quiz-result-card-arrow {
  transform: translateX(4px);
}

.quiz-result-card-overlay {
  position:   absolute;
  inset:      0;
  background: rgba(26, 26, 26, 0.70);
  z-index:    0;
}

.quiz-result-card-content {
  position:       relative;
  z-index:        1;
  padding:        16px 14px;
  display:        flex;
  flex-direction: column;
  gap:            5px;
}

.quiz-result-card-kicker {
  color:          var(--oak);
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.quiz-result-card-name {
  font-family: var(--font-display);
  font-size:   16px;
  font-weight: 600;
  color:       var(--white);
  line-height: 1.2;
}

.quiz-result-card-desc {
  font-family: var(--font-body);
  font-size:   12px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  text-align:  left;
}

.quiz-result-card-link {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  font-family:    var(--font-body);
  font-size:      12px;
  font-weight:    400;
  letter-spacing: 0.06em;
  color:          var(--oak);
  margin-top:     4px;
}

.quiz-result-card-arrow {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quiz-result-footer {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  width:          100%;
}

.quiz-result-disclaimer {
  font-family:   var(--font-body);
  font-size:     11px;
  color:         rgba(255, 255, 255, 0.3);
  margin-bottom: 36px;
  line-height:   1.5;
}

.quiz-result-actions {
  display:         flex;
  gap:             12px;
  flex-wrap:       wrap;
  justify-content: center;
}

.quiz-btn-restart {
  display:         inline-flex;
  align-items:     center;
  padding:         14px 28px;
  border:          1px solid rgba(255, 255, 255, 0.25);
  border-radius:   3px;
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     400;
  color:           var(--white);
  background:      transparent;
  cursor:          pointer;
  text-decoration: none;
  transition:      border-color 0.3s ease, background 0.3s ease;
}

.quiz-btn-restart:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background:   rgba(255, 255, 255, 0.05);
}


/* --- Quiz responsive --- */

@media (max-width: 900px) {
  .quiz-options-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width:             560px;
  }

}

@media (max-width: 640px) {
  #quiz {
    padding: 80px 0 80px;
  }

  .quiz-options-grid {
    gap: 10px;
  }

  .quiz-option-card {
    padding: 20px 14px;
  }

  .quiz-result {
    padding: 36px 24px;
  }

  .quiz-result-blocks {
    flex-direction: column;
    align-items:    center;
  }

  .quiz-result-card {
    width:     100%;
    max-width: 320px;
  }
}


/* ============================================================
   DELIVERY — Logistika i isporuka
   ============================================================ */

#delivery {
  position:       relative;
  background:     var(--crimson);
  border-top:     1px solid var(--white);
  border-bottom:  1px solid var(--white);
  overflow:       hidden;
  display:        flex;
  align-items:    center;
  padding:        72px 0;
}

/* --- Decorative circles --- */

.delivery-circle {
  position:      absolute;
  border-radius: 50%;
  pointer-events: none;
}

.delivery-circle--large {
  width:      420px;
  height:     420px;
  bottom:     -140px;
  left:       -100px;
  border:     1px solid rgba(255, 255, 255, 1);
  background: transparent;
  z-index:    0;
}

.delivery-circle--medium {
  width:      300px;
  height:     300px;
  top:        -80px;
  right:      -60px;
  border:     1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  z-index:    0;
}

.delivery-circle--small {
  width:      180px;
  height:     180px;
  top:        50%;
  right:      80px;
  transform:  translateY(-50%);
  border:     none;
  background: rgba(255, 255, 255, 0.08);
  z-index:    0;
}

/* --- Content container --- */

.delivery-container {
  position:        relative;
  z-index:         1;
  text-align:      center;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
}

/* --- Kicker --- */

.delivery-kicker {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.6);
  margin-bottom:  20px;
}

/* --- Title --- */

.delivery-title {
  font-family:    var(--font-display);
  font-size:      clamp(32px, 3.6vw, 52px);
  font-weight:    700;
  letter-spacing: -0.02em;
  line-height:    1.15;
  color:          var(--white);
  margin-bottom:  24px;
}

.delivery-title em {
  font-style: italic;
  color:      var(--oak);
}

/* --- Subtitle --- */

.delivery-sub {
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   300;
  line-height:   1.75;
  color:         rgba(255, 255, 255, 0.75);
  max-width:     540px;
  margin-bottom: 48px;
}

/* --- Feature items --- */

.delivery-features {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             28px;
  margin-bottom:   48px;
}

.delivery-feature {
  font-family: var(--font-body);
  font-size:   13px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.6);
}

/* --- CTA button --- */

.delivery-cta {
  display:         inline-block;
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     500;
  letter-spacing:  0.04em;
  text-decoration: none;
  color:           var(--crimson);
  background:      var(--white);
  border:          1px solid var(--white);
  border-radius:   2px;
  padding:         14px 32px;
  transition:      background 0.3s ease, color 0.3s ease;
}

.delivery-cta:hover {
  background: transparent;
  color:      var(--white);
}

/* Inverted btn-primary inside delivery section */
#delivery .btn-primary {
  background:   var(--white);
  border-color: var(--white);
  color:        var(--charcoal);
}

#delivery .btn-primary:hover {
  background:   transparent;
  border-color: var(--white);
  color:        var(--white);
}

@media (max-width: 1024px) {
  #delivery {
    padding: 64px 0;
  }

  .delivery-circle--small {
    right: 20px;
  }
}

@media (max-width: 640px) {
  #delivery {
    padding: 56px 0;
  }

  .delivery-circle--large {
    width:  300px;
    height: 300px;
    bottom: -80px;
    left:   -80px;
  }

  .delivery-circle--medium {
    width:  200px;
    height: 200px;
    top:    -60px;
    right:  -40px;
  }

  .delivery-circle--small {
    display: none;
  }

  .delivery-features {
    flex-direction: column;
    align-items:    center;
    gap:            12px;
  }
}


/* ============================================================
   BARRELS PAGE — HERO
   ============================================================ */

#barrels-hero {
  position:        relative;
  min-height:      100vh;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  align-items:     stretch;
  background:      var(--charcoal);
  overflow:        hidden;
  border-bottom:   1px solid rgba(210, 180, 140, 0.15);
}

/* Compact hero for resource/catalogue pages — shorter min-height */
#barrels-hero.barrels-hero--compact {
  min-height: 50vh;
}

/* Bottom-aligned content (e.g. cepovi hero) */
#barrels-hero.barrels-hero--bottom {
  justify-content: flex-end;
  padding-bottom: 80px;
}

/* Darker overlay for lighter background images */
#barrels-hero.barrels-hero--dark .barrels-bg-overlay {
  background: linear-gradient(to bottom, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.92) 100%);
}

/* Center the container contents (homepage uses flex-start) */
#barrels-hero > .container {
  display:        flex;
  flex-direction: column;
  align-items:    center;
}

/* Remove homepage padding-top offset — centering is handled by justify-content: center */
#barrels-hero .hero-content {
  padding-top: 0;
}

/* Compact hero — restore navbar-height offset to visually center content in visible area */
#barrels-hero.barrels-hero--compact .hero-content {
  padding-top: 76px;
}

/* Custom overlay — full-width gradient, no left-bias */
.barrels-bg-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to bottom, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.80) 100%);
  z-index:    1;
}


/* Content overrides — center over homepage left-align defaults */
.barrels-hero-content {
  text-align:  center;
  align-items: center;
  max-width:   none;
  padding-bottom: 80px;
}

/* Kicker: DM Mono instead of default body font */
.barrels-kicker {
  font-family:    var(--font-mono);
  letter-spacing: 0.12em;
}

/* Override hero-bg-slide background-position for barrels image */
#barrels-hero .hero-bg-slide {
  background-position: center center;
}

/* Override global text-align: left set on .hero-kicker/.hero-title/.hero-sub */
#barrels-hero .hero-kicker,
#barrels-hero .hero-title,
#barrels-hero .hero-sub {
  text-align: center;
}

/* Title: single line, two colors */
/* display: block overrides .hero-title's flex-direction: column */
.barrels-hero-title {
  display:     block;
  white-space: nowrap;
  opacity:     0;
  transform:   translateY(30px);
}

.barrels-title-oak   { color: var(--oak);   }
.barrels-title-white { color: var(--white); }

/* Subtitle: centered, narrow, more muted */
.barrels-sub {
  max-width:  520px;
  text-align: center;
  margin:     0 auto;
  color:      rgba(255, 255, 255, 0.55);
}

.barrels-scroll-indicator {
  position:   absolute;
  bottom:     32px;
  left:       50%;
  transform:  translateX(-50%);
  color:      rgba(255, 255, 255, 0.35);
  animation:  barrels-bounce 2s ease-in-out infinite;
  z-index:    2;
}

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

@media (max-width: 768px) {
  #barrels-hero {
    min-height: 100dvh;
  }
}

@media (max-width: 640px) {
  #barrels-hero {
    min-height: 100dvh;
  }

  .barrels-hero-content {
    padding-bottom: 56px;
  }

  .barrels-hero-title {
    white-space: normal;
  }
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

#kontakt {
  background:        var(--charcoal);
  padding:           76px 0;
  scroll-margin-top: 76px;
}

.contact-container {
  display:               grid;
  grid-template-columns: 45% 55%;
  align-items:           center;
  gap:                   60px;
}

/* --- Left column --- */

.contact-kicker {
  color: var(--oak);
}

.contact-title {
  font-family:    var(--font-display);
  font-size:      clamp(28px, 3vw, 44px);
  font-weight:    700;
  letter-spacing: -0.02em;
  line-height:    1.15;
  color:          var(--white);
  margin-bottom:  24px;
}

.contact-title em {
  font-style: italic;
  color:      var(--crimson);
}

.contact-desc {
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   300;
  line-height:   1.75;
  color:         rgba(255, 255, 255, 0.65);
  max-width:     380px;
  margin-bottom: 40px;
}

.contact-info {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

.contact-info-row {
  display:     flex;
  align-items: center;
  gap:         12px;
  font-family: var(--font-body);
  font-size:   14px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.75);
}

.contact-info-row svg {
  flex-shrink: 0;
  color:       var(--oak);
}

/* --- Right column — form --- */

.contact-form {
  display:        flex;
  flex-direction: column;
  gap:            14px;
}

.contact-row-split {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
}

.contact-field {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.contact-label {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.6);
  display:        flex;
  align-items:    center;
  gap:            8px;
}

.contact-label-optional {
  font-size:      11px;
  font-weight:    300;
  letter-spacing: 0;
  text-transform: none;
  color:          rgba(255, 255, 255, 0.35);
}

.contact-input {
  background:    transparent;
  border:        1px solid rgba(255, 255, 255, 0.20);
  color:         var(--white);
  font-family:   var(--font-body);
  font-size:     14px;
  font-weight:   300;
  padding:       12px 16px;
  border-radius: 2px;
  outline:       none;
  width:         100%;
  transition:    border-color 0.25s ease;
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.contact-input:focus {
  border-color: var(--oak);
}

.contact-textarea {
  min-height: 100px;
  resize:     vertical;
}

.contact-submit {
  width:           100%;
  justify-content: center;
}

.contact-disclaimer {
  font-family: var(--font-body);
  font-size:   11px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.35);
  text-align:  center;
}

@media (max-width: 1024px) {
  #kontakt {
    padding: 56px 0;
  }

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

  .contact-desc {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  #kontakt {
    padding: 48px 0;
  }

  .contact-row-split {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */

#site-footer {
  background:  var(--charcoal);
  border-top:  1px solid rgba(255, 255, 255, 0.15);
}

.footer-grid {
  display:               grid;
  grid-template-columns: 30% 1fr 1fr;
  align-items:           start;
  gap:                   64px;
  padding-top:           80px;
  padding-bottom:        64px;
}

/* --- Column 1 — Brand --- */

.footer-logo {
  height:        90px;
  width:         auto;
  display:       block;
  opacity:       1;
  margin-bottom: 16px;
}

.footer-company-info {
  font-family:  var(--font-body);
  font-size:    11px;
  font-weight:  300;
  line-height:  1.8;
  color:        rgba(255, 255, 255, 0.40);
  margin:       0;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size:   13px;
  font-weight: 300;
  line-height: 1.6;
  color:       rgba(255, 255, 255, 0.45);
  max-width:   200px;
  margin-top:  20px;
}

/* --- Column headings --- */

.footer-col-heading {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.50);
  margin-bottom:  20px;
}

/* --- Column 2 — Nav links --- */

.footer-nav {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            12px;
}

.footer-nav a {
  font-family:     var(--font-body);
  font-size:       13px;
  font-weight:     300;
  color:           rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition:      color 0.25s ease;
}

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

/* --- Column 3 — Partners --- */

.footer-partner-link {
  display:         block;
  text-decoration: none;
}

.footer-partner-logo {
  height:  56px;
  width:   auto;
  display: block;
  filter:  brightness(0) invert(1);
}

.footer-partners-row {
  display:        flex;
  flex-direction: row;
  align-items:    center;
  gap:            32px;
}

.footer-partner-text {
  font-family: var(--font-display);
  font-style:  italic;
  font-size:   28px;
  color:       var(--white);
}

/* --- Divider --- */

.footer-divider {
  width:      100%;
  height:     1px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Bottom bar --- */

.footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding-top:     24px;
  padding-bottom:  32px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size:   11px;
  font-weight: 300;
  color:       rgba(255, 255, 255, 0.35);
}

.footer-bottom-right {
  display:     flex;
  align-items: center;
  gap:         16px;
}

.footer-legal-link {
  font-family:     var(--font-body);
  font-size:       11px;
  font-weight:     300;
  color:           rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition:      color 0.25s ease;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal-sep {
  font-size: 11px;
  color:     rgba(255, 255, 255, 0.20);
}


@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap:                   48px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-col--partners {
    padding-top: 40px;
  }
  .footer-grid {
    gap: 48px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .footer-col--partners {
    grid-column:    1 / -1;
    display:        flex;
    flex-direction: column;
    align-items:    center;
  }
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items:    flex-start;
    gap:            16px;
  }
}


/* ============================================================
   BARRELS PAGE — INTRO + FILTER
   ============================================================ */

#barrels-intro {
  background:    var(--white);
  padding:       48px 0;
  border-bottom: 1px solid rgba(210, 180, 140, 0.30);
}

.barrels-filter {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             16px;
}

.barrels-filter-group {
  display:     flex;
  flex-wrap:   wrap;
  align-items: center;
  gap:         10px;
}

.barrels-filter-pill {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding:        9px 20px;
  border-radius:  40px;
  border:         1px solid rgba(210, 180, 140, 0.45);
  background:     transparent;
  color:          rgba(26, 26, 26, 0.50);
  cursor:         pointer;
  transition:     background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.barrels-filter-pill:hover {
  border-color: var(--oak);
  color:        var(--charcoal);
}

.barrels-filter-pill.active {
  background:   var(--crimson);
  border-color: var(--crimson);
  color:        var(--white);
}


/* ============================================================
   BARRELS PAGE — TOASTING REFERENCE STRIP
   ============================================================ */

#toasting-strip {
  background:    var(--cream);
  border-bottom: 1px solid rgba(210, 180, 140, 0.30);
  padding:       14px 0;
}

.toasting-strip-inner {
  display:     flex;
  align-items: center;
  gap:         24px;
}

.toasting-label {
  font-family:    var(--font-mono);
  font-size:      9px;
  font-weight:    400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--oak);
  white-space:    nowrap;
  flex-shrink:    0;
}

.toasting-pills {
  display:     flex;
  flex-wrap:   wrap;
  align-items: center;
  gap:         6px;
}

.toasting-pill-wrap {
  position: relative;
}

.toasting-pill {
  display:        inline-block;
  background:     var(--white);
  color:          var(--oak);
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 0.08em;
  padding:        4px 10px;
  border-radius:  4px;
  border:         1px solid rgba(26, 26, 26, 0.20);
  cursor:         default;
  user-select:    none;
  transition:     color 0.2s ease, border-color 0.2s ease;
}

.toasting-pill-wrap:hover .toasting-pill {
  color:        var(--charcoal);
  border-color: rgba(26, 26, 26, 0.40);
}

.toasting-tooltip {
  position:       absolute;
  bottom:         calc(100% + 8px);
  left:           50%;
  transform:      translateX(-50%);
  background:     var(--charcoal);
  border:         1px solid rgba(210, 180, 140, 0.30);
  border-radius:  3px;
  color:          var(--white);
  font-family:    var(--font-body);
  font-size:      12px;
  font-weight:    300;
  line-height:    1.5;
  max-width:      min(240px, 80vw);
  padding:        8px 12px;
  white-space:    normal;
  word-wrap:      break-word;
  width:          max-content;
  pointer-events: none;
  display:        none;
  z-index:        30;
}

.toasting-pill-wrap:hover .toasting-tooltip {
  display: block;
}

.toasting-tooltip.flip-left {
  left:      auto;
  right:     0;
  transform: none;
}

@media (max-width: 640px) {
  .toasting-strip-inner {
    flex-direction: column;
    align-items:    flex-start;
    gap:            10px;
  }
}


/* ============================================================
   BARRELS PAGE — PRODUCT GRID
   ============================================================ */

#barrels-grid,
#oeno-grid {
  background: var(--white);
  padding:    72px 0 96px;
}

.barrel-card {
  cursor:    pointer;
  opacity:   0;
  transform: translateY(40px);
}

.barrel-card:focus-visible {
  outline:        2px solid var(--crimson);
  outline-offset: 3px;
}

.barrel-card.hidden {
  display: none;
}

.product-badge--oak {
  background: var(--oak);
  color:      var(--charcoal);
}

.product-badge--muted {
  background: rgba(26, 26, 26, 0.65);
  color:      var(--white);
}


/* ============================================================
   BARRELS PAGE — MODAL
   ============================================================ */

body.modal-open {
  overflow: hidden;
}

.barrel-modal {
  position:        fixed;
  inset:           0;
  z-index:         1000;
  display:         flex;
  align-items:     center;
  justify-content: center;
  overflow-y:      auto;
  pointer-events:  none;
  opacity:         0;
  transition:      opacity 0.3s ease;
}

.barrel-modal.open {
  opacity:        1;
  pointer-events: all;
}

.barrel-modal-backdrop {
  position:        fixed;
  inset:           0;
  background:      rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(4px);
  cursor:          pointer;
}

.barrel-modal-inner {
  position:              relative;
  z-index:               1;
  background:            var(--white);
  border-radius:         4px;
  width:                 min(960px, 92vw);
  max-height:            88vh;
  overflow:              hidden;
  display:               grid;
  grid-template-columns: 40% 60%;
  transform:             translateY(24px);
  transition:            transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.barrel-modal.open .barrel-modal-inner {
  transform: translateY(0);
}

.barrel-modal-close {
  position:   absolute;
  top:        16px;
  right:      20px;
  z-index:    2;
  background: none;
  border:     none;
  font-size:  26px;
  line-height: 1;
  color:      rgba(26, 26, 26, 0.40);
  cursor:     pointer;
  transition: color 0.2s ease;
  padding:    4px 8px;
}

.barrel-modal-close:hover {
  color: var(--charcoal);
}

.barrel-modal-image {
  overflow:   hidden;
  max-height: 88vh;
}

.barrel-modal-image img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.barrel-modal-content {
  padding:        48px 48px 40px;
  display:        flex;
  flex-direction: column;
  overflow-y:     auto;
  max-height:     88vh;
}

.barrel-modal-title {
  font-family:    var(--font-display);
  font-size:      26px;
  font-weight:    600;
  letter-spacing: -0.02em;
  line-height:    1.2;
  color:          var(--charcoal);
  margin-bottom:  16px;
  margin-top:     8px;
}

.barrel-modal-desc {
  font-family:   var(--font-body);
  font-size:     14px;
  font-weight:   300;
  line-height:   1.8;
  color:         rgba(26, 26, 26, 0.60);
  margin-bottom: 28px;
}

.barrel-modal-specs {
  border-top:    1px solid rgba(26, 26, 26, 0.08);
  padding-top:   20px;
  margin-bottom: 24px;
  flex:          initial;
}

.barrel-modal-wines {
  display:        flex;
  flex-wrap:      wrap;
  align-items:    center;
  gap:            8px;
  margin-bottom:  32px;
}

.barrel-modal-wines-label {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color:          rgba(26, 26, 26, 0.40);
  margin-right:   4px;
}

.barrel-modal-wine-tag {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--oak);
  background:     rgba(210, 180, 140, 0.12);
  border:         1px solid rgba(210, 180, 140, 0.35);
  padding:        4px 10px;
  border-radius:  2px;
}

.barrel-modal-actions {
  display:     flex;
  gap:         14px;
  align-items: center;
  flex-wrap:   wrap;
  margin-top:  auto;
  padding-top: 8px;
}

.barrel-modal-pdf {
  display:         inline-flex;
  align-items:     center;
  gap:             7px;
  font-family:     var(--font-mono);
  font-size:       10px;
  font-weight:     400;
  letter-spacing:  0.10em;
  text-transform:  uppercase;
  color:           rgba(26, 26, 26, 0.45);
  text-decoration: none;
  border:          1px solid rgba(26, 26, 26, 0.15);
  padding:         10px 16px;
  border-radius:   2px;
  transition:      color 0.25s ease, border-color 0.25s ease;
}

.barrel-modal-pdf:hover {
  color:        var(--charcoal);
  border-color: var(--charcoal);
}

/* Modal spec rows — label left, value right */
.modal-spec-grid {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  border-top:     1px solid rgba(210, 180, 140, 0.20);
  padding-top:    20px;
  margin-bottom:  0;
}

.modal-spec-item {
  display:               grid;
  grid-template-columns: 140px 1fr;
  gap:                   0 12px;
  align-items:           start;
}

.modal-spec-label {
  font-family:    var(--font-body);
  font-size:      10px;
  font-weight:    400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--oak);
  padding-top:    2px;
}

.modal-spec-value {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    500;
  letter-spacing: 0.08em;
  color:          var(--charcoal);
  line-height:    1.6;
}

/* Modal footer */
.barrel-modal-footer {
  margin-top: auto;
  padding-top: 8px;
}

.barrel-modal-divider {
  height:     1px;
  background: rgba(210, 180, 140, 0.20);
  margin:     20px 0 16px;
}

.barrel-modal-links {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             16px;
}

.barrel-modal-dual-btns {
  display: flex;
  gap:     12px;
}

.modal-text-link {
  display:         inline-flex;
  align-items:     center;
  gap:             5px;
  font-family:     var(--font-body);
  font-size:       13px;
  font-weight:     500;
  color:           var(--crimson);
  text-decoration: none;
  transition:      gap 0.2s ease;
}

.modal-text-link:hover {
  gap: 9px;
}

/* ============================================================
   BARREL MODAL — Radar visual layer
   ============================================================ */

.modal__visual {
  position: relative;
  overflow: hidden;
  width:    100%;
  height:   100%;
}

.modal__img {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.modal__radar span {
  white-space: pre-line;
}

.modal__blur-overlay {
  position:                absolute;
  inset:                   0;
  backdrop-filter:         blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background:              rgba(0, 0, 0, 0.45);
  opacity:                 0;
  pointer-events:          none;
  z-index:                 1;
}

.modal__radar {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  opacity:         0;
  pointer-events:  none;
  background:      transparent;
  z-index:         2;
}

.modal__visual-hint {
  position:       absolute;
  bottom:         16px;
  left:           20px;
  transform:      none;
  font-family:    var(--font-mono);
  font-size:      9px;
  letter-spacing: 0.15em;
  color:          var(--white);
  z-index:        3;
  pointer-events: none;
  white-space:   nowrap;
  opacity:       0;
}

.hint--mobile { display: none; }

/* Hint fades in 0.5s after modal opens (only when radar is ready) */
.modal__visual.radar-ready .modal__visual-hint {
  animation: modalHintAppear 0.4s ease 0.5s both;
}

@keyframes modalHintAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Tab switcher */
.modal__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.modal__tab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.4);
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal__tab--active {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

.modal__tab:hover:not(.modal__tab--active) {
  color: rgba(26, 26, 26, 0.7);
}

.modal__radar-inline {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 24px;
  opacity: 0;
}

@media (min-width: 769px) {
  .modal__tabs         { display: none; }
  .modal__radar-inline { display: none !important; }
}

@media (max-width: 768px) {
  .hint--desktop { display: none; }
  .hint--mobile  { display: inline; }
}

@media (max-width: 768px) {

  /* FIX 1 — backdrop covers full screen, card slides up from bottom */
  .barrel-modal {
    align-items:    flex-end;
    overflow:       hidden;
    padding-top:    0;
    padding-bottom: 0;
  }

  /* FIX 1 — card anchored to bottom, 85dvh tall, rounded top corners */
  .barrel-modal-inner {
    position:      fixed;
    bottom:        0;
    left:          0;
    right:         0;
    width:         auto;
    height:        95dvh;
    max-height:    none;
    overflow:      hidden;
    display:       block;
    border-radius: 16px 16px 0 0;
    margin:        0;
  }

  /* FIX 2 — image sits as background layer behind content */
  .barrel-modal-image {
    position:   absolute;
    top:        0;
    left:       0;
    right:      0;
    height:     260px;
    width:      auto;
    max-height: none;
    z-index:    0;
    flex-shrink: unset;
  }

  /* FIX 2 — content area sits on top, scrolls over the image */
  .barrel-modal-content {
    position:                   relative;
    z-index:                    1;
    background:                 var(--white);
    margin-top:                 180px;
    border-radius:              12px 12px 0 0;
    overflow-y:                 auto;
    height:                     calc(85dvh - 120px);
    padding:                    24px 24px 60px;
    max-height:                 none;
    flex:                       unset;
    -webkit-overflow-scrolling: touch;
  }

  .barrel-modal-title {
    font-size: 22px;
  }

  /* FIX 3 — close button absolute inside card, above image layer */
  .barrel-modal-close {
    position:   absolute;
    top:        16px;
    right:      16px;
    z-index:    10;
    background: none;
    color:      var(--oak);
    width:      auto;
    height:     auto;
    font-size:  28px;
    border-radius: 0;
    padding:    4px 8px;
  }

  /* FIX 4 — bottom links stack vertically, full width */
  .barrel-modal-links {
    flex-direction: column;
    align-items:    stretch;
    gap:            12px;
  }

  .barrel-modal-pdf {
    width:           100%;
    justify-content: center;
  }

  /* Dual btns (PDF + video) also stack vertically */
  .barrel-modal-dual-btns {
    flex-direction: column;
    gap:            12px;
    width:          100%;
  }

  .modal-text-link {
    justify-content: center;
  }

  /* "Zatražite ponudu" becomes outlined crimson button */
  .modal-text-link--cta {
    border:          1.5px solid var(--crimson);
    color:           var(--crimson);
    padding:         11px 22px;
    border-radius:   2px;
    font-family:     var(--font-body);
    font-size:       12px;
    font-weight:     500;
    letter-spacing:  0.08em;
    text-transform:  uppercase;
    text-decoration: none;
    justify-content: center;
  }

  /* Filter bar — unchanged */
  .barrels-filter {
    flex-direction: column;
    align-items:    flex-start;
    gap:            12px;
  }

  .barrels-filter-group {
    flex-wrap:                  nowrap;
    overflow-x:                 auto;
    max-width:                  100%;
    padding-bottom:             4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width:            none;
  }

  .barrels-filter-group::-webkit-scrollbar {
    display: none;
  }

  .barrels-filter-pill {
    flex-shrink: 0;
  }

  .modal__visual-hint {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: 0.18em;
  }
}


/* ============================================================
   DRVENE ALTERNATIVE PAGE — INTRO BLOCK
   ============================================================ */

#oeno-intro {
  background: var(--cream);
  padding:    64px 0;
}

.oeno-intro-text {
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   300;
  line-height:   1.75;
  color:         rgba(26, 26, 26, 0.60);
  max-width:     680px;
  margin:        0 auto 40px;
  text-align:    center;
}

#oeno-intro .delivery-features {
  justify-content: center;
  margin-bottom:   0;
}

#oeno-intro .delivery-feature {
  color: rgba(26, 26, 26, 0.55);
}


/* ============================================================
   BARRELS PAGE — ZAŠTO SEGUIN MOREAU
   ============================================================ */

#barrels-why,
#oeno-why,
#corks-why {
  background: var(--cream);
  padding:    88px 0;
  text-align: center;
}

.barrels-why-kicker {
  color:         var(--crimson);
  margin-bottom: 48px;
}

.barrels-why-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   48px;
  max-width:             960px;
  margin:                0 auto 40px;
}

.barrels-why-stat {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
}

.barrels-why-number {
  font-family: var(--font-display);
  font-size:   36px;
  font-weight: 600;
  color:       var(--crimson);
}

.barrels-why-label {
  font-family: var(--font-body);
  font-size:   13px;
  font-weight: 600;
  color:       var(--charcoal);
}

.barrels-why-desc {
  font-family: var(--font-body);
  font-size:   12px;
  font-weight: 300;
  color:       rgba(26, 26, 26, 0.50);
  line-height: 1.6;
}

.barrels-why-cert {
  font-family:     var(--font-mono);
  font-size:       11px;
  color:           rgba(26, 26, 26, 0.40);
  letter-spacing:  0.04em;
  margin:          0 auto;
}

@media (max-width: 768px) {
  .barrels-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap:                   32px;
  }

  .barrels-why-number {
    font-size:     24px;
    overflow-wrap: break-word;
    word-break:    break-word;
  }
}


/* ============================================================
   KATALOG — BROCHURES SECTION
   ============================================================ */

#katalog-brochures {
  background: var(--white);
  padding:    96px 0 120px;
}

.katalog-section-header {
  margin-bottom: 64px;
}

.katalog-kicker {
  color:       var(--oak);
  font-family: var(--font-mono);
}

/* Two-column layout: sidebar left, categories right */
.katalog-layout {
  display:               grid;
  grid-template-columns: 180px 1fr;
  gap:                   0 80px;
  align-items:           start;
}

/* Sticky sidebar */
.katalog-sidebar {
  position: sticky;
  top:      100px;
}

.katalog-sidebar-list {
  list-style:     none;
  margin:         0;
  padding:        0;
  display:        flex;
  flex-direction: column;
  gap:            14px;
}

.katalog-sidebar-link {
  font-family:     var(--font-mono);
  font-size:       10px;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  color:           rgba(26, 26, 26, 0.38);
  text-decoration: none;
  display:         block;
  transition:      color 0.25s ease;
}

.katalog-sidebar-link:hover {
  color: var(--oak);
}

.katalog-sidebar-link.active {
  color: var(--crimson);
}

/* Category blocks */
.katalog-categories {
  display:        flex;
  flex-direction: column;
  gap:            80px;
}

.katalog-category {
  border-top:  1px solid rgba(210, 180, 140, 0.35);
  padding-top: 36px;
}

/* FIX 2 — Category name as crimson Playfair heading */
.katalog-cat-heading {
  font-family:    var(--font-display);
  font-size:      22px;
  font-weight:    600;
  color:          var(--crimson);
  margin-bottom:  24px;
  line-height:    1.2;
}

/* Pill badges */
.katalog-pills {
  display:   flex;
  flex-wrap: wrap;
  gap:       12px;
}

.katalog-pill {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         10px 22px;
  border:          1px solid rgba(210, 180, 140, 0.40);
  border-radius:   99px;
  background:      transparent;
  font-family:     var(--font-mono);
  font-size:       13px;
  letter-spacing:  0.03em;
  color:           var(--charcoal);
  text-decoration: none;
  cursor:          pointer;
  transition:      color 0.25s ease, border-color 0.25s ease;
}

.katalog-pill:hover {
  color:        var(--crimson);
  border-color: var(--crimson);
}

/* Mobile: hide sidebar, single column */
@media (max-width: 1024px) {
  .katalog-layout {
    grid-template-columns: 1fr;
  }

  .katalog-sidebar {
    display: none;
  }
}


/* ============================================================
   KATALOG — VIDEO SECTION
   ============================================================ */

#katalog-videos {
  background:    var(--cream);
  padding:       96px 0 120px;
  border-bottom: 1px solid rgba(210, 180, 140, 0.15);
}

#katalog-videos .section-title {
  color: var(--charcoal);
}

#katalog-videos .katalog-kicker {
  color: var(--crimson);
}

.katalog-videos-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.katalog-video-card {
  background:      var(--cream);
  border:          1px solid rgba(26, 26, 26, 0.20);
  padding:         32px 28px;
  display:         flex;
  flex-direction:  column;
  text-decoration: none;
  opacity:         0;
  transform:       translateY(40px);
  transition:      border-color 0.35s ease;
}

.katalog-video-card:hover {
  border-color: var(--crimson);
}

.katalog-video-play {
  color:         var(--crimson);
  margin-bottom: 24px;
  flex-shrink:   0;
}

.katalog-video-title {
  font-family:   var(--font-display);
  font-size:     18px;
  font-weight:   600;
  color:         var(--charcoal);
  margin-bottom: 10px;
  line-height:   1.3;
  transition:    color 0.35s ease;
}

.katalog-video-card:hover .katalog-video-title {
  color: var(--crimson);
}

.katalog-video-desc {
  font-family:   var(--font-body);
  font-size:     13px;
  font-weight:   300;
  color:         rgba(26, 26, 26, 0.55);
  line-height:   1.6;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.katalog-video-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--oak);
  margin-top:     auto;
}

.katalog-video-arrow {
  flex-shrink: 0;
  transition:  transform 0.35s ease;
}

.katalog-video-card:hover .katalog-video-arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .katalog-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .katalog-videos-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CORKS INTRO — cepovi.html
   ============================================================ */

#corks-intro {
  background: var(--cream);
  padding:    96px 0 120px;
}

.corks-intro-container {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}

.corks-intro-kicker {
  color: var(--oak);
}

.corks-intro-p {
  font-weight:   300;
  color:         rgba(26, 26, 26, 0.65);
  max-width:     420px;
  line-height:   1.75;
  margin-bottom: 20px;
}

.corks-intro-p:last-of-type {
  margin-bottom: 0;
}

.corks-intro-right {
  display:        flex;
  flex-direction: column;
  gap:            32px;
}

.corks-feature {
  border-left:  2px solid var(--crimson);
  padding-left: 20px;
}

.corks-feature-label {
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--oak);
  margin-bottom:  8px;
}

.corks-feature-text {
  font-size:   14px;
  font-weight: 300;
  color:       rgba(26, 26, 26, 0.65);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .corks-intro-container {
    grid-template-columns: 1fr;
    gap:                   56px;
  }
}

/* ============================================================
   CORK PRODUCTS — cepovi.html
   ============================================================ */

#corks-products {
  background: var(--white);
}

.cork-row {
  padding: 96px 0;
}

.cork-row-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}

/* Image always first in DOM for img-left rows; swap order for img-right */
.cork-row--img-right .cork-row-text  { order: 1; }
.cork-row--img-right .cork-row-image { order: 2; }

.cork-row-image {
  aspect-ratio: 1 / 1;
  overflow:     hidden;
}

.cork-row-image img {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  display:     block;
}

.cork-divider {
  height:     1px;
  background: rgba(210, 180, 140, 0.35);
  margin:     0 48px;
}

/* Kicker */
.cork-kicker {
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--oak);
  margin-bottom:  16px;
}

/* Title */
.cork-title {
  font-family:   var(--font-display);
  font-size:     clamp(28px, 3vw, 42px);
  font-weight:   600;
  color:         var(--charcoal);
  line-height:   1.15;
  margin-bottom: 8px;
}

/* Subtitle — italic Playfair, oak */
.cork-subtitle {
  font-family:   var(--font-display);
  font-style:    italic;
  font-size:     17px;
  font-weight:   400;
  color:         var(--oak);
  margin-bottom: 24px;
}

/* Description */
.cork-desc {
  font-size:     15px;
  font-weight:   300;
  color:         rgba(26, 26, 26, 0.70);
  line-height:   1.75;
  margin-bottom: 32px;
}

/* Spec block — separated by oak line */
.cork-spec-block {
  border-top:    1px solid rgba(210, 180, 140, 0.45);
  padding-top:   28px;
  margin-bottom: 36px;
}

.cork-spec-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px 32px;
}

.cork-spec-item {
  display:        flex;
  flex-direction: column;
  gap:            5px;
}

.cork-spec-label {
  font-family:    var(--font-mono);
  font-size:      9px;
  font-weight:    400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color:          var(--oak);
}

.cork-spec-value {
  font-family:  var(--font-body);
  font-size:    13px;
  font-weight:  300;
  color:        var(--charcoal);
  line-height:  1.5;
}

/* CTA link — matches .card-cta pattern */
.cork-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--crimson);
  text-decoration: none;
}

.cork-cta svg {
  flex-shrink: 0;
  transition:  transform 0.35s ease;
}

.cork-cta:hover svg {
  transform: translateX(4px);
}

/* Transparent-bg images — give breathing room */
#cork-row-1 .cork-row-image,
#cork-row-2 .cork-row-image {
  padding: 48px 32px;
}

#cork-row-3 .cork-row-image {
  padding:   48px 32px;
  transform: scale(0.7);
}

#cork-row-1 .cork-row-image img,
#cork-row-2 .cork-row-image img,
#cork-row-3 .cork-row-image img {
  object-fit: contain;
}

/* Responsive */
@media (max-width: 860px) {
  .cork-row-inner {
    grid-template-columns: 1fr;
    gap:                   40px;
  }

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

  .cork-divider {
    margin: 0 24px;
  }

  .cork-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {

  /* FIX 1 — Rolha de Cortiça: anchor to top so full cork is visible */

  #cork-row-1 .cork-row-image img {
    margin-top: -40px;
    margin-bottom: -40px;
    object-position: center top;
    transform:       scale(0.75);
  }

  /* FIX 3 — Bartops: crop bottom, shift upward */
  #cork-row-3 .cork-row-image img {
    transform:       scale(1.1);
    object-position: center 20%;
  }
}

@media (max-width: 768px) {
  .cork-row {
    padding: 80px 0;
    max-width: 100%;
    overflow: hidden;
  }

  .cork-row-image {
    max-width: 100%;
    overflow: hidden;
  }

  .cork-row-image img {
    width:     100%;
    max-width: 100%;
    height:    auto;
    display:   block;
  }
}

/* ============================================================
   CORKS CERTIFICATIONS — cepovi.html
   ============================================================ */

#corks-certs {
  background: var(--charcoal);
  padding:    96px 0 120px;
}

#corks-certs .section-title {
  color: var(--white);
}

#corks-certs .section-kicker {
  color: var(--oak);
}

.certs-header {
  margin-bottom: 64px;
}

/* --- Five main cards --- */

.certs-cards {
  display:               grid;
  grid-template-columns: repeat(5, 1fr);
  gap:                   16px;
  align-items:           center;
  margin-bottom:         64px;
}

.cert-card {
  background:     rgba(255, 255, 255, 0.04);
  border:         1px solid rgba(210, 180, 140, 0.30);
  padding:        32px 24px;
  display:        flex;
  flex-direction: column;
  gap:            0;
  transition:     border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  border-color: var(--oak);
  box-shadow:   0 8px 32px rgba(210, 180, 140, 0.25);
}

/* Symmetrical height graduation — equal 30px steps center-outward */
.certs-cards .cert-card:nth-child(1),
.certs-cards .cert-card:nth-child(5) { min-height: 240px; }

.certs-cards .cert-card:nth-child(2),
.certs-cards .cert-card:nth-child(4) { min-height: 270px; }

.certs-cards .cert-card:nth-child(3) { min-height: 300px; }

.cert-card-title {
  font-family:   var(--font-mono);
  font-size:     14px;
  font-weight:   600;
  color:         var(--white);
  line-height:   1.3;
  margin-bottom: 14px;
}

.cert-card-desc {
  font-family:  var(--font-body);
  font-size:    13px;
  font-weight:  300;
  color:        rgba(255, 255, 255, 0.65);
  line-height:  1.65;
  flex-grow:    1;
  margin-bottom: 20px;
}

.cert-card-label {
  font-family:    var(--font-mono);
  font-size:      9px;
  font-weight:    400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--oak);
  margin-top:     auto;
}

/* --- Secondary pills --- */

.certs-pills-section {
  text-align: center;
}

.certs-pills-label {
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          rgba(255, 255, 255, 0.30);
  margin-bottom:  20px;
}

.certs-pills {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             10px;
}

.cert-pill-wrap {
  position: relative;
}

.cert-pill {
  display:        inline-block;
  padding:        7px 18px;
  border:         1px solid rgba(210, 180, 140, 0.30);
  border-radius:  999px;
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    400;
  color:          rgba(255, 255, 255, 0.50);
  cursor:         default;
  transition:     border-color 0.25s ease, color 0.25s ease;
  user-select:    none;
}

.cert-pill-wrap:hover .cert-pill {
  border-color: rgba(210, 180, 140, 0.65);
  color:        rgba(255, 255, 255, 0.85);
}

/* Tooltip */
.cert-tooltip {
  position:      absolute;
  bottom:        calc(100% + 10px);
  left:          50%;
  transform:     translateX(-50%);
  background:    rgba(15, 15, 15, 0.97);
  border:        1px solid rgba(210, 180, 140, 0.20);
  padding:       10px 14px;
  border-radius: 4px;
  font-family:   var(--font-body);
  font-size:     12px;
  font-weight:   300;
  color:         var(--white);
  white-space:   normal;
  max-width:     min(240px, 80vw);
  word-wrap:     break-word;
  pointer-events: none;
  display:        none;
  z-index:        20;
}

.cert-pill-wrap:hover .cert-tooltip {
  display: block;
}

.cert-tooltip.flip-left {
  left:      auto;
  right:     0;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .cert-card:hover {
  border-color: none;
  box-shadow:   none;
  }

  .certs-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cert-card--featured {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .cert-card:hover {
  border-color: none;
  box-shadow:   none;
  }

  .certs-cards {
    grid-template-columns: repeat(5, 220px);
    overflow-x:            scroll;
    overflow-y:            visible;
    padding-bottom:        12px;
    width:                 100%;
    max-width:             100vw;
    contain:               layout;
    scroll-snap-type:      x mandatory;
    scroll-behavior:       smooth;
  }

  .cert-card {
    scroll-snap-align: center;
  }

  .cert-card--featured {
    grid-column:       auto;
    scroll-snap-align: center;
  }

  .cert-card--active {
    box-shadow:   0 0 24px rgba(210, 180, 140, 0.35);
    border-color: var(--oak);
    transition:   box-shadow 0.3s ease, border-color 0.3s ease;
  }
}

/* Cert cards — initial hidden state for GSAP entrance (desktop only) */
@media (min-width: 769px) {
  #corks-certs .certs-kicker,
  #corks-certs .section-title,
  #corks-certs .cert-card,
  #corks-certs .certs-pills-section {
    opacity:   0;
    transform: translateY(30px);
  }
}

/* ============================================================
   CORKS CTA BANNER — cepovi.html
   ============================================================ */

#corks-cta {
  position:       relative;
  background:     var(--crimson);
  border-top:     1px solid var(--white);
  border-bottom:  1px solid var(--white);
  overflow:       hidden;
  display:        flex;
  align-items:    center;
  padding:        96px 0;
  text-align:     center;
}

#corks-cta .delivery-container {
  text-align: center;
}

#corks-cta .delivery-title {
  margin-bottom: 0;
}

#corks-cta .delivery-title em {
  color: var(--white);
}

#corks-cta .delivery-circle {
  border-color: rgba(255, 255, 255, 0.20);
}

#corks-cta .delivery-circle--large {
  border-color: rgba(255, 255, 255, 1);
}

/* ============================================================
   KONTAKT PAGE
   ============================================================ */

/* Hero override — no image, centered content, shorter height */
#barrels-hero.barrels-hero--contact {
  background:      var(--charcoal);
  justify-content: center;
  min-height:      35vh;
}

#barrels-hero.barrels-hero--contact .barrels-bg-overlay {
  display: none;
}

#barrels-hero.barrels-hero--contact .barrels-hero-title {
  white-space: normal;
}

#barrels-hero.barrels-hero--contact .hero-content {
  margin-top: 20px;
}

#barrels-hero.barrels-hero--contact .barrels-title-oak {
  color: var(--white);
}

#barrels-hero.barrels-hero--contact .contact-title-accent {
  color:       var(--crimson);
  -webkit-text-stroke-width: 0px;
  font-style:  normal;
  text-shadow: none;
}

/* Main contact section */
#kontakt-main {
  background: var(--white);
  padding:    96px 0 120px;
}

.kontakt-container {
  display:               grid;
  grid-template-columns: 45fr 55fr;
  gap:                   80px;
  align-items:           start;
}

.kontakt-intro {
  font-size:     15px;
  font-weight:   300;
  color:         rgba(26, 26, 26, 0.65);
  line-height:   1.75;
  max-width:     360px;
  margin-bottom: 0;
}

/* Oak divider between intro and contact rows */
.kontakt-divider {
  height:     1px;
  background: rgba(210, 180, 140, 0.25);
  margin:     24px 0;
}

/* Entrance hidden states — animated in by initKontaktEntranceAnimations() */
#kontakt-main .kontakt-intro,
#kontakt-main .kontakt-divider,
#kontakt-main .contact-info-row,
#kontakt-main .kontakt-right {
  opacity:   0;
  transform: translateY(20px);
}

.kontakt-left .contact-info {
  list-style: none;
  padding:    0;
  margin:     0;
}

/* Contact info rows — dark text on white bg */
.kontakt-left .contact-info-row {
  color: rgba(26, 26, 26, 0.75);
}

.kontakt-left .contact-info-row svg {
  color: var(--crimson);
}

/* Form inputs — dark on white bg */
#kontakt-main .contact-input {
  border: 1px solid rgba(26, 26, 26, 0.2);
  color:  var(--charcoal);
}

#kontakt-main .contact-input::placeholder {
  color: rgba(26, 26, 26, 0.35);
}

#kontakt-main .contact-input:focus {
  border-color: var(--oak);
  outline:      none;
}

/* Submit button — explicit crimson/white for light bg context */
#kontakt-main .contact-submit {
  background: var(--crimson);
  color:      var(--white);
  border:     none;
}

#kontakt-main .contact-disclaimer {
  color: rgba(26, 26, 26, 0.4);
}

/* Location section */
#kontakt-location {
  background: var(--charcoal);
  padding:    96px 0 120px;
}

.kontakt-location-container {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}

.kontakt-location-kicker {
  color:         var(--oak);
  margin-bottom: 40px;
}

.kontakt-address {
  font-family:   var(--font-display);
  font-style:    normal;
  font-size:     clamp(28px, 3.5vw, 48px);
  font-weight:   600;
  color:         var(--white);
  line-height:   1.4;
  margin-bottom: 32px;
}

.kontakt-address-meta {
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    400;
  color:          rgba(255, 255, 255, 0.40);
  letter-spacing: 0.04em;
  line-height:    1.8;
}

.kontakt-location-right {
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.kontakt-watermark {
  font-family:  var(--font-display);
  font-size:    clamp(120px, 20vw, 220px);
  font-weight:  700;
  color:        var(--crimson);
  opacity:      0.15;
  line-height:  1;
  user-select:  none;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 860px) {
  .kontakt-container {
    grid-template-columns: 1fr;
    gap:                   56px;
  }

  .kontakt-location-container {
    grid-template-columns: 1fr;
    gap:                   48px;
  }

  .kontakt-location-right {
    display: none;
  }
}


/* ============================================================
   LEGAL PAGES — privacy.html, uvjeti.html
   ============================================================ */

.legal-section {
  background: var(--cream);
}

.legal-wrapper {
  max-width: 800px;
  margin:    0 auto;
  padding:   80px 48px;
}

.legal-updated {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(26,26,26,0.4);
  margin-bottom:  32px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size:   18px;
  font-weight: 400;
  color:       var(--charcoal);
  margin:      40px 0 12px;
}

.legal-content p {
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   300;
  color:         rgba(26,26,26,0.75);
  line-height:   1.8;
  margin-bottom: 16px;
}

.legal-content strong {
  font-weight: 500;
  color:       var(--charcoal);
}

.legal-content a {
  color:           var(--crimson);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-wrapper {
    padding: 56px 20px;
  }
}
