/* ===================================
   Pioneer Health Centre - Stylesheet
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #0d8a8a;
    --teal-dark: #076868;
    --teal-light: #e6f5f5;
    --mint: #b8e8d0;
    --mint-light: #e8f8f0;
    --navy: #1a2332;
    --charcoal: #2d3748;
    --gray-700: #4a5568;
    --gray-500: #718096;
    --gray-300: #e2e8f0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --warm-bg: #fafbfc;
    --gold: #d4a853;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    line-height: 1.25;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--teal-dark);
}

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

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

.section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 138, 138, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

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

.btn-white {
    background: var(--white);
    color: var(--teal);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

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

.nav-links a {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
    background: var(--teal-light);
}

.nav-cta {
    background: var(--teal) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--teal-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    margin-top: 76px;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--mint-light) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(13,138,138,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--teal);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-700);
    margin-bottom: 32px;
    max-width: 480px;
}

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

.hero-buttons .btn-outline {
    color: var(--teal);
    border-color: var(--teal);
}

.hero-buttons .btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.hero-image-container {
    flex: 0 0 auto;
    width: 45%;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Trust Bar */
.trust-bar {
    background: var(--navy);
    padding: 22px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--mint);
    flex-shrink: 0;
}

/* About */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border: 5px solid var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-img-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-700);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    background: var(--teal-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--teal);
}

.about-badge img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.about-badge strong {
    display: block;
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.about-badge p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--gray-500);
}

/* Services Preview */
.services-preview {
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--teal);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* Gallery */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-large {
    grid-row: span 2;
}

/* ============================
   Team Page
   ============================ */
.practice-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.practice-intro-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.practice-intro-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.practice-intro-text p {
    color: var(--gray-700);
    margin-bottom: 14px;
    font-size: 0.98rem;
}

.team-section {
    background: var(--gray-100);
}

.doctor-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    margin-bottom: 32px;
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    align-items: start;
}

.doctor-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}

.doctor-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.doctor-title {
    color: var(--teal);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.doctor-quals {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-300);
    line-height: 1.6;
}

.doctor-info p {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.doctor-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: var(--teal-light);
    border-radius: var(--radius-sm);
}

