/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Visually hidden but accessible (for labels, help text) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --text: #333;
    --muted: #666;
    --card-border: #f0f0f0;
    --card-shadow: 0 8px 24px rgba(0,0,0,0.06);
    --header-h: 80px; /* fixed header height reference */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
    overflow-x: hidden; /* prevent sideways scroll on small screens */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 100px;
    height: 50px;
    border-radius: 50%;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility: gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Submenu */
.has-submenu { position: relative; }
.has-submenu > .submenu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 18px; height: 18px;
    margin-right: 6px;
    cursor: pointer;
}
.has-submenu > .submenu-toggle::before {
    content: "\f107"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: #555;
}
.submenu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: .5rem;
    list-style: none;
    display: none;
    z-index: 1001;
}
.submenu li a {
    display: block;
    padding: .5rem .75rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
}
.submenu li a:hover { background: #f7f8ff; color: #2c5aa0; }
.has-submenu:hover > .submenu { display: block; }

/* Prevent initial auto-open on load until JS enables hover */
html:not(.hover-ready) .has-submenu:hover > .submenu { display: none !important; }

/* Large list submenu: cities */
.submenu-cities {
    max-height: 60vh;            /* limit height to viewport */
    overflow-y: auto;            /* enable vertical scroll */
    width: 520px;                /* wider to allow columns */
    /* do not force display here; default comes from .submenu (display:none) */
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 4px 8px;
}
/* When visible on desktop hover/open, render as grid */
.has-submenu:hover > .submenu.submenu-cities,
.has-submenu.open > .submenu.submenu-cities { display: grid; }
.submenu-cities li a { padding: .45rem .6rem; }

/* Mobile submenu */
@media (max-width: 768px) {
    .has-submenu { width: 100%; }
    .has-submenu > a { width: 100%; display: inline-block; }
    .has-submenu > .submenu-toggle { display: inline-block; vertical-align: middle; }
    .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0; margin-top: .25rem; }
    .has-submenu.open > .submenu { display: block; }
    .submenu li a { padding: .5rem 1rem; }
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2c5aa0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: var(--header-h);
    padding: 60px 0;
}

.hero-content {
    flex: 1;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2c5aa0;
}

.btn-outline {
    background: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-right: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #28a745;
    font-weight: bold;
}

/* Cities Section */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.city-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    .service-hero .btn,
    .service-hero .btn-primary,
    .service-hero .btn-secondary,
    .service-hero .btn-outline {
        transform: none;
        transition-property: background-color, color, box-shadow, border-color; /* no layout-affecting transitions */
    }
    .service-hero .btn:hover,
    .service-hero .btn:focus,
    .service-hero .btn:active {
        transform: none !important;
    }
    /* Prevent size change animation on initial load for hero CTA */
    .service-hero .btn {
        transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        white-space: nowrap;         /* keep label on one line */
        display: inline-flex;        /* center content predictably */
        align-items: center;
        justify-content: center;
        width: 280px;                /* lock width to eliminate growth */
        min-height: 48px;            /* lock the height to prevent bounce */
        line-height: 1;              /* stable text box */
        font-synthesis-weight: none; /* avoid faux-bold differences before webfont loads */
        font-size-adjust: 0.55;      /* keep similar perceived size between fallback and webfont */
    }
}

.city-info {
    padding: 1.5rem;
}

