/* ===================================================================
   MR — STAY FIT  |  Redesign v2
   Dark, minimal, editorial. Playfair Display throughout (matches the
   logo's serif), baby-blue accent for emphasis.
   =================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ---------- Tokens ---------- */
:root {
    --black: #000;
    --white: #fff;
    --card: #111;
    --mid: #1a1a1a;
    --text: #fff;      /* body copy — pure white, readable */
    --dim: #fff;        /* secondary text / nav / labels — also white */
    --muted: #fff;       /* smallest meta text — also white */
    --accent: #8CB9E8;       /* baby blue — emphasis, CTAs, hovers */
    --accent-dark: #5A8FC7;  /* deeper baby blue — hover/active state */
    --accent-wash: rgba(140, 185, 232, 0.07); /* faint tint for hover backgrounds */
    --on-accent: #0d1b22;    /* near-black text/icons set on the accent fill */

    --line: 1px solid #1a1a1a;

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Playfair Display", Georgia, "Times New Roman", serif;

    --wrap: 1280px;
    --split: 1400px;
    --gutter: 40px;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
}

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

a {
    color: inherit;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

/* ---------- Helpers ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: var(--white);
}

.section-tag::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-tag::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mid);
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 3000;
    background: var(--accent);
    color: var(--on-accent);
    padding: 10px 16px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: 84px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: var(--line);
    transition: background 0.3s ease;
}

.nav-container {
    height: 100%;
    max-width: var(--split);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    color: var(--white);
    white-space: nowrap;
}

.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-switch {
    display: flex;
    gap: 6px;
}

.flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.flag-btn .fi {
    font-size: 1.4rem;
}

.flag-btn:hover,
.flag-btn.active {
    opacity: 1;
    border-color: var(--mid);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 34px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 56px;
    text-align: center;
    background: var(--black);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, #fff 1px, transparent 1px),
        linear-gradient(to bottom, #fff 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.08;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    animation: heroIn 0.9s ease both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.hero-logo {
    width: clamp(220px, 33vw, 390px);
    height: auto;
    object-fit: contain;
    margin: 0 auto 18px;
    filter: invert(1);
}

/* Short viewports: keep the CTA above the fold */
@media (min-width: 993px) and (max-height: 860px) {
    .hero {
        padding-top: 96px;
        padding-bottom: 40px;
    }

    .hero-logo {
        width: clamp(190px, 24vw, 300px);
        margin-bottom: 14px;
    }
}

.hero-title {
    max-width: 15ch;
    margin: 0 auto;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.92;
    font-size: clamp(2.1rem, 8vw, 5.5rem);
    color: var(--white);
}

.cta-button {
    display: inline-block;
    margin-top: 34px;
    padding: 18px 46px;
    background: var(--accent);
    color: var(--on-accent);
    border: 1px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ===================================================================
   STATS
   =================================================================== */
.stats-section {
    background: var(--card);
    border-top: var(--line);
    border-bottom: var(--line);
}

.stats-container {
    max-width: var(--split);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: var(--line);
    border-right: var(--line);
}

.stat-item {
    padding: 56px 24px;
    text-align: center;
}

.stat-item + .stat-item {
    border-left: var(--line);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 52px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: var(--white);
}

.stat-label {
    margin-top: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--dim);
}

/* ===================================================================
   PROGRAMI
   =================================================================== */
.programs {
    padding: 80px 0;
    border-bottom: var(--line);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--mid);
    border: var(--line);
}

.program-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 52px 48px;
    background: var(--black);
    transition: background 0.3s ease;
}

.program-num {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--accent);
}

.program-card h3 {
    margin-top: auto;
    padding-top: 28px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(1.7rem, 2.4vw, 2rem);
    color: var(--white);
    transition: color 0.3s ease;
}

.program-card p {
    margin-top: 14px;
    max-width: 46ch;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}

.program-arrow {
    align-self: flex-end;
    margin-top: 28px;
    font-size: 24px;
    color: var(--dim);
    transition: color 0.3s ease, transform 0.3s ease;
}

