/* ============================================================
   DIVING TROGIR — DESIGN SYSTEM
   Venus Diving Center | divingtrogir.com
   ============================================================ */

/* ---- CSS RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- VARIABLES ---- */
:root {
    /* Colors */
    --deep-blue: #0a1628;
    --deep-blue-rgb: 10, 22, 40;
    --ocean-blue: #0d47a1;
    --ocean-blue-rgb: 13, 71, 161;
    --navy: #0b2545;
    --aqua: #00bcd4;
    --aqua-rgb: 0, 188, 212;
    --light-aqua: #4dd0e1;
    --light-aqua-rgb: 77, 208, 225;
    --sand: #f5e6d3;
    --sand-light: #faf4ed;
    --white: #ffffff;
    --off-white: #f0f4f8;
    --text-dark: #1a2a3a;
    --text-muted: #5a6a7a;
    --text-light: rgba(255,255,255,0.85);
    --border-light: rgba(255,255,255,0.15);
    --border-dark: #e2e8f0;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 7rem);
    --container-width: 1200px;
    --container-pad: clamp(1.25rem, 4vw, 2rem);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --transition-slow: 0.8s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 30px rgba(var(--aqua-rgb), 0.2);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* ---- BASE ---- */
body {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--aqua);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--light-aqua); }

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-blue);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.7;
}

/* Section subtitle centered variant */
.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background var(--transition-med), padding var(--transition-med), box-shadow var(--transition-med);
}

.site-header.scrolled {
    background: rgba(var(--deep-blue-rgb), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.7)) drop-shadow(0 0 20px rgba(255,255,255,0.4));
    transition: filter var(--transition-fast);
}
.header-logo:hover img {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.9)) drop-shadow(0 0 30px rgba(255,255,255,0.5));
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--light-aqua);
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-light);
}
.lang-switch a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.active {
    color: var(--white);
    background: rgba(var(--aqua-rgb), 0.25);
}

/* CTA Button in header */
.header-cta {
    margin-left: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(var(--deep-blue-rgb), 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}
.mobile-nav-overlay a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 300;
    padding: 0.75rem 2rem;
    transition: color var(--transition-fast);
}
.mobile-nav-overlay a:hover { color: var(--light-aqua); }

.mobile-lang-switch {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.mobile-lang-switch a {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--aqua);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--light-aqua);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--deep-blue);
    border: 1.5px solid var(--border-dark);
}
.btn-outline-dark:hover {
    border-color: var(--aqua);
    color: var(--aqua);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
}

.btn-lg {
    font-size: 1.05rem;
    padding: 1rem 2.25rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ocean overlay on hero */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(var(--deep-blue-rgb), 0.65) 0%,
        rgba(var(--ocean-blue-rgb), 0.50) 40%,
        rgba(var(--aqua-rgb), 0.20) 70%,
        rgba(var(--deep-blue-rgb), 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem var(--container-pad);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    color: var(--text-light);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero — shorter for inner pages */
.hero-page {
    min-height: 50vh;
}

/* Underwater effects on hero */
.hero-bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-light-rays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.hero-light-rays::before,
.hero-light-rays::after {
    content: '';
    position: absolute;
    top: -50%;
    width: 120px;
    height: 200%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.02) 50%,
        transparent 100%
    );
    transform: rotate(15deg);
    animation: heroSway 8s ease-in-out infinite;
}
.hero-light-rays::before { left: 18%; animation-delay: 0s; }
.hero-light-rays::after { left: 58%; width: 80px; animation-delay: -3s; animation-duration: 11s; }

@keyframes heroSway {
    0%, 100% { transform: rotate(15deg) translateX(0); }
    50% { transform: rotate(18deg) translateX(35px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: var(--section-pad) 0;
}

.section-dark {
    background: var(--deep-blue);
    color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}
.section-dark .section-subtitle {
    color: var(--text-light);
}
.section-dark .section-label {
    color: var(--light-aqua);
}

.section-light {
    background: var(--off-white);
}

.section-sand {
    background: var(--sand-light);
}

.text-center { text-align: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-meta {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--aqua);
}

/* Dark section cards */
.section-dark .card {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-light);
}
.section-dark .card:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: var(--shadow-glow);
}
.section-dark .card-body h3 {
    color: var(--white);
}
.section-dark .card-body p {
    color: var(--text-light);
}
.section-dark .card-meta {
    color: var(--light-aqua);
}

/* Service card with icon */
.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border-dark);
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-med);
}
.service-card:hover {
    border-color: var(--aqua);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(var(--aqua-rgb), 0.1);
}
.service-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--aqua);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Split layout (text + image) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-reverse {
    direction: rtl;
}
.split-reverse > * {
    direction: ltr;
}

.split-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   STATS / BADGES
   ============================================================ */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--light-aqua);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* PADI badge */
.padi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aqua);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(var(--aqua-rgb), 0.3);
    border-radius: var(--radius-sm);
}

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.accordion-item {
    border-bottom: 1px solid var(--border-dark);
}
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}
.accordion-trigger:hover { color: var(--aqua); }

