/*
Theme Name: Avber
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1
*/

/*************** ADD CUSTOM CSS HERE. ***************/


/* ============================================================
   ============================================================
   DESIGN TOKENS — single source of truth, mirrors
   avber-design/assets/css/styles.css :root.
   Change values here to reskin the whole child theme.
   ============================================================
   ============================================================ */

:root {
  /* Brand — Ruj (Cotinus coggygria) summer → autumn */
  --color-bg:             #823C2E;       /* Jesenski list — deep ruj red */
  --color-surface:        #ffffff;
  --color-surface-alt:    #f9e9c3;       /* Prehodno zlato — warm gold cream */
  --color-text:           #fff5e5;       /* Cream text on red bg */
  --color-text-dark:      #2a1d10;       /* Dark text on light surfaces */
  --color-muted:          #f5d6ae;       /* Muted cream on red */
  --color-muted-dark:     #5e4a2a;       /* Muted on light surfaces */
  --color-primary:        #2d5d3a;       /* Poletni list — forest green */
  --color-primary-dark:   #1c3f25;
  --color-primary-light:  #f5c455;       /* Zlata — gold highlight on red bg */
  --color-accent:         #d9a04a;       /* Gold/amber accent */
  --color-border:         rgba(255, 245, 229, 0.25);
  --color-border-light:   #e8d9b6;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,.08);
}


/* ============================================================
   SHARED HELPERS
   Eyebrow / section heading / lead treatment used across pages.
   Eyebrow color is contextual: green on light sections, gold on
   red (dark="true") sections. Flatsome adds `.dark` inside
   dark sections, so we use that to flip the eyebrow + cards.
   ============================================================ */

/* Eyebrow — uppercase, tracked-out label */
.section-eyebrow p,
.home-hero__eyebrow p,
.page-hero__eyebrow p,
.about-teaser__eyebrow p,
.events-teaser__eyebrow p,
.activities-teaser__eyebrow p,
.values__eyebrow p,
.contact-cta__eyebrow p {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: var(--color-primary);
  font-size: 0.78rem;
}

/* On dark (red) sections flatsome adds .dark — flip eyebrow to gold */
.dark .section-eyebrow p,
.dark .home-hero__eyebrow p,
.dark .page-hero__eyebrow p,
.dark .about-teaser__eyebrow p,
.dark .events-teaser__eyebrow p,
.dark .activities-teaser__eyebrow p,
.dark .values__eyebrow p,
.dark .contact-cta__eyebrow p {
  color: var(--color-primary-light);
}

/* Display headings — Fraunces, 600 */
.section-heading h2,
.two-col__title h2,
.two-col__title h3,
.home-hero__title h1,
.page-hero__title h1,
.about-teaser__title h2,
.events-teaser__title h2,
.activities-teaser__title h2,
.values__title h2,
.mission__title h2,
.contact-cta__title h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.home-hero__title h1,
.page-hero__title h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.section-heading h2,
.about-teaser__title h2,
.events-teaser__title h2,
.activities-teaser__title h2,
.values__title h2,
.contact-cta__title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.two-col__title h2,
.mission__title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Section sub / lead copy */
.section-sub p {
  color: var(--color-muted-dark);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* On red sections, muted lead copy is muted cream */
.dark .section-sub p,
.dark .page-hero__lead p,
.dark .home-hero__lead p {
  color: var(--color-muted);
}

.page-hero__lead p {
  max-width: 60ch;
  line-height: 1.6;
  font-size: 1.125rem;
  color: var(--color-muted-dark);
}

/* Rounded image corners for any two-col image */
.two-col__image img,
.about-teaser__image img,
.mission__image img,
.activities-teaser__image img {
  border-radius: var(--radius);
}

/* Scroll-triggered reveal for two-column section images.
   Default: drop-down (Aktivnosti). Per-image override classes
   .from-left / .from-right slide in horizontally (Zanimivosti).
   The .is-visible class is toggled by the shared IntersectionObserver. */
@media (prefers-reduced-motion: no-preference) {
  .two-col__image {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  }
  .two-col__image.from-left  { transform: translateX(-60px); }
  .two-col__image.from-right { transform: translateX(60px); }

  .two-col__image.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Homepage about-teaser image — rises from below when scrolled in. */
  .about-teaser__image {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  }
  .about-teaser__image.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Upcoming-events cards ([dogodki_list]) — fade-up, staggered.
     Homepage uses a slower reveal (override below). */
  .event-card.is-standalone {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }

  body.home .event-card.is-standalone {
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1);
  }
  .event-card.is-standalone.is-visible {
    opacity: 1;
    transform: none;
  }
  .event-card.is-standalone:nth-child(1) { transition-delay: 0s; }
  .event-card.is-standalone:nth-child(2) { transition-delay: .12s; }
  .event-card.is-standalone:nth-child(3) { transition-delay: .24s; }
  .event-card.is-standalone:nth-child(4) { transition-delay: .36s; }
  .event-card.is-standalone:nth-child(5) { transition-delay: .48s; }
  .event-card.is-standalone:nth-child(6) { transition-delay: .60s; }
}