.program-card:hover {
    background: var(--accent-wash);
}

.program-card:hover h3 {
    color: var(--white);
}

.program-card:hover .program-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ===================================================================
   CJENIK
   =================================================================== */
.pricing {
    padding: 80px 0;
    border-bottom: var(--line);
}

.price-sheet {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 64px 72px 56px;
    background: var(--card);
    border: 1px solid #222;
}

/* tanki akcentni okvir u kutovima, kao na "O meni" */
.price-sheet::before,
.price-sheet::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    pointer-events: none;
}

.price-sheet::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.price-sheet::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.price-sheet-head {
    text-align: center;
    margin-bottom: 56px;
}

.price-sheet-brand {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    color: var(--accent);
}

.price-sheet-title {
    margin-top: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--white);
}

.price-sheet-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 72px;
}

.price-group-title {
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 15px;
    color: var(--accent);
}

.price-list {
    list-style: none;
}

.price-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 13px 0;
    font-size: 17px;
}

.price-item {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.price-name {
    line-height: 1.3;
}

.price-meta {
    margin-top: 3px;
    font-size: 13px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    opacity: 0.6;
}

.price-group-title--spaced {
    margin-top: 40px;
}

.price-list li {
    align-items: center;
}

.price-dots {
    flex: 1;
    min-width: 24px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
}

.price-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--white);
}

.price-current {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
}

.price-current small {
    margin-left: 4px;
    font-weight: 400;
    font-size: 13px;
    opacity: 0.6;
}

/* Bazna cijena (Zakon o zaštiti potrošača, čl. 7; Pravilnik NN 132/2026) —
   mora biti jasno vidljiva uz maloprodajnu cijenu, ali se ne smije s njom zamijeniti */
.price-base {
    margin-top: 3px;
    font-size: 12.5px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    color: var(--accent);
}

.price-sheet-legal {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #262626;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.price-sheet-legal p {
    max-width: 62ch;
    margin: 0 auto;
    opacity: 0.7;
}

.price-csv-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-underline-offset: 3px;
}

.price-csv-link:hover {
    color: var(--white);
}

.price-sheet-foot {
    margin-top: 36px;
    text-align: center;
}

@media (max-width: 900px) {
    .price-sheet {
        padding: 52px 40px 44px;
    }

    .price-sheet-cols {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 480px) {
    .pricing {
        padding: 64px 0;
    }

    .price-sheet {
        padding: 40px 22px 36px;
    }

    .price-sheet-head {
        margin-bottom: 40px;
    }

    .price-sheet-title {
        letter-spacing: 4px;
    }

    .price-list li {
        font-size: 16px;
        gap: 8px;
    }

    .price-current {
        font-size: 17px;
    }
}

/* ===================================================================
   O MENI
   =================================================================== */
.about {
    border-bottom: var(--line);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: var(--split);
    margin: 0 auto;
    border-left: var(--line);
    border-right: var(--line);
}

.about-media {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--card);
}

.about-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
}

.about-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 20px 28px;
    background: var(--black);
    border-top: var(--line);
    border-left: var(--line);
}

.about-badge strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 18px;
    color: var(--white);
}

.about-badge span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--dim);
}

.about-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    border-left: var(--line);
}

.about-headline {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    font-size: clamp(2.1rem, 5vw, 4rem);
    color: var(--white);
}

.about-headline span {
    display: block;
}

.about-list {
    list-style: none;
    margin: 34px 0;
}

.about-list li {
    position: relative;
    padding: 16px 0 16px 28px;
    border-bottom: var(--line);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14.5px;
    color: var(--text);
}

.about-list li:first-child {
    border-top: var(--line);
}

.about-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-body .cta-button {
    align-self: flex-start;
    margin-top: 8px;
}

/* ===================================================================
   NOVOSTI
   =================================================================== */
.news {
    padding: 80px 0;
    border-bottom: var(--line);
}

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

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--black);
    border: 1px solid #222;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    background: var(--accent-wash);
    border-color: var(--accent);
}

