/* ============================================================
   ROOT VARIABLES & RESET - ENHANCED
   ============================================================ */
:root {
    /* الألوان الأساسية */
    --primary: #7981d4;
    --primary-dark: #0d1445;
    --primary-light: #283593;
    --primary-rgb: 26, 35, 126;
    --secondary: #0d47a1;
    --secondary-light: #1565c0;
    --gold: #c9a84c;
    --gold-light: #e8d58a;
    --gold-dark: #a8892b;
    --gold-rgb: 201, 168, 76;
    /* الألوان المحايدة */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #ced4da;
    --gray: #6c757d;
    --dark: #212529;
    --dark-rgb: 33, 37, 41;
    /* الظلال */
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.18);
    --shadow-gold: 0 5px 30px rgba(201, 168, 76, 0.25);
    --shadow-gold-hover: 0 10px 40px rgba(201, 168, 76, 0.35);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.06);
    /* الزوايا */
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-full: 50%;
    /* الانتقالات */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* الخطوط */
    --font-main: 'Cairo', 'Tajawal', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    /* أبعاد */
    --navbar-height: 80px;
    --navbar-height-mobile: 70px;
    --footer-height: 420px;
    /* تدرجات */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    --gradient-footer: linear-gradient(180deg, var(--primary-dark), #0a0a2a);
}

/* ============================================================
   RESET & BASE - ENHANCED
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    *::before,
    *::after {
        box-sizing: border-box;
    }

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--off-white);
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--navbar-height);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ============================================================
   TYPOGRAPHY - ENHANCED
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
}

h2 {
    font-size: 2.8rem;
    font-weight: var(--font-weight-extrabold);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    line-height: 1.8;
    color: var(--gray);
}

/* ============================================================
   LINKS
   ============================================================ */
a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

    a:hover {
        color: var(--gold);
        text-decoration: none;
    }

/* ============================================================
   SCROLLBAR - ENHANCED
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
    border-radius: 10px;
    border: 2px solid var(--off-white);
    transition: var(--transition);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold-dark);
    }

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: var(--gold);
    color: var(--white);
}

::-moz-selection {
    background: var(--gold);
    color: var(--white);
}

/* ============================================================
   PRELOADER - ENHANCED
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    #preloader.fade-out {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.preloader-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.preloader-logo-wrapper {
    margin-bottom: 25px;
    position: relative;
}

    .preloader-logo-wrapper::after {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 168, 76, 0.1), transparent 70%);
        animation: preloaderGlow 2s ease-in-out infinite;
    }

.preloader-logo {
    max-height: 100px;
    width: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.3));
    position: relative;
    z-index: 1;
}

.preloader-title {
    font-size: 2.2rem;
    font-weight: var(--font-weight-black);
    color: var(--gold);
    margin-bottom: 4px;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

.preloader-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.preloader-bar-wrap {
    width: 220px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.preloader-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
    border-radius: 10px;
    animation: preloaderBar 2.5s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

@keyframes preloaderBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes preloaderGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9998;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
    transition: width 0.1s linear;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

/* ============================================================
   NAVBAR - ENHANCED
   ============================================================ */
#mainNav {
    background: rgba(13, 20, 69, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    transition: var(--transition);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--gold);
    height: var(--navbar-height);
}

    #mainNav::before {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

#mainNav.scrolled {
    background: rgba(13, 20, 69, 0.98);
    padding: 8px 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
    border-bottom-color: var(--gold-dark);
}

#mainNav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white) !important;
    transition: var(--transition);
    position: relative;
}

    .navbar-brand:hover {
        transform: scale(1.02);
    }

.brand-logo-wrap {
    position: relative;
}

    .brand-logo-wrap img {
        max-height: 50px;
        width: auto;
        transition: var(--transition);
    }

#mainNav.scrolled .brand-logo-wrap img {
    max-height: 42px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--white);
    letter-spacing: 1px;
}

