/* ==========================================================================
   PLANINARSKO DRUŠTVO KONJUH — SHARED STYLESHEET
   DESIGN TOKENS: FOREST #355E3B / MOSS #557A46 / BEIGE #F6F3EE / STONE #E7E5E2
   FUNCTIONAL ACCENTS: ALPENGLOW #C97B3D (MODERATE) / RUST #8B3A2B (HARD)
   TYPE: ALEGREYA (DISPLAY / BODY / UI / DATA)
   SIGNATURE MOTIF: TOPOGRAPHIC CONTOUR LINES
   ========================================================================== */

:root {
  --forest: #173d30;
  --forestDeep: #13312b;
  --moss: #6F8F7A;
  --beige: #F6F3EE;
  --stone: #E7E5E2;
  --white: #FFFFFF;
  --charcoal: #1E1E1E;
  --alpenglow: #C97B3D;
  --rust: #8B3A2B;
  /* BRAND PALETTE — HARMONIZED WITH THE PD KONJUH LOGO (NAVY MOUNTAIN, RED RING, ICE-BLUE ACCENT) */
  --navy: #0F5875;
  --navyDeep: #02445E;
  --brandRed: #DC292B;
  --brandRedDeep: #A81F21;
  --iceblue: #51B1DB;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* PREVENT ANY ELEMENT (LARGE FOOTER WORDMARK, MENU, REVIEW STRIP...) FROM MAKING
   THE PAGE WIDER THAN THE VIEWPORT, WHICH WOULD ALLOW LEFT-RIGHT DRAG/SCROLL ON MOBILE */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

[id] {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Alegreya';
  color: var(--charcoal);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

/* ---- PAGE TRANSITIONS (SIMPLE, CONSISTENT CROSSFADE, NO LAYOUT SHIFT) ---- */
/* BODY STARTS SLIGHTLY FADED, SCRIPT.JS FLIPS TO .isReady ONCE THE SHARED
   HEADER/FOOTER/CTA PARTIALS ARE MOUNTED, SO NOTHING "POPS IN" AFTER PAINT */
body {
  opacity: 0;
  transition: opacity .32s var(--ease);
}

body.isReady {
  opacity: 1;
}

body.isLeaving {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
    opacity: 1;
  }
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: 'Alegreya';
  letter-spacing: -0.01em;
}

.fontMonoLabel {
  font-family: 'Alegreya';
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* FOCUS VISIBILITY FOR ACCESSIBILITY */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--alpenglow);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--moss);
  color: var(--white);
}

/* ---- TOPOGRAPHIC CONTOUR MOTIF ---------------------------------------- */
.topoBg {
  background-image:
    repeating-radial-gradient(circle at 18% 30%, transparent 0, transparent 26px, rgba(246, 243, 238, .055) 27px, rgba(246, 243, 238, .055) 28px, transparent 29px),
    repeating-radial-gradient(circle at 82% 70%, transparent 0, transparent 34px, rgba(246, 243, 238, .045) 35px, rgba(246, 243, 238, .045) 36px, transparent 37px);
  background-size: 100% 100%;
}

/* ---- ELEVATION DIVIDER — LAYERED, MORE VISIBLE, MODERN RIDGE-LINE MOTIF -------- */
.elevationDividerWrap {
  padding: 1.3rem 0;
}

.elevationDivider {
  display: block;
  width: 100%;
  height: 80px;
  filter: drop-shadow(0 4px 5px rgba(2, 68, 94, .14));
}

