/* ============================================================
   FONTS — Adobe Garamond Pro
   ============================================================ */

@font-face {
  font-display: swap;
  font-family: 'Adobe Garamond Pro';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/adobe-garamond-pro-regular.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'Adobe Garamond Pro';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/adobe-garamond-pro-italic.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'Adobe Garamond Pro';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/adobe-garamond-pro-bold.woff') format('woff');
}

@font-face {
  font-display: swap;
  font-family: 'Adobe Garamond Pro';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/adobe-garamond-pro-bold-italic.woff') format('woff');
}

/* ============================================================
   FONTS — Orpheus Pro
   ============================================================ */

@font-face {
  font-display: swap;
  font-family: 'Orpheus Pro';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/orpheus-pro.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Orpheus Pro';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/orpheus-pro-medium.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Orpheus Pro';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/orpheus-pro-bold.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Orpheus Pro';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/orpheus-pro-italic.otf') format('opentype');
}

/* ============================================================
   VB CINEMATOGRAPHY — Custom CSS
   Dark photography / cinematography theme
   ============================================================ */

/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
  /* Layout */
  --max: min(90%, 1440px);
  --header-h: 120px;

  /* Fonts */
  --font-heading: 'Orpheus Pro', serif;
  --font-body: 'Adobe Garamond Pro', serif;

  /* Light palette */
  --c-bg: #ffffff;
  --c-bg-2: #f5f5f5;
  --c-bg-3: #e8e8e8;
  --c-text: #111111;
  --c-text-2: #555555;
  --c-muted: #999999;
  --c-accent: #b8965a;
  --c-accent-h: #cca96a;
  --c-border: rgba(0, 0, 0, 0.08);

  /* Section rhythm */
  --section-v: clamp(4.8rem, 6vw, 9.6rem);

  /* Typography scale (1rem = 10px)
     xs=12  sm=14  base=16  lg=18  xl=22  2xl=28  3xl=36  4xl=48 */
  --font-size-xs: clamp(1.2rem, 0.2vw + 1.1rem, 1.4rem);
  --font-size-sm: clamp(1.4rem, 0.2vw + 1.3rem, 1.6rem);
  --font-size-base: clamp(1.6rem, 0.3vw + 1.4rem, 1.8rem);
  --font-size-md: clamp(1.7rem, 0.35vw + 1.5rem, 2rem);
  --font-size-lg: clamp(1.8rem, 0.4vw + 1.6rem, 2.2rem);
  --font-size-xl: clamp(2.2rem, 0.6vw + 1.9rem, 2.8rem);
  --font-size-2xl: clamp(2.8rem, 0.8vw + 2.4rem, 3.6rem);
  --font-size-3xl: clamp(3.6rem, 1.2vw + 3rem, 4.8rem);
  --font-size-4xl: clamp(4.8rem, 1.6vw + 4rem, 6rem);
}

/* ============================================================
   02. BASE OVERRIDES
   ============================================================ */

body {
  background-color: transparent;
  color: var(--c-text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: var(--font-size-base);
  font-style: normal;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
}

a {
  color: inherit;
}

a.link {
  color: var(--c-accent);
  text-decoration: underline;

  &:hover {
    color: var(--c-accent-h);
    text-decoration: none;
  }
}

picture {
  display: block;
  height: 100%;
}

section {
  padding: 0;
}

p.muted,
span.muted,
.muted {
  color: var(--c-muted);
}

/* ============================================================
   03. LAYOUT — CONTAINER
   ============================================================ */

.container {
  margin-inline: auto;
  max-width: var(--max);
  max-width: 100%;
  padding: 0;
}

main#sadrzaj {
  min-height: 60vh;
  position: relative;
  z-index: 1;

  > *:not(.hero-spacer) {
    background: var(--c-bg);
  }

  > section {
    width: 100%;

    > *:first-child {
      margin-inline: auto;
      max-width: var(--max);
    }
  }
}

/* ============================================================
   04. COMPONENTS — BUTTONS
   ============================================================ */