.brand-specialty {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: var(--font-weight-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navbar Links */
#mainNav .navbar-nav {
    gap: 4px;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: var(--font-weight-medium);
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

    #mainNav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        right: 50%;
        width: 0;
        height: 3px;
        background: var(--gold);
        border-radius: 10px;
        transition: var(--transition);
        transform: translateX(50%);
    }

    #mainNav .nav-link:hover::after,
    #mainNav .nav-link.active::after {
        width: 60%;
    }

    #mainNav .nav-link:hover {
        color: var(--white) !important;
        background: rgba(255, 255, 255, 0.06);
        transform: translateY(-2px);
    }

    #mainNav .nav-link.active {
        color: var(--white) !important;
        background: var(--gold);
        box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
    }

        #mainNav .nav-link.active::after {
            background: var(--white);
        }

    #mainNav .nav-link i {
        margin-left: 8px;
        font-size: 0.9rem;
    }

/* Navbar Phone Button */
.navbar-phone-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white) !important;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: var(--font-weight-bold);
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
    position: relative;
    overflow: hidden;
}

    .navbar-phone-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--gold-dark), var(--gold));
        opacity: 0;
        transition: var(--transition);
    }

    .navbar-phone-btn:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
    }

        .navbar-phone-btn:hover::before {
            opacity: 1;
        }

    .navbar-phone-btn span,
    .navbar-phone-btn i {
        position: relative;
        z-index: 1;
    }

    .navbar-phone-btn i {
        margin-left: 8px;
    }

/* Navbar Toggler (Hamburger) */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition);
}

    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-toggler .bar {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--white);
        border-radius: 10px;
        transition: var(--transition);
        transform-origin: center;
    }

    .navbar-toggler.collapsed .bar:nth-child(2) {
        opacity: 1;
    }

    .navbar-toggler:not(.collapsed) .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .navbar-toggler:not(.collapsed) .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .navbar-toggler:not(.collapsed) .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

/* ============================================================
   BREADCRUMB - ENHANCED
   ============================================================ */
.breadcrumb-nav {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    width: 100%;
    margin: 0;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--gray);
}

.breadcrumb-item a {
    color: var(--primary);
    font-weight: var(--font-weight-medium);
}

    .breadcrumb-item a:hover {
        color: var(--gold);
    }

.breadcrumb-item.active {
    color: var(--gold);
    font-weight: var(--font-weight-bold);
}

.breadcrumb-item i {
    margin-left: 6px;
}

/* ============================================================
   MAIN CONTENT - FIXED
   ============================================================ */
#main-content {
    flex: 1 0 auto !important;
    width: 100% !important;
    padding: 30px 0 40px !important;
    min-height: 400px !important;
}

/* ============================================================
   FOOTER - ENHANCED
   ============================================================ */
footer.footer {
    flex-shrink: 0 !important;
    width: 100% !important;
    margin-top: auto !important;
    background: var(--gradient-footer);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    border-top: 3px solid var(--gold);
}

/* Footer Waves */
.footer-waves {
    position: relative;
    top: -1px;
    overflow: hidden;
}

    .footer-waves svg {
        display: block;
        width: 100%;
        height: 70px;
    }

/* Footer Top */
.footer-top {
    padding: 70px 0 50px;
    position: relative;
}

    .footer-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    }

.footer-logo-fallback img {
    max-height: 60px;
    width: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.2));
}

.footer-logo-fallback > div {
    font-weight: var(--font-weight-bold);
    font-size: 1.3rem;
    color: var(--white);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 10px;
    line-height: 1.8;
}

