/* Torna Medical Center - Custom Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #168bc6;
    --primary-dark: #0f628c;
    --primary-light: #e8f4f9;
    --secondary: #0a2540;
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-light-blue: #f0f7fc;
    --success: #10b981;
    --success-light: #ecfdf5;
    
    /* Layout & Styling */
    --font-primary: 'Outfit', 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(22, 139, 198, 0.08), 0 4px 6px -2px rgba(22, 139, 198, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(22, 139, 198, 0.12), 0 10px 10px -5px rgba(22, 139, 198, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size */
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Bilingual Toggle Visibility --- */
body.lang-en .lang-es {
    display: none !important;
}
body.lang-es .lang-en {
    display: none !important;
}

/* --- Accessibility Focus --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* --- Top Sticky Alert Bar (Elderly Focused) --- */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--primary);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.license-tag {
    font-size: 0.8rem;
    font-family: var(--font-secondary);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Highly visible emergency call button */
.call-btn-highlight {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(22, 139, 198, 0.4);
    border: 2px solid var(--bg-white);
    animation: pulseCall 2.5s infinite;
    transition: var(--transition);
}

.call-btn-highlight:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.call-btn-highlight svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@keyframes pulseCall {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 139, 198, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(22, 139, 198, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 139, 198, 0);
    }
}

/* Language Toggle Switch */
.lang-toggle {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-btn.active {
    background-color: var(--bg-white);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Main Navigation Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 52px; /* Placed exactly under the top-bar */
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-appointment-btn {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.nav-appointment-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle svg {
    width: 30px;
    height: 30px;
    fill: var(--secondary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--bg-white);
    text-align: center;
    background-color: var(--secondary);
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.45; /* Darken video to improve text contrast */
}

/* Gradient Overlay on top of video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(185deg, rgba(10, 37, 64, 0.7) 0%, rgba(22, 139, 198, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.hero-tagline {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: inline-block;
    background-color: rgba(22, 139, 198, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.hero-desc {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 15px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(22, 139, 198, 0.4);
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 139, 198, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    padding: 15px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--secondary);
    transform: translateY(-3px);
    border-color: var(--bg-white);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* --- Promo / Trust Badges Section --- */
.trust-badges {
    background-color: var(--bg-light);
    padding: 40px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.badges-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.badge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.badge-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.badge-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Section Layout --- */
.section {
    padding: 100px 8%;
    position: relative;
}

.section-alt {
    background-color: var(--bg-light-blue);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(22, 139, 198, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(22, 139, 198, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--bg-white);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.card-summary {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-btn {
    background: none;
    border: 1.5px solid var(--primary);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.service-card:hover .card-btn {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.card-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- Service Modal (Elderly Accessible / Clean & Modern) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--primary-light);
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(22, 139, 198, 0.1);
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
    padding: 5px;
}

.modal-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Modal Content Styling */
.modal-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.modal-grid-two {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-bottom: 30px;
}

.modal-media-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-media-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    max-height: 250px;
    border: 1.5px solid var(--primary-light);
}

.modal-media-video {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    outline: none;
    max-height: 250px;
    background-color: #000;
}

.modal-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.modal-list {
    list-style: none;
    margin-bottom: 25px;
}

.modal-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.modal-footer {
    padding: 20px 40px;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-btn-call {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 12px 25px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.modal-btn-call:hover {
    background-color: var(--primary-dark);
}

.modal-btn-call svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --- Testimonials / Positive Comments --- */
.testimonials {
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: var(--primary-light);
}

.quote-icon {
    position: absolute;
    top: 25px;
    right: 35px;
    color: rgba(22, 139, 198, 0.1);
    width: 50px;
    height: 50px;
}

.quote-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #f59e0b; /* Amber */
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1.5px solid var(--primary);
}

.author-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Contact & Location Section --- */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info-panel {
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.info-text h6 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-text p, .info-text a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--primary);
}

/* Call panel for elderly */
.elderly-call-promo {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.elderly-call-promo p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.elderly-call-btn {
    background-color: var(--bg-white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.elderly-call-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.elderly-call-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

/* Contact Form Styling */
.contact-form-panel {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-panel h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.contact-form-panel p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 0, 0, 0.08);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 139, 198, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 139, 198, 0.3);
    transition: var(--transition);
}

.form-submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 139, 198, 0.4);
}

/* Success Card Overlay inside form */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.4s ease forwards;
}

.form-success-overlay.active {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.success-icon svg {
    width: 45px;
    height: 45px;
    fill: currentColor;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.success-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
}

.btn-success-close {
    background-color: var(--secondary);
    color: var(--bg-white);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-success-close:hover {
    background-color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Map Card --- */
.map-container {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-white);
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 5% 30px 5%;
    border-top: 5px solid var(--primary);
    font-family: var(--font-secondary);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h4 {
    color: var(--bg-white);
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.license-disclaimer {
    font-size: 0.8rem;
    background-color: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.5);
    display: inline-block;
    border-left: 3px solid var(--primary);
}

.footer-links h5, .footer-hours h5 {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-hours-list {
    list-style: none;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.footer-hours-list li span:last-child {
    font-weight: 600;
    color: var(--bg-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* --- Floating Call Button (Always Visible on Mobile/Tablet) --- */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--bg-white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(22, 139, 198, 0.5);
    z-index: 998;
    text-decoration: none;
    border: 2px solid var(--bg-white);
    transition: var(--transition);
    animation: bounceFloat 3s infinite;
}

.floating-call:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.floating-call svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@keyframes bounceFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 980px) {
    .main-header {
        position: sticky;
        top: 0; /* Align directly to top if alert bar is static */
    }
    
    .top-bar {
        position: relative; /* Static position on smaller screens to avoid stacking bugs */
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(0,0,0,0.05);
        display: none; /* Controlled by JS */
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-appointment-btn {
        display: block;
        margin: 15px 20px;
        border-radius: var(--radius-md);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 4px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-grid-two {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 30px 20px;
    }
}
