/* Root Variables */
:root {
    --bg-cream: #fdfaf7;
    --gold: #c5a059;
    --gold-dark: #b08d48;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --white: #ffffff;
    --footer-bg: #111111;
    --nav-height: 80px;
    --top-bar-height: 40px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Section Padding */
.section-padding {
    padding: 100px 0;
}

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

.center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Top Bar */
.top-bar {
    height: var(--top-bar-height);
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    position: relative;
    z-index: 1001;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left span {
    margin-right: 25px;
}

.top-bar-left i {
    color: var(--gold);
    margin-right: 8px;
}

.top-bar-right a {
    color: #fff;
    margin-left: 15px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--gold);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background: #ffffff; /* Solid white to prevent blending with off-white backgrounds */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #f0f0f0;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: 2px solid var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: #fff !important;
    padding: 12px 25px !important;
    border-radius: 4px;
    margin-left: 15px;
}

.nav-cta:hover {
    background: var(--gold-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

/* Dropdown Arrow */
.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Footer Improvements */
.footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-logo {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.footer-subtitle {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-social i {
    font-size: 1.2rem;
}

.footer-contact li i {
    color: var(--gold);
    margin-right: 15px;
    width: 20px;
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.designed-by a {
    color: var(--gold);
    text-decoration: none;
}

@media (max-width: 768px) {
    .d-none-mobile { display: none; }
    .top-bar-container { justify-content: center; }
    .top-bar-right { display: none; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 10px; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img {
    height: 60px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

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

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

/* Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 250px;
    list-style: none;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 2px solid var(--gold);
    border-radius: 4px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-cream);
    color: var(--gold);
    padding-left: 30px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

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

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

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-controls button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* Typography & Buttons */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.premium-para {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border: 1.5px solid var(--gold);
}

.btn-gold:hover {
    background-color: #b48e47;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 162, 77, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--gold);
    color: var(--gold);
    margin-left: 15px;
}

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

.section-padding {
    padding: 120px 0;
}

.alt-bg {
    background-color: #fcf9f6;
}

.center {
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.white-text {
    color: white;
}

.btn-text {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
}

/* Grid Layouts */
.intro-flex, .doctor-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-text, .doctor-info {
    flex: 1;
}

.intro-image, .doctor-image {
    flex: 1;
}

.intro-image img, .doctor-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.condition-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.condition-card {
    background: var(--white);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid rgba(201, 162, 77, 0.3);
    color: var(--gold);
    font-weight: 500;
    transition: var(--transition);
}

.condition-card:hover {
    background: var(--gold);
    color: var(--white);
}

.cta-banner {
    background: var(--gold);
    color: var(--white);
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner .btn-gold {
    background: var(--white);
    color: var(--gold);
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Optional: make logo white if background is dark */
}

.footer-logo {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-subtitle {
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

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

.footer-contact li {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--gold);
    padding: 5px 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--white);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.designed-by {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive Header */
@media (max-width: 992px) {
    .brand-name { font-size: 1rem; }
    .brand-subtitle { font-size: 0.6rem; letter-spacing: 1px; }
    .nav-logo-img { height: 45px; }
    .nav-menu { gap: 15px; }
}

@media (max-width: 768px) {
    .nav-container { justify-content: space-between; }
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; z-index: 1002; }
    .nav-toggle span { width: 25px; height: 2px; background: var(--text-dark); transition: var(--transition); }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.5s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
        gap: 20px;
    }

    .nav-menu.active { right: 0; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-item.dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 20px;
        border: none;
    }
    
    .nav-item.dropdown.active .dropdown-menu { display: block; }
    .nav-link { font-size: 1.1rem; }
    .nav-cta { margin-left: 0; margin-top: 20px; text-align: center; }
}