/* Footer Title */
.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

    .footer-title::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 45px;
        height: 3px;
        background: linear-gradient(90deg, var(--gold), var(--gold-light));
        border-radius: 10px;
        transition: var(--transition);
    }

    .footer-title:hover::after {
        width: 70px;
    }

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        transition: var(--transition);
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
    }

        .footer-links a:hover {
            color: var(--gold);
            padding-right: 8px;
            transform: translateX(-4px);
        }

        .footer-links a i {
            margin-left: 10px;
            font-size: 0.7rem;
            color: var(--gold);
            transition: var(--transition);
        }

        .footer-links a:hover i {
            margin-left: 14px;
            transform: rotate(-10deg);
        }

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        gap: 14px;
        margin-bottom: 16px;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        transition: var(--transition);
    }

        .footer-contact li:hover {
            transform: translateX(-4px);
        }

        .footer-contact li i {
            color: var(--gold);
            font-size: 1.2rem;
            margin-top: 2px;
            min-width: 24px;
            text-align: center;
        }

        .footer-contact li strong {
            display: block;
            color: var(--white);
            font-size: 0.8rem;
            font-weight: var(--font-weight-semibold);
            margin-bottom: 2px;
        }

        .footer-contact li a {
            color: var(--gold-light);
            transition: var(--transition);
        }

            .footer-contact li a:hover {
                color: var(--white);
            }

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    transition: var(--transition);
    margin-left: 10px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    .social-icon:hover {
        background: var(--gold);
        color: var(--white);
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
        border-color: var(--gold);
    }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

    .footer-bottom strong {
        color: var(--gold);
    }

/* ============================================================
   FLOATING BUTTONS - ENHANCED
   ============================================================ */
.floating-btns {
    position: fixed;
    bottom: 30px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    transition: var(--transition-bounce);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

    .float-btn:hover {
        transform: scale(1.12) translateY(-3px);
        color: var(--white);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .float-btn.whatsapp {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

        .float-btn.whatsapp:hover {
            background: linear-gradient(135deg, #128c7e, #075e54);
        }

    .float-btn.phone {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    }

        .float-btn.phone:hover {
            background: linear-gradient(135deg, var(--primary-dark), #0a0a2a);
        }

    .float-btn.scroll-top {
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.8);
    }

        .float-btn.scroll-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .float-btn.scroll-top:hover {
            background: linear-gradient(135deg, var(--gold-dark), var(--gold));
        }

    .float-btn .pulse {
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.2);
        animation: pulse 2s ease-in-out infinite;
    }

        .float-btn .pulse:nth-child(2) {
            animation-delay: 0.5s;
        }

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================================
   COOKIE BANNER - ENHANCED
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: 30px;
    max-width: 520px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 18px;
    z-index: 9999;
    border-right: 5px solid var(--gold);
    animation: slideUp 0.5s ease;
}

    .cookie-banner.show {
        display: flex;
    }

    .cookie-banner p {
        margin: 0;
        flex: 1;
        font-size: 0.9rem;
        color: var(--dark);
    }

    .cookie-banner .btn-primary {
        background: var(--gold);
        border-color: var(--gold);
        padding: 8px 24px;
        font-weight: var(--font-weight-bold);
        border-radius: 30px;
        transition: var(--transition);
        white-space: nowrap;
    }

        .cookie-banner .btn-primary:hover {
            background: var(--gold-dark);
            border-color: var(--gold-dark);
            transform: scale(1.05);
        }

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   UTILITY CLASSES - ENHANCED
   ============================================================ */
.text-gold {
    color: var(--gold) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-muted {
    color: var(--gray) !important;
}

.bg-gold {
    background: var(--gold) !important;
}

.bg-primary-dark {
    background: var(--primary-dark) !important;
}

.bg-light {
    background: var(--off-white) !important;
}

.bg-white {
    background: var(--white) !important;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 50px 0;
}

.section-padding-lg {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    background: rgba(201, 168, 76, 0.08);
    padding: 4px 18px;
    border-radius: 30px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-dark);
    margin-bottom: 10px;
}

    .section-title .highlight {
        color: var(--gold);
    }

.section-desc {
    color: var(--gray);
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 1.1rem;
}

.shadow-hover {
    transition: var(--transition);
}

    .shadow-hover:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-5px);
    }

.rounded-gold {
    border-radius: var(--radius);
    border: 2px solid var(--gold);
}

/* ============================================================
   RESPONSIVE - ENHANCED
   ============================================================ */