.doctor-details strong {
    display: block;
    color: var(--navy);
    font-size: 0.88rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-details p {
    font-size: 0.9rem !important;
    color: var(--gray-700);
    margin-bottom: 0 !important;
}

@media (max-width: 992px) {
    .practice-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .doctor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .doctor-image {
        max-width: 220px;
        margin: 0 auto;
    }
    .doctor-details {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Bulk Billing Banner */
.bulk-billing {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 80px 0;
}

.billing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.billing-text {
    max-width: 560px;
}

.billing-text h2 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.billing-text p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.billing-image {
    flex-shrink: 0;
}

.medicare-logo {
    width: 200px;
    height: auto;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* After Hours */
.after-hours {
    background: var(--gray-100);
}

.after-hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.info-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.info-icon.emergency {
    background: #fef2f2;
    color: #dc2626;
}

.info-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.info-card a {
    color: var(--teal);
    font-weight: 600;
}

/* Accreditations */
.accreditations {
    padding: 60px 0;
    background: var(--teal-light);
}

.accreditations .section-header {
    margin-bottom: 36px;
}

.accreditations-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.accreditation-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(0);
    opacity: 0.85;
}

.accreditation-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .accreditations-logos {
        gap: 32px;
    }
    .accreditation-logo {
        height: 56px;
    }
}

/* Acknowledgement */
.acknowledgement {
    background: var(--warm-bg);
    padding: 40px 0;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

.acknowledgement p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.8;
    font-style: italic;
}

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

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer ul a {
    color: rgba(255,255,255,0.7);
}

.footer ul a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-partners {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-partners img {
    height: 36px;
    width: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-partners img:hover {
    opacity: 1;
}

/* ============================
   Services Page
   ============================ */
.page-hero {
    margin-top: 76px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--mint-light) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 550px;
    margin: 0 auto;
}

/* Services Full Grid */
.services-full {
    background: var(--white);
}

.service-category {
    margin-bottom: 60px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--teal-light);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: var(--white);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.category-header h3 {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--charcoal);
    transition: var(--transition);
}

.service-item:hover {
    background: var(--teal-light);
    transform: translateX(4px);
}

.service-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Allied Services */
.allied-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.allied-card {
    background: var(--teal-light);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.allied-card:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.allied-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.allied-card:hover h4 {
    color: var(--white);
}

/* ============================
   Contact Page
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--teal);
    font-weight: 500;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 400px;
}

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.hours-table td {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-300);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--charcoal);
    width: 120px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-image-container {
        width: 70%;
        max-width: 400px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .after-hours-grid {
        grid-template-columns: 1fr;
    }
    .billing-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 4px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-item-large {
        grid-row: span 1;
    }
    .trust-items {
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 60px 0;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    .section-header h2,
    .about-content h2 {
        font-size: 1.8rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === Mobile Compatibility Fixes === */
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }

.nav-toggle span { transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .billing-text { max-width: 100%; }
  .doctor-card { grid-template-columns: 200px 1fr; gap: 24px; padding: 28px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .nav-links { z-index: 999; }
  .nav-links a { padding: 12px 18px; font-size: 1rem; display: block; text-align: center; }
  .hero { min-height: auto; padding: 40px 16px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-image-container { width: 85%; max-width: 340px; }
  .trust-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px; }
  .trust-item { justify-content: center; font-size: 0.82rem; }
  .trust-item svg { width: 22px; height: 22px; }
  .footer-brand { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 50px 0; }
  .page-hero { padding: 60px 16px 40px; }
  .page-hero p { font-size: 1rem; }
  .about-img-accent { position: relative; bottom: auto; right: auto; width: 100%; margin-top: 16px; border: 3px solid var(--white); }
  .about-img-accent img { height: 180px; }
  .about-content h2 { font-size: 2rem; }
  .billing-text h2 { font-size: 1.8rem; }
  .bulk-billing { padding: 50px 0; }
  .section-header h2 { font-size: 2rem; }
  .container { padding: 0 16px; }
  .contact-card { padding: 20px; }
  .map-container, .map-container iframe { min-height: 300px; }
  .acknowledgement p { font-size: 0.82rem; padding: 0 8px; }
  .cta-section h2 { font-size: 1.6rem; }
  .cta-section p { font-size: 0.95rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero { padding: 30px 12px; margin-top: 64px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-badge { font-size: 0.7rem; padding: 5px 14px; }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-image-container { width: 90%; max-width: 300px; }
  .section-header h2, .about-content h2 { font-size: 1.6rem; }
  .gallery-grid { grid-auto-rows: 200px; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .trust-items { gap: 12px; padding: 0 8px; }
  .trust-item { font-size: 0.75rem; gap: 6px; }
  .trust-item svg { width: 18px; height: 18px; }
  .container { padding: 0 12px; }
  .section { padding: 40px 0; }
  .page-hero { padding: 50px 12px 30px; margin-top: 64px; }
  .page-hero h1 { font-size: 1.7rem; }
  .billing-text h2 { font-size: 1.5rem; }
  .service-card { padding: 24px 20px; }
  .info-card { padding: 24px 20px; }
  .about-badge { flex-direction: column; text-align: center; padding: 16px; }
  .footer-partners { flex-direction: column; gap: 12px; }
  .nav-logo img { height: 36px; }
  .nav-container { padding: 0 12px; height: 64px; }
  .nav-links { top: 64px; }
  .doctor-card { padding: 24px 16px; }
  .cta-section { padding: 40px 0; }
  .cta-section h2 { font-size: 1.4rem; }
  .after-hours-grid { gap: 16px; }
  .accreditations { padding: 40px 0; }
  .acknowledgement { padding: 28px 0; }
}

/* Service Cards Hover */
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }
.service-card-link:hover .service-card { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }

@media (max-width: 992px) {
  .container div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .container div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}
@media (max-width: 480px) {
  .container div[style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* ===== Mobile Doctor Cards Fix ===== */
@media (max-width: 768px) {
    .doctor-card {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 24px 16px;
    }
    .doctor-image {
        max-width: 180px;
        margin: 0 auto 16px auto;
    }
    .doctor-image img {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
    }
    .doctor-info {
        text-align: center;
    }
    .doctor-info h3 {
        font-size: 1.3rem;
    }
    .doctor-details {
        grid-template-columns: 1fr !important;
        text-align: left;
    }
    .doctor-info .btn {
        margin: 16px auto 0 auto;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .doctor-card {
        padding: 20px 12px;
    }
    .doctor-image {
        max-width: 150px;
    }
    .doctor-image img {
        width: 150px;
        height: 150px;
    }
    .doctor-info h3 {
        font-size: 1.15rem;
    }
    .doctor-info p {
        font-size: 0.9rem;
    }
}

/* ===== 4-Column Info Cards Fix ===== */
.after-hours-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}
.info-card {
    padding: 24px 16px !important;
}
.info-card h3 {
    font-size: 1.1rem !important;
}
.info-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}
.info-icon svg {
    width: 28px !important;
    height: 28px !important;
}
@media (max-width: 992px) {
    .after-hours-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .after-hours-grid {
        grid-template-columns: 1fr !important;
    }
}
