/* ==========================================================================
   Paramount Healthcare — Main Stylesheet   
   ========================================================================== */

:root {
    --primary-gray: #4A4A4A;
    --logo-gold: #B38F43;
    --gold-hover: #967533;
    --text-dark: #2D3238;
    --text-light: #718096;
    --bg-light: #F9F8F6;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { color: var(--text-dark); background-color: var(--white); line-height: 1.6; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 12px 28px; background-color: var(--logo-gold); color: var(--white); border: 2px solid var(--logo-gold); border-radius: 4px; text-decoration: none; font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: var(--transition); }
.btn:hover { background-color: transparent; color: var(--logo-gold); }
.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.btn-center { text-align: center; }

/* ===== Section Headings ===== */
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary-gray); margin-bottom: 10px; font-weight: 700; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 50px auto; font-size: 1rem; }

/* ===== Top Bar ===== */
.top-bar { background-color: var(--primary-gray); color: var(--white); font-size: 0.85rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.top-bar-info span { margin-right: 20px; }
.top-bar-info i { color: var(--logo-gold); margin-right: 6px; }

/* ===== Header & Navigation ===== */
header { background-color: var(--white); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.logo-area { display: flex; align-items: center; text-decoration: none; gap: 12px; }
.logo-img { height: 72px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.3rem; font-weight: 700; color: var(--primary-gray); letter-spacing: 0.5px; line-height: 1.2; }
.logo-subtitle { font-size: 0.75rem; color: var(--logo-gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* WordPress menu (ul.nav-links generated by wp_nav_menu) */
.nav-links { display: flex; list-style: none; gap: 15px; align-items: center; }
.nav-links > li { position: relative; padding: 15px 0; }
.nav-links a { text-decoration: none; color: var(--primary-gray); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 4px; transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.nav-links a:hover, .nav-links li:hover > a { color: var(--logo-gold); background-color: rgba(179, 143, 67, 0.05); }

/* Dropdown arrow indicators for items with children */
.nav-links > li.menu-item-has-children > a::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; margin-left: 4px; }
.nav-links .sub-menu li.menu-item-has-children > a::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.6rem; margin-left: auto; }

/* Level 1 dropdown (WordPress .sub-menu) */
.nav-links .sub-menu { position: absolute; top: 100%; left: 0; background-color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: 3px solid var(--logo-gold); list-style: none; min-width: 260px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s ease; border-radius: 0 0 4px 4px; z-index: 1001; }
.nav-links .sub-menu li { position: relative; }
.nav-links .sub-menu a { padding: 12px 20px; display: flex; border-radius: 0; font-size: 0.9rem; border-bottom: 1px solid #F0F0F0; }
.nav-links .sub-menu a:hover { background-color: var(--bg-light); padding-left: 25px; }
.nav-links > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Level 2 dropdown (sub-sub menu, opens to the right) */
.nav-links .sub-menu .sub-menu { position: absolute; left: 100%; top: 0; min-width: 250px; display: none; opacity: 1; visibility: visible; transform: none; background-color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: none; border-left: 3px solid var(--logo-gold); }
.nav-links .sub-menu li:hover > .sub-menu { display: block; }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary-gray); cursor: pointer; }

/* ===== Hero Section ===== */
.hero { background: linear-gradient(rgba(45, 50, 56, 0.85), rgba(74, 74, 74, 0.9)) no-repeat center center/cover; background-color: var(--primary-gray); color: var(--white); padding: 120px 0 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: var(--logo-gold); }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 40px auto; font-weight: 300; color: #E2E8F0; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ===== About / Doctor Profiles Section ===== */
.about-section { padding: 80px 0; background-color: var(--white); }
.about-section.bg-light { background-color: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 20px; }
.doctor-profile-card { background: var(--bg-light); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: flex; flex-direction: column; align-items: center; padding: 40px 30px; text-align: center; border-bottom: 4px solid var(--primary-gray); transition: var(--transition); }
.about-section.bg-light .doctor-profile-card { background: var(--white); }
.doctor-profile-card:hover { transform: translateY(-5px); border-bottom-color: var(--logo-gold); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.doctor-img-frame { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 25px; border: 5px solid var(--white); box-shadow: 0 8px 20px rgba(0,0,0,0.08); background-color: #E2E8F0; }
.doctor-profile-card h3 { font-size: 1.6rem; color: var(--primary-gray); margin-bottom: 6px; }
.doctor-designation-label { color: var(--logo-gold); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.doctor-description-text { font-size: 0.95rem; color: var(--text-light); max-width: 450px; margin-bottom: 20px; }

/* ===== Treatments Slider Section (Swiper) ===== */
.treatments-section { padding: 80px 0; background-color: var(--bg-light); overflow: hidden; }
.carousel-outer-container { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 50px; }

.treatment-slide-card { background-color: var(--white); border-radius: 8px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border-top: 3px solid var(--logo-gold); display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; height: 100%; }
.treatment-slide-card.ortho-card { border-top-color: var(--primary-gray); }
.slide-icon-box { font-size: 2rem; color: var(--logo-gold); margin-bottom: 15px; }
.treatment-slide-card.ortho-card .slide-icon-box { color: var(--primary-gray); }
.treatment-slide-card h4 { font-size: 1.25rem; color: var(--primary-gray); margin-bottom: 10px; }
.treatment-slide-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }

/* Equal-height slides */
.swiper-slide { height: auto; }
.swiper-slide > div { height: 100%; }

/* ===== Carousel Navigation Buttons (shared) ===== */
.carousel-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background-color: var(--white); border: 1px solid #E2E8F0; color: var(--primary-gray); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: var(--transition); z-index: 10; }
.carousel-nav-btn:hover { background-color: var(--logo-gold); color: var(--white); border-color: var(--logo-gold); }
.carousel-nav-btn.prev-btn { left: 0; }
.carousel-nav-btn.next-btn { right: 0; }
.carousel-nav-btn.swiper-button-disabled { opacity: 0.4; cursor: default; }

/* ===== Video Testimonials Section (Swiper) ===== */
.testimonials-section { padding: 80px 0; background-color: var(--white); }
.shorts-player-card { background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); position: relative; aspect-ratio: 9 / 16; }
.shorts-player-card video { width: 100%; height: 100%; object-fit: cover; display: block; background-color: #000; }

/* ===== Footer ===== */
footer { background-color: var(--primary-gray); color: #CBD5E0; padding: 60px 0 0 0; font-size: 0.9rem; border-top: 4px solid var(--logo-gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 25px; position: relative; font-weight: 600; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 2px; background-color: var(--logo-gold); }
.footer-about-text { margin-top: 15px; font-size: 0.9rem; color: #A0AEC0; }
.footer-links { list-style: none; margin-top: 15px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #CBD5E0; text-decoration: none; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--logo-gold); transform: translateX(5px); }
.footer-contact-item { display: flex; gap: 15px; margin-bottom: 15px; }
.footer-contact-item:first-of-type { margin-top: 15px; }
.footer-contact-item i { color: var(--logo-gold); margin-top: 4px; font-size: 1.1rem; width: 20px; text-align: center; }
.map-wrapper { width: 100%; height: 180px; border-radius: 6px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.1); margin-top: 15px; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; }
.copyright-strip { background-color: #2D3238; padding: 20px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.85rem; color: #A0AEC0; }

/* ===== Empty Page Notice (shown when no sections are added) ===== */
.empty-page-notice { padding: 100px 0; text-align: center; color: var(--text-light); }

/* ===== WordPress Admin Bar Fix (sticky header offset) ===== */
body.admin-bar header { top: 32px; }

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

@media (max-width: 782px) {
    body.admin-bar header { top: 46px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .menu-toggle { display: block; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; }
    .carousel-outer-container { padding: 0 35px; }
    .hero h1 { font-size: 2.2rem; }

    /* Mobile navigation */
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); flex-direction: column; padding: 0; gap: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.05); max-height: 0; overflow: hidden; transition: max-height 0.35s ease-in-out; }
    .nav-links.active { max-height: 80vh; overflow-y: auto; }
    .nav-links > li { width: 100%; padding: 0; }
    .nav-links a { padding: 15px 20px; width: 100%; border-bottom: 1px solid #F0F0F0; justify-content: space-between; }

    /* Mobile dropdowns (accordion style) */
    .nav-links .sub-menu { position: static; box-shadow: none; background-color: var(--bg-light); max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transform: none; border-top: none; transition: max-height 0.3s ease; min-width: 100%; }
    .nav-links .sub-menu .sub-menu { position: static; box-shadow: none; background-color: #EDF2F7; padding-left: 15px; border-left: none; display: block; max-height: 0; }
    .nav-links li.open-submenu > .sub-menu { max-height: 1500px; }
}