/* Large screens */
@media (max-width: 1199px) {
    .section-title {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.3rem;
    }
}

/* Medium screens (tablets) */
@media (max-width: 991px) {
    :root {
        --navbar-height: 75px;
    }

    body {
        padding-top: var(--navbar-height);
    }

    #mainNav .navbar-collapse {
        background: var(--primary-dark);
        padding: 25px 20px;
        border-radius: var(--radius-md);
        margin-top: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.05);
        max-height: 70vh;
        overflow-y: auto;
    }

    #mainNav .nav-link {
        padding: 12px 18px;
        border-radius: 8px;
        font-size: 1rem;
    }

        #mainNav .nav-link::after {
            display: none;
        }

        #mainNav .nav-link i {
            margin-left: 12px;
            width: 24px;
            text-align: center;
        }

    .navbar-phone-btn {
        display: block;
        text-align: center;
        margin-top: 12px;
        width: 100%;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-specialty {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-padding-lg {
        padding: 80px 0;
    }

    .footer-top {
        padding: 50px 0 30px;
    }

    .footer-title {
        margin-top: 20px;
    }

    .cookie-banner {
        max-width: 100%;
        right: 15px;
        left: 15px;
        bottom: 15px;
        padding: 16px 20px;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }

    .cta-box {
        padding: 30px;
        text-align: center;
    }

        .cta-box .text-lg-end {
            text-align: center !important;
            margin-top: 15px;
        }
}

/* Small screens (phones) */
@media (max-width: 576px) {
    :root {
        --navbar-height: 65px;
    }

    body {
        padding-top: var(--navbar-height);
    }

    #mainNav {
        padding: 6px 0;
    }

        #mainNav.scrolled {
            padding: 4px 0;
        }

    .brand-logo-wrap img {
        max-height: 38px !important;
    }

    #mainNav.scrolled .brand-logo-wrap img {
        max-height: 32px !important;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-specialty {
        font-size: 0.55rem;
    }

    .navbar-toggler .bar {
        width: 25px;
        height: 2.5px;
    }

    .navbar-phone-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

        .navbar-phone-btn i {
            margin-left: 6px;
        }

    .preloader-title {
        font-size: 1.3rem;
    }

    .preloader-logo {
        max-height: 60px;
    }

    .preloader-subtitle {
        font-size: 0.9rem;
    }

    .preloader-bar-wrap {
        width: 160px;
    }

    .floating-btns {
        bottom: 15px;
        left: 12px;
        gap: 10px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .cookie-banner {
        right: 10px;
        left: 10px;
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

        .cookie-banner p {
            font-size: 0.8rem;
        }

        .cookie-banner .btn-primary {
            padding: 6px 18px;
            font-size: 0.85rem;
        }

    .footer-top {
        padding: 35px 0 20px;
    }

    .footer-bottom {
        padding: 15px 0;
        font-size: 0.8rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    #main-content {
        padding: 20px 0 30px !important;
        min-height: 300px !important;
    }

    .section-padding {
        padding: 40px 0;
    }

    .section-padding-lg {
        padding: 60px 0;
    }

    .section-padding-sm {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .breadcrumb-nav {
        padding: 10px 0;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-btns .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-image {
        max-width: 250px;
    }

    .case-images {
        grid-template-columns: 1fr;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .brand-name {
        font-size: 0.8rem;
    }

    .brand-specialty {
        font-size: 0.5rem;
    }

    .brand-logo-wrap img {
        max-height: 32px !important;
    }

    .navbar-phone-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .floating-btns {
        bottom: 10px;
        left: 8px;
        gap: 8px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    #preloader,
    .scroll-progress-container,
    .floating-btns,
    .cookie-banner,
    .footer-waves {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
        background: var(--white) !important;
    }

    #mainNav {
        position: relative !important;
        background: var(--primary-dark) !important;
        height: auto !important;
    }

    footer.footer {
        position: relative !important;
        margin-top: 20px !important;
    }

    .section-padding {
        padding: 30px 0 !important;
    }
}