.topoLine {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topoLineBack {
  stroke: var(--navy);
  stroke-width: 2.5;
  opacity: .28;
}

.topoLineFront {
  stroke: var(--navyDeep);
  stroke-width: 3;
  opacity: .8;
}

.topoLineDotRed {
  fill: var(--brandRed);
  opacity: .95;
}

.topoLineDotIce {
  fill: var(--iceblue);
  opacity: .9;
}

@media(min-width:1024px) {
  .elevationDivider {
    height: 100px;
  }
}

/* ---- HEADER (FLOATING ROUNDED PILL NAV, PER REFERENCE DESIGN) ----------- */
/* HEADER KEEPS THE SAME BLURRED GLASS LOOK AT ALL TIMES — IT DOES NOT CHANGE ON SCROLL */
.siteHeader {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;

  transform: translate3d(-50%, 0, 0);
  width: calc(100% - 2rem);
  max-width: 1180px;

  /* PERSISTENT GLASS EFFECT, MATCHED TO THE NAVY/RED PALETTE OF THE LOGO */
  background:
    radial-gradient(120% 140% at 6% 100%,
      rgba(220, 41, 43, .18),
      transparent 45%),
    rgba(2, 12, 17, .55);

  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);

  border: 1px solid rgba(246, 243, 238, .16);
  border-radius: 999px;

  box-shadow:
    0 12px 35px -18px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

@media(min-width:1024px) {
  .siteHeader {
    width: calc(100% - 3.5rem);
  }
}

/* ---- NAVBAR HIDES ON SCROLL DOWN, REAPPEARS ON SCROLL UP (DESKTOP AND MOBILE) ---------- */
.siteHeader.headerAutoHide {
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  will-change: opacity, transform;
}

.siteHeader.headerAutoHide.isHidden {
  opacity: 0;
  transform: translate3d(-50%, -18px, 0);
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .siteHeader.headerAutoHide {
    transition: none;
  }
}

.siteHeader .brandMark {
  color: var(--beige);
}

.siteHeader .navLink {
  color: var(--beige);
  font-size: 20px;
}

.navLink {
  position: relative;
}

.navLink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width .3s var(--ease);
}

.navLink:hover::after {
  width: 100%;
}

/* HEADER CTA PILL, MATCHING THE REFERENCE "CONTACT US" BUTTON */
.navCta {
  background: #02445e;
  color: #fff;
  border-radius: 999px;
  padding: .7rem 1.35rem;
  font-weight: 600;
  font-size: 1.0rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.navCta:hover {
  box-shadow: 0 10px 22px -10px rgba(71, 61, 61, 0.4);
}

/* MEGA MENU */
.megaPanel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.megaTrigger:hover .megaPanel,
.megaTrigger:focus-within .megaPanel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}

.btnPrimary {
  background: var(--navy);
  color: var(--beige);
}