.accordion-trigger .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.accordion-item.open .accordion-trigger .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-item.open .accordion-content {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.accordion-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   COURSE CARDS
   ============================================================ */
.course-card {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.course-card-image {
    position: relative;
    width: 280px;
    min-height: 240px;
    flex-shrink: 0;
    overflow: hidden;
}
.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.course-card:hover .course-card-image img {
    transform: scale(1.05);
}
.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--aqua);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3em 0.75em;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.course-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.course-card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.course-card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}
.course-meta {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--aqua);
}
@media (max-width: 768px) {
    .course-card {
        flex-direction: column;
    }
    .course-card-image {
        width: 100%;
        min-height: 200px;
        height: 200px;
    }
}

/* Grid-2 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HERO SMALL (subpages)
   ============================================================ */
.hero-small {
    min-height: 45vh;
}
.hero-small .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}
.hero-small .hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.contact-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.contact-block p {
    color: var(--text-muted);
    line-height: 1.7;
}
.contact-block a {
    color: var(--ocean-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.contact-block a:hover {
    color: var(--aqua);
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.social-link:hover {
    color: var(--aqua);
}
.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-map {
    position: sticky;
    top: 100px;
}
.map-wrapper {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .map-wrapper {
        height: 350px;
    }
    .contact-map {
        position: static;
    }
}

/* Contact cards */
.contact-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border-dark);
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-med);
}
.contact-card:hover {
    border-color: var(--aqua);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(var(--aqua-rgb), 0.1);
}
.contact-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--aqua);
}
.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--deep-blue);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    max-width: 320px;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.7)) drop-shadow(0 0 20px rgba(255,255,255,0.4));
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--light-aqua); }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}
.footer-contact-item svg {
    width: 16px;
    height: 16px;
    fill: var(--aqua);
    flex-shrink: 0;
}
.footer-contact-item a {
    color: rgba(255,255,255,0.6);
}
.footer-contact-item a:hover {
    color: var(--light-aqua);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    transition: all var(--transition-fast);
}
.footer-social a:hover {
    background: rgba(var(--aqua-rgb), 0.2);
    border-color: var(--aqua);
    transform: translateY(-2px);
}
.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* Modal gallery */
.modal-gallery {
    position: relative;
}
.modal-main-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
}
.modal-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    overflow-x: auto;
    background: var(--off-white);
}
.modal-thumbs img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast), outline-color var(--transition-fast);
    outline: 2px solid transparent;
    outline-offset: 1px;
}
.modal-thumbs img:hover,
.modal-thumbs img.active {
    opacity: 1;
    outline-color: var(--aqua);
}

/* Modal details */
.modal-details {
    padding: 2rem;
}
.modal-price {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aqua);
    margin-bottom: 0.5rem;
}
.modal-details h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}
.modal-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.modal-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}
.modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.4rem 0.85rem;
    background: var(--off-white);
    border-radius: var(--radius-sm);
}
.modal-meta-item svg {
    width: 16px;
    height: 16px;
    fill: var(--aqua);
    flex-shrink: 0;
}
.modal-included {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(var(--aqua-rgb), 0.06);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--aqua);
}
.modal-included h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.modal-included p {
    margin-bottom: 0;
    font-size: 0.9rem;
}
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-dark);
}

/* Clickable service cards (courses page) */
.service-card-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card-link:hover {
    color: inherit;
}

/* Badge variants */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.65em;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-price {
    background: var(--aqua);
    color: var(--white);
}
.badge-depth {
    background: rgba(var(--ocean-blue-rgb), 0.1);
    color: var(--ocean-blue);
}
.badge-level {
    background: rgba(var(--aqua-rgb), 0.1);
    color: var(--aqua);
}
.badge-category {
    background: rgba(var(--aqua-rgb), 0.08);
    color: var(--aqua);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* Category section headers on courses page */
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(var(--aqua-rgb), 0.2);
}
.category-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    white-space: nowrap;
}
.category-header .category-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .modal-content {
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .modal-main-img {
        height: 240px;
    }
    .modal-details {
        padding: 1.25rem;
    }
    .modal-details h2 {
        font-size: 1.3rem;
    }
    .modal-thumbs {
        padding: 0.5rem 1rem;
    }
    .modal-thumbs img {
        width: 56px;
        height: 42px;
    }
    .modal-actions {
        flex-direction: column;
    }
}

/* ============================================================
   PACKAGES PAGE
   ============================================================ */
.package-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: visible;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition-med);
    text-align: center;
    padding: 2.5rem 2rem;
}
.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--aqua-rgb), 0.3);
}
.package-card.featured {
    border-color: var(--aqua);
    box-shadow: var(--shadow-glow);
    position: relative;
}
.package-card.featured::before {
    content: 'Najpopularniji';
    position: absolute;
}
:lang(en) .package-card.featured::before {
    content: 'Most Popular';
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--aqua);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3em 1.2em;
    border-radius: var(--radius-full);
}
.package-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--aqua);
    line-height: 1;
    margin: 1rem 0 0.25rem;
}
.package-price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}
.package-features li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.package-features li::before {
    content: '✓';
    color: var(--aqua);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.pt-0 { padding-top: 0; }

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

/* Tablet */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { gap: 2.5rem; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    /* Navigation */
    .main-nav,
    .lang-switch,
    .header-cta {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    /* Grids */
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .split-reverse { direction: ltr; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Hero */
    .hero { min-height: 85vh; }
    .hero-page { min-height: 45vh; }
    .hero-buttons { flex-direction: column; align-items: center; }

    /* Stats */
    .stats-row { gap: 2rem; }
}

/* Mobile */
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}