.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: var(--c-text);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 0.55em 1.4em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;

  &:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
  }

  &.primary {
    background: #111;
    border-color: #111;
    color: #fff;

    &:hover {
      background: #333;
      border-color: #333;
    }
  }

  &.submit {
    align-self: flex-start;
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    letter-spacing: 0.15em;
    padding: 0.8em 2.4em;

    &:hover {
      background: transparent;
      border-color: var(--c-accent);
      color: var(--c-accent);
    }
  }

  &.sm {
    font-size: 0.78em;
    padding: 0.35em 0.9em;
  }

  &.danger {
    background: rgba(127, 29, 29, 0.5);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;

    &:hover {
      background: #991b1b;
      border-color: #991b1b;
      color: #fff;
    }
  }
}

/* ============================================================
   05. HEADER
   ============================================================ */

header[role='banner'] {
  backdrop-filter: blur(2px);
  background: transparent;
  border-bottom: none;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;

  .bar {
    align-items: center;
    display: flex;
    gap: 3.2rem;
    height: var(--header-h);
    justify-content: space-between;
    padding-inline: 5vw;
  }

  a.logo {
    display: block;
    flex-shrink: 0;
    width: clamp(48px, 10vw, 90px);

    img {
      height: auto;
      width: 100%;
    }
  }

  /* Main nav */
  nav[aria-label='Glavna navigacija'] {
    ul {
      display: flex;
      gap: clamp(1.28rem, 2vw, 3.84rem);
      list-style: none;

      a {
        color: #fff;
        display: block;
        font-family: var(--font-heading);
        font-size: var(--font-size-sm);
        font-weight: 300;
        letter-spacing: 0.02em;
        line-height: var(--header-h);
        text-decoration: none;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        transition: color 0.2s;
        white-space: nowrap;

        &:hover,
        &.active {
          color: var(--c-accent);
        }
      }
    }
  }
}

/* Header meta (social + flags) */
.header-meta {
  align-items: center;
  display: flex;
  gap: 4rem;
}

.header-social {
  display: flex;
  gap: 0.8rem;
  list-style: none;

  a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--c-accent);
    }
  }

  svg {
    display: block;
  }
}

/* Language switcher */
nav#zastave {
  ul {
    display: flex;
    gap: 2px;
    list-style: none;

    li {
      a {
        color: rgba(255, 255, 255, 0.7);
        display: block;
        font-family: var(--font-heading);
        font-size: 1.12rem;
        letter-spacing: 0.12em;
        padding: 3px 7px;
        text-decoration: none;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        text-transform: uppercase;
        transition: color 0.2s;
      }

      &.active a,
      a:hover {
        color: var(--c-accent);
      }
    }
  }
}

/* Hamburger button */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  height: 36px;
  padding: 6px;
  position: relative;
  width: 36px;

  span {
    background: var(--c-accent);
    border-radius: 1px;
    height: 2px;
    left: 6px;
    position: absolute;
    right: 6px;
    transition:
      transform 0.28s ease,
      top 0.28s ease,
      opacity 0.18s ease;

    &:nth-child(1) {
      top: 10px;
    }

    &:nth-child(2) {
      top: 17px;
    }

    &:nth-child(3) {
      top: 24px;
    }
  }

  &.active {
    span:nth-child(1) {
      top: 17px;
      transform: rotate(45deg);
    }

    span:nth-child(2) {
      opacity: 0;
    }

    span:nth-child(3) {
      top: 17px;
      transform: rotate(-45deg);
    }
  }
}

/* Overlay when mobile menu is open */
body.menu-open::before {
  background: rgba(0, 0, 0, 0.65);
  bottom: 0;
  content: '';
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99;
}

/* ============================================================
   06. HERO
   ============================================================ */