.btnPrimary:hover {
  background: var(--navyDeep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(14, 51, 42, .5);
}

.btnOutline {
  background: transparent;
  color: var(--beige);
  border: 1px solid rgba(246, 243, 238, .55);
}

.btnOutline:hover {
  background: rgba(246, 243, 238, .12);
  transform: translateY(-2px);
}

.btnOutlineDark {
  background: transparent;
  color: var(--forest);
  border: 1px solid rgba(24, 77, 59, .35);
}

.btnOutlineDark:hover {
  background: rgba(24, 77, 59, .06);
  transform: translateY(-2px);
}

/* ---- MAIN HERO, ROUNDED BOX INSTEAD OF FULL SECTION ---- */
/* SECTION ONLY ADDS SPACING AND OFFSET BELOW HEADER */
.heroSection {
  padding-top: 112px;
}

@media(min-width:1024px) {
  .heroSection {
    padding-top: 132px;
  }
}

/* BOX WITH ROUNDED CORNERS, SHADOW, HOVER WHEN LINKED TO A TOUR */
.heroBox {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 64px -32px rgba(2, 12, 17, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

@media(min-width:640px) {
  .heroBox {
    border-radius: 36px;
  }
}

/* CURSOR ONLY WHEN JS ADDS THE LINKED CLASS */
.heroBox.heroBoxLinked {
  cursor: pointer;
}

.heroBox.heroBoxLinked:hover {
  transform: translateY(-4px);
  box-shadow: 0 42px 84px -30px rgba(2, 12, 17, .6);
}

.heroBox.heroBoxLinked:focus-visible {
  outline: 3px solid var(--iceblue);
  outline-offset: 5px;
}

/* BUTTONS/LINKS KEEP THEIR OWN CLICK AREA */
.heroBox .btn {
  position: relative;
  z-index: 2;
}

.heroBox .heroNextTourCard {
  z-index: 3;
}

/* FALLBACK POSITION CONTEXT ADDED BY JS WHEN HERO IS NOT POSITIONED */
.heroNextTourAnchor {
  position: relative;
}

.heroBoxEyebrow {
  color: var(--iceblue);
}

/* ---- HERO "NEXT TOUR" CARD — NO PHOTO --------------------------------
   A compact glass plate, floating over the hero image, bottom right on
   desktop. Composed only of type: a small uppercase label, the tour name
   set large in the site's serif display face, the date underneath, and a
   text link with an arrow. Weight and size carry the hierarchy instead of
   an imported thumbnail. */
.heroNextTourCard {
  position: absolute;
  bottom: 37px;
  right: -10rem;
  z-index: 5;
  width: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(220, 41, 43, .14), transparent 45%),
    rgba(2, 12, 17, .55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 18px;
  text-decoration: none;
  box-shadow:
    0 24px 55px -22px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0;
  transform: translate3d(28px, 0, 0);
  animation: heroNextTourIn .9s var(--ease) both;
  animation-delay: 0.75s;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-left-color .35s var(--ease);
}

.heroNextTourCard:hover {
  transform: translate3d(0, -4px, 0);
  border-left-color: var(--brandRed);
  box-shadow:
    0 30px 64px -20px rgba(0, 0, 0, .58),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

@keyframes heroNextTourIn {
  from {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.heroNextTourBody {
  padding: 24px 26px 26px;
}

/* SMALL LABEL — REPLACES THE OLD IMAGE BADGE */
.heroNextTourEyebrow {
  font-family: 'Alegreya', serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--iceblue);
}

.heroNextTourTitle {
  font-family: 'Alegreya', serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -.01em;
  color: var(--beige);
  line-height: 1.08;
  margin: 0 0 8px;
}

.heroNextTourDate {
  font-family: 'Alegreya', serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(246, 243, 238, .62);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(246, 243, 238, .16);
}

.heroNextTourLink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  color: var(--beige);
}

.heroNextTourLink svg {
  transition: transform .3s var(--ease);
}

.heroNextTourCard:hover .heroNextTourLink svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .heroNextTourCard {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {

  .heroNextTourCard {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 0;

    background: #000b141f;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(61, 144, 215, 0.12);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    text-align: left;

    opacity: 0;
    transform: translateX(-70px);
    animation: heroNextTourSlideIn 1.7s ease-out forwards;

    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.25s ease;
  }

  .heroNextTourCard:hover {
    box-shadow: 0 10px 30px rgba(61, 144, 215, 0.20);
    border-left-color: var(--brandRed);
  }

  /* ANIMACIJA SA DESNE STRANE */
  @keyframes heroNextTourSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-70px);
  }

  60% {
    opacity: 1;
    transform: translateX(5px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

  /* SINGLE ROW: EVERYTHING (LABEL, TITLE, DATE, LINK) SITS ON ONE LINE.
     LABEL IS HIDDEN TO SAVE SPACE; TITLE/DATE/LINK STAY INLINE WITH A
     SEPARATOR DOT, LIKE A COMPACT TICKER ROW INSTEAD OF STACKED TEXT. */
  .heroNextTourBody {
    padding: 14px 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 8px;
  }

  .heroNextTourEyebrow {
    display: none;
  }

  .heroNextTourBody .heroNextTourTitle {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42%;
  }

  .heroNextTourBody .heroNextTourDate {
    font-size: .85rem;
    margin: 0;
    padding: 0;
    border-bottom: none;
    color: rgba(246, 243, 238, .62);
    flex: none;
    white-space: nowrap;
    position: relative;
    padding-left: 12px;
  }

  .heroNextTourBody .heroNextTourDate::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--iceblue);
  }

  .heroNextTourBody .heroNextTourLink {
    display: inline-flex;
    margin-left: auto;
    flex: none;
    font-size: .82rem;
    white-space: nowrap;
  }
}

@media (max-width: 479px) {

  .heroNextTourCard {
    border-radius: 14px;
  }

  .heroNextTourBody {
    padding: 12px 14px;
    gap: 6px;
  }

  .heroNextTourBody .heroNextTourTitle {
    font-size: .92rem;
    max-width: 38%;
  }

  .heroNextTourBody .heroNextTourDate {
    font-size: .78rem;
    padding-left: 10px;
  }

  .heroNextTourBody .heroNextTourLinkText {
    display: none;
  }
}

/* ---- HERO TEXT: ALWAYS CENTERED, ON EVERY SCREEN SIZE ---- */
.heroBox,
.heroContent,
[data-hero-box] {
  text-align: center;
}

.heroBox .btnGroup,
.heroContent .btnGroup {
  justify-content: center;
}




/* ---- HIKE CARDS (UPCOMING HIKES) — FULLY STATIC, NO HOVER ANIMATION ----- */
.hikeCard {
  box-shadow: 0 20px 46px -32px rgba(24, 77, 59, .28);
}

.hikeCard .imgZoom img {
  transition: none;
}

.hikeCard .imgZoom:hover img {
  transform: none;
}

/* ---- FEATURE CARDS — DARK, ACCENT BAR + TINTED ICON, STATIC (NO TRANSITION) ---- */
.featureCard {
  position: relative;
  overflow: hidden;
  background: var(--forestDeep);
  border: 1px solid rgba(246, 243, 238, .18);
  border-radius: 1.1rem;
  padding: 2.1rem 1.6rem 1.9rem;
}

.featureCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.featureCardTopo {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 120px;
  height: 40px;
  stroke: rgba(246, 243, 238, .16);
  stroke-width: 1.4;
  fill: none;
  pointer-events: none;
}

.featureCardIcon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accentSoft);
  color: var(--beige);
  margin-bottom: 1.35rem;
}

.featureCardTitle {
  position: relative;
  z-index: 1;
  font-family: 'Alegreya';
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--beige);
}

