/* ==========================================================================
   Madison Dental Clean - Main Stylesheet
   Precision Rebuild (Native Semantic HTML5 & Modern CSS)
   ========================================================================== */

:root {
    --primary: #01BBD7;
    --primary-dark: #009cb3;
    --primary-light: #e6f8fa;
    --secondary: #777777;
    --text: #4a4a4a;
    --text-dark: #1e293b;
    --border-color: #e2e8f0;
    --gray-bg: #ECECEC;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1220px;
    --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Top Bar: Evenly distributed with contact info and social icons */
.header-top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 500;
    padding: 8px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    gap: 16px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: clamp(10px, 1.4vw, 24px);
    flex-wrap: wrap;
}

.top-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    font-size: 12.5px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.top-item:hover {
    color: var(--white);
    opacity: 0.85;
}

.top-item .icon {
    flex-shrink: 0;
    fill: currentColor;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-bar-social a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    color: var(--white);
}

.top-bar-social a svg {
    fill: currentColor;
}

/* Main Bar */
.header-main-bar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.header-brand {
    flex-shrink: 0;
}

.header-brand .logo-link {
    display: flex;
    align-items: center;
}

.header-brand img {
    height: 46px;
    width: auto;
    max-width: 220px;
    display: block;
}

/* Primary Navigation (Desktop) */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 16px;
    min-width: 0;
}

.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: clamp(6px, 0.8vw, 15px);
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu > li {
    position: relative;
    flex-shrink: 0;
}

.main-navigation .nav-menu > li > a {
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    padding: 10px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-navigation .nav-menu > li:hover > a,
.main-navigation .nav-menu > li.current-menu-item > a {
    color: var(--primary);
}

/* Desktop Subtle Chevron on parent items (No ugly gray button!) */
@media (min-width: 1201px) {
    .dropdown-toggle-arrow {
        display: none !important;
    }

    .main-navigation .nav-menu > .menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        border-right: 2px solid var(--text-dark);
        border-bottom: 2px solid var(--text-dark);
        transform: rotate(45deg);
        margin-top: -3px;
        margin-left: 2px;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .main-navigation .nav-menu > .menu-item-has-children:hover > a::after {
        transform: rotate(-135deg);
        border-color: var(--primary);
        margin-top: 1px;
    }
}

/* Dropdown Sub-menus (Desktop) */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.main-navigation .nav-menu > li:hover > .sub-menu,
.main-navigation .nav-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    position: relative;
    width: 100%;
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.main-navigation .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}

/* 2nd-level sub-menus */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
}

.main-navigation .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CTA and Mobile Toggle */
.header-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white) !important;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(1, 187, 215, 0.25);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-appointment:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 187, 215, 0.35);
}

/* Hamburger Button (Pixel-perfect 3 lines with clean transform to 'X') */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1006;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin: 0 auto;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Transform to perfect symmetrical 'X' when active */
/* Hide floating hamburger toggle when drawer is open so there is only ONE close button ('X') */
body.menu-open .menu-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
}

/* Backdrop for Mobile Drawer */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
}

.nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-header,
.mobile-drawer-cta-top {
    display: none;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    background-color: var(--primary);
    color: var(--white);
    margin-top: 60px;
}