.hero-fixed {
  height: 70vh;
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  will-change: opacity;
  z-index: 0;

  img {
    filter: grayscale(100%);
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.55s ease;
    width: 100%;
  }

  &:hover img {
    filter: grayscale(100%) brightness(0.85);
  }

  &.home {
    height: 100vh;
  }

  @media (orientation: portrait) {
    height: 100vh;
  }

  .overlay {
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
    bottom: 0;
    display: flex;
    height: 100%;
    left: 0;
    padding: 4.8rem clamp(2.4rem, 5vw, 9.6rem);
    position: absolute;
    right: 0;
    top: 0;

    h1 {
      color: #fff;
      font-size: clamp(2.4rem, 3.36vw, 4.7rem);
      font-weight: 400;
      letter-spacing: 0.04em;
      max-width: 72rem;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }
  }
}

.hero-spacer {
  height: 70vh;

  &.home {
    height: 100vh;
  }

  @media (orientation: portrait) {
    height: 100vh;
  }
}

/* ============================================================
   07. BREADCRUMBS
   ============================================================ */

nav[aria-label='Breadcrumb'] {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  position: relative;
  z-index: 1;

  .container {
    margin-inline: auto;
    max-width: var(--max);
    padding: 1rem 0;
  }
}

.breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.31rem;
  gap: 0;
  list-style: none;
  padding: 0.88rem 0;
}

.breadcrumb-item {
  color: var(--c-muted);

  a {
    color: var(--c-muted);
    text-decoration: none;
    transition: color 0.15s;

    &:hover {
      color: var(--c-accent);
    }
  }
}

.breadcrumb-separator {
  color: var(--c-muted);
  margin: 0 0.5em;
}

/* ============================================================
   08. CONTENT SECTIONS (shared)
   ============================================================ */

section.album-grid,
section.media-grid,
section.album-detail,
section.logos-grid,
section.contact-section,
section.behind-lens,
section.about-section {
  padding: var(--section-v) 0;
}

.page-intro {
  color: var(--c-text-2);
  font-size: var(--font-size-base);
  line-height: 1.8;
  padding-bottom: clamp(1.6rem, 3vw, 3.2rem);

  p {
    max-width: 72rem;
  }
}

/* ---- Card grid ---- */

.card-grid {
  display: grid;
  gap: clamp(1.2rem, 2vw, 2.4rem);
  grid-template-columns: repeat(3, 1fr);
  list-style: none;

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

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

  li {
    display: flex;
  }
}

/* ---- Album card (overlay title) ---- */

a.album-card {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 100%;

  .card-img {
    aspect-ratio: 4 / 3;
    background: var(--c-bg-3);
    overflow: hidden;

    img {
      height: 100%;
      object-fit: cover;
      transition:
        transform 0.55s ease,
        filter 0.55s ease;
      width: 100%;
    }
  }

  &:hover .card-img img {
    filter: brightness(0.85);
    transform: scale(1.05);
  }

  .card-body {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 3.2rem 2.4rem 2.4rem;
    position: absolute;
    right: 0;

    h2 {
      color: #fff;
      font-size: var(--font-size-lg);
      font-weight: 400;
      letter-spacing: 0.05em;
      margin: 0;
    }
  }
}

.card-intro {
  color: var(--c-text-2);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  overflow-wrap: break-word;
  padding: 1.2rem 1.6rem 1.6rem;
  word-break: break-word;
}

/* ---- Media card (title below) ---- */

a.media-card {
  border: 1px solid var(--c-border);
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s;

  &:hover {
    border-color: var(--c-accent);

    .card-body h2 {
      color: var(--c-accent);
    }

    .card-thumb img {
      transform: scale(1.05);
    }

    .card-play {
      background: rgba(184, 150, 90, 0.7);
      border-color: var(--c-accent);
    }
  }

  .card-thumb {
    aspect-ratio: 3 / 2;
    background: var(--c-bg-3);
    overflow: hidden;
    position: relative;

    img {
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
      width: 100%;
    }
  }

  .card-placeholder {
    align-items: center;
    color: var(--c-muted);
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
  }

  .card-body {
    flex: 1;
    padding: 1.6rem;

    h2 {
      color: var(--c-text);
      font-size: var(--font-size-base);
      font-weight: 400;
      letter-spacing: 0.04em;
      margin: 0;
      transition: color 0.25s;
    }
  }
}

