/* CSS Variables - Professional Medical Palette */
:root {
    --background: 210 20% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222 47% 11%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 174 62% 47%;
    --border: 214 32% 91%;
    --medical-dark: 222 47% 11%;
    --medical-teal: 174 62% 47%;
    --radius: 12px;
}

/* Trail Cursor */
.trail-cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background: rgba(30, 64, 175, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}

.trail-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: rgba(30, 64, 175, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

.trail-cursor.hovering {
    width: 28px;
    height: 28px;
}

/* Hide default cursor on desktop */
@media (min-width: 1024px) {
    body.cursor-custom {
        cursor: none;
    }
    
    body.cursor-custom * {
        cursor: none !important;
    }
}

/* Distinctive Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(43, 155, 143, 0.3); }
    50% { box-shadow: 0 0 40px rgba(43, 155, 143, 0.6); }
}

@keyframes draw-line {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

@keyframes morph-bg {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 50% 30% 60% / 40% 60% 50% 60%; }
    75% { border-radius: 60% 40% 50% 50% / 60% 40% 60% 40%; }
}

@keyframes tilt {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-shimmer { 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-tilt { animation: tilt 4s ease-in-out infinite; }

/* Unique Section Styles */
.section-diagonal {
    position: relative;
    padding: 6rem 0;
}

.section-diagonal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.section-curve {
    position: relative;
}

.section-curve::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: inherit;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.section-wave {
    position: relative;
}

.section-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f8fafc' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.section-dots {
    background-image: radial-gradient(hsl(var(--primary) / 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-grid-pattern {
    background-image: 
        linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.medical-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

.medical-shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.medical-shadow-lg {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.medical-shadow-hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.medical-shadow-3d {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* utility sizing classes (tailwind-inspired) used by Lucide icons */
.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.icon-primary {
    color: hsl(var(--medical-teal));
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
    background: hsl(221 83% 48%);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Responsive button sizes */
@media (max-width: 768px) {
    .btn-primary {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .btn-primary .icon {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .btn-primary .icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: 1.5px solid hsl(var(--primary-foreground) / 0.3);
    background: hsl(var(--primary-foreground) / 0.05);
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: hsl(var(--primary-foreground) / 0.15);
    border-color: hsl(var(--primary-foreground) / 0.5);
}

.btn-secondary:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .btn-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s ease;
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navbar.scrolled,
.navbar.not-home {
    background: hsl(var(--card) / 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border-bottom: 1px solid hsl(var(--border));
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

@media (max-width: 768px) {
    .nav-content {
        height: 4rem;
    }
}

@media (max-width: 480px) {
    .nav-content {
        height: 3.5rem;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    isolation: isolate;
    background: transparent;
    padding: 0.62rem 1.7rem 0.66rem 0.8rem;
    margin-top: 1.3rem;
    margin-left: -0.5rem;
}

@media (max-width: 768px) {
    .logo-link {
        padding: 0.5rem 1.2rem 0.5rem 0.5rem;
        margin-top: 1rem;
        margin-left: -0.35rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo-link {
        padding: 0.375rem 0.875rem 0.375rem 0.375rem;
        margin-top: 0.75rem;
        margin-left: -0.25rem;
        gap: 0.375rem;
    }
}

.logo-link:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: none;
}

@media (max-width: 768px) {
    .logo-link:hover {
        transform: none;
    }
}

.logo-img {
    height: 2.5rem;
    object-fit: contain;
}

/* custom composite logo: rotating outer image with centered inner image */
.logo-images {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: white;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .logo-images {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 480px) {
    .logo-images {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.logo-round {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 8s linear infinite;
    mix-blend-mode: multiply;
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-icon span {
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    font-size: 0.875rem;
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.05rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
}

@media (max-width: 480px) {
    .logo-text {
        gap: 0.025rem;
    }
}

.logo-text-en {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: hsl(0 72% 51%);
}

@media (max-width: 768px) {
    .logo-text-en {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text-en {
        font-size: 0.875rem;
    }
}

.logo-text-ar {
    display: block;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    color: hsl(207 90% 48%);
    white-space: nowrap;
    direction: inherit;
    text-align: inherit;
    text-align-last: inherit;
    letter-spacing: 0;
    unicode-bidi: isolate;
}

@media (max-width: 768px) {
    .logo-text-ar {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text-ar {
        font-size: 0.875rem;
    }
}

.navbar:not(.scrolled):not(.not-home) .logo-text-en {
    color: hsl(0 72% 51%);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:not(.scrolled):not(.not-home) .nav-link {
    color: hsl(var(--primary-foreground) / 0.8);
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--foreground));
    background: hsl(var(--secondary) / 0.5);
}

.navbar:not(.scrolled):not(.not-home) .nav-link:hover,
.navbar:not(.scrolled):not(.not-home) .nav-link.active {
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary-foreground) / 0.1);
}

.nav-link.active::after {
    display: none;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.nav-links .btn-primary {
    margin-left: 1rem;
}

.mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (min-width: 1024px) {
    .mobile-nav-actions {
        display: none;
    }
}

.language-switcher {
    position: relative;
    margin-left: 0.5rem;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    list-style: none;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--card) / 0.92);
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.language-current {
    line-height: 1;
}

.language-button:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-1px);
}

.language-button svg {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.2s ease;
}

.language-menu[open] .language-button svg:last-child {
    transform: rotate(180deg);
}

.mobile-nav-language .language-switcher {
    margin-left: 0;
}

.mobile-nav-language .language-button {
    padding: 0.45rem 0.6rem;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.mobile-nav-language .language-button:hover {
    background: hsl(var(--secondary));
    transform: none;
}

.navbar:not(.scrolled):not(.not-home) .mobile-nav-language .language-button {
    color: hsl(var(--primary-foreground));
}

.mobile-nav-language .language-options {
    right: 0;
}

.language-options {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    min-width: 10rem;
    padding: 0.45rem;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--card));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    z-index: 120;
}

.language-option {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-option:hover,
.language-option.active {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

@media (max-width: 1200px) {
    .nav-links .btn-primary {
        margin-left: 0.5rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 1024px) {
    .nav-links .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown-arrow svg {
    width: 100%;
    height: 100%;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid hsl(var(--border));
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 1200px) {
    .dropdown-content {
        min-width: 220px;
        max-height: 350px;
    }
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

@media (max-width: 1200px) {
    .dropdown-item {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}

.dropdown-item:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.dropdown-divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 0.5rem 0;
}

html[lang="ar"][dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[lang="ar"][dir="rtl"] h1,
html[lang="ar"][dir="rtl"] h2,
html[lang="ar"][dir="rtl"] h3,
html[lang="ar"][dir="rtl"] h4,
html[lang="ar"][dir="rtl"] h5,
html[lang="ar"][dir="rtl"] h6,
html[lang="ar"][dir="rtl"] .nav-link,
html[lang="ar"][dir="rtl"] .mobile-link,
html[lang="ar"][dir="rtl"] .dropdown-item,
html[lang="ar"][dir="rtl"] .language-option,
html[lang="ar"][dir="rtl"] .section-label,
html[lang="ar"][dir="rtl"] .section-title,
html[lang="ar"][dir="rtl"] .section-desc,
html[lang="ar"][dir="rtl"] .card-title,
html[lang="ar"][dir="rtl"] .card-desc,
html[lang="ar"][dir="rtl"] .card-link,
html[lang="ar"][dir="rtl"] .info-card,
html[lang="ar"][dir="rtl"] .info-item-content,
html[lang="ar"][dir="rtl"] .form-label,
html[lang="ar"][dir="rtl"] .form-input,
html[lang="ar"][dir="rtl"] .form-select,
html[lang="ar"][dir="rtl"] .form-textarea,
html[lang="ar"][dir="rtl"] .benefit-text,
html[lang="ar"][dir="rtl"] .program-content,
html[lang="ar"][dir="rtl"] .show-more-btn,
html[lang="ar"][dir="rtl"] .about-service-card,
html[lang="ar"][dir="rtl"] .mission-pillar,
html[lang="ar"][dir="rtl"] .health-tip-pro,
html[lang="ar"][dir="rtl"] .service-card-pro {
    font-family: 'Cairo', 'Inter', sans-serif;
}

html[lang="ar"][dir="rtl"] .nav-content,
html[lang="ar"][dir="rtl"] .mobile-nav-actions {
    direction: rtl;
}

html[lang="ar"][dir="rtl"] .logo-link {
    direction: rtl;
    justify-content: flex-start;
    padding: 0.62rem 0.8rem 0.66rem 1.7rem;
    margin-left: 0;
    margin-right: -0.5rem;
    text-align: right;
}

html[lang="ar"][dir="rtl"] .logo-text {
    align-items: flex-end;
    text-align: right;
}

html[lang="ar"][dir="rtl"] .logo-text-en,
html[lang="ar"][dir="rtl"] .logo-text-ar {
    text-align: right;
}

html[lang="ar"][dir="rtl"] .footer-col-brand,
html[lang="ar"][dir="rtl"] .footer-logo {
    align-items: flex-end;
}

html[lang="ar"][dir="rtl"] .footer-logo .logo-text,
html[lang="ar"][dir="rtl"] .footer-desc {
    text-align: right;
}

html[lang="ar"][dir="rtl"] .nav-links .btn-primary {
    margin-left: 0;
    margin-right: 1rem;
}

html[lang="ar"][dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[lang="ar"][dir="rtl"] .mobile-nav-language .language-switcher {
    margin-right: 0;
}

html[lang="ar"][dir="rtl"] .language-options,
html[lang="ar"][dir="rtl"] .mobile-nav-language .language-options {
    left: 0;
    right: auto;
    text-align: right;
}

html[lang="ar"][dir="rtl"] .dropdown-arrow {
    margin-left: 0;
    margin-right: 0.25rem;
}

html[lang="ar"][dir="rtl"] .dropdown-content {
    left: auto;
    right: 0;
    text-align: right;
}

html[lang="ar"][dir="rtl"] .mobile-menu,
html[lang="ar"][dir="rtl"] .mobile-menu-content,
html[lang="ar"][dir="rtl"] .mobile-link,
html[lang="ar"][dir="rtl"] .mobile-dropdown-content,
html[lang="ar"][dir="rtl"] .dropdown-item {
    text-align: right;
}

html[lang="ar"][dir="rtl"] .mobile-dropdown-toggle {
    left: 0;
    right: auto;
}

html[lang="ar"][dir="rtl"] .mobile-dropdown > .mobile-link {
    padding-right: 1rem;
    padding-left: 3rem;
}

html[lang="ar"][dir="rtl"] .mobile-dropdown-content {
    padding-left: 0;
    padding-right: 1rem;
}

html[lang="ar"][dir="rtl"] .hero-content,
html[lang="ar"][dir="rtl"] .hero-badge,
html[lang="ar"][dir="rtl"] .hero-contact,
html[lang="ar"][dir="rtl"] .hero-social {
    text-align: right;
}

html[lang="ar"][dir="rtl"] .card-link,
html[lang="ar"][dir="rtl"] .show-more-btn {
    flex-direction: row-reverse;
}

html[lang="ar"][dir="rtl"] .hero-contact-label {
    margin-left: 0.15rem;
    margin-right: 0;
}

html[lang="ar"][dir="rtl"] .hero-contact,
html[lang="ar"][dir="rtl"] .hero-social {
    flex-direction: row;
    justify-content: flex-start;
}

html[lang="ar"][dir="rtl"] .hero-social-label {
    letter-spacing: 0;
    text-transform: none;
}

html[lang="ar"][dir="rtl"] .tip-number-pro {
    left: 1.5rem;
    right: auto;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

html[lang="ar"][dir="rtl"] .tip-icon-pro {
    margin-left: auto;
    margin-right: 0;
}

html[lang="ar"][dir="rtl"] .tip-title-pro,
html[lang="ar"][dir="rtl"] .tip-desc-pro {
    text-align: right;
}

html[lang="ar"][dir="rtl"] .phone-line,
html[lang="ar"][dir="rtl"] .phone-line a,
html[lang="ar"][dir="rtl"] a[href^="tel:"],
html[lang="ar"][dir="rtl"] input[type="tel"] {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: 'Inter', 'Cairo', sans-serif;
}

html[lang="ar"][dir="rtl"] .phone-line,
html[lang="ar"][dir="rtl"] a[href^="tel:"],
html[lang="ar"][dir="rtl"] input[type="tel"] {
    text-align: left;
}

html[lang="ar"][dir="rtl"] .phone-line,
html[lang="ar"][dir="rtl"] a[href^="tel:"] {
    display: inline-block;
}

html[lang="ar"][dir="rtl"] .section-desc {
    margin-right: auto;
    margin-left: auto;
}

html[lang="ar"][dir="rtl"] .service-btn-pro {
    align-self: flex-end;
}

html[lang="ar"][dir="rtl"] .search-icon {
    left: auto;
    right: 0.75rem;
}

html[lang="ar"][dir="rtl"] .search-input {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
}

html[lang="ar"][dir="rtl"] .modal-close {
    left: 1rem;
    right: auto;
}

html[lang="ar"][dir="rtl"] .media-prev {
    left: auto;
    right: 0.75rem;
}

html[lang="ar"][dir="rtl"] .media-next {
    right: auto;
    left: 0.75rem;
}

html[lang="ar"][dir="rtl"] .instagram-media-container.media-showing-portrait .media-prev {
    left: auto;
    right: 0.5rem;
}

html[lang="ar"][dir="rtl"] .instagram-media-container.media-showing-portrait .media-next {
    right: auto;
    left: 0.5rem;
}

html[lang="ar"][dir="rtl"] .media-prev svg,
html[lang="ar"][dir="rtl"] .media-next svg,
html[lang="ar"][dir="rtl"] .card-link svg,
html[lang="ar"][dir="rtl"] .service-btn-pro svg,
html[lang="ar"][dir="rtl"] .show-more-btn svg {
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    html[lang="ar"][dir="rtl"] .logo-link {
        padding: 0.5rem 0.5rem 0.5rem 1.2rem;
        margin-right: -0.35rem;
    }

    html[lang="ar"][dir="rtl"] .tip-number-pro {
        left: 1rem;
        right: auto;
    }

    html[lang="ar"][dir="rtl"] .media-prev {
        left: auto;
        right: 0.625rem;
    }

    html[lang="ar"][dir="rtl"] .media-next {
        right: auto;
        left: 0.625rem;
    }

    html[lang="ar"][dir="rtl"] .instagram-media-container.media-showing-portrait .media-prev {
        left: auto;
        right: 0.45rem;
    }

    html[lang="ar"][dir="rtl"] .instagram-media-container.media-showing-portrait .media-next {
        right: auto;
        left: 0.45rem;
    }
}

@media (max-width: 480px) {
    html[lang="ar"][dir="rtl"] .logo-link {
        padding: 0.375rem 0.375rem 0.375rem 0.875rem;
        margin-right: -0.25rem;
    }

    html[lang="ar"][dir="rtl"] .mobile-dropdown > .mobile-link {
        padding-left: 2.5rem;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: block;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

@media (max-width: 360px) {
    .mobile-toggle {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.hamburger-line {
    position: absolute;
    left: 0.5rem;
    display: block;
    width: 1.5rem;
    height: 2px;
    background: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.navbar:not(.scrolled):not(.not-home) .hamburger-line {
    background: hsl(var(--primary-foreground));
}

.hamburger-line:nth-child(1) {
    top: 0.75rem;
}

.hamburger-line:nth-child(2) {
    top: 1.125rem;
}

.hamburger-line:nth-child(3) {
    top: 1.5rem;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    top: 1.125rem;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    top: 1.125rem;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: hsl(var(--card) / 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid hsl(var(--border) / 0.5);
    overflow-y: auto;
    max-height: calc(100vh - 4.5rem);
}

@media (max-width: 768px) {
    .mobile-menu {
        max-height: calc(100vh - 4rem);
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        max-height: calc(100vh - 3.5rem);
    }
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu.active {
    display: block;
    animation: slideDownMenu 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 480px) {
    .mobile-menu-content {
        padding: 1rem;
    }
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

@media (max-width: 480px) {
    .mobile-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

.mobile-link:hover,
.mobile-link.active {
    background: hsl(var(--secondary));
    color: hsl(var(--primary));
}

.mobile-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .mobile-cta {
        margin-top: 0.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
}

.mobile-dropdown>.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 3rem;
}

@media (max-width: 480px) {
    .mobile-dropdown>.mobile-link {
        padding-right: 2.5rem;
    }
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: transform 0.3s ease;
    z-index: 1;
}

@media (max-width: 480px) {
    .mobile-dropdown-toggle {
        padding: 0.625rem 0.875rem;
    }
}

.mobile-dropdown-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 480px) {
    .mobile-dropdown-toggle svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

.mobile-dropdown.active .mobile-dropdown-toggle {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .mobile-dropdown-content {
        padding-left: 0.75rem;
    }
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: flex;
}

.mobile-dropdown-content .dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .mobile-dropdown-content .dropdown-item {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

.mobile-dropdown-content .dropdown-item:hover,
.mobile-dropdown-content .dropdown-item:active {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

/* Footer */
.footer {
    position: relative;
    background: hsl(var(--medical-dark));
    color: hsl(var(--primary-foreground));
    overflow: hidden;
}

.footer-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../src/assets/footer background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
}

.footer-bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: hsl(var(--medical-dark) / 0.5);
}

.footer-cta {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
    background: #ffffff;
}

.footer-cta .footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-cta-strip {
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .footer-cta .footer-container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 1024px) {
    .footer-cta {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .footer-cta .footer-container {
        padding: 0 1rem;
    }
    .footer-cta {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .footer-cta .footer-container {
        padding: 0 0.875rem;
    }
    .footer-cta {
        padding: 2.5rem 0;
    }
}

/* Footer main container (block, holds grid) */
.footer-main .footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
}

@media (max-width: 768px) {
    .footer-main .footer-container {
        padding: 2.5rem 1.25rem 1.5rem;
    }
}

.footer-cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .footer-cta-title {
        font-size: 2.25rem;
    }
}

.footer-cta-desc {
    color: hsl(var(--primary-foreground) / 0.5);
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.footer-main {
    position: relative;
    z-index: 1;
    padding: 0;
    margin-top: 0;
}

.footer > .footer-main:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2rem;
    }
    
    .footer-qr-col {
        grid-column: span 2;
        display: block !important;
        text-align: center;
    }
    
    .footer-qr-code {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.8fr 1.2fr 1.8fr 1.5fr;
        gap: 2.5rem 4rem;
    }
    
    .footer-qr-col {
        grid-column: auto;
        display: block !important;
        text-align: left;
    }
}

/* Footer column base */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-brand {
    gap: 1rem;
}

@media (min-width: 1024px) {
    .footer-col-brand {
        margin-right: 1.5rem;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    gap: 0.18rem;
    text-align: center;
}

.footer-logo .logo-text-en {
    font-size: 1.75rem;
}

.footer-logo .logo-text-ar {
    font-size: 1.75rem;
}

.footer-logo-img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

/* footer version of composite logo container */
.footer-logo .logo-images {
    position: relative;
    width: 12rem;
    height: 12rem;
    background: white;
    border-radius: 50%;
}

.footer-logo .logo-round {
    animation: spin 8s linear infinite;
    mix-blend-mode: multiply;
}

.footer-logo .logo-center {
    width: 90%;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-icon-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--primary-foreground));
}

.social-icon-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary-foreground) / 0.7);
    transition: color 0.3s ease;
}

.social-icon-link:hover {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    transform: translateY(-0.25rem);
}

.social-icon-link:hover svg {
    color: hsl(var(--primary-foreground));
}

.social-icon-link.social-whatsapp svg {
    color: #25d366;
}

.social-icon-link.social-call svg {
    color: hsl(var(--primary));
}

.social-icon-link.social-instagram svg {
    color: #e1306c;
}

.social-icon-link.social-facebook svg {
    color: #1877f2;
}

.social-icon-link.social-tiktok svg {
    color: #000000;
}

.social-icon-link.social-whatsapp:hover {
    background: hsl(142 70% 20% / 0.45);
    border-color: #25d366;
}

.social-icon-link.social-instagram:hover {
    background: hsl(330 70% 20% / 0.45);
    border-color: #e1306c;
}

.social-icon-link.social-facebook:hover {
    background: hsl(217 80% 20% / 0.45);
    border-color: #1877f2;
}

.social-icon-link.social-tiktok:hover {
    background: hsl(0 0% 20% / 0.45);
    border-color: #000000;
}

.social-icon-link.social-whatsapp:hover svg {
    color: #25d366;
}

.social-icon-link.social-instagram:hover svg {
    color: #e1306c;
}

.social-icon-link.social-facebook:hover svg {
    color: #1877f2;
}

.social-icon-link.social-tiktok:hover svg {
    color: #000000;
}

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3.4rem;
    height: 3.4rem;
    isolation: isolate;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
    z-index: 70;
    transition: transform 0.25s ease;
    animation: whatsappFloat 2.8s ease-in-out infinite;
}

.floating-whatsapp::before {
    content: "";
    position: absolute;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
}

.floating-whatsapp svg {
    width: 2rem;
    height: 2rem;
}

.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: none;
}

@keyframes whatsappFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 640px) {
    .floating-whatsapp {
        right: 1rem;
        bottom: 1rem;
        width: 3.1rem;
        height: 3.1rem;
    }

    .floating-whatsapp svg {
        width: 1.65rem;
        height: 1.65rem;
    }
}

.footer-desc {
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.footer-heading {
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: hsl(var(--accent));
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item p {
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--primary-foreground) / 0.1);
    color: hsl(var(--primary-foreground) / 0.6);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: hsl(var(--primary) / 0.5);
    color: hsl(var(--primary-foreground));
}

.footer-hours {
    margin-top: 1.5rem;
}

.hours-label {
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.hours-time {
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-qr-col {
    display: none;
    margin-top: 1.5rem;
    min-height: 150px;
}

.footer-qr-code {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0.75rem;
    text-align: center;
}

.qr-code-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: block;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary-foreground) / 0.1), transparent);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: center;
    }
}

.copyright,
.designed {
    color: #f5f5f5;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    pointer-events: none;
}

.scroll-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--primary)));
    box-shadow: 0 0 24px hsl(var(--accent) / 0.35);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-up {
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Scroll Reveal */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-scale,
[data-scroll-reveal] {
    --reveal-x: 0px;
    --reveal-y: 38px;
    --reveal-scale: 1;
    --reveal-duration: 780ms;
    --reveal-delay: 0s;
    opacity: 0;
    transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
    transition:
        opacity var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        transform var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.scroll-reveal-left {
    --reveal-x: -56px;
    --reveal-y: 0px;
}

.scroll-reveal-right {
    --reveal-x: 56px;
    --reveal-y: 0px;
}

.scroll-scale {
    --reveal-y: 24px;
    --reveal-scale: 0.92;
}

.scroll-reveal.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed,
.scroll-scale.revealed,
[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger animation for children */
.stagger-children>* {
    --reveal-y: 20px;
    --reveal-duration: 560ms;
    opacity: 0;
    transform: translate3d(0, var(--reveal-y), 0);
    transition:
        opacity var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1),
        transform var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.stagger-children.revealed>*:nth-child(1) {
    transition-delay: 0s;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.stagger-children.revealed>*:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.stagger-children.revealed>*:nth-child(3) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.stagger-children.revealed>*:nth-child(4) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.stagger-children.revealed>*:nth-child(5) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.stagger-children.revealed>*:nth-child(6) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1024px) {
    .scroll-progress {
        height: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-progress {
        display: none;
    }

    .fade-up,
    .fade-in,
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-scale,
    [data-scroll-reveal],
    .stagger-children>* {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Continuous subtle animations */
@keyframes pulse-gentle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse-gentle {
    animation: pulse-gentle 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}


/* ========================================
   PROFESSIONAL RESPONSIVE ENHANCEMENTS
   ======================================== */

/* Container Responsive */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }
}

/* Section Spacing */
.section {
    padding: 5rem 0;
}

@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 0;
    }
}

/* Typography Responsive */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-title-brand {
    color: hsl(var(--primary-foreground));
    text-shadow: 0 2px 12px rgb(0 0 0 / 0.22);
}

.hero-title-brand-accent {
    display: block;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, hsl(174 62% 62%), hsl(206 88% 72%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
}

.section-desc {
    font-size: 1.125rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-desc {
        font-size: 0.9375rem;
    }
}

/* Grid Responsive */
.grid {
    display: grid;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .grid {
        gap: 1.25rem;
    }
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 480px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card Responsive */
.card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .card {
        border-radius: 0.875rem;
    }
}

@media (max-width: 480px) {
    .card {
        border-radius: 0.75rem;
    }
}

.card-title {
    font-size: 1.25rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1rem;
    }
}

.card-desc {
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .card-desc {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .card-desc {
        font-size: 0.8125rem;
    }
}

/* Hero Section Responsive */
.hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .hero-badge {
        padding: 0.4375rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: hsl(var(--primary));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
}

.hero-buttons .btn-primary:hover {
    background: hsl(221 83% 48%);
    border-color: hsl(221 83% 48%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hero-social-label {
    color: hsl(var(--primary-foreground));
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-social-icons {
    margin-bottom: 0;
    gap: 0.55rem;
}

.hero-social-icons .social-icon-link {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: #ffffff;
    border: none;
}

.hero-social-icons .social-icon-link svg {
    width: 1rem;
    height: 1rem;
}

.hero-social-icons .social-icon-link:hover {
    background: #ffffff;
    border-color: transparent;
}

@media (max-width: 640px) {
    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-social {
        gap: 0.625rem;
        margin-top: 1rem;
    }

    .hero-social-label {
        width: 100%;
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .hero-social-icons {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-social-icons .social-icon-link {
        width: 1.95rem;
        height: 1.95rem;
    }

    .hero-social-icons .social-icon-link svg {
        width: 0.95rem;
        height: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 0.625rem;
    }

    .hero-social-icons .social-icon-link {
        width: 1.85rem;
        height: 1.85rem;
    }

    .hero-social-icons .social-icon-link svg {
        width: 0.88rem;
        height: 0.88rem;
    }
}

/* Floating WhatsApp Button Responsive */
.floating-whatsapp {
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 1000;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 3.25rem;
        height: 3.25rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-whatsapp::before {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        width: 3rem;
        height: 3rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .floating-whatsapp::before {
        width: 2.3rem;
        height: 2.3rem;
    }
}

@media (max-width: 360px) {
    .floating-whatsapp {
        width: 2.75rem;
        height: 2.75rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-whatsapp svg {
        width: 1.7rem;
        height: 1.7rem;
    }

    .floating-whatsapp::before {
        width: 2.1rem;
        height: 2.1rem;
    }
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .floating-whatsapp:hover {
        transform: scale(1.05);
    }
}

.floating-whatsapp svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

@media (max-width: 768px) {
    .floating-whatsapp svg {
        width: 1.875rem;
        height: 1.875rem;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp svg {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Stats Grid Responsive */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 1rem;
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.75rem;
    }
}

.stat-label {
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stat-label {
        font-size: 0.8125rem;
    }
}

/* Feature Box Responsive */
.feature-box {
    padding: 1rem;
    border-radius: 0.75rem;
}

@media (max-width: 768px) {
    .feature-box {
        padding: 0.875rem;
        border-radius: 0.625rem;
    }
}

@media (max-width: 480px) {
    .feature-box {
        padding: 0.75rem;
        border-radius: 0.5rem;
    }
}

.feature-text {
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .feature-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .feature-text {
        font-size: 0.8125rem;
    }
}

/* (footer-grid responsive handled above) */


/* Image Responsive */
.image-rounded {
    border-radius: 1rem;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .image-rounded {
        border-radius: 0.875rem;
    }
}

@media (max-width: 480px) {
    .image-rounded {
        border-radius: 0.75rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-link:hover,
    .card:hover {
        transform: none;
    }

    .btn-primary:active {
        transform: scale(0.95);
    }

    .btn-secondary:active {
        transform: scale(0.95);
    }
}

/* Smooth Scrolling for All Devices */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo-images,
    .image-rounded {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .floating-whatsapp,
    .mobile-toggle,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE FIXES
   ======================================== */

/* Extra small devices (below 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .values-modern-layout {
        grid-template-columns: 1fr !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small devices (320px - 479px) */
@media (min-width: 320px) and (max-width: 479px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .section-desc {
        font-size: 0.9375rem;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .values-modern-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-col {
        padding: 0.5rem 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .feature-box {
        padding: 0.75rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .image-container {
        max-height: 250px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .value-modern-card {
        padding: 1.25rem;
    }
    
    .team-card {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .contact-info-item {
        padding: 0.75rem;
    }
}

/* Small devices (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-modern-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Medium devices (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section {
        padding: 4.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-modern-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.75rem !important;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-modern-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet landscape and small desktop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        padding: 0 2rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}

/* Fix for horizontal scroll on all mobile devices */
html {
    overflow-x: hidden;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
    height: auto;
}

/* Fix for inline styles that might cause overflow */
[style*="grid-template-columns"] {
    max-width: 100%;
}

[style*="display: flex"] {
    flex-wrap: wrap;
    max-width: 100%;
}

.instagram-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100% !important;
}

.instagram-media-item {
    width: 100%;
    height: 100%;
}

.instagram-media-item img,
.instagram-media-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .instagram-media-container {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }
    
    .instagram-media-container iframe,
    .instagram-media-container video,
    .instagram-media-container img {
        aspect-ratio: 16/9;
    }

    .instagram-media-container.media-showing-portrait {
        aspect-ratio: 9/16 !important;
    }
    
    .instagram-media-container.media-showing-portrait iframe,
    .instagram-media-container.media-showing-portrait video {
        aspect-ratio: 9/16;
    }
}

@media (max-width: 480px) {
    .instagram-media-container {
        aspect-ratio: 4/3;
    }

    .instagram-media-container.media-showing-portrait {
        aspect-ratio: 9/16 !important;
    }
}

.instagram-media-container:hover .media-nav-arrow {
    opacity: 1;
}

.media-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    opacity: 0.92;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.media-nav-arrow svg {
    width: 1.15rem;
    height: 1.15rem;
}

.media-prev {
    left: 0.75rem;
}

.media-next {
    right: 0.75rem;
}

.instagram-media-container .media-nav-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.04);
}

.instagram-media-container.media-showing-portrait .media-prev {
    left: 0.5rem;
}

.instagram-media-container.media-showing-portrait .media-next {
    right: 0.5rem;
}

@media (max-width: 768px) {
    .media-nav-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .media-nav-arrow svg {
        width: 1rem;
        height: 1rem;
    }

    .media-prev {
        left: 0.625rem;
    }

    .media-next {
        right: 0.625rem;
    }

    .instagram-media-container.media-showing-portrait .media-prev {
        left: 0.45rem;
    }

    .instagram-media-container.media-showing-portrait .media-next {
        right: 0.45rem;
    }
}

@media (max-width: 480px) {
    .media-nav-arrow {
        width: 2.35rem;
        height: 2.35rem;
    }
}

/* Bounce Call Us Animation */
.hero-contact-label {
    display: inline-block !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: callUsBounce 1s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes callUsBounce {
    0%, 100% { 
        transform: translateY(0);
    }
    25% { 
        transform: translateY(-4px) scale(1.02);
    }
    50% { 
        transform: translateY(0);
    }
    75% { 
        transform: translateY(-2px) scale(1.01);
    }
}

/* Final responsive hardening */
.grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.stats-grid > *,
.footer-grid > *,
.contact-grid > * {
    min-width: 0;
}

@media (max-width: 1023px) {
    .footer-cta .footer-container {
        text-align: initial;
    }

    .footer-social-icons,
    .info-buttons {
        flex-wrap: wrap;
    }
}


@media (max-width: 767px) {
    .logo-link,
    .footer-logo {
        min-width: 0;
    }

    .logo-text-en,
    .logo-text-ar {
        line-height: 1.05;
    }

    .footer-logo .logo-images {
        width: 8.75rem;
        height: 8.75rem;
    }

    .footer-logo .logo-text-en,
    .footer-logo .logo-text-ar {
        font-size: 1.125rem;
    }

    .hero-buttons,
    .info-buttons {
        align-items: stretch;
    }

    .hero-buttons > a,
    .info-buttons > a {
        width: 100%;
        justify-content: center;
    }
}