.featureCardText {
  position: relative;
  z-index: 1;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(246, 243, 238, .65);
}

/* ---- CARDS / HOVER LIFT -------------------------------------------------- */
.lift {
  transition: transform .15s var(--ease), box-shadow .45s var(--ease);
}

.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(14, 51, 42, .35);
}

.imgZoom {
  overflow: hidden;
}

.imgZoom img {
  transition: transform 1.4s var(--ease);
}

.imgZoom:hover img {
  transform: scale(1.12);
}

/* ---- SCROLL REVEAL -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.reveal.isVisible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.revealDelay1 {
  transition-delay: .08s;
}

.revealDelay2 {
  transition-delay: .16s;
}

.revealDelay3 {
  transition-delay: .24s;
}

.revealDelay4 {
  transition-delay: .32s;
}

.revealDelay5 {
  transition-delay: .4s;
}

/* ---- FOOTER GALLERY: SLOWER, SOFTER IMAGE REVEAL ------------------ */
.footerGalleryItem.reveal {
  transition-duration: 1s, 1s;
  transition-timing-function: var(--ease), var(--ease);
}

/* ---- HERO TEXT: LEFT-TO-RIGHT ENTRANCE (SHORTER TRAVEL = SMOOTHER) ------- */
.revealLeft {
  opacity: 0;
  transform: translate3d(-32px, 0, 0);
  transition: opacity 1.4s var(--ease), transform 1.9s var(--ease);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.revealLeft.isVisible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---- MASONRY (MOUNTAINS) ON MOBILE: ALTERNATING FROM THE RIGHT AND LEFT SIDE ---------- */
@media(max-width:639px) {
  .masonry>*:nth-child(even).revealLeft {
    transform: translate3d(32px, 0, 0);
  }

  .masonry>*:nth-child(even).revealLeft.isVisible {
    transform: translate3d(0, 0, 0);
  }
}

/* ---- GLASS (USED SPARINGLY: FLOATING BADGES OVER PHOTOGRAPHY) ------------ */
.glass {
  background: rgba(246, 243, 238, .16);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(246, 243, 238, .28);
}

.glassDark {
  background: rgba(14, 51, 42, .42);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(246, 243, 238, .16);
}

.-bottom-6 {
  right: -11.5rem;
}

/* ---- DIFFICULTY BADGES ----------------------------------------------------- */
.badge {
  border-radius: 14px;
  font-family: 'Alegreya';
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.badgeEasy {
  background: rgba(85, 122, 70, .12);
  color: var(--moss);
}

.badgeModerate {
  background: rgba(81, 177, 219, .14);
  color: var(--iceblue);
}

.badgeHard {
  background: rgba(220, 41, 43, .13);
  color: var(--brandRed);
}

/* ---- SCROLL INDICATOR ------------------------------------------------------ */
.scrollIndicator {
  animation: driftDown 2.4s var(--ease) infinite;
}

@keyframes driftDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: .55;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

/* ---- ANIMATED COUNTERS ------------------------------------------------------ */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---- ACCORDION (FAQ) ------------------------------------------------------ */
.accordionList {
  background: #F6F3EE;
  border: 1px solid var(--stone);
  border-radius: 1.5rem;
  padding: .25rem 1.75rem;
  box-shadow: 0 24px 60px -34px rgba(14, 51, 42, .22);
}

.accordionItem {
  border-bottom: 1px solid var(--stone);
}

.accordionItem:last-child {
  border-bottom: none;
}

.accordionTrigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem .25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Alegreya', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color .25s var(--ease);
}

.accordionTrigger:hover {
  color: var(--forest);
}

.accordionTrigger[aria-expanded="true"] {
  color: var(--forest);
}

.accordionIconWrap {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(85, 122, 70, .12);
  color: var(--moss);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}

.accordionTrigger[aria-expanded="true"] .accordionIconWrap {
  background: var(--forest);
  color: var();
  transform: rotate(45deg);
}

.accordionPanel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.accordionPanelInner {
  padding: 0 .25rem 1.5rem;
  max-width: 34rem;
}

.accordionPanelInner p {
  color: rgba(30, 30, 30, .68);
  line-height: 1.7;
  font-size: .95rem;
}

/* ---- TESTIMONIAL MARKS -------------------------------------------------- */
.quoteMark {
  font-family: 'Alegreya', serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--moss);
  opacity: .35;
}

