:root {
    --primary: #87AD6D;
    --primary-light: #9CBC87;
    --primary-dark: #085168;
    --secondary: #C8D9BB;
    --accent: #E3EBD4;
    
    --text-dark: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-light: #111827;
    
    --bg-main: #020C10;
    --bg-light: #061820;
    --bg-dark: #010609;
    
    --border-radius: 12px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    
    --glass-bg: rgba(6, 24, 32, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    color: var(--accent);
}

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

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

.section {
    padding: 100px 0;
}

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

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

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light) !important;
    box-shadow: 0 4px 14px rgba(135, 173, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(135, 173, 109, 0.5);
}

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

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

.full-width {
    width: 100%;
}

.grid {
    display: grid;
    gap: 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(2, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-main-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.patient-ed {
    color: var(--primary-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link.btn-primary {
    color: var(--text-light) !important;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, var(--bg-main) 50%, var(--bg-light) 50%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-glass {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    background: var(--glass-bg);
    opacity: 0.5;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 32px;
    box-shadow: var(--shadow-lg);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-light);
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-main);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

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

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Treatments / Surgeries */
.treatment-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .treatment-grid {
        grid-template-columns: 1fr;
    }
}

.treatment-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.treatment-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-dark);
}

.treatment-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.treatment-image h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.treatment-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.treatment-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-start;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--primary);
}

.treatment-actions {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.mission-points {
    margin-top: 32px;
}

.mission-points p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.mission-points i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
}

.img-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact-section {
    background: linear-gradient(135deg, var(--bg-main), var(--primary-dark));
    color: var(--text-dark);
}

.contact-container {
    display: flex;
    gap: 40px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    flex: 1;
}

.contact-info h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 40px;
    color: var(--text-muted);
}

.info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-block i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 4px;
}

.info-block h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.info-block p {
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--glass-border);
}

.contact-form-wrapper h3 {
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--accent);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-main);
    color: var(--text-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 173, 109, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
}

.text-white {
    color: var(--accent) !important;
}

.footer-links h4 {
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-legal {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container, .contact-container {
        flex-direction: column;
    }

    .hero {
        background: var(--bg-main);
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        display: contents;
    }
    
    .hero-title {
        order: 1;
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        order: 2;
    }
    
    .hero-visual {
        order: 3;
        width: 100%;
        height: 400px;
        margin-bottom: 20px;
    }
    
    .hero-actions {
        order: 4;
        width: 100%;
    }
    
    .about-image {
        width: 100%;
    }
    
    .contact-info, .contact-form-wrapper {
        width: 100%;
    }
    
    .hero-glass {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.5);
        transform-origin: bottom center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-main-menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        min-height: 100dvh;
        height: 100dvh;
        padding-top: 80px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        height: 100%;
        gap: 10px;
    }

    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .hero-visual {
        flex: 1;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 15px;
    }
    
    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .hero-actions .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 140px;
        text-align: center;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .treatment-actions {
        flex-direction: column;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* Patient Education Accordion */
.accordion-container {
    text-align: left;
    margin-bottom: 40px;
}
.category-heading {
    margin: 40px 0 20px;
    font-size: 1.8rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 10px;
}
.accordion-group {
    background: var(--bg-hover);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--accent-light);
}
.accordion-item {
    border-bottom: 1px solid var(--accent-light);
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.accordion-header:hover {
    background: rgba(0, 115, 172, 0.05); /* very light primary */
}
.accordion-header[aria-expanded="true"] {
    color: var(--primary);
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-main);
}
.accordion-inner {
    padding: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}
.accordion-inner p {
    margin-bottom: 15px;
}
.accordion-inner img.legacy-img {
    display: block;
    margin: 20px auto;
}

.medical-list {
    margin-left: 20px;
    padding-left: 15px;
    list-style-type: disc;
    margin-bottom: 20px;
}
.medical-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Clinic Info Map Link Animation */
.clinic-info-link {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius, 12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinic-info-link:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(135, 173, 109, 0.3);
}

.clinic-info-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.clinic-info-link:hover .clinic-info-img {
    transform: scale(1.05);
}

/* Social Media Cards */
.social-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 40px;
}

.social-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
    color: white;
}

.social-card.linkedin .social-icon { background-color: #0077b5; }
.social-card.facebook .social-icon { background-color: #1877f2; }
.social-card.instagram .social-icon { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-card.twitter .social-icon { background-color: #1DA1F2; }
.social-card.youtube .social-icon { background-color: #ff0000; }
.social-card.clinic-platform .social-icon { background-color: var(--primary-dark); }

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.social-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Compact Social Page Layout for Mobile */
@media (max-width: 768px) {
    .compact-social-page .social-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .compact-social-page .social-card {
        padding: 12px 15px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "icon title"
            "icon desc";
        column-gap: 15px;
        row-gap: 2px;
        text-align: left;
        align-items: center;
    }
    
    .compact-social-page .social-icon {
        grid-area: icon;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .compact-social-page .social-card h3 {
        grid-area: title;
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
        align-self: end;
    }
    
    .compact-social-page .social-card p {
        grid-area: desc;
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.3;
        align-self: start;
    }
}