.footer-main {
    padding: 60px 0 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.footer-col-brand .footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-col-brand .footer-logo-img {
    max-width: 180px !important;
    height: auto !important;
    display: block;
}

.footer-col-brand .footer-desc {
    margin: 0 0 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-social a svg {
    fill: currentColor;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.footer-contact-list,
.footer-links-list,
.footer-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.footer-contact-list li a {
    color: var(--white);
}

.footer-contact-list li a:hover {
    text-decoration: underline;
}

.footer-contact-list .icon {
    flex-shrink: 0;
    margin-top: 3px;
    fill: currentColor;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Business Hours: Clean vertical stack so day and time never collide or overflow */
.footer-hours-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-hours-list li:last-child {
    border-bottom: none;
}

.footer-hours-list .day {
    font-weight: 600;
    color: #ffffff;
    font-size: 13.5px;
}

.footer-hours-list .time {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.footer-bottom {
    background-color: var(--primary-dark);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(1, 187, 215, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 187, 215, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: #cbd5e1;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* 1. Hero Section */
.section-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0fafd 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(1, 187, 215, 0.12);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--secondary);
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-media img {
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 2. Intro Section */
.section-intro {
    padding: 70px 0 40px;
}

/* 3. Services Section - Modern Interactive 2-Column Showcase */
.section-services {
    padding: 70px 0 80px;
    background-color: #f8fafc;
}

.services-interactive-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

/* LEFT COLUMN: DYNAMIC SHOWCASE CARD */
.services-visual-column {
    flex: 0 0 46%;
    max-width: 46%;
}

.services-sticky-showcase {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.services-media-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(26, 54, 93, 0.08);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.services-media-card:hover {
    box-shadow: 0 22px 48px rgba(26, 54, 93, 0.12);
}

.services-media-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.service-media-badge {
    background: #e6f9fc;
    color: #01bbd7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}

.service-media-tag {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
}

.services-image-container {
    position: relative;
    width: 100%;
    height: 340px;
    background-color: #edf2f7;
    overflow: hidden;
}

.services-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.services-image-container img.is-fading {
    opacity: 0.2;
    transform: scale(0.97);
}

.services-showcase-details {
    padding: 22px 24px 24px;
}

.showcase-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #1a365d;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.showcase-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 20px;
    min-height: 45px;
}

.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.showcase-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #01bbd7;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(1, 187, 215, 0.25);
}

.showcase-primary-btn:hover {
    background-color: #009cb3;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 187, 215, 0.35);
    color: #ffffff !important;
}

.showcase-primary-btn svg {
    transition: transform 0.2s ease;
}

.showcase-primary-btn:hover svg {
    transform: translateX(3px);
}

.showcase-book-btn {
    display: inline-flex;
    align-items: center;
    border: 2px solid #1a365d;
    color: #1a365d !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
}

.showcase-book-btn:hover {
    background-color: #1a365d;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.showcase-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.perk-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #718096;
}

.perk-item svg {
    color: #01bbd7;
}

/* RIGHT COLUMN: INTERACTIVE SERVICE BUTTONS */
.services-tabs-column {
    flex: 0 0 54%;
    max-width: 54%;
}

.services-tabs-header-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.notice-badge {
    background: #1a365d;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.notice-text {
    font-size: 13.5px;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

.services-tab-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Service Tab Card */
.service-tab-card {
    background: #ffffff;
    border: 1.5px solid #e8eff5;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.service-tab-card:hover {
    border-color: #b8e6ee;
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.service-tab-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-tab-icon-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-tab-icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-tab-heading {
    flex: 1;
}

.service-tab-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 2px;
    transition: color 0.2s ease;
    letter-spacing: -0.2px;
}

.service-tab-tag {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.service-tab-chevron {
    color: #a0aec0;
    transition: transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
}

.service-tab-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
    margin-top: 0;
    padding-left: 56px;
}

.service-tab-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4a5568;
    margin: 0 0 10px;
}

.service-tab-action {
    display: flex;
    align-items: center;
}

.service-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #01bbd7;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.service-tab-link:hover {
    color: #008fa3;
    gap: 9px;
    text-decoration: underline;
}

/* ACTIVE STATE ON RIGHT TAB */
.service-tab-card.is-active {
    border-color: #01bbd7;
    border-left: 5px solid #01bbd7;
    background: #f4fbfd;
    box-shadow: 0 6px 20px rgba(1, 187, 215, 0.12);
    transform: translateX(3px);
}

.service-tab-card.is-active .service-tab-title {
    color: #01bbd7;
}

.service-tab-card.is-active .service-tab-icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(1, 187, 215, 0.3);
}

.service-tab-card.is-active .service-tab-chevron {
    transform: rotate(90deg);
    color: #01bbd7;
}

.service-tab-card.is-active .service-tab-body {
    max-height: 250px;
    opacity: 1;
    margin-top: 12px;
}

/* RESPONSIVE LAYOUT FOR SERVICES */
@media (max-width: 991px) {
    .services-interactive-layout {
        flex-direction: column;
        gap: 28px;
    }

    .services-visual-column,
    .services-tabs-column {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .services-sticky-showcase {
        position: relative;
        top: 0;
    }

    .services-image-container {
        height: 250px;
    }

    .services-showcase-details {
        padding: 18px;
    }

    .showcase-title {
        font-size: 19px;
    }

    .showcase-description {
        min-height: auto;
        margin-bottom: 14px;
    }

    .service-tab-body {
        padding-left: 0;
    }

    .showcase-actions {
        flex-direction: column;
    }

    .showcase-primary-btn,
    .showcase-book-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* 4. About Section */
.section-about {
    padding: 80px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-media img {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.75;
    color: var(--text);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.highlight-item strong {
    display: block;
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.highlight-item span {
    font-size: 12.5px;
    color: var(--secondary);
}

/* 5. Doctors Section */
.section-doctors {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.doctors-container-flex {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

/* 6. Testimonials Section */
.section-testimonials {
    padding: 70px 0;
}

/* 7. Blog Grid Section */
.section-blog {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-media {
    display: block;
    overflow: hidden;
    height: 200px;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--text-dark);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 13.5px;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.blog-card-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
}

.view-all-container {
    margin-top: 20px;
}

/* 8. Contact Section */
.section-contact {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    margin-top: 24px;
    border-left: 4px solid var(--primary);
}

.contact-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-card p {
    margin-bottom: 8px;
    font-size: 14.5px;
}

.contact-form-col {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* Contact Form 7 Native Styling */
.wpcf7-form p {
    margin-bottom: 16px;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 187, 215, 0.15);
}

.wpcf7-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Inner Page & Post Headers */
.page-header-banner,
.post-header-banner {
    background: linear-gradient(135deg, #01BBD7 0%, #0099b0 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header-banner .page-title,
.post-header-banner .post-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.post-meta-date {
    display: inline-block;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.site-content-area,
.single-post-container {
    padding: 60px 20px;
    max-width: 900px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--text-dark);
    margin: 35px 0 16px;
}

.post-featured-media {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
}

/* Responsive adjustments */

/* ==========================================================================
   RESPONSIVE STYLES & MOBILE NAVIGATION BREAKPOINTS
   ========================================================================== */

/* Tablet & Mobile Navigation Breakpoint (<= 1200px) */
@media (max-width: 1200px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1004;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        margin-bottom: 12px;
        border-bottom: 2px solid var(--border-color);
    }

    .mobile-drawer-header .drawer-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-dark);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-drawer-header .drawer-close {
        background: transparent;
        border: none;
        font-size: 26px;
        line-height: 1;
        color: var(--text-dark);
        cursor: pointer;
        padding: 4px 8px;
    }

    /* CTA at the top of drawer */
    .mobile-drawer-cta-top {
        display: block;
        margin-bottom: 16px;
    }

    .mobile-drawer-cta-top .btn-block {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 13.5px;
        border-radius: 6px;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        flex: 1;
    }

    .main-navigation .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .main-navigation .nav-menu > li > a {
        font-size: 14.5px;
        padding: 13px 0;
        flex: 1;
    }

    /* Sub-menu on mobile */
    .main-navigation .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 4px 0 10px 14px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f8fafc;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .main-navigation li.is-dropdown-open > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .main-navigation .sub-menu li a {
        padding: 9px 10px;
        font-size: 13.5px;
        flex: 1;
        white-space: normal;
    }

    /* Dropdown arrow toggle button (clean, transparent, no ugly gray box) */
    .dropdown-toggle-arrow {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: var(--primary) !important;
        cursor: pointer;
        transition: transform 0.25s ease;
        flex-shrink: 0;
        padding: 0;
    }

    .dropdown-toggle-arrow svg {
        fill: var(--primary);
    }

    .is-dropdown-open > .dropdown-toggle-arrow {
        transform: rotate(180deg);
    }
}

/* Tablet Layout (<= 992px) */
@media (max-width: 992px) {
    .hero-container,
    .about-container,
    .contact-container,
    .doctors-container-flex {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .hero-title {
        font-size: 34px;
    }

    .section-intro {
        padding: 50px 0 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 35px !important;
    }
}

/* Phone Layout (<= 768px) - Centered Footer with Smaller Logo */
@media (max-width: 768px) {
    .header-top-bar {
        font-size: 11.5px;
        padding: 6px 0;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        padding: 0 16px;
    }

    .top-bar-contact {
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .top-address {
        display: none;
    }

    .top-bar-social {
        justify-content: center;
        width: 100%;
    }

    .header-cta-group .btn-appointment {
        display: none;
    }

    .header-main-bar {
        padding: 8px 0;
    }

    .header-brand img {
        height: 38px;
    }

    /* Mobile Footer: Centered layout with smaller logo */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-col-brand .footer-logo {
        display: block;
        margin: 0 auto 12px auto;
    }

    .footer-col-brand .footer-logo-img {
        max-width: 130px !important; /* Logo más pequeño en mobile */
        height: auto !important;
        margin: 0 auto;
    }

    .footer-col-brand .footer-desc {
        text-align: center;
        margin: 0 auto 18px auto;
        max-width: 360px;
    }

    .footer-social {
        justify-content: center;
        margin: 0 auto;
    }

    .footer-heading {
        text-align: center;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-contact-list li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
        margin-bottom: 14px;
    }

    .footer-contact-list .icon {
        margin: 0 auto 4px auto;
    }

    .footer-links-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links-list li {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-links-list a:hover {
        padding-left: 0;
        opacity: 0.85;
    }

    .footer-hours-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-hours-list li {
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 8px 0;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .footer-legal {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
}

/* Small Phone Layout (<= 650px) */
@media (max-width: 650px) {
    .hero-title {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-col {
        padding: 24px;
    }
}