/* Play overlay icon for video cards */
.card-play {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  height: 48px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    background 0.2s,
    border-color 0.2s;
  width: 48px;

  &::after {
    border-bottom: 10px solid transparent;
    border-left: 16px solid rgba(255, 255, 255, 0.85);
    border-top: 10px solid transparent;
    content: '';
    left: calc(50% + 2px);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ============================================================
   09. PHOTO GALLERY (masonry)
   ============================================================ */

ul.grid--photos,
ul.grid--masonry {
  column-gap: clamp(0.64rem, 0.8vw, 1.28rem);
  columns: 3;
  list-style: none;

  @media (max-width: 1024px) {
    columns: 2;
  }

  @media (max-width: 600px) {
    columns: 1;
  }

  li {
    break-inside: avoid;
    margin-bottom: clamp(0.64rem, 0.8vw, 1.28rem);
    overflow: hidden;

    a {
      display: block;
      overflow: hidden;

      img {
        display: block;
        height: auto;
        transition:
          filter 0.3s ease,
          transform 0.3s ease;
        width: 100%;
      }

      &:hover img {
        filter: brightness(0.82);
        transform: scale(1.02);
      }
    }
  }
}

/* ============================================================
   10. LOGOS GRID (suradnja / collaboration)
   ============================================================ */

ul.grid--logos {
  align-items: center;
  display: grid;
  gap: clamp(2.4rem, 3vw, 4rem);
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: clamp(2.4rem, 3vw, 4rem) 0;

  @media (max-width: 900px) {
    grid-template-columns: repeat(3, 1fr);
  }

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

a.logo-card,
div.logo-card {
  align-items: center;
  display: flex;
  justify-content: center;

  img {
    filter: grayscale(1) brightness(0.55);
    max-height: 64px;
    object-fit: contain;
    transition: filter 0.3s;
    width: 100%;
  }

  span {
    color: var(--c-muted);
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

a.logo-card:hover img {
  filter: grayscale(0) brightness(1);
}

/* ============================================================
   11. CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  gap: clamp(3.2rem, 5vw, 8rem);
  grid-template-columns: 2fr 1fr;

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.92rem;
}

.form-grid {
  display: grid;
  gap: 1.92rem;
  grid-template-columns: 1fr 1fr;

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

.contact-info {
  align-self: start;
  background: var(--c-bg-2);
  border-radius: 4px;
  color: var(--c-muted);
  min-width: 220px;
  padding: clamp(2rem, 3vw, 3.2rem);
  position: sticky;
  top: var(--section-v);

  p {
    margin-bottom: 0.8rem;
  }

  a {
    color: var(--c-muted);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--c-accent);
    }
  }
}

/* Form fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.64rem;

  label {
    color: var(--c-muted);
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
  }

  input,
  textarea,
  select {
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: 0;
    color: var(--c-text);
    outline: none;
    padding: 1.12rem 1.44rem;
    transition: border-color 0.2s;
    width: 100%;

    &:focus {
      border-color: var(--c-accent);
    }
  }

  textarea {
    min-height: 130px;
    resize: vertical;
  }
}

/* Alert messages */
.alert {
  border-radius: 0;
  font-size: var(--font-size-sm);
  margin-bottom: 3.2rem;
  padding: 1.28rem 1.6rem;

  &.success {
    border: 1px solid green;
    color: green;
  }

  &.error {
    border: 1px solid red;
    color: red;
  }
}

.field-error {
  color: #fca5a5;
  font-size: var(--font-size-xs);
}

.input-error {
  border-color: rgba(248, 113, 113, 0.5) !important;
}

/* ============================================================
   12. BEHIND THE LENS (home)
   ============================================================ */

.behind-lens {
  border-top: 1px solid var(--c-bg-2);

  div.inner {
    align-items: center;
    display: grid;
    gap: clamp(3.2rem, 5vw, 6.4rem);
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    max-width: 1200px;
  }

  div.image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  div.content {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;

    h2 {
      font-size: clamp(1.4rem, 2vw, 2rem);
      font-weight: 400;
      letter-spacing: 0.15em;
      margin-bottom: 2.4rem;
      text-transform: uppercase;
    }

    div {
      p {
        font-size: var(--font-size-base);
        line-height: 1.8;
        margin-bottom: 3.2rem;
      }
    }

    .btn {
      border-bottom: 1px solid currentColor;
      display: block;
      font-size: var(--font-size-sm);
      letter-spacing: 0.1em;
      margin-top: 2.4rem;
      text-transform: uppercase;
      width: fit-content;
    }
  }

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

/* ============================================================
   13. ABOUT PAGE
   ============================================================ */

.about-section {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 6vw, 8rem);

  #bosko,
  #viktorija {
    align-items: flex-start;
    display: grid;
    gap: clamp(2.4rem, 4vw, 6.4rem);
    grid-template-columns: 1fr 2fr;
    margin-inline: auto;
    max-width: var(--max);

    .photo {
      img {
        display: block;
        height: auto;
        width: 100%;
      }
    }

    .text {
      color: var(--c-text);
      font-size: var(--font-size-base);
      line-height: 1.8;
      min-width: 0;
      overflow-wrap: break-word;
      word-break: break-word;

      h2 {
        margin-bottom: calc(var(--font-size-xl) * 1.5);
      }
    }
  }

  #viktorija {
    grid-template-columns: 2fr 1fr;

    .photo {
      order: 2;
    }

    .text {
      order: 1;
    }
  }

  @media (max-width: 900px) {
    #bosko,
    #viktorija {
      grid-template-columns: 1fr;
    }

    #viktorija {
      .photo {
        order: 0;
      }
      .text {
        order: 0;
      }
    }
  }

  div.sadrzaj {
    p + p,
    p + ul,
    ul + p {
      margin-top: var(--font-size-xl);
    }

    ul {
      padding-left: var(--font-size-xl);
    }
  }
}

/* ============================================================
   14. FOOTER
   ============================================================ */

footer[role='contentinfo'] {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding: 0;
  position: relative;
  z-index: 1;

  .container {
    align-items: flex-start;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto auto;
    margin-inline: auto;
    max-width: var(--max);
  }

  a.logo {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: clamp(100px, 12vw, 160px);

    img {
      height: auto;
      width: 100%;
    }
  }

  nav[aria-label='Sekundarna navigacija'] {
    grid-column: 2 / 5;
    grid-row: 2;

    ul {
      display: flex;
      flex-wrap: wrap;
      gap: 0.48rem 2.4rem;
      list-style: none;

      a {
        color: var(--c-muted);
        font-size: var(--font-size-xs);
        letter-spacing: 0.08em;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.2s;

        &:hover {
          color: var(--c-accent);
        }
      }
    }
  }

  p.muted {
    font-size: var(--font-size-xs);
    grid-column: 1;
    grid-row: 2;
  }
}

.footer-copy {
  padding: 1.6rem 0;

  p {
    font-size: var(--font-size-xs);
  }
}

ul.social {
  align-items: center;
  display: flex;
  gap: 1.6rem;
  grid-column: 3;
  grid-row: 1;
  list-style: none;

  a {
    color: var(--c-muted);
    display: block;
    transition: color 0.2s;

    &:hover {
      color: var(--c-accent);
    }
  }

  svg {
    display: block;
  }
}

ul.kontakt {
  grid-column: 4;
  grid-row: 1;
  list-style: none;

  li {
    font-size: var(--font-size-sm);
    margin-bottom: 0.48rem;
  }

  a {
    color: var(--c-muted);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--c-text);
    }
  }
}