/* ---- TESTIMONIAL MARQUEE — CONTINUOUS RIGHT-TO-LEFT SCROLL, NEVER STOPS --- */
.testimonialMarquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.testimonialTrack {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0 6px;
  /* PREVENT THE CARD SHADOW FROM BEING CLIPPED */
  animation: testimonialScroll 42s linear infinite;
}

.testimonialCard {
  flex: none;
  width: min(86vw, 380px);
}

@media(min-width:768px) {
  .testimonialCard {
    /* THREE CARDS VISIBLE AT ONCE ON DESKTOP, WHILE THE TRACK KEEPS MOVING */
    width: calc((min(1152px, 100vw - 5rem) - 4rem) / 3);
  }
}

@keyframes testimonialScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonialTrack {
    animation: none;
  }
}

/* ---- MASONRY GALLERY ------------------------------------------------------ */
.masonry {
  columns: 1;
  column-gap: 1rem;
}

@media(min-width:640px) {
  .masonry {
    columns: 2;
  }
}

@media(min-width:1024px) {
  .masonry {
    columns: 3;
  }
}

.masonry>* {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* ---- LIGHTBOX ---------------------------------------------------------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 20, 17, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s;
}

#lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#lightbox img {
  max-height: 88vh;
  max-width: 88vw;
  border-radius: 35px;
  transform: scale(.94);
  transition: transform .4s var(--ease);
}

#lightbox.open img {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {

  #lightbox,
  #lightbox img {
    transition: none;
  }
}

/* ---- RANGE/SLIDER (HIKES FILTER) ---------------------------------------- */
input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--stone);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--beige);
  box-shadow: 0 0 0 1px rgba(24, 77, 59, .3);
}

/* ---- PARALLAX HERO IMAGE -------------------------------------------------- */
.parallaxImg {
  will-change: transform;
}

/* ---- UTILITY: EYEBROW LABEL ------------------------------------------------ */
.eyebrow {
  font-family: 'Alegreya', serif;
  font-size: 1.00rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--moss);
}

