/* ============================================================
   PARIHAR PHYSIOTHERAPY â€” Redesigned Premium Medical Theme
   ============================================================ */

/* â”€â”€ Typography & Variables â”€â”€ */
:root {
    --primary: #16A34A;
    --primary-hover: #15803D;
    --primary-light: #F0FDF4;
    --primary-rgb: 22, 163, 74;
    --secondary: #052e16;
    --secondary-light: #14532d;
    --teal: #0D9488;
    --teal-light: #F0FDF4;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-soft: #F1F5F9;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    --radius-card: 20px;
    --radius-btn: 12px;
    --radius-input: 12px;
    --radius-pill: 999px;
    
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.04);
    --shadow-md: 0 12px 30px -10px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 22px 48px -15px rgba(10, 37, 64, 0.12);
    --shadow-glow: 0 8px 24px rgba(22, 163, 74, 0.15);
    
    --font: 'Outfit', system-ui, sans-serif;
    --nav-h: 140px;
    --topbar-h: 40px;
}

/* â”€â”€ Base Reset â”€â”€ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
    object-fit: contain;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    padding: 90px 0;
    position: relative;
}

/* â”€â”€ Splash Screen â”€â”€ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 210px;
    height: auto;
    margin: 0 auto 24px;
    animation: pulse-slow 2s infinite ease-in-out;
}

.splash-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.splash-subtitle {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.splash-loader {
    width: 160px;
    height: 4px;
    background: var(--bg-soft);
    border-radius: var(--radius-pill);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.splash-bar {
    width: 40%;
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-pill);
    position: absolute;
    animation: loader-anim 1.5s infinite ease-in-out;
}

@keyframes loader-anim {
    0% { left: -40%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* â”€â”€ Top Bar â”€â”€ */
.top-bar {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.top-bar-right a:hover {
    color: var(--primary-light);
}

/* â”€â”€ Sticky Navbar â”€â”€ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.navbar.scrolled {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    height: 105px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 145px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 105px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
    border-radius: var(--radius-pill);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.9rem;
    padding: 10px 22px;
}

/* â”€â”€ Hamburger Menu â”€â”€ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1010;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--secondary);
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* â”€â”€ Typography & Headings â”€â”€ */
.section-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-title,
.about-main-title,
.services-title,
.services-title-page,
.gallery-title,
.testimonials-title,
.video-title,
.clinic-highlights-title,
.appointment-info-title,
.form-title {
    font-size: clamp(1.85rem, 3.8vw, 2.6rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-pill);
    margin: 18px 0 22px;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 56px;
}

.section-header .section-divider {
    margin: 18px auto 22px;
}

.section-subtitle,
.about-subtitle,
.services-subtitle,
.services-subtitle-page,
.gallery-subtitle,
.testimonials-subtitle,
.video-subtitle,
.clinic-highlights-subtitle,
.appointment-info-text,
.form-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* â”€â”€ Buttons â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Ripple effect container */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* â”€â”€ Homepage Hero Section â”€â”€ */
.hero-vital {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    padding: 80px 0 120px;
    overflow: hidden;
}

.hero-vital-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 60px;
}

.hero-vital-text {
    z-index: 2;
}