/* ============================================================
   15. COOKIE CONSENT
   ============================================================ */

.cookie-consent {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  bottom: 0;
  left: 0;
  padding: 1.6rem 1.6rem;
  position: fixed;
  right: 0;
  z-index: 200;
}

.cookie-consent-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: space-between;
}

.cookie-consent-text {
  color: var(--c-muted);
  font-size: var(--font-size-xs);
  margin: 0;
}

.cookie-consent-link {
  color: var(--c-accent);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 0.8rem;
}

.cookie-consent-btn {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  padding: 0.4em 1em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.cookie-consent-accept {
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  color: #fff;

  &:hover {
    background: var(--c-accent-h);
    border-color: var(--c-accent-h);
  }
}

.cookie-consent-settings {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);

  &:hover {
    border-color: var(--c-text);
    color: var(--c-text);
  }
}

.cookie-consent-reject {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);

  &:hover {
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
  }
}

/* Cookie modal */
.cookie-modal-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 300;
}

.cookie-modal {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  max-height: 90vh;
  max-width: 540px;
  overflow-y: auto;
  padding: 3.2rem;
  position: relative;
  width: 90%;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  padding: 0.4rem;
  position: absolute;
  right: 1.92rem;
  top: 1.92rem;
  transition: color 0.2s;

  &:hover {
    color: var(--c-text);
  }
}