/* ---- DARK MODE (PREFERS-COLOR-SCHEME) -------------------------------------- */
@media (prefers-color-scheme: dark) {
  body.supportsDark {
    background: #12201B;
    color: var(--beige);
  }

  body.supportsDark .bg-beige {
    background: #12201B !important;
  }

  body.supportsDark .bg-white {
    background: #16261F !important;
  }

  body.supportsDark .text-charcoal {
    color: var(--beige) !important;
  }

  body.supportsDark [class*="text-charcoal/"] {
    color: rgba(246, 243, 238, .72) !important;
  }

  body.supportsDark [class*="bg-stone"] {
    background-color: #182B23 !important;
  }

  body.supportsDark [class*="border-stone"] {
    border-color: rgba(246, 243, 238, .14) !important;
  }

  body.supportsDark .siteHeader {
    background: rgba(2, 10, 14, .85) !important;
    box-shadow: 0 1px 0 rgba(246, 243, 238, .08) !important;
  }

  body.supportsDark .siteHeader .navLink,
  body.supportsDark .siteHeader .brandMark {
    color: var(--beige) !important;
  }

  body.supportsDark .btnOutlineDark {
    color: var(--beige) !important;
    border-color: rgba(246, 243, 238, .32) !important;
  }

  body.supportsDark .btnOutlineDark:hover {
    background: rgba(246, 243, 238, .08) !important;
  }

  body.supportsDark input,
  body.supportsDark select,
  body.supportsDark textarea {
    background: #182B23 !important;
    color: var(--beige) !important;
    border-color: rgba(246, 243, 238, .18) !important;
  }
}

/* SKIP LINK */
.skipLink {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--beige);
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 6px 0;
}

.skipLink:focus {
  left: 0;
}

/* ---- BACK TO TOP BUTTON ---------------------------------------------------- */
.backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(14, 51, 42, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}

.backToTop.isVisible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.backToTop:hover {
  background: var(--forestDeep);
}

/* ---- MOBILE MENU TOGGLE — ICON + WORD, SHOWN AS A CLEAR PILL BUTTON -------- */
/* NOT JUST A HAMBURGER ICON: PAIRS IT WITH "MENI" / "ZATVORI" SO THE
   BUTTON'S PURPOSE IS OBVIOUS AT A GLANCE, NO ICON-LITERACY REQUIRED. */
.menuToggleBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;

    color: var(--beige);
    background: rgba(246, 243, 238, 0.07);

    border: 1px solid rgba(246, 243, 238, 0.18);
    padding: .7rem 1.05rem;

    border-radius: 999px;

    font-family: 'Alegreya', serif;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        background-color .25s var(--ease),
        border-color .25s var(--ease),
        transform .25s var(--ease),
        box-shadow .25s var(--ease);
}

.menuToggleBtn:hover,
.menuToggleBtn:focus-visible {
  background: rgba(246, 243, 238, .18);
  border-color: rgba(246, 243, 238, .4);
}

.menuToggleLabel {
  line-height: 1;
}

/* ---- MOBILE MENU ICON MORPH ------------------------------------------------- */
.menuIconMorph svg {
  transition: transform .3s var(--ease);
}

/* ---- MOBILE MENU: LEFT-SIDE DRAWER (LINKS ENTER ONE BY ONE FROM THE LEFT) ---------- */
/* SCRIM SITS BEHIND THE DRAWER, DIMS THE REST OF THE PAGE, LIGHT BLUR ONLY */
#mobileMenuScrim {
  position: fixed;
  z-index: 44;
  inset: 0;
  background: rgba(2, 10, 14, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  pointer-events: none;
}

#mobileMenuScrim.isOpen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mobileMenu {
  position: fixed;
  z-index: 45;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100dvh;
  width: 100%;
  max-width: none;

  /* TRANSLUCENT NAVY-TINTED GLASS — LOW ENOUGH OPACITY FOR THE BACKDROP
     BLUR TO ACTUALLY READ, INSTEAD OF THE PREVIOUS NEAR-OPAQUE DARK-GREEN FILL */
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(81, 177, 219, .16), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(220, 41, 43, .12), transparent 50%),
    rgba(2, 12, 17, .82);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: none;
  border-radius: 0;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 6rem 0 0;
  overflow-y: auto;

  transform-origin: left center;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .38s var(--ease), opacity .3s var(--ease), visibility .38s;
  will-change: transform, opacity;
  pointer-events: none;
}

#mobileMenu.isOpen {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* MENU COVERS FULL SCREEN, LINK LIST IS VERTICALLY CENTERED */
.mobileMenuList {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1rem 1.1rem 14.5rem;
}