.news-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.news-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.news-date {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 8px 14px;
    background: var(--black);
    border-top: var(--line);
    border-right: var(--line);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    color: var(--white);
}

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

.news-tag {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--accent);
}

.news-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--white);
}

.news-card p {
    margin-top: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

.news-link:hover {
    color: var(--white);
}

.news-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.news-nav[hidden] {
    display: none;
}

.news-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.news-nav-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.news-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.news-dots {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ---- News modal (lightbox) ---- */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.news-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--black);
    border: 1px solid #333;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border: 1px solid #333;
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.news-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.news-modal-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

.news-modal-thumbs {
    display: flex;
    gap: 1px;
    background: var(--mid);
    border-bottom: var(--line);
    overflow-x: auto;
}

.news-modal-thumb {
    flex: 1 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    background: var(--black);
    border: none;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

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

.news-modal-thumb:hover {
    opacity: 0.85;
}

.news-modal-thumb.active {
    opacity: 1;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.news-modal-body {
    padding: 32px 36px 40px;
}

.news-modal-tag {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--accent);
    margin-right: 14px;
}

.news-modal-date {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    color: var(--text);
    opacity: 0.7;
}

.news-modal-title {
    display: block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
}

.news-modal-text {
    margin-top: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    white-space: pre-line;
}

.news-modal-body .news-link {
    display: inline-block;
    margin-top: 24px;
    padding-top: 0;
}

/* ===================================================================
   GALERIJA
   =================================================================== */
.gallery {
    padding: 80px 0;
    background: #040404;
    border-bottom: var(--line);
}

.gallery-slider {
    position: relative;
    max-width: var(--wrap);
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 90px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    position: relative;
    flex: 0 0 calc(33.333% - 13.333px);
}

.slide img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.slide:hover::after {
    border-color: var(--accent);
}

.slider-nav-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.slider-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 2px;
}

.dot {
    width: 8px;
    height: 8px;
    padding: 9px;
    box-sizing: content-box;
    background: #555;
    background-clip: content-box;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.dot.active {
    width: 30px;
    background: var(--accent);
    background-clip: content-box;
}

/* ===================================================================
   RECENZIJE
   =================================================================== */
.reviews {
    padding: 80px 0;
    background: var(--card);
    border-bottom: var(--line);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--mid);
    border: var(--line);
}

.review-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 32px;
    background: var(--black);
    transition: background 0.3s ease;
}

.review-card:hover {
    background: var(--accent-wash);
}

.review-source {
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    color: var(--dim);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--mid);
    border: var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.review-info h4 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: var(--white);
}

.review-date {
    margin-top: 3px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--muted);
}

.review-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.review-star {
    font-size: 13px;
    color: var(--white);
}

.review-star.empty {
    color: #444;
}

.review-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text);
}

.review-text::before {
    content: "\201C";
    display: block;
    margin-bottom: -8px;
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    font-size: 2.4em;
    line-height: 1;
    color: var(--accent);
}

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.review-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.review-nav-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.review-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reviews-footer {
    margin-top: 28px;
    text-align: center;
}

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid #333;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.google-reviews-link:hover {
    background: var(--accent-wash);
    border-color: var(--accent);
}

/* ===================================================================
   KONTAKT
   =================================================================== */
.contact {
    border-bottom: var(--line);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: var(--split);
    margin: 0 auto;
    border-left: var(--line);
    border-right: var(--line);
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
}

.contact-headline {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    font-size: clamp(2.5rem, 7vw, 72px);
    color: var(--white);
    margin-bottom: 36px;
}

.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.contact-item:first-child {
    border-top: var(--line);
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid #333;
    color: var(--white);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-item:hover .contact-icon {
    border-color: var(--accent);
    background: var(--accent-wash);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.contact-item-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--dim);
}

.contact-item-value {
    display: block;
    margin-top: 5px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--text);
    word-break: break-word;
}

