:root {
    --navy: #0a2540;
    --navy-light: #1a3a5c;
    --turquoise: #00b4a6;
    --turquoise-dark: #009688;
    --soft-gray: #f4f7fa;
    --text-muted: #6b7c93;
    --gradient-hero: linear-gradient(135deg, #0a2540 0%, #1a4a6e 50%, #00b4a6 100%);
    --gradient-soft: linear-gradient(180deg, #eef6fb 0%, #ffffff 100%);
    --shadow-sm: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-md: 0 10px 40px rgba(10, 37, 64, 0.12);
    --radius: 16px;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

img, video, iframe, svg {
    max-width: 100%;
}

main {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
}

a { text-decoration: none; transition: color .2s, background .2s; }

/* Header */
.site-header {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1030;
}

.navbar { padding: .35rem 0; }

.navbar > .container {
    gap: .75rem;
    align-items: center;
}

.navbar-brand {
    min-width: 0;
    max-width: none;
    margin-right: 0;
    padding: 0;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    height: 78px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: none;
}

.navbar-nav .nav-link {
    color: var(--navy);
    font-weight: 500;
    padding: .5rem .65rem !important;
    border-radius: 8px;
    font-size: .9rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover { color: var(--turquoise); }

.lang-switcher { font-size: .875rem; font-weight: 600; }

.lang-link { color: var(--text-muted); padding: 0 .25rem; }
.lang-link.active, .lang-link:hover { color: var(--turquoise); }
.lang-divider { color: #ccc; }

.btn-primary {
    background: var(--turquoise);
    border-color: var(--turquoise);
    font-weight: 600;
    border-radius: 10px;
    padding: .6rem 1.25rem;
}

.btn-primary:hover {
    background: var(--turquoise-dark);
    border-color: var(--turquoise-dark);
}

.btn-outline-primary {
    color: var(--turquoise);
    border-color: var(--turquoise);
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--turquoise);
    border-color: var(--turquoise);
}

.btn-outline-light {
    border-radius: 10px;
    font-weight: 600;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

.mobile-menu { background: var(--navy); color: #fff; }
.mobile-menu .offcanvas-title { color: #fff; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li a {
    display: block;
    padding: .75rem 0;
    color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-weight: 500;
}
.mobile-nav-list li a:hover { color: var(--turquoise); }

/* Hero */
.hero-section {
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-75 { min-height: 75vh; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    margin-bottom: 1rem;
    letter-spacing: .5px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: .9;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Sections */
.section-padding { padding: 5rem 0; }
.bg-soft-gradient { background: var(--gradient-soft); }
.bg-navy { background: var(--navy) !important; }

.section-header { margin-bottom: 3rem; }
.section-header h2 { color: var(--navy); margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.page-hero {
    background: var(--gradient-soft);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid #e8eef3;
}

.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--text-muted); margin: 0; }

.breadcrumb { margin-top: 1rem; margin-bottom: 0; }
.breadcrumb a { color: var(--turquoise); }

/* Cards */
.service-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f6;
    height: 100%;
    color: inherit;
    transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--turquoise), #4dd0c8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.dept-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f6;
    transition: transform .25s;
}

.dept-card:hover { transform: translateY(-3px); }

.dept-icon {
    width: 52px;
    height: 52px;
    background: rgba(0,180,166,.1);
    color: var(--turquoise);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.dept-icon-lg {
    width: 64px;
    height: 64px;
    background: var(--turquoise);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.card-link {
    color: var(--turquoise);
    font-weight: 600;
    font-size: .9rem;
}

.doctor-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f6;
}

.doctor-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--soft-gray);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-photo.sm { width: 80px; height: 80px; border-radius: 12px; flex-shrink: 0; }

.doctor-info { padding: 1.25rem; }
.doctor-title { color: var(--turquoise); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.doctor-info h5 { margin: .25rem 0; font-size: 1.1rem; }
.doctor-info p { color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; }

.doctor-card.horizontal {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
}

.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.why-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--turquoise);
    font-weight: 700;
    margin-bottom: .75rem;
}

.testimonial-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.testimonial-card .quote-icon { font-size: 2rem; color: var(--turquoise); margin-bottom: 1rem; }
.testimonial-card .author { display: block; margin-top: 1rem; font-weight: 600; opacity: .8; font-size: .9rem; }

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f6;
}

.blog-image { aspect-ratio: 16/10; overflow: hidden; background: var(--soft-gray); }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.5rem; }
.blog-category {
    color: var(--turquoise);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.blog-body h5 a { color: var(--navy); }
.blog-body h5 a:hover { color: var(--turquoise); }

.cta-section {
    background: var(--gradient-hero);
    color: #fff;
    padding: 5rem 0;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { opacity: .9; margin-bottom: 2rem; }

.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-top: 3px solid var(--turquoise);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,180,166,.1);
    color: var(--turquoise);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-image-placeholder {
    aspect-ratio: 4/3;
    background: var(--gradient-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--turquoise);
}

.sidebar-card, .form-card, .contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f6;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--turquoise);
    font-size: 1.25rem;
    margin-top: .2rem;
}

.contact-item p { margin: 0; color: var(--text-muted); word-break: break-word; }

.filter-bar .d-flex {
    width: 100%;
}

.page-hero .d-flex {
    flex-wrap: wrap;
}

.page-hero h1 {
    word-break: break-word;
}

.doctor-profile-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-photo {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--soft-gray);
}