#mobileMenu a {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 1.05rem 1.15rem;
  border-radius: 1rem;
  opacity: 0;
  transform: translateX(-28px);
  position: relative;
  transition: opacity .4s var(--ease), transform .4s var(--ease), padding-left .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

/* SUBTLE VERTICAL LINE THAT LIGHTS UP ON HOVER/FOCUS */
#mobileMenu a::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .6rem;
  bottom: .6rem;
  width: 3px;
  border-radius: 999px;
  background: var(--iceblue);
  transform: scaleY(0);
  transition: transform .3s var(--ease);
}

.mobileMenuLabel {
  flex: 1;
}

#mobileMenu a:hover,
#mobileMenu a:focus-visible {
  background: rgba(246, 243, 238, .09);
  padding-left: 1.6rem;
  color: var(--iceblue);
}

#mobileMenu a:hover::before,
#mobileMenu a:focus-visible::before {
  transform: scaleY(1);
}

#mobileMenu.isOpen a {
  opacity: 1;
  transform: translateX(0);
}

#mobileMenu.isOpen a:nth-child(1) {
  transition-delay: .08s;
}

#mobileMenu.isOpen a:nth-child(2) {
  transition-delay: .13s;
}

#mobileMenu.isOpen a:nth-child(3) {
  transition-delay: .18s;
}

#mobileMenu.isOpen a:nth-child(4) {
  transition-delay: .23s;
}

#mobileMenu.isOpen a:nth-child(5) {
  transition-delay: .28s;
}

#mobileMenu.isOpen a:nth-child(6) {
  transition-delay: .33s;
}

#mobileMenu.isOpen a:nth-child(7) {
  transition-delay: .38s;
}

#mobileMenu.isOpen a:nth-child(8) {
  transition-delay: .43s;
}

#mobileMenu.isOpen a:nth-child(9) {
  transition-delay: .48s;
}

#mobileMenu.isOpen a:nth-child(n+10) {
  transition-delay: .53s;
}

@media (prefers-reduced-motion: reduce) {

  #mobileMenu,
  #mobileMenu a,
  #mobileMenuScrim {
    transition: none;
  }
}

/* ---- WAVE DIVIDERS — SOFT, MODERN CURVE CUT INTO THE STATS BAND ---------- */
.waveDivider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.waveDivider svg {
  display: block;
  width: 100%;
  height: 64px;
}

@media(min-width:1024px) {
  .waveDivider svg {
    height: 104px;
  }
}

.waveDividerTop {
  top: 0;
}

.waveDividerBottom {
  bottom: 0;
}

/* ---- FOOTER TOPOGRAPHIC DIVIDER: OVERLAPS UPWARD ONTO THE CTA VIDEO ------- */
.footerTopoDivider {
  position: absolute;
  left: 0;
  right: 0;
  top: -58px;
  height: 58px;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}

/* LESS PRONOUNCED RIDGE ON MOBILE (DESKTOP STAYS UNCHANGED) */
@media(max-width:639px) {
  .footerTopoDivider {
    top: -32px;
    height: 32px;
  }
}

@media(min-width:1024px) {
  .footerTopoDivider {
    top: -90px;
    height: 90px;
  }
}

.footerTopoDivider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footerTopoDivider path {
  fill: var(--navyDeep);
}