/* Check-list — gold ✓ marker */
.check-list ul,
.mission__list ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.check-list li,
.mission__list li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
  line-height: 1.5;
  color: var(--color-text-dark);
}

.dark .check-list li,
.dark .mission__list li {
  color: var(--color-text);
}

.check-list li::before,
.mission__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}


/* ============================================================
   BUTTONS  —  pill primary / pill ghost, contextual by bg.
   Per design: on gold-cream section primary is green; on red
   section primary is cream-filled dark-text.
   ============================================================ */

.btn-primary.button,
.home-hero__btn.button,
.events-teaser__btn.button,
.activities-teaser__btn.button,
.contact-cta__btn.button {
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

/* Primary: green on light sections */
.btn-primary.button,
.home-hero__btn--primary.button,
.contact-cta__btn.button {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* On dark (red) sections, primary flips to cream-filled */
.dark .btn-primary.button,
.dark .home-hero__btn--primary.button,
.dark .contact-cta__btn.button {
  background: #fff5e5;
  color: var(--color-text-dark);
  border-color: #fff5e5;
}

/* Ghost: outline on light bg */
.btn-ghost.button,
.home-hero__btn--ghost.button,
.events-teaser__btn.button,
.activities-teaser__btn.button {
  background: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-border-light);
}

.dark .btn-ghost.button,
.dark .home-hero__btn--ghost.button,
.dark .events-teaser__btn.button,
.dark .activities-teaser__btn.button {
  color: var(--color-text);
  border-color: var(--color-border);
}

/* Hero ghost button sits over the video/red bg — bump contrast
   with a subtle glass background + stronger cream border so it
   stays legible no matter what frame the video is on. */
.dark .home-hero__btn--ghost.button {
  background: rgba(255, 245, 229, 0.14);
  border-color: rgba(255, 245, 229, 0.7);
  border-width: 1.5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dark .home-hero__btn--ghost.button:hover {
  background: rgba(255, 245, 229, 0.24);
  border-color: rgba(255, 245, 229, 0.95);
  color: var(--color-text);
}


/* ============================================================
   HOME HERO  —  solid red bg (matches page-hero on subpages)
   Background is set via shortcode bg_color="rgb(130, 60, 46)".
   Split layout: .home-hero__content (centered) + .home-hero__actions
   pinned to the bottom of the (100vh) section.
   ============================================================ */

.home-hero {
  color: var(--color-text);
}

.home-hero .section-content {
  display: flex;
  flex-direction: column;
}

.home-hero__content {
  flex: 1 1 auto;
  align-items: center;
}

.home-hero__actions {
  margin-top: auto;
}

/* Every text element inside the home hero uses bright cream (≈ white). */
.home-hero .home-hero__title h1,
.home-hero .home-hero__lead p,
.home-hero p {
  color: var(--color-text);
}


/* ============================================================
   ABOUT TEASER  —  inline terracotta-adjacent "more" link
   ============================================================ */

.about-teaser__link {
  color: var(--color-primary);
  font-weight: 500;
}

.dark .about-teaser__link {
  color: var(--color-primary-light);
}


/* ============================================================
   EVENT CARDS  —  white surface, 14px radius, shadow, 4:3 media
   Used by homepage events teaser AND by the [dogodki_list]
   shortcode output (.event-card.is-standalone).
   ============================================================ */

.event-card .col-inner,
.event-card.is-standalone {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.event-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  color: var(--color-text-dark);
}

/* Date line — green uppercase tracked */
.event-card__date {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.event-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  color: var(--color-text-dark);
}

.event-card__body h3 a {
  color: inherit;
}

.event-card__body p:not(.event-card__date) {
  color: var(--color-muted-dark);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.event-card__link {
  color: var(--color-primary);
  font-weight: 500;
}


/* ============================================================
   ACTIVITY CARDS  —  whole-card link variant, no date
   Cards fade-in-up one by one when scrolled into view.
   The JS observer (enqueued from functions.php) adds the
   .is-visible class when the card intersects the viewport.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .activity-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .activity-card.is-visible {
    opacity: 1;
    transform: none;
  }
  .activity-card:nth-child(1) { transition-delay: 0s; }
  .activity-card:nth-child(2) { transition-delay: .12s; }
  .activity-card:nth-child(3) { transition-delay: .24s; }
  .activity-card:nth-child(4) { transition-delay: .36s; }
  .activity-card:nth-child(5) { transition-delay: .48s; }
  .activity-card:nth-child(6) { transition-delay: .60s; }
}

.activity-card .col-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.activity-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  color: var(--color-text-dark);
}

.activity-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.activity-card__body h3 a {
  color: var(--color-text-dark);
}

.activity-card__body p {
  color: var(--color-muted-dark);
  line-height: 1.55;
  margin: 0;
}


/* ============================================================
   ARCHIVE POSTS  —  16:9 media, no uppercase date
   ============================================================ */

.archive-post .col-inner,
.archive-post.is-standalone {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.archive-post__media { display: block; }
.archive-post__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-post__body {
  padding: 1.25rem 1.4rem 1.5rem;
  color: var(--color-text-dark);
}

.archive-post__date {
  color: var(--color-muted-dark);
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.archive-post__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.archive-post__body h3 a {
  color: var(--color-text-dark);
}

.archive-post__body p {
  color: var(--color-muted-dark);
  line-height: 1.55;
  margin: 0;
}


/* ============================================================
   [dogodki_list] shortcode — standalone CSS grid
   ============================================================ */

.dogodki-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 880px) { .dogodki-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .dogodki-grid { grid-template-columns: 1fr; } }

.event-card__media { display: block; }
.event-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dogodki-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted-dark);
  padding: 2rem 0;
  margin: 0;
}

/* Countdown pill — green by default, gold on dark sections */
.event-card__countdown {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin: 0 0 0.5rem;
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.event-card__countdown--today {
  background: var(--color-primary);
  color: #ffffff;
}

.event-card__countdown--past {
  background: var(--color-surface-alt);
  color: var(--color-muted-dark);
}


/* ============================================================
   PAGE HERO  —  red bg with subtle gradient, border-bottom
   ============================================================ */

/* Red background is set via shortcode bg_color="rgb(130, 60, 46)"
   so Flatsome's inner .section-bg picks it up correctly. Keep only
   the border-bottom separator and the text color base here. */
.page-hero {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Every text element inside the hero uses bright cream (≈ white)
   so it stays readable on the red layout background. */
.page-hero .page-hero__title h1,
.page-hero .page-hero__lead p,
.page-hero .page-hero__breadcrumbs p,
.page-hero .page-hero__breadcrumbs a {
  color: var(--color-text);
}

.page-hero__breadcrumbs p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}


/* ============================================================
   FEATURE CARDS  —  centered, icon badge, white surface
   ============================================================ */

.feature-card .col-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.feature-card__body {
  padding: 0;
  color: var(--color-text-dark);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border-radius: 16px;
}

.feature-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin: 0 0 0.5rem;
}

.feature-card__body p {
  color: var(--color-muted-dark);
  line-height: 1.55;
  margin: 0;
}


/* ============================================================
   LINK CARDS  —  partner links (Povezave)
   Image on top, tag badge absolutely positioned over the image,
   title / description / url stacked below.
   ============================================================ */

.link-card .col-inner {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.link-card__image {
  margin: 0;
}

.link-card__image .img-inner,
.link-card__image img {
  display: block;
  width: 100%;
}

.link-card__tag-box {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.link-card__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.link-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.link-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.link-card h3 a {
  color: var(--color-text-dark);
}

.link-card p {
  color: var(--color-muted-dark);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.link-card__url {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}


/* ============================================================
   CONTACT  —  info list, form, team cards
   ============================================================ */

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-info li {
  margin: 0.5rem 0;
  color: var(--color-text-dark);
  line-height: 1.55;
}

.dark .contact-info li {
  color: var(--color-text);
}

.contact-info li strong {
  display: inline-block;
  min-width: 90px;
  color: var(--color-muted-dark);
  font-weight: 600;
}

.dark .contact-info li strong {
  color: var(--color-muted);
}

.contact-info a {
  color: var(--color-primary);
}

.dark .contact-info a {
  color: var(--color-primary-light);
}

/* Form wrapper — white surface with shadow and radius */
.contact-form-wrap .col-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-dark);
}

.contact-form-wrap .wpcf7 p {
  margin: 0 0 1rem;
}

.contact-form-wrap .wpcf7 input[type="text"],
.contact-form-wrap .wpcf7 input[type="email"],
.contact-form-wrap .wpcf7 input[type="tel"],
.contact-form-wrap .wpcf7 textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-text-dark);
}

.contact-form-wrap .wpcf7 input[type="submit"] {
  border-radius: 999px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

/* Team card — no image, name + role + contact list */
.team-card .col-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-dark);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 0.4rem;
}