.cookie-consent-options {
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 1.92rem 0;
  padding-top: 1.92rem;
}

.cookie-consent-option {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cookie-consent-option-info {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.cookie-consent-option-title {
  color: var(--c-text);
  font-size: var(--font-size-sm);
}

.cookie-consent-option-desc {
  color: var(--c-muted);
  font-size: var(--font-size-xs);
}

.cookie-consent-always-active {
  color: var(--c-muted);
  font-size: var(--font-size-xs);
}

.cookie-modal-buttons {
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 0.8rem;
  padding-top: 1.6rem;
}

/* Cookie toggle switch */
.cookie-toggle {
  cursor: pointer;
  display: inline-block;
  height: 22px;
  position: relative;
  width: 42px;

  input {
    height: 0;
    opacity: 0;
    width: 0;

    &:checked + .cookie-toggle-slider {
      background: rgba(184, 150, 90, 0.25);

      &::before {
        background: var(--c-accent);
        transform: translateX(20px);
      }
    }
  }

  &-slider {
    background: var(--c-bg-3);
    border-radius: 22px;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background 0.25s;

    &::before {
      background: var(--c-muted);
      border-radius: 50%;
      bottom: 3px;
      content: '';
      height: 16px;
      left: 3px;
      position: absolute;
      transition:
        transform 0.25s,
        background 0.25s;
      width: 16px;
    }
  }
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  footer[role='contentinfo'] .container {
    grid-template-columns: auto 1fr auto;
  }

  ul.kontakt {
    grid-column: 1;
    grid-row: 2;
  }

  footer[role='contentinfo'] nav[aria-label='Sekundarna navigacija'] {
    grid-column: 1 / 4;
    grid-row: 3;
  }

  footer[role='contentinfo'] p.muted {
    grid-column: 1 / 4;
    grid-row: 4;
  }
}

/* Mobile nav */
@media (max-width: 960px) {
  .hamburger {
    display: block;
  }

  header[role='banner'] nav[aria-label='Glavna navigacija'] {
    border-bottom: 1px solid var(--c-border);
    left: 0;
    opacity: 0;
    padding: 0.8rem 0;
    position: absolute;
    right: 0;
    top: var(--header-h);
    transform: translateY(-6px);
    transition:
      opacity 0.22s,
      transform 0.22s,
      visibility 0.22s;
    visibility: hidden;
    z-index: 99;

    &.active {
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
    }

    ul {
      flex-direction: column;
      gap: 0;

      a {
        border-bottom: 1px solid var(--c-border);
        line-height: 1;
        padding: 1.6rem 5vw;
      }
    }
  }

  .header-meta {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  footer[role='contentinfo'] .container {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
  }

  .cookie-consent-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