.hero-tag-vital {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero-tag-vital svg {
    width: 16px;
    height: 16px;
}

.hero-title-vital {
    font-size: clamp(2.5rem, 5.2vw, 3.8rem);
    font-weight: 900;
    color: var(--secondary);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-title-vital span.text-teal {
    color: var(--primary);
}

.hero-subtitle-vital {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta-vital {
    margin-top: 32px;
}

.hero-vital-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

/* --- Entrance Animations on Page Load (For All Devices) --- */
.hero-tag-vital {
    animation: heroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-vital {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.hero-subtitle-vital {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.hero-vital-text .btn,
.hero-actions-vital {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards;
}

@keyframes heroFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroScaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    transform: scale(1.2);
}

.hero-dot-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.15;
    z-index: 1;
}

.hero-vital-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    background: #FFFFFF;
    transition: transform 0.5s ease;
}

.hero-vital-image:hover {
    transform: translateY(-5px);
}

.hero-desktop-image {
    display: block;
}

.hero-mobile-image {
    display: none;
}

/* Floating badge */
.hero-float-card {
    position: absolute;
    bottom: 24px;
    left: -24px;
    background: #FFFFFF;
    padding: 16px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    animation: float-badge 3s infinite ease-in-out;
    border: 1px solid var(--border);
}

.hero-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-float-icon svg {
    width: 22px;
    height: 22px;
}

.hero-float-card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-float-card p {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* â”€â”€ Hero Statistics Strip â”€â”€ */
.hero-stats-bar {
    background: #FFFFFF;
    padding: 24px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.hero-mini-stats {
    display: flex;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 30px 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stat-icon svg {
    width: 26px;
    height: 26px;
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.hero-stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* â”€â”€ Quick Information Bar â”€â”€ */
.hero-info-bar {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.info-bar-content {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.info-item-link {
    cursor: pointer;
}

.info-item-link:hover .info-value {
    color: var(--primary);
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.info-icon-blue { color: var(--primary); }
.info-icon-green { color: var(--teal); }
.info-icon-orange { color: #EAB308; }

.info-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
}

.info-value-link {
    display: block;
    color: var(--secondary);
}

.info-value-link:hover {
    color: var(--primary);
}

/* â”€â”€ Welcome / About Us Section â”€â”€ */
.welcome-section {
    background: #FFFFFF;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: flex-start;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-paragraph {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.7;
}

.trust-badge {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 16px 16px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-badge svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-badge p {
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.5;
}

.about-feature-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-top: 10px;
    background: #FFFFFF;
    transition: transform 0.3s ease;
}

.about-feature-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── Highlights Grid (4 cards) ── */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 22px;
    height: 22px;
}

.highlight-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.01em;
}

.highlight-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* â”€â”€ Founder Showcase Section â”€â”€ */
.legacy-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.legacy-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.legacy-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.legacy-image:hover img {
    transform: scale(1.02);
}

.legacy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0) 100%);
    display: flex;
    align-items: flex-end;
}

.legacy-tag {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* â”€â”€ Services Section â”€â”€ */
.services-modern,
.services-modern-page {
    background: #FFFFFF;
}

.services-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 10px;
}

.service-photo-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.service-photo-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.service-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.service-photo-card:hover .service-image-wrapper img {
    transform: scale(1.02);
}

.service-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.service-arrow:hover {
    color: var(--primary-hover);
}

.service-arrow::after {
    content: '\2192';
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.service-photo-card:hover .service-arrow::after {
    transform: translateX(4px);
}

/* Claim Badges */
.claim-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.claim-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-light);
    border: 1px solid rgba(13, 148, 136, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
}

.claim-badge-light {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(22, 163, 74, 0.1);
    align-self: flex-start;
    margin-bottom: 12px;
}

/* â”€â”€ Why Choose Us Trust Section â”€â”€ */
.clinic-highlights {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.clinic-highlights-grid {
    margin-top: 48px;
}

.clinic-highlights-grid .service-photo-card {
    background: #FFFFFF;
}

.clinic-highlights-grid .service-image-wrapper {
    aspect-ratio: 16/10;
}

/* â”€â”€ Video Showcase Section â”€â”€ */
.video-showcase {
    background: #FFFFFF;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.video-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    padding: 24px;
}

.video-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* â”€â”€ Testimonials Section â”€â”€ */
.testimonials {
    background: #FFFFFF;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: #FFFFFF;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: #F59E0B;
}

.testimonial-rating svg {
    width: 18px;
    height: 18px;
}

.testimonial-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar svg {
    width: 20px;
    height: 20px;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.author-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* â”€â”€ Gallery Page Grid & Lightbox â”€â”€ */
.gallery {
    background: #FFFFFF;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 6px;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--radius-card) - 6px);
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1010;
    user-select: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #FFFFFF;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--radius-card) - 6px);
}

/* â”€â”€ Statistics Section â”€â”€ */
.stats-modern {
    background: var(--secondary);
    color: #FFFFFF;
    padding: 70px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-value {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* â”€â”€ CTA / Booking Trigger Section â”€â”€ */
.cta-section {
    background: linear-gradient(135deg, #F0F7FF 0%, #E0F2FE 100%);
    color: var(--secondary);
    text-align: center;
    padding: 90px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* â”€â”€ Inner Pages Headers â”€â”€ */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.page-breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-breadcrumb a:hover {
    color: #FFFFFF;
}

.page-breadcrumb span {
    color: var(--primary-light);
}

/* â”€â”€ Contact & Appointment Section â”€â”€ */
.appointment {
    background: #FFFFFF;
}

.appointment-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.appointment-schedule {
    display: flex;
    gap: 32px;
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
}

.schedule-block {
    flex: 1;
}

.schedule-block h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.schedule-block p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.contact-clinic-image {
    margin-top: 10px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: #FFFFFF;
}

.contact-clinic-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.appointment-form-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.appointment-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.appointment-form-wrapper p {
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 18px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary);
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    padding: 12px 18px;
    border-radius: var(--radius-input);
    transition: all 0.25s ease;
    width: 100%;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.appointment-form input::placeholder {
    color: var(--text-muted);
}

.appointment-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}

.appointment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-appointment-submit {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    margin-top: 10px;
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 44px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.success-popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.popup-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.popup-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* â”€â”€ Contact cards list & Map â”€â”€ */
.contact {
    background: #FFFFFF;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: #FFFFFF;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.contact-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.contact-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.map-container iframe {
    vertical-align: middle;
}

/* â”€â”€ Footer Section â”€â”€ */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    height: 145px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    background: #FFFFFF;
    padding: 14px 28px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.footer-about {
    font-size: 0.92rem;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2.5px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.92rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact span {
    font-size: 0.92rem;
    line-height: 1.4;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-hours li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.92rem;
}

.footer-hours .day {
    color: #FFFFFF;
    font-weight: 600;
}

.footer-hours .time {
    font-size: 0.88rem;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
}

/* ── Floating Buttons ── */
.floating-btn {
    position: fixed;
    right: 30px;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 990;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.floating-btn:hover {
    transform: scale(1.08) translateY(-3px);
}

.floating-btn:active {
    transform: scale(0.95) translateY(0);
}

.whatsapp-btn {
    right: 30px;
    background: #25D366;
}

.whatsapp-btn:hover {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.call-btn {
    right: 90px;
    background: var(--primary);
}

.call-btn:hover {
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* â”€â”€ Scroll Reveal System â”€â”€ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    will-change: transform, opacity;
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   ATTRACTIVE MODERN ANIMATIONS & INTERACTIVE EFFECTS
   ───────────────────────────────────────────────────────────── */

/* --- Shimmer Effect on Primary Buttons --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    left: 140%;
}

/* --- Pulse Wave Animation on WhatsApp Button --- */
.whatsapp-btn {
    animation: pulse-ring 2.5s infinite ease-in-out;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Floating Animation for Hero Badges & Floating Elements --- */
.hero-float-card,
.hero-mini-stats {
    animation: float-gentle 4s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

/* --- Card Hover Micro-Interactions & Elevation --- */
.service-photo-card,
.stat-card,
.testimonial-card,
.contact-card,
.highlight-card,
.video-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.3s ease;
}

.service-photo-card:hover,
.stat-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.highlight-card:hover,
.video-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 40px -12px rgba(22, 163, 74, 0.18);
}

/* --- Image Zoom on Hover --- */
.service-image-wrapper img,
.gallery-item img,
.legacy-image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-photo-card:hover .service-image-wrapper img,
.gallery-item:hover img,
.legacy-image:hover img {
    transform: scale(1.02);
}

/* --- Icon Micro Bounce --- */
.hero-stat-icon,
.highlight-icon,
.stat-icon,
.contact-card-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-stat:hover .hero-stat-icon,
.highlight-card:hover .highlight-icon,
.stat-card:hover .stat-icon,
.contact-card:hover .contact-card-icon {
    transform: scale(1.18) rotate(5deg);
}

/* --- Claim Badge Hover Pop --- */
.claim-badge {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.claim-badge:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.2);
}

/* â”€â”€ Responsive Styling â”€â”€ */
@media (max-width: 1100px) {
    .container {
        padding: 0 32px;
    }
    
    .about-content-grid {
        gap: 40px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1.2fr 0.8fr 1fr;
        gap: 36px;
    }
    
    .footer-col:nth-child(4) {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    section {
        padding: 70px 0;
    }
    
    .hero-vital-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-vital-text {
        text-align: center;
    }
    
    .hero-subtitle-vital {
        margin: 0 auto 36px;
    }
    
    .hero-float-card {
        left: 20px;
        bottom: 20px;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .appointment-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .navbar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        z-index: 1000;
        background: #FFFFFF;
        box-shadow: none;
        border-bottom: 1px solid var(--border);
        transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    }

    .navbar.scrolled {
        background: #FFFFFF;
        box-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
        height: 80px;
    }
    
    .logo-img {
        height: 100px;
        transition: height 0.3s ease;
    }

    .navbar.scrolled .logo-img {
        height: 80px;
    }
    
    .hamburger {
        display: flex;
    }

    /* Mobile Home Landing Page Header (Navbar & Hamburger) Scroll Visibility */
    .page-home .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.35s ease,
                    height 0.3s ease, 
                    background-color 0.3s ease, 
                    box-shadow 0.3s ease;
    }

    .page-home .navbar.scrolled,
    .page-home .navbar.menu-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        background: #FFFFFF;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 48px;
        gap: 28px;
        z-index: 1005;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), top 0.3s ease, height 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .navbar.scrolled .nav-menu {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-desktop-image {
        display: none;
    }
    
    .hero-mobile-image {
        display: block;
    }
    
    .hero-mini-stats {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    
    .info-bar-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .legacy-grid {
        grid-template-columns: 1fr;
    }
    
    .legacy-image {
        aspect-ratio: 16/10;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col:nth-child(4) {
        grid-column: span 1;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .floating-btn {
        width: 46px;
        height: 46px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 20px;
    }
    
    .whatsapp-btn {
        right: 20px;
    }
    
    .call-btn {
        right: 76px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 56px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .services-photo-grid,
    .video-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .appointment-form-wrapper {
        padding: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
    
/* ── Mobile UX & Touch Smoothness Optimization ── */
@media (max-width: 768px) {
    /* Fast, lag-free tap highlights */
    a, button, .btn, .service-photo-card, .highlight-card, .testimonial-card, .stat-card, .contact-card, .hamburger {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Active touch feedback for mobile buttons & cards */
    .btn:active, .floating-btn:active, .back-to-top:active {
        transform: scale(0.95) !important;
        transition: transform 0.15s ease !important;
    }

    .service-photo-card:active, .highlight-card:active, .testimonial-card:active, .stat-card:active, .contact-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.15s ease !important;
    }

    /* Smooth navigation drawer styling */
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        padding: 36px 24px;
    }

    /* Staggered smooth fade-in for mobile menu items */
    .nav-menu.active .nav-link {
        animation: mobileNavFade 0.4s ease forwards;
    }

    @keyframes mobileNavFade {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
}