.team-card__role {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.team-card li {
  font-size: 0.98rem;
  margin: 0;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.team-card li strong {
  display: block;
  color: var(--color-muted-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.team-card a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

.team-card a:hover {
  text-decoration: underline;
}


/* ============================================================
   GALLERY ARCHIVE ACCORDION  —  native <details>/<summary>
   ============================================================ */

.gallery-year-accordion details {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  margin: 0 0 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-year-accordion summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.gallery-year-accordion summary::-webkit-details-marker {
  display: none;
}

.gallery-year-accordion summary::after {
  content: "▾";
  color: var(--color-primary);
  transition: transform 0.2s;
}

.gallery-year-accordion details[open] summary::after {
  transform: rotate(180deg);
}

.gallery-year-accordion__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted-dark);
  margin-left: auto;
  margin-right: 1rem;
}

.gallery-year-accordion__body {
  padding: 0 1.4rem 1.4rem;
}


/* ============================================================
   ============================================================
   HEADER-AI  —  sticky red header with logo + horizontal nav
   Mirrors avber-design/partials/header.html + .site-header CSS.
   Drop into any page with [block id="header-ai"].
   ============================================================
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #6E4A40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.header__inner {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: 2rem;
}

/* Push nav all the way to the right edge of the container.
   Using unique class .site-header__nav to avoid conflicts with
   Flatsome's default theme .nav class. */
.site-header__nav {
  margin-left: auto;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--color-text);
  text-decoration: none;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff5e5;
  color: var(--color-text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo__text strong {
  font-weight: 700;
}

/* Nav */
.site-header__nav-list {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.95rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-header__nav-list a {
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.2s;
}

.site-header__nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-header__nav-list a.is-active {
  color: var(--color-primary-light);
}

.site-header__nav-list a.is-active::after {
  transform: scaleX(1);
}

/* Mobile: nav wraps below logo (no-JS responsive) */
@media (max-width: 880px) {
  .header__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .site-header__nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }
}


/* ============================================================
   ============================================================
   FOOTER-AI  —  dark brown footer with 3-col layout
   Mirrors avber-design/partials/footer.html + .site-footer CSS.
   Drop into any page with [block id="footer-ai"].
   ============================================================
   ============================================================ */

.site-footer {
  background: #1f1b16;
  color: #d8d3ca;
  margin-top: 0;
}

.site-footer .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer .logo {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.footer__brand-logo {
  max-width: 180px;
  margin: 0 0 0.75rem;
}

.footer__brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer .muted {
  color: #a39c91;
  font-size: 0.9rem;
}

.footer__inner {
  padding: 3rem 1.25rem 2rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  padding: 0.25rem 0;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  color: #a39c91;
  font-size: 0.85rem;
}

.socials {
  display: flex;
  flex-direction: column;
}


/* ============================================================
   CARD HOVER  —  elevate the shadow on every card variant
   (event, activity, feature, link, team) on hover.
   ============================================================ */

.event-card .col-inner,
.event-card.is-standalone,
.activity-card .col-inner,
.feature-card .col-inner,
.link-card .col-inner,
.team-card .col-inner,
.archive-post .col-inner,
.archive-post.is-standalone {
  transition: box-shadow .25s ease, transform .25s ease;
}

.event-card:hover .col-inner,
.event-card.is-standalone:hover,
.activity-card:hover .col-inner,
.feature-card:hover .col-inner,
.link-card:hover .col-inner,
.team-card:hover .col-inner,
.archive-post:hover .col-inner,
.archive-post.is-standalone:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   SINGLE DOGODEK  —  cream content section under the page-hero.
   The outer layout uses Flatsome's [section][row][col], so we only
   need typography + back-link rules here.
   ============================================================ */

.dogodek-single {
  color: var(--color-text-dark);
}

.dogodek-single__body h2,
.dogodek-single__body h3 {
  font-family: var(--font-display);
  color: var(--color-text-dark);
  margin: 2rem 0 0.75rem;
}

.dogodek-single__body p,
.dogodek-single__body li {
  color: var(--color-muted-dark);
  line-height: 1.65;
}

.dogodek-single__body a {
  color: var(--color-primary);
  font-weight: 500;
}

.dogodek-single__back {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.dogodek-single__back a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.dogodek-single__back a:hover {
  text-decoration: underline;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