.detail-list .detail-item { padding: .5rem 0; border-bottom: 1px solid #eef2f6; }

.content-block { line-height: 1.8; }
.content-block h3, .content-block h4 { margin-top: 1.5rem; }

.coming-soon-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.appointment-form, .form-card .form-control, .form-card .form-select {
    border-radius: 10px;
    border-color: #dde4ea;
}

.appointment-form .form-control:focus, .appointment-form .form-select:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 .2rem rgba(0,180,166,.15);
}

.time-slots-panel {
    background: #f8fafb;
    border: 1px solid #dde4ea;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.time-slots-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: #5c6b7a;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.legend-item .bi-circle-fill {
    font-size: .55rem;
}

.legend-available .bi-circle-fill { color: #22a06b; }
.legend-booked .bi-circle-fill { color: #dc3545; }
.legend-past .bi-circle-fill { color: #adb5bd; }

.time-slots-summary {
    font-weight: 600;
    color: var(--navy);
    width: 100%;
}

@media (min-width: 576px) {
    .time-slots-summary {
        width: auto;
        margin-left: auto !important;
    }
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .65rem;
    width: 100%;
}

.time-slots-loading,
.time-slots-hint {
    font-size: .95rem;
}

.time-slot {
    border: 2px solid #dde4ea;
    background: #fff;
    color: var(--navy);
    border-radius: 10px;
    padding: .65rem .5rem;
    font-weight: 600;
    font-size: .95rem;
    transition: all .15s ease;
}

.time-slot--available {
    cursor: pointer;
    border-color: #b7e4c7;
    background: #edfbf3;
    color: #1b7a4a;
}

.time-slot--available:hover {
    border-color: var(--turquoise);
    background: #e6faf8;
    transform: translateY(-1px);
}

.time-slot--available.selected {
    border-color: var(--turquoise);
    background: var(--turquoise);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,180,166,.25);
}

.time-slot--booked {
    background: #fff5f5;
    border-color: #f1c2c7;
    color: #b42318;
    cursor: not-allowed;
    opacity: .85;
}

.time-slot--past {
    background: #f1f3f5;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.time-slots-empty {
    margin-top: .75rem;
    font-size: .95rem;
}

.map-container { box-shadow: var(--shadow-sm); }
.map-container iframe {
    width: 100% !important;
    max-width: 100%;
    display: block;
    border: 0;
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-top { padding: 4rem 0 2rem; }
.footer-title { color: #fff; font-family: var(--font-display); margin-bottom: 1rem; }
.footer-text { font-size: .95rem; opacity: .85; word-break: break-word; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-links a:hover { color: var(--turquoise); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    margin-bottom: .75rem;
    display: flex;
    gap: .75rem;
    font-size: .9rem;
    word-break: break-word;
}
.footer-contact i { color: var(--turquoise); }
.footer-contact a { color: rgba(255,255,255,.85); }
.social-links a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff;
    margin-right: .5rem;
}
.social-links a:hover { background: var(--turquoise); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    font-size: .875rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Float buttons */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 1020;
    transition: transform .2s;
}

.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

.mobile-appointment-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--turquoise);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 1020;
}

/* 404 */
.error-page .error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    color: var(--turquoise);
    line-height: 1;
}

/* Responsive */
@media (max-width: 1199px) {
    .section-padding { padding: 3.5rem 0; }
    .hero-section { min-height: auto; padding: 4rem 0; }
    #mainNav { display: none !important; }
    .brand-logo { height: 68px; max-width: 240px; }
}

@media (max-width: 991px) {
    .page-hero { padding: 3rem 0 2rem; }
    .service-card, .dept-card, .info-card, .sidebar-card, .form-card, .contact-info-card {
        padding: 1.5rem;
    }
    .doctor-card.horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-section { padding: 3.5rem 0; }
    .cta-section .btn { width: 100%; margin: 0 0 .75rem !important; }
    .footer-top { padding: 3rem 0 1.5rem; }
    .footer-bottom {
        text-align: center;
    }
    .time-slots-panel {
        padding: .875rem;
    }
}

@media (max-width: 576px) {
    .hero-actions .btn { width: 100%; }
    .brand-logo { height: 58px; max-width: 200px; }
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-header h2 { font-size: 1.65rem; }
    .time-slot {
        padding: .55rem .35rem;
        font-size: .875rem;
    }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .mobile-appointment-float {
        bottom: 76px;
        right: 16px;
    }
}

@media (max-width: 380px) {
    .brand-logo { height: 52px; max-width: 170px; }
}