/* ---- MAGNETIC BUTTONS -------------------------------------------------------- */
.btn.magnetic {
  transition: transform .25s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

/* ---- CARD TILT ---------------------------------------------------------------- */
.lift.tilt {
  transition: transform .35s var(--ease), box-shadow .45s var(--ease);
}

/* ---- FOOTER GIANT WORDMARK (TEXTURED, PER REFERENCE) ----------------------- */
.footerGiantMark {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 1.2;
  padding: .9rem 0 1.8rem;
}

.footerGiantMark span {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Alegreya', serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 15rem);
  letter-spacing: -0.02em;
  background-image:
    linear-gradient(180deg, rgba(246, 243, 238, .16), rgba(8, 8, 8, 0.045)),
    url('https://picsum.photos/seed/konjuh-ridge/1600/460');
  background-size: cover;
  background-position: center 11%;
  background-blend-mode: soft-light;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

}

@media(max-width:639px) {
  .footerGiantMark {
    padding: .6rem 0 1.4rem;
  }

  .footerGiantMark span {
    font-size: clamp(2.2rem, 15vw, 15rem);
  }
}

/* ---- FOOTER CURVED TOP EDGE ------------------------------------------------- */
.footerCurve {
  display: block;
  line-height: 0;
  background: var(--beige);
}

.footerCurve svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- FOOTER STARFIELD (USED ON THE MAIN/LARGE FOOTER) ----------------------- */

@keyframes twinkle {

  0%,
  100% {
    opacity: .15;
  }

  50% {
    opacity: .75;
  }
}

.shootingStar {
  position: absolute;
  top: 12%;
  left: -10%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--beige);
  box-shadow: 0 0 0 1px rgba(246, 243, 238, .4);
  filter: drop-shadow(0 0 6px rgba(246, 243, 238, .8));
  animation: shoot 9s linear infinite;
  animation-delay: 4s;
}

.shootingStar::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 243, 238, .7));
  transform: translateY(-50%);
}

@keyframes shoot {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  3% {
    opacity: 1;
  }

  16% {
    transform: translate(60vw, 28vh);
    opacity: 0;
  }

  100% {
    transform: translate(60vw, 28vh);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .footerStars span,
  .shootingStar {
    animation: none;
  }
}



.aboutHero {
  font-family: 'Alegreya', serif;
  background: var(--bg);
  color: #2a2a2a;
  line-height: 1.75;
}

.aboutHero img {
  display: block;
  max-width: 100%;
}

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

.aboutHero .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: var(--forestDeep);
}

/* HERO IMAGE STARTS BLURRED, FADES IN ONCE FULLY LOADED */
.aboutHero .heroBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroBgBreathe 26s ease-in-out infinite;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  opacity: 0;
  filter: blur(18px) saturate(1.05);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease);
}

.aboutHero .heroBg.heroBgLoaded {
  opacity: 1;
  filter: blur(0) saturate(1);
}

@keyframes heroBgBreathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.aboutHero .heroOv1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13, 26, 22, .3) 0%, rgba(13, 26, 22, .6) 60%, rgba(13, 26, 22, .85) 100%);
}

.aboutHero .heroOv2 {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .4) 100%);
}

.aboutHero .heroContent {
  position: relative;
  z-index: 3;
  padding: 0 28px;
  max-width: 820px;
}

.aboutHero .hero h1 {
  font-family: 'Alegreya', serif;
  font-optical-sizing: auto;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .3);
  color: #fff;
  animation: heroTextIn 1.6s var(--ease) both;
  animation-delay: .35s;
}

.aboutHero .heroSub {
  font-family: 'Alegreya', serif;
  font-optical-sizing: auto;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
  font-style: normal;
  letter-spacing: .01em;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
  animation: heroTextIn 1.6s var(--ease) both;
  animation-delay: .75s;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aboutHero .heroBg {
    animation: none;
    opacity: 1;
    filter: none;
    transition: none;
  }

  .aboutHero .hero h1,
  .aboutHero .heroSub {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.aboutHero .heroBadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}

.aboutHero .heroBadgeDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amb);
  display: inline-block;
}

.aboutHero .heroBadgeText {
  font-family: 'Alegreya', serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

.aboutHero .heroBtns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.aboutHero .btnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ol);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: 'Alegreya', serif;
  font-weight: 700;
  font-size: 1.43rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}

.aboutHero .btnPrimary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  background: var(--ol2);
}

.aboutHero .btnGhost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: 'Alegreya', serif;
  font-weight: 600;
  font-size: .93rem;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  transition: background .25s;
}

.aboutHero .btnGhost:hover {
  background: rgba(255, 255, 255, .22);
}

.aboutHero .scrollCue {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, .5);
  animation: onBob 2.6s ease-in-out infinite;
}

.aboutHero .scrollArrow {
  width: 22px;
  height: 28px;
  stroke: currentColor;
}

/* KEYFRAME FOR scrollCue DEFINED HERE FOR CONSISTENCY ACROSS PAGES */
@keyframes onBob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(4px);
  }
}