/* landing.css - Premium Responsive Design for OdontoFamy Plus */
:root {
    --primary: #0369A1;        /* Deep Cyan/Blue */
    --primary-light: #38BDF8;
    --primary-dark: #075985;
    --accent: #F59E0B;         /* Gold/Amber touch */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

.section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
}

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

/* ──────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(3, 105, 161, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 105, 161, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
}

/* ──────────────────────────────────────────────
   Navbar & Mobile Menu
   ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    z-index: 1000;
    padding: 0.85rem 0;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    color: var(--text-main);
    width: 38px;
    height: 38px;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.08);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ──────────────────────────────────────────────
   Main Promotional Carousel
   ────────────────────────────────────────────── */
.main-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 65px;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Gradient overlay for readability */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.carousel-content h2 {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.carousel-content p {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 6px;
}

/* ──────────────────────────────────────────────
   Hero Section
   ────────────────────────────────────────────── */
.hero {
    padding: 4rem 0;
    background: linear-gradient(to right, #ffffff 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 520px;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    margin-left: auto;
}

.glass-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.glass-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-form input {
    padding: 0.85rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
}

.hero-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.hero-form button {
    margin-top: 0.25rem;
}

/* ──────────────────────────────────────────────
   Services Section
   ────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    justify-content: center;
}

.service-card {
    background: var(--bg-main);
    padding: 2.25rem 1.5rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #F1F5F9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(3, 105, 161, 0.18);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.5;
}

/* ──────────────────────────────────────────────
   Why Choose Us Section
   ────────────────────────────────────────────── */
.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.why-us-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.why-us-content > p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.35rem;
    background: #E0F2FE;
    color: var(--primary);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature h4 {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

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

.why-us-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: var(--bg-main);
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(3, 105, 161, 0.2);
}

.stat-box h3 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-box p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ──────────────────────────────────────────────
   Financing & Payment Methods Section
   ────────────────────────────────────────────── */
.financing {
    background: var(--bg-light);
}

.financing-subtitle {
    text-align: center;
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 600;
    color: var(--text-main);
    margin: 2rem 0 1.25rem;
    letter-spacing: 0.01em;
}

.financing-subtitle:first-of-type {
    margin-top: 0;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 180px;
    height: 160px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1.5px solid transparent;
}

.logo-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 28px -6px rgba(3, 105, 161, 0.18);
    border: 1.5px solid var(--primary-light);
}

.logo-card img {
    max-width: 120px;
    width: 100%;
    height: 85px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

/* Compensate logo internal spacing */
.logo-card img[alt="Addi"] {
    transform: scale(1.25);
}

.logo-card img[alt="Sistecrédito"] {
    transform: scale(1.25);
}

.logo-card img[alt="Tarjeta Débito / Crédito"] {
    transform: scale(0.95);
}

.logo-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-top: auto;
}

/* ──────────────────────────────────────────────
   Testimonials Section
   ────────────────────────────────────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background: var(--bg-main);
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F1F5F9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

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

/* ──────────────────────────────────────────────
   Footer Section
   ────────────────────────────────────────────── */
.footer {
    background: #0F172A;
    color: white;
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h2 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94A3B8;
    max-width: 350px;
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-hours h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h3::after,
.footer-hours h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary);
}

.footer-contact p,
.footer-hours p {
    color: #94A3B8;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.footer-hours p {
    display: flex;
    flex-direction: column;
}

.day-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-login-link {
    color: #94A3B8;
    transition: color 0.2s, background-color 0.2s;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.staff-login-link:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

/* ──────────────────────────────────────────────
   Modals
   ────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: 1.25rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.2s ease;
    background: #F9FAFB;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: #FFF;
}

/* ──────────────────────────────────────────────
   Dark Mode Styles
   ────────────────────────────────────────────── */
body.dark-mode .sun-icon { display: block; }
body.dark-mode .moon-icon { display: none; }
body:not(.dark-mode) .sun-icon { display: none; }
body:not(.dark-mode) .moon-icon { display: block; }

body.dark-mode {
    --bg-main: #0B1329;       /* Deep obsidian navy */
    --bg-light: #131C35;      /* Accent dark navy */
    --text-main: #F1F5F9;     /* Ice white */
    --text-muted: #94A3B8;    /* Muted slate */
    --glass-bg: rgba(11, 19, 41, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

body.dark-mode .navbar {
    background: #0B1329;
    border-bottom: 1px solid #1E293B;
}

body.dark-mode .navbar.scrolled {
    background: rgba(11, 19, 41, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .mobile-toggle span {
    background-color: var(--text-main);
}

body.dark-mode .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-card,
body.dark-mode .testimonial-card {
    border-color: #1E293B;
}

body.dark-mode .logo-card {
    background: #131C35;
}

body.dark-mode .carousel-slide::before {
    background: linear-gradient(90deg, rgba(11, 19, 41, 0.95) 0%, rgba(11, 19, 41, 0.75) 50%, rgba(11, 19, 41, 0.3) 100%);
}

body.dark-mode .hero {
    background: linear-gradient(to right, #0B1329 0%, #131C35 100%);
}

body.dark-mode .glass-card {
    background: rgba(19, 28, 53, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .hero-form input,
body.dark-mode .form-control {
    background: #0B1329;
    color: #F1F5F9;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .hero-form input::placeholder,
body.dark-mode .form-control::placeholder {
    color: #64748B;
}

body.dark-mode .modal-content {
    background: #131C35;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────────
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   ────────────────────────────────────────────── */

/* Tablet & Smaller Desktops (<= 992px) */
@media (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }

    .hero-container,
    .why-us-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .glass-card {
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        border-bottom: 1px solid #E2E8F0;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.75rem 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: all 0.25s ease;
        z-index: 999;
    }

    body.dark-mode .nav-links {
        background: #0B1329;
        border-bottom: 1px solid #1E293B;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        width: 100%;
        border-left: 3px solid transparent;
        font-size: 1rem;
    }

    .nav-links a:hover {
        background: rgba(3, 105, 161, 0.06);
        border-left-color: var(--primary);
    }

    /* Carousel mobile adjustment */
    .main-carousel {
        height: 390px;
        margin-top: 60px;
    }

    .carousel-slide::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 60%, rgba(255, 255, 255, 0.55) 100%);
    }

    body.dark-mode .carousel-slide::before {
        background: linear-gradient(90deg, rgba(11, 19, 41, 0.95) 0%, rgba(11, 19, 41, 0.85) 60%, rgba(11, 19, 41, 0.6) 100%);
    }

    .carousel-content {
        padding: 0 0.5rem;
    }

    .carousel-content h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .carousel-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 8px;
    }

    .carousel-btn.next {
        right: 8px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Phones & Small Mobile (<= 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 2.5rem 0 3.5rem;
    }

    .hero-content h1 {
        font-size: 2.15rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .glass-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 380px;
        margin: 0 auto;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .why-us-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .stat-box {
        padding: 1.25rem 0.75rem;
    }

    .stat-box h3 {
        font-size: 1.85rem;
    }

    .logo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        max-width: 360px;
        margin: 0 auto;
        justify-items: center;
    }

    .logo-card {
        width: 100%;
        max-width: 165px;
        height: 135px;
        padding: 0.85rem;
    }

    .logo-card img {
        max-width: 95px;
        height: 65px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    .modal-content {
        padding: 1.5rem 1.25rem;
    }

    /* Modal Form Grids on Mobile */
    #patient-profile-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .btn-nav {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .carousel-content h2 {
        font-size: 1.6rem;
    }

    .why-us-stats {
        grid-template-columns: 1fr;
    }
}