/* =============================================
   DEA MEDIC — EXTRA FEATURES STYLES
   ============================================= */

/* ── 0. USLUGE DROPDOWN MENU ── */
header .main-header nav ul li.has-dropdown {
    position: relative;
}

header .main-header nav ul li.has-dropdown>a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.75;
    vertical-align: middle;
}

header .main-header nav ul li.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 420px;
    background: rgba(8, 28, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 158, 127, 0.35);
    border-radius: 16px;
    padding: 30px 20px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 9999;
}

/* arrow pointer */
header .main-header nav ul li.has-dropdown .dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(10, 158, 127, 0.3);
}

header .main-header nav ul li.has-dropdown:hover .dropdown,
header .main-header nav ul li.has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent, #00d4b1);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.dropdown-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none !important;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-grid a i {
    font-size: 13px;
    color: var(--primary, #0a9e7f);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.dropdown-grid a:hover {
    background: rgba(10, 158, 127, 0.15);
    color: #fff !important;
}

.dropdown-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.dropdown-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    color: var(--accent, #00d4b1) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.dropdown-footer a:hover {
    opacity: 0.8;
}

/* Mobile — disable dropdown, keep link working */
@media (max-width: 768px) {
    header .main-header nav ul li.has-dropdown .dropdown {
        display: none;
    }
}

/* ── 1. SCROLL PROGRESS BAR ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

/* ── 2. BACK TO TOP BUTTON ── */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(10, 158, 127, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top:hover {
    box-shadow: 0 8px 30px rgba(10, 158, 127, 0.6);
    transform: translateY(-3px);
}

/* ── 3. FLOATING CALL BUTTON ── */
#floating-call {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #128c3e, #1db954);
    color: #fff;
    padding: 0 20px 0 0;
    height: 54px;
    border-radius: 27px;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(19, 140, 62, 0.45);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    z-index: 1000;
    transition: box-shadow var(--transition), transform var(--transition);
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {

    0%,
    100% {
        box-shadow: 0 6px 28px rgba(19, 140, 62, 0.45);
    }

    50% {
        box-shadow: 0 10px 40px rgba(19, 140, 62, 0.7);
    }
}

#floating-call:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(19, 140, 62, 0.6);
}

#floating-call .call-icon {
    width: 54px;
    height: 54px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 27px 0 0 27px;
    flex-shrink: 0;
}

/* ── 4. OPEN / CLOSED BADGE ── */
#working-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    transition: all 0.3s;
}

#working-status.open {
    background: rgba(0, 212, 177, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 177, 0.3);
}

#working-status.closed {
    background: rgba(255, 80, 80, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255, 80, 80, 0.25);
}

#working-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

#working-status.open .status-dot {
    background: var(--accent);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

#working-status.closed .status-dot {
    background: #ff6b6b;
}

/* ── 5. STATS SECTION ── */
section.stats {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

section.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 158, 127, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

section.stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

section.stats .stat-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), border-color var(--transition);
}

section.stats .stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(10, 158, 127, 0.3);
}

section.stats .stat-number {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

section.stats .stat-suffix {
    font-size: 30px;
    color: var(--primary-light);
}

section.stats .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

section.stats .stat-icon {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    section.stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px;
    }

    section.stats .stat-number {
        font-size: 40px;
    }
}

