/* ==========================================================================
   Dr. Priya's Dental Care — Main stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- Brand Variables --- */
:root {
    --primary: #0878C9;
    --primary-hover: #0660A3;
    --secondary: #08A9D8;
    --secondary-hover: #0689B1;
    --dark: #16324F;
    --dark-light: #24486E;
    --text: #334155;
    --text-muted: #64748B;
    --light: #F5FBFF;
    --light-accent: #EAF5FC;
    --white: #FFFFFF;
    --border: #DCECF5;
    --border-hover: #B8DCF0;

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 2px 8px rgba(8, 120, 201, 0.06);
    --shadow-md: 0 8px 24px rgba(22, 50, 79, 0.08);
    --shadow-lg: 0 16px 36px rgba(22, 50, 79, 0.12);
    --shadow-xl: 0 24px 48px rgba(22, 50, 79, 0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 96px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
}

h2 {
    font-size: clamp(1.85rem, 3vw + 0.8rem, 2.5rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw + 0.5rem, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

p:last-child {
    margin-bottom: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--light-accent);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

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

.section-header.left-align {
    text-align: left;
    margin-left: 0;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 12px;
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1240px;
    padding: 0 24px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(8, 120, 201, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8, 120, 201, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--light-accent);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

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

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    padding: 0;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    padding: 0px 4px;
    transition: var(--transition);
}

.site-header.scrolled .logo-img {
    height: 58px;
    padding: 1px 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-sm);
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1050;
    padding: 36px 30px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-close {
    position: absolute;
    top: 30px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.drawer-close:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(22, 50, 79, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-drawer-contact {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content .hero-desc {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 36px;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.hero-image-card img,
.hero-image-card video {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* Decorative smile curve shape */
.hero-smile-curve {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    border-bottom: 8px solid var(--secondary);
    border-left: 8px solid var(--secondary);
    border-radius: 0 0 0 100px;
    z-index: -1;
    opacity: 0.4;
}

.hero-badge-card {
    position: absolute;
    bottom: 30px;
    left: -25px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-badge-icon {
    width: 44px;
    height: 44px;
    background: var(--light-accent);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-badge-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.hero-badge-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Trust Strip --- */
.trust-strip {
    background-color: var(--white);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-icon {
    width: 52px;
    height: 52px;
    background: var(--light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

/* --- Split About Section --- */
.about-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img-box img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.about-feature-item svg {
    color: var(--secondary);
    flex-shrink: 0;
}

/* --- Cards Design System --- */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light) 0%, var(--light-accent) 100%);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.card-link svg {
    transition: transform 0.2s ease;
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* --- Before & After Gallery Component --- */
.ba-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ba-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.ba-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
}

.ba-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ba-image-wrapper:hover img {
    transform: scale(1.05);
}

.ba-badge {
    position: absolute;
    top: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    z-index: 2;
}

.ba-badge.before {
    left: 16px;
    background: rgba(22, 50, 79, 0.85);
}

.ba-badge.after {
    right: 16px;
    background: var(--primary);
}

.ba-info {
    padding: 20px;
}

.ba-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* Before/After Interactive Comparison Slider */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    user-select: none;
    touch-action: pan-y;
}

.ba-slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid var(--white);
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
    color: var(--primary);
}

/* --- Video Testimonials --- */
.video-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 440px));
    justify-content: center;
    gap: 32px;
}

@media (max-width: 768px) {
    .video-card-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.video-thumb-box {
    position: relative;
    height: 520px;
    background-color: #0b1d30;
    cursor: pointer;
    overflow: hidden;
}

.video-thumb-box video,
.video-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.95;
    transition: var(--transition);
}

.video-card:hover .video-thumb-box video,
.video-card:hover .video-thumb-box img {
    opacity: 1;
    transform: scale(1.03);
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(8, 120, 201, 0.9);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 0 0 8px rgba(8, 120, 201, 0.25);
    transition: var(--transition);
}

.video-card:hover .play-btn-overlay {
    background: var(--secondary);
    box-shadow: 0 0 0 14px rgba(8, 169, 216, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px 24px;
}

.video-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.video-author {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* --- Modals (Video & Lightbox) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.modal-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* --- Appointment Modal Form (Compact & Responsive) --- */
.appointment-modal-content {
    width: 92%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(8, 120, 201, 0.22), 0 0 0 1px var(--border);
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.appointment-modal-header {
    background: linear-gradient(135deg, var(--light) 0%, var(--light-accent) 100%);
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
    text-align: center;
}

.appointment-modal-header .modal-badge-icon {
    width: 42px;
    height: 42px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 8px auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.appointment-modal-header h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.appointment-modal-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.appointment-modal-content .modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    background: rgba(22, 50, 79, 0.08);
    color: var(--dark);
}

.appointment-modal-content .modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.appointment-modal-body {
    padding: 18px 24px 24px 24px;
    overflow-y: auto;
}

.appointment-modal-body .form-grid {
    gap: 12px;
}

.appointment-modal-body .form-group label {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.appointment-modal-body .form-control {
    padding: 9px 12px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}

.appointment-modal-body textarea.form-control {
    min-height: 60px;
    height: 60px;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 11px 20px;
}

@media (max-width: 520px) {
    .appointment-modal-content {
        width: 95%;
        max-height: 92vh;
        border-radius: var(--radius-md);
    }

    .appointment-modal-header {
        padding: 16px 18px 12px 18px;
    }

    .appointment-modal-body {
        padding: 16px;
    }

    .appointment-modal-body .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .appointment-modal-body .form-group.full-width {
        grid-column: span 1;
    }
}

/* Lightbox Modal */
.lightbox-content {
    max-width: 1000px;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.lightbox-img-wrapper {
    position: relative;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-height: 75vh;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* --- Timeline / Approach Section --- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    margin-top: 40px;
}

.timeline-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
}

.timeline-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-accent);
    -webkit-text-stroke: 1.5px var(--secondary);
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-header {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: var(--light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: var(--white);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.faq-item.active .faq-body {
    padding: 0 24px 20px 24px;
    max-height: 300px;
}

/* --- Appointment Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.appointment-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 120, 201, 0.12);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C#0878C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-success-banner {
    display: none;
    padding: 16px 20px;
    background: #DEF7EC;
    color: #03543F;
    border-radius: var(--radius-md);
    font-weight: 500;
    margin-bottom: 20px;
}

.form-success-banner.active {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Banner CTA Section --- */
.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 70px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 36px auto;
    font-size: 1.15rem;
}

.cta-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Google Map Container --- */
.map-container {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

/* --- Footer --- */
.site-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 80px;
    padding-bottom: 40px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo-img {
    height: 60px;
    width: auto;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    display: inline-block;
    filter: none;
    transition: var(--transition);
}

.footer-brand .logo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* --- Floating Actions & Mobile Bottom CTA Bar --- */
/* Floating & Font Awesome Helpers */
.card-icon i,
.trust-icon i,
.hero-badge-icon i {
    display: inline-block;
    line-height: 1;
}

.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition);
}

.floating-whatsapp-btn i {
    font-size: 2rem;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.mobile-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
}

.mobile-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    border-right: 1px solid var(--border);
}

.mobile-cta-btn i {
    font-size: 1.2rem;
    color: var(--primary);
}

.mobile-cta-btn:last-child {
    border-right: none;
}

.mobile-cta-btn.highlight {
    background: var(--primary);
    color: var(--white);
}

.mobile-cta-btn.highlight i {
    color: var(--white);
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-4,
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .header-actions .btn,
    .header-actions .open-appointment-modal,
    .header-appointment-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .header-actions .btn,
    .header-actions .open-appointment-modal,
    .header-appointment-btn {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-grid,
    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-badge-card {
        bottom: 10px;
        left: 10px;
    }

    .card-grid-3,
    .card-grid-2,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .floating-whatsapp-btn {
        display: none;
    }

    .mobile-cta-bar {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}