.city-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.city-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.city-card .btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.city-card .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-item i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials { background: #fff; }
.testimonials .section-header p { max-width: 720px; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 1.25rem 1.25rem 1rem;
}
.testimonial-header { display:flex; align-items:center; justify-content:space-between; margin-bottom: .4rem; }
.testimonial-author { font-weight: 800; color:#222; }
.testimonial-meta { color:#777; font-size: .9rem; }
.testimonial-meta { color:#555; }
.testimonial-text { color:#555; line-height: 1.9; margin:.4rem 0 .6rem; }
.stars { color: #f5a623; letter-spacing: 1px; }
.stars .fa-star-half-alt { color: #f5a623; }
/* Reserve inline-block space for icon font to avoid CLS before font loads */
.stars i { display: inline-block; width: 1em; height: 1em; }

/* Reserve space for all Font Awesome icons to mitigate CLS before font loads */
i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands {
    display: inline-block;
    width: 1em;
    height: 1em;
}

/* Testimonial avatar fixed size to avoid layout shift */
.testimonial-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    /* Stabilize numeric layout to avoid CLS during counter animation */
    font-variant-numeric: tabular-nums;
    min-width: 5ch;
    display: inline-block;
}

.stat-text {
    color: #666;
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Redesigned About Section */
.about-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(1200px 400px at 80% -20%, rgba(102,126,234,0.15), transparent),
                radial-gradient(800px 300px at 0% 120%, rgba(118,75,162,0.12), transparent);
    pointer-events: none;
}

.about-badge {
    display: inline-block;
    background: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-lead {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem 1rem;
}

.about-list li {
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0 0.5rem;
    flex-wrap: wrap;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-cta {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-card { padding: 1.5rem; }
    .about-title { font-size: 1.8rem; }
    .about-list { grid-template-columns: 1fr; }
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

/* Form Styles */
.contact-form,
#bookingForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: #ffffff; /* improve contrast */
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff; /* improve contrast */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

/* Float Buttons */
.whatsapp-float,
.call-float {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.whatsapp-float {
    bottom: 30px; /* moved down since phone icon is removed */
    right: 20px;
    background: #25D366;
}

.call-float { display: none !important; }

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root { --header-h: 70px; }
    .logo { width: 60px; height: 40px; }
    .nav-menu {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }
    /* allow long mobile menus to scroll */
    .nav-menu { overflow-y: auto; }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
    }

    .services-grid,
    .cities-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    section { padding: 50px 0; }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Privacy page mobile tuning */
    .doc-hero { padding: 36px 0; }
    .doc-hero h1 { font-size: 1.6rem; }
    .policy { padding: 40px 0; }
    .policy-layout { gap: 1rem; }
    .policy-section { padding: 1rem; }
    .policy-section h3 { font-size: 1.05rem; gap: 6px; }
    .policy-section h3 i { width: 26px; height: 26px; font-size: .85rem; }
    .policy-section p, .policy-section ul { line-height: 1.8; }
    /* cities submenu on mobile: scrollable */
    .submenu-cities { width: 100%; max-height: 45vh; overflow-y: auto; /* display controlled by .has-submenu.open > .submenu */ }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .city-card {
        margin: 0 10px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .whatsapp-float,
    .call-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .whatsapp-float { bottom: 20px; right: 15px; }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 0;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 0;
    display: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link.active::after {
        height: 3px;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .call-float,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        margin-top: 0;
        background: none;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}

/* =============================
   Service Pages (Therapeutic, etc.)
   ============================= */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-top: 80px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    color: #666;
}

.breadcrumb-list li a { color: #2c5aa0; text-decoration: none; }
.breadcrumb-list li[aria-current="page"] { color: #444; font-weight: 700; }

.service-hero {
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    padding: 60px 0;
    margin-top: var(--header-h); /* prevent hero from sticking under fixed header */
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}
.service-hero-content.single { grid-template-columns: 1fr; }

.service-hero-text h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.service-subtitle { color: #555; margin-bottom: .75rem; font-weight: 600; }
.service-description { color: #555; line-height: 1.9; margin-bottom: 1.2rem; }

.service-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.service-stats .stat-item { text-align: center; }
.service-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.service-hero-image img { max-width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.service-benefits { background: #fff; padding: 70px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.benefit-card { background: #fff; border-radius: 14px; padding: 1.5rem; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.benefit-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:#fff; font-size:1.3rem; }

.conditions-treated { background: #f8f9fa; padding: 70px 0; }
.conditions-content { margin-top: 1rem; }
.conditions-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.condition-category { background: #fff; border-radius: 12px; padding: 1rem 1.2rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; }
.condition-category h3 { font-size: 1.2rem; font-weight: 800; color:#222; margin-bottom: .6rem; display:flex; align-items:center; gap:10px; }
.condition-category h3 i { 
    width: 30px; height: 30px; border-radius: 50%;
    display:inline-flex; align-items:center; justify-content:center;
    color:#fff; font-size: 0.95rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
.condition-category:hover { 
    transform: translateY(-2px);
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: rgba(102,126,234,0.25);
}
.condition-category ul { padding-right: 1.25rem; color:#555; line-height:1.9; list-style:none; }
.condition-category ul li { position:relative; padding-right: 1.25rem; margin:.2rem 0; }
.condition-category ul li::before { content:""; position:absolute; right:0; top:.6rem; width:8px; height:8px; border-radius:50%; background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 0 0 3px rgba(102,126,234,0.12); }

.treatment-process { background:#fff; padding: 70px 0; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.step-item { display:flex; gap: 12px; align-items:flex-start; background:#fff; border-radius: 12px; padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.step-number { width: 36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.step-content h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.step-content p { color:#555; }

.pricing { background:#f8f9fa; padding: 70px 0; }
.pricing-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:1.5rem; }
.pricing-card { background:#fff; border-radius:16px; padding:1.5rem; box-shadow:0 10px 30px rgba(0,0,0,0.08); position:relative; overflow:hidden; }
.pricing-card .price { display:flex; align-items:baseline; gap:6px; margin: .8rem 0 1rem; }
.pricing-card .amount { font-size:2rem; font-weight:800; }
.pricing-card.featured { border:2px solid transparent; background-clip: padding-box; }
.pricing-card.featured::before { content:""; position:absolute; inset:-2px; border-radius:18px; background: linear-gradient(135deg, #667eea, #764ba2); z-index:-1; }
.popular-badge { position:absolute; top:12px; left:12px; background: linear-gradient(135deg, #667eea, #764ba2); color:#fff; padding:6px 10px; border-radius:999px; font-size:.8rem; font-weight:700; }
.pricing-card ul.features { list-style:none; padding:0; margin:0 0 1rem; color:#555; line-height:1.9; }

.faq { background:#fff; padding: 70px 0; }
.faq-list { display:grid; grid-template-columns: 1fr; gap: 1rem; }
.faq-item { border:2px solid #eee; border-radius:12px; overflow:hidden; background:#fff; }
.faq-question { display:flex; justify-content:space-between; align-items:center; padding:1rem 1.25rem; cursor:pointer; }
.faq-question h3 { font-size:1.05rem; }
.faq-answer { padding:0 1.25rem; max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-item.active { border-color:#667eea; }
.faq-item.active .faq-answer { padding: 0 1.25rem 1rem; }

.cta-section { background: var(--gradient); color:#fff; padding: 70px 0; text-align:center; }
.cta-section .btn-secondary { border-color:#fff; color:#fff; }

@media (max-width: 992px) {
    .service-hero-content { grid-template-columns: 1fr; }
}

/* =============================
   Privacy/Policy Page Styles
   ============================= */
.doc-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    padding: 50px 0;
    margin-top: var(--header-h);
    overflow: hidden; /* keep decorative blobs inside on mobile */
}
.doc-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 .5rem;
}
.doc-hero .policy-meta {
    color: #666;
    font-size: .95rem;
}
.doc-hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(closest-side, rgba(102,126,234,0.18), transparent 70%);
    pointer-events: none;
}
.doc-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(closest-side, rgba(118,75,162,0.16), transparent 70%);
    pointer-events: none;
}
.badge {
    display:inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 700;
}

.policy { background: #fff; padding: 60px 0; }
.policy-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}

    /* Full-width policy content when ToC is removed */
    .policy-layout.no-toc {
        grid-template-columns: 1fr;
    }

.policy-toc {
    position: sticky;
    top: 95px; /* below fixed header */
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 1rem 1rem 1.2rem;
}
.policy-toc h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    margin-bottom: .6rem;
}
.policy-toc h2 i {
    width: 28px; height: 28px; border-radius: 50%; color:#fff;
    display:inline-flex; align-items:center; justify-content:center; font-size:.9rem;
    background: var(--gradient);
}
.policy-toc ol {
    list-style: none;
    padding: 0; margin: 0;
}
.policy-toc li { margin: .25rem 0; }
.policy-toc a {
    display: block;
    text-decoration: none;
    color: #444;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease;
}
.policy-toc a:hover { background: #f5f7ff; color: #2c5aa0; }
.policy-toc a.active { background: #eef2ff; color: #2c5aa0; font-weight: 700; }

.toc-toggle {
    display: none;
    margin-bottom: .6rem;
    width: 100%;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
}

.policy-content { min-width: 0; }
.policy-section {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
}
.policy-section[id] { scroll-margin-top: calc(var(--header-h) + 40px); }
.policy-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    margin: 0 0 .6rem;
}
.policy-section h3 i {
    width: 30px; height: 30px; border-radius: 50%; color:#fff;
    display:inline-flex; align-items:center; justify-content:center; font-size:.95rem;
    background: var(--gradient);
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
.policy-section p { color:#555; line-height: 1.9; }
.policy-section ul { color:#555; line-height: 1.9; padding-right: 1.15rem; }
.policy-section ul li { margin: .2rem 0; }
.policy-section .copy-link {
    margin-right: auto;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 10px;
    padding: 4px 8px;
    cursor: pointer;
    color: #555;
    font-size: .85rem;
}
.policy-toast {
    position: fixed;
    bottom: 20px; left: 20px;
    background: #1f2937; color: #fff;
    padding: 10px 14px; border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
    opacity: 0; transform: translateY(10px);
    transition: all .25s ease;
    z-index: 1500;
}
.policy-toast.show { opacity: 1; transform: translateY(0); }

.policy-note {
    background: #f8f9ff;
    border: 1px dashed rgba(102,126,234,0.45);
    color: #444;
    border-radius: 12px;
    padding: .8rem 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 90px; left: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
    cursor: pointer;
    z-index: 1200;
    opacity: 0; transform: translateY(10px);
    transition: all .25s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .policy-layout { grid-template-columns: 1fr; }
    .policy-toc { position: relative; top: 0; }
    .toc-toggle { display: inline-block; }
}