@media (max-width: 420px) {
    section.stats .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* ── 6. SCROLL-REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.reveal-left {
    transform: translateX(-36px);
}

.reveal.reveal-right {
    transform: translateX(36px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-delay-1 {
    transition-delay: 0.10s;
}

.reveal-delay-2 {
    transition-delay: 0.20s;
}

.reveal-delay-3 {
    transition-delay: 0.30s;
}

.reveal-delay-4 {
    transition-delay: 0.40s;
}

/* ── 7. ACTIVE NAV HIGHLIGHT ── */
header .main-header nav ul li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

/* ── Cookie Banner ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--navy-light);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 40px;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
}

#cookie-banner.visible {
    transform: translateY(0);
}

#cookie-banner p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    flex: 1;
    min-width: 200px;
}

#cookie-banner p a {
    color: var(--accent);
    text-decoration: underline;
}

#cookie-banner-accept {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition);
}

#cookie-banner-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(10, 158, 127, 0.4);
}

@media (max-width: 576px) {
    #cookie-banner {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════
   ROUND 2 — ADDITIONAL FEATURES
═══════════════════════════════════════════ */

/* ── 8. PAGE PRELOADER ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader .preloader-logo {
    width: 80px;
    height: 80px;
    animation: logoPulse 1.4s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.75;
    }
}

#preloader .preloader-bar {
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

#preloader .preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    animation: preloaderFill 1.6s ease forwards;
}

@keyframes preloaderFill {
    0% {
        width: 0%;
    }

    70% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

/* ── 9. DARK / LIGHT MODE ── */
#theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    flex-shrink: 0;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: rotate(20deg);
}

/* Light mode overrides */
body.light-mode {
    --navy: #f0f4f8;
    --navy-light: #e2eaf0;
    --text-primary: #0d1b2a;
    --text-muted: #4a6070;
    background: #f4f8f7;
    color: #0d1b2a;
}

body.light-mode header .pre-header {
    background: #0d1b2a;
}

body.light-mode header .main-header nav {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

body.light-mode .about-text p,
body.light-mode .services-text p {
    color: #284050;
}

body.light-mode section.stats {
    background: linear-gradient(135deg, #0d1b2a, #122536);
}

body.light-mode footer {
    background: linear-gradient(135deg, #0d1b2a, #0a2030);
}

body.light-mode #theme-toggle {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── 10. WHATSAPP BUTTON ── */
#whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform var(--transition), box-shadow var(--transition);
}

#whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

#whatsapp-btn .wa-tooltip {
    position: absolute;
    right: 56px;
    background: #0d1b2a;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

#whatsapp-btn:hover .wa-tooltip {
    opacity: 1;
}

/* ── 11. TESTIMONIALS SECTION ── */
section.testimonials {
    background: var(--surface-alt, #f4f8f7);
    padding: 80px 0;
    overflow: hidden;
}

section.testimonials .testimonials-title {
    text-align: center;
    margin-bottom: 50px;
}

section.testimonials .testimonials-title h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--navy, #0d1b2a);
    margin-bottom: 8px;
}

section.testimonials .testimonials-title span {
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    margin: 0 auto;
}

.testimonials-track-wrap {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    padding: 10px 40px 20px;
    transition: transform 0.55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(10, 158, 127, 0.08);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(10, 158, 127, 0.15);
}

.testimonial-card .quote-icon {
    font-size: 36px;
    color: var(--primary);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.testimonial-card .stars {
    color: #f5a623;
    font-size: 14px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a6070;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

.testimonial-author .author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.testimonial-author .author-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0d1b2a);
}

.testimonial-author .author-info span {
    font-size: 12px;
    color: #8a9aaa;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.testimonials-controls button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.testimonials-controls button:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonials-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(10, 158, 127, 0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.testimonials-dots .dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 580px) {
    .testimonial-card {
        flex: 0 0 85vw;
    }

    .testimonials-track {
        padding: 10px 20px 20px;
    }
}

/* ── 12. APPOINTMENT CTA BANNER ── */
section.cta-appointment {
    background: linear-gradient(135deg, var(--primary-dark, #077a62) 0%, var(--primary, #0a9e7f) 50%, #0bc298 100%);
    padding: 70px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section.cta-appointment::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

section.cta-appointment::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

section.cta-appointment .cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

section.cta-appointment h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

section.cta-appointment p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.65;
}

section.cta-appointment .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

section.cta-appointment .btn-cta-primary {
    background: #fff;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

section.cta-appointment .btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

section.cta-appointment .btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: background var(--transition), transform var(--transition);
}

section.cta-appointment .btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    section.cta-appointment {
        padding: 50px 20px;
    }

    section.cta-appointment .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/*  MODERN LANGUAGE SELECTOR  */
.main-header nav ul li#eng {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.main-header nav ul li#eng a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 158, 127, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(10, 158, 127, 0.35);
    font-weight: 800; font-size: 14.5px; color: var(--navy);
    transition: all var(--transition);
}

.main-header nav ul li#eng a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 158, 127, 0.25);
}

.main-header nav ul li#eng a img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Dark mode adjustments if needed */
body.dark-mode .main-header nav ul li#eng a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f1f1;
}

body.dark-mode .main-header nav ul li#eng a:hover {
    background: var(--primary);
    color: #fff;
}