.contact-right {
    padding: 80px 60px;
    background: #030303;
    border-left: var(--line);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: #0a0a0a;
    border-bottom-color: var(--accent);
}

.form-row input:first-child {
    padding-right: 24px;
    border-right: 1px solid #2a2a2a;
}

.form-row input:last-child {
    padding-left: 24px;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #8f8f8f;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 32px;
    padding: 18px 46px;
    background: var(--accent);
    color: var(--on-accent);
    border: 1px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.map-container {
    width: 100%;
    height: 380px;
    margin-top: 48px;
    border: var(--line);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* dark-theme map, keeps the location marker red */
    filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.95);
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
    background: var(--card);
    border-top: var(--line);
    padding: 32px var(--gutter);
}

.footer-inner {
    max-width: var(--split);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--white);
}

.footer-copy {
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--dim);
}

.footer-made {
    margin-top: 6px;
    font-size: 11px;
    color: var(--dim);
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.footer-heart {
    color: #e63946;
    font-size: 12px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #333;
    color: var(--white);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.footer-social a svg {
    width: 19px;
    height: 19px;
    display: block;
}

.footer-social a:hover {
    border-color: var(--accent);
    background: var(--accent-wash);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* --- Tablet / small desktop --- */
@media (max-width: 1200px) {
    .reviews-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    :root {
        --gutter: 24px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-card {
        padding: 40px 32px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 44px 20px;
    }

    .stat-item + .stat-item {
        border-left: none;
    }

    .stat-item:nth-child(odd) {
        border-right: var(--line);
    }

    .stat-item:nth-child(n + 3) {
        border-top: var(--line);
    }

    .about-body,
    .contact-left,
    .contact-right {
        padding: 56px 32px;
    }
}

/* --- Hamburger nav --- */
@media (max-width: 1300px) {
    .nav-container {
        grid-template-columns: 1fr auto;
    }

    .logo {
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        background: var(--black);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .mobile-menu {
        display: flex;
        z-index: 1001;
    }
}

/* --- Stack split sections --- */
@media (max-width: 900px) {
    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .about-media {
        min-height: 480px;
    }

    .about-body {
        border-left: none;
        border-top: var(--line);
    }

    .contact-right {
        border-left: none;
        border-top: var(--line);
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .about-media {
        min-height: 420px;
    }

    .about-badge {
        padding: 12px 16px;
    }

    .about-badge span {
        margin-top: 2px;
    }

    .reviews-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .slide {
        flex: 0 0 100%;
    }

    .slider-track {
        gap: 0;
    }

    .logo-text {
        letter-spacing: 3px;
        font-size: 13px;
    }

    .stat-number {
        font-size: 44px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-copy {
        order: 3;
    }

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

    .form-row input:first-child {
        padding-right: 0;
        border-right: none;
    }

    .form-row input:last-child {
        padding-left: 0;
    }

    .submit-btn {
        align-self: stretch;
        text-align: center;
    }

    .news-modal-body {
        padding: 26px 22px 32px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .slide {
        flex: 0 0 calc(50% - 10px);
    }

    .slider-track {
        gap: 20px;
    }
}

@media (max-width: 420px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-item:nth-child(odd) {
        border-right: none;
    }

    .stat-item + .stat-item {
        border-top: var(--line);
    }
}

@media (max-width: 400px) {
    :root {
        --gutter: 18px;
    }

    .hero-logo {
        width: min(66vw, 250px);
    }

    .logo-img {
        width: 54px;
        height: 54px;
    }

    .logo-text {
        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .program-card {
        padding: 34px 22px;
    }

    .about-body,
    .contact-left,
    .contact-right {
        padding: 44px 20px;
    }

    .stat-number {
        font-size: 40px;
    }
}

/* ===================================================================
   MOTION / PRINT
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media print {
    nav,
    .mobile-menu,
    .language-switch,
    .slider-nav-bottom,
    .reviews-nav,
    .map-container,
    .hero::before,
    .skip-link,
    .news-modal {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    a {
        text-decoration: underline;
    }
}
