/* ================================================================
   KOLSE DENTAL CLINIC — Premium CSS
   Performance optimised | Fully Responsive | Lighthouse 90+
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   CSS VARIABLES
   ---------------------------------------------------------------- */
:root {
    --primary: #0077b6;
    --primary-dk: #005f8e;
    --accent: #00b4d8;
    --accent-lt: #90e0ef;
    --dark: #0a1628;
    --dark2: #0f172a;
    --mid: #334155;
    --light: #f0faff;
    --white: #ffffff;
    --border: #e2f0f8;
    --sh-sm: 0 2px 12px rgba(0, 119, 182, .08);
    --sh-md: 0 8px 32px rgba(0, 119, 182, .14);
    --sh-lg: 0 20px 60px rgba(0, 119, 182, .18);
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 40px;
    --font-d: 'Playfair Display', Georgia, serif;
    --font-b: 'DM Sans', 'Segoe UI', sans-serif;
    --ease: 0.35s cubic-bezier(.4, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-b);
    background: var(--white);
    color: var(--mid);
    line-height: 1.7;
    overflow-x: hidden;
}

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

section {
    padding: 80px 8%;
    position: relative;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 99px;
}

/* ================================================================
   HEADER
   ================================================================ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 5%;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 119, 182, .09);
    border-bottom: 1.5px solid var(--border);
    transition: box-shadow var(--ease);
}

header.scrolled {
    box-shadow: 0 4px 28px rgba(0, 119, 182, .16);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-section img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0, 119, 182, .2);
}

.logo-section h2 {
    font-family: var(--font-d);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark2);
    white-space: nowrap;
}

/* Tagline */
.logo-text span {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
}

nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

nav a {
    text-decoration: none;
    color: var(--mid);
    font-weight: 500;
    font-size: .9rem;
    padding: 8px 14px;
    border-radius: 99px;
    transition: background var(--ease), color var(--ease);
}

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

nav a.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 119, 182, .28);
}

nav a.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, .38);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark2);
    border-radius: 4px;
    transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   LANGUAGE TOGGLE
   ---------------------------------------------------------------- */
.lang-wrapper {
    position: relative;
    flex-shrink: 0;
}

.lang-globe {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: 99px;
    padding: 7px 14px;
    cursor: pointer;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    font-family: var(--font-b);
    transition: background var(--ease), box-shadow var(--ease);
}

.lang-globe:hover {
    background: var(--border);
    box-shadow: var(--sh-sm);
}

.lang-chevron {
    font-size: .65rem;
    transition: transform .25s;
}

.lang-globe.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    overflow: hidden;
    min-width: 150px;
    z-index: 2000;
    animation: dropFade .18s ease;
}

.lang-dropdown.open {
    display: block;
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

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

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 18px;
    background: none;
    border: none;
    font-family: var(--font-b);
    font-size: .88rem;
    font-weight: 500;
    color: var(--mid);
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
}

.lang-option:hover,
.lang-option.active {
    background: var(--light);
    color: var(--primary);
    font-weight: 700;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("assets/hero-bg.webp") center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, .97) 0%,
            rgba(240, 250, 255, .92) 42%,
            rgba(0, 119, 182, .12) 80%,
            rgba(0, 180, 216, .06) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, .12) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    width: 88%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    z-index: 2;
}

.hero-left {
    max-width: 560px;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(0, 119, 182, .1), rgba(0, 180, 216, .1));
    border: 1px solid rgba(0, 119, 182, .2);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 20px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-left h1 {
    font-family: var(--font-d);
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--dark2);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 440px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: var(--r-xl);
    color: var(--white);
    font-family: var(--font-b);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 119, 182, .3);
    transition: transform var(--ease), box-shadow var(--ease);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 119, 182, .42);
}

.secondary-btn {
    padding: 13px 28px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: var(--r-xl);
    color: var(--primary);
    font-family: var(--font-b);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), transform var(--ease);
}

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

/* ===============================
   HERO STATS
   =============================== */

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1.5px solid rgba(0, 119, 182, .12);
    flex-wrap: wrap;

    /* Fade-in animation */
    opacity: 0;
    transform: translateY(20px);
    animation: statsFade 0.6s ease forwards;
    animation-delay: 0.2s;
}

@keyframes statsFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Each item */
.hero-stat-item {
    display: flex;
    flex-direction: column;
}

/* Number + symbol */
.stat-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Number */
.hero-stat-item strong {
    font-family: var(--font-d);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
    transition: transform .3s ease, text-shadow .3s ease;
}

/* Symbol (+, ★) */
.stat-value span {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Label */
.hero-stat-item>span {
    font-size: .74rem;
    color: var(--mid);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Pop effect after counting */
.hero-stat-item strong.done {
    transform: scale(1.08);
    text-shadow: 0 0 12px rgba(0, 119, 182, 0.25);
}

/* Mobile tweak */
@media (max-width: 480px) {
    .hero-stat-item strong {
        font-size: 1.4rem;
    }

    .stat-value span {
        font-size: 1rem;
    }
}


/* ================================================================
   ABOUT
   ================================================================ */
.about {
    display: flex;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #f8fdff 0%, #eaf6ff 100%);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, .08) 0%, transparent 70%);
}

.about-left {
    flex: 1.2;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 46px 44px;
    border: 1.5px solid var(--border);
    box-shadow: var(--sh-md);
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 180, 216, .1);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.modern-heading {
    font-family: var(--font-d);
    color: var(--dark2);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.modern-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    margin-top: 12px;
    margin-bottom: 22px;
}

#aboutText {
    font-size: .96rem;
    color: var(--mid);
    line-height: 1.85;
}

.read-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-b);
    font-size: .92rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.read-btn:hover {
    color: var(--accent);
}

.prestige-stats {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 24px;
    border-top: 1.5px solid var(--border);
}

.stat-item {
    text-align: center;
    padding: 16px 10px;
    background: var(--light);
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    transition: transform var(--ease), box-shadow var(--ease);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-sm);
}

.stat-num {
    display: block;
    font-family: var(--font-d);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-item>span:last-child {
    font-size: .74rem;
    font-weight: 600;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Doctor image side */
.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-14px)
    }
}

.doctor-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    transition: transform var(--ease);
    max-width: 400px;
    width: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
}

.doctor-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.doctor-card.img-error::after {
    content: '';
    display: block;
    height: 380px;
    background: linear-gradient(135deg, var(--light), var(--border));
}

.doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 119, 182, .92);
    color: var(--white);
    padding: 18px 20px;
    text-align: center;
}

.doctor-info strong {
    display: block;
    font-family: var(--font-d);
    font-size: 1.1rem;
}

.doctor-info p {
    font-size: .85rem;
    opacity: .9;
    margin-top: 3px;
}

/* ================================================================
   SECTION TITLE / SUBTITLE — shared
   ================================================================ */
.section-title {
    text-align: center;
    font-family: var(--font-d);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark2);
    margin-bottom: 8px;
    letter-spacing: -.4px;
}

.section-subtitle {
    text-align: center;
    color: var(--mid);
    font-size: .96rem;
    max-width: 500px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

/* ================================================================
   SLIDER COMPONENTS
   ================================================================ */
.slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.cards-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 16px 4px 28px;
    width: 100%;
    /* IMPORTANT: always visible — no opacity/transform that blocks content */
}

.cards-wrapper::-webkit-scrollbar {
    display: none;
}

.cards-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* base card */
.card {
    min-width: calc(33.33% - 14px);
    scroll-snap-align: start;
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    box-shadow: var(--sh-sm);
    text-align: center;
    /* NO opacity:0 / visibility:hidden — content always visible */
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-md);
    border-color: var(--accent-lt);
}

.card:hover::before {
    transform: scaleX(1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--r-sm);
    margin-bottom: 14px;
}

.card h3,
.card h4 {
    font-family: var(--font-d);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark2);
    margin-bottom: 8px;
}

.card p {
    font-size: .86rem;
    color: var(--mid);
    line-height: 1.6;
}

/* Service icon */
.service-icon {
    font-size: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0, 119, 182, .1), rgba(0, 180, 216, .1));
    transition: background var(--ease), color var(--ease), transform var(--ease);
}

.card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: scale(1.08);
}

/* Slider nav buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1.5px solid var(--border);
    width: 44px;
    height: 44px;
    color: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: .95rem;
    transition: background var(--ease), color var(--ease), box-shadow var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh-sm);
    flex-shrink: 0;
}

.prev:hover,
.next:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 119, 182, .32);
}

.prev {
    left: -22px;
}

.next {
    right: -22px;
}

/* ================================================================
   SECTION BACKGROUNDS
   ================================================================ */
.services {
    background: var(--light);
}

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

.reviews {
    background: linear-gradient(135deg, #f8fdff 0%, #eaf6ff 100%);
}

.staff {
    background: var(--white);
}

/* Gallery loading indicator */
.gallery-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 50px 0;
    color: var(--mid);
    font-size: 1rem;
}

/* Review card */
.review-card {
    padding: 32px 26px !important;
}

.review-card h4 {
    font-size: 1rem !important;
    color: var(--dark2);
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    color: var(--mid);
    font-size: .92rem !important;
    line-height: 1.7;
    margin-bottom: 12px !important;
    position: relative;
}

.review-text::before {
    content: '\201C';
    font-family: var(--font-d);
    font-size: 4rem;
    color: var(--accent-lt);
    position: absolute;
    top: -20px;
    left: -6px;
    line-height: 1;
    pointer-events: none;
}

.stars {
    font-size: .88rem;
    letter-spacing: 2px;
    color: #f59e0b;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .88rem;
    margin: 0 auto 14px;
}

/* ===============================
   STAFF CARD PROFESSIONAL DESIGN
   =============================== */

.staff-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card hover */
.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Image container */
.staff-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    /* ensures full image visible */
    background: #f6f8fa;
    /* prevents empty transparent gaps */
    padding: 6px;
    border-radius: var(--r-md) var(--r-md) 0 0;
    transition: transform .45s ease;
}

/* subtle zoom */
.staff-card:hover img {
    transform: scale(1.04);
}

/* Card body */
.card-body {
    padding: 18px 20px;
    text-align: center;
}

/* Doctor name */
.card-body h4 {
    margin-bottom: 6px;
    font-size: 1rem !important;
    font-weight: 600;
    color: #1d3557;
}

/* Role text */
.card-body p {
    font-size: .85rem !important;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive adjustments */

@media (max-width:768px) {

    .staff-card img {
        height: 210px;
    }

    .card-body {
        padding: 16px;
    }

}

@media (max-width:480px) {

    .staff-card img {
        height: 200px;
    }

    .card-body h4 {
        font-size: .95rem !important;
    }

    .card-body p {
        font-size: .8rem !important;
    }

}

/* ================================================================
   GALLERY POPUP
   ================================================================ */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .93);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.popup img {
    max-width: 88%;
    max-height: 85vh;
    border-radius: var(--r-md);
    border: 3px solid rgba(255, 255, 255, .15);
    cursor: default;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}

.close-popup {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.4rem;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    line-height: 1;
    transition: color var(--ease), transform var(--ease);
}

.close-popup:hover {
    color: #ff4d4d;
    transform: rotate(90deg) scale(1.1);
}

/* ================================================================
   APPOINTMENT SECTION
   ================================================================ */
.appointment {
    background: linear-gradient(135deg, var(--dark2) 0%, #0a2744 100%);
    text-align: center;
    overflow: hidden;
}

.appointment::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, .07) 0%, transparent 65%);
}

.appointment .section-title {
    color: var(--white);
}

.clinic-hours {
    color: var(--accent-lt);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===============================
   CLINIC HOURS PROFESSIONAL STYLE
   =============================== */

.clinic-hours {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #516AD4;
    margin-top: 8px;
    line-height: 1.6;
    font-weight: 500;
}

.clinic-hours::before {
    content: '🕗';
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

#appointmentForm {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    padding: 44px 40px;
    border-radius: var(--r-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    position: relative;
    z-index: 2;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 14px 8px;
    border: 1.5px solid #d1e9f8;
    border-radius: var(--r-sm);
    font-size: .93rem;
    font-family: var(--font-b);
    outline: none;
    background: #fafcff;
    color: var(--dark2);
    transition: border-color var(--ease), box-shadow var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #fafcff;
    padding: 0 6px;
    color: #94a3b8;
    font-size: .88rem;
    transition: .25s ease;
    pointer-events: none;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group select:focus+label,
.form-group select:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -9px;
    font-size: .72rem;
    color: var(--primary);
    font-weight: 700;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, .12);
}

.form-group textarea {
    min-height: 92px;
    resize: vertical;
    padding-top: 18px;
}

#appointmentForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: var(--white);
    font-family: var(--font-b);
    font-weight: 700;
    font-size: .98rem;
    border-radius: var(--r-sm);
    cursor: pointer;
    letter-spacing: .02em;
    margin-top: 6px;
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: 0 8px 20px rgba(0, 119, 182, .3);
}

#appointmentForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 119, 182, .42);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: var(--dark2);
    color: rgba(255, 255, 255, .82);
    padding: 66px 8% 26px;
    border-top: 1px solid rgba(0, 119, 182, .18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 52px;
    margin-bottom: 44px;
}

.footer-about h3 {
    font-family: var(--font-d);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-about p {
    opacity: .72;
    font-size: .88rem;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-d);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
    font-size: .88rem;
    transition: color var(--ease), padding-left var(--ease);
}

.footer-links a:hover {
    color: var(--accent-lt);
    padding-left: 5px;
}

.contact-link {
    text-decoration: none;
    color: rgba(255, 255, 255, .62);
    transition: color var(--ease);
    font-size: .88rem;
}

.contact-link:hover {
    color: var(--accent-lt);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    opacity: .8;
}

.footer-contact p i {
    color: var(--accent);
    width: 16px;
    flex-shrink: 0;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    transition: background var(--ease), color var(--ease), transform var(--ease);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, .35);
}

/* Footer Map Container */
.footer-map {
    position: relative;
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

/* Map iframe */
.footer-map iframe {
    width: 100%;
    height: 160px;
    border: 0;
    display: block;
    pointer-events: none;
    /* prevents accidental zoom */
}

/* Overlay Button */
.map-overlay-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: rgba(0, 119, 182, .9);
    color: #fff;

    font-size: .82rem;
    font-weight: 600;
    padding: 10px 14px;

    text-decoration: none;
    cursor: pointer;

    transition: background .3s ease;
}

/* Hover effect */
.map-overlay-btn:hover {
    background: #023e8a;
}

.copyright {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .8rem;
    opacity: .48;
    letter-spacing: .02em;
}

/* ================================================================
   RESPONSIVE — TABLET 992px
   ================================================================ */
@media (max-width:992px) {
    section {
        padding: 60px 6%;
    }

    /* Hero */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-left p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-right {
        order: -1;
    }

    /* About */
    .about {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-left {
        max-width: 100%;
        padding: 36px 30px;
    }

    .modern-heading {
        font-size: 2.1rem;
    }

    .modern-heading::after {
        margin: 12px auto;
    }

    .prestige-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-right {
        width: 100%;
        max-width: 380px;
        animation: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    /* Cards */
    .card {
        min-width: calc(50% - 10px);
    }

    /* Nav */
    nav a {
        padding: 7px 10px;
        font-size: .84rem;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE 768px
   ================================================================ */
@media (max-width:768px) {
    section {
        padding: 52px 5%;
    }

    /* Header mobile */
    header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 5%;
    }

    .logo-section h2 {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Nav slides in */
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
        padding: 16px 20px 20px;
        z-index: 999;
        gap: 4px;
        border-bottom: 2px solid var(--border);
    }

    nav.open {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 11px 16px;
        border-radius: var(--r-sm);
        font-size: .92rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        width: 92%;
        gap: 24px;
    }

    .hero-left h1 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: .72rem;
    }

    #tooth3D {
        width: 220px;
        height: 220px;
    }

    /* About */
    .about-left {
        padding: 28px 22px;
    }

    .modern-heading {
        font-size: 1.9rem;
    }

    .prestige-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-right {
        max-width: 100%;
    }

    .doctor-card {
        max-width: 320px;
        margin: 0 auto;
    }

    /* Sections */
    .section-title {
        font-size: 1.9rem;
    }

    .section-subtitle {
        font-size: .88rem;
        margin-bottom: 32px;
    }

    /* Cards */
    .card {
        min-width: 80%;
    }

    .prev {
        left: -10px;
    }

    .next {
        right: -10px;
    }

    .prev,
    .next {
        width: 36px;
        height: 36px;
        font-size: .85rem;
    }

    /* Form */
    #appointmentForm {
        padding: 28px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: .88rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-about p {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4,
    .footer-contact h4 {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Lang toggle */
    .lang-globe span {
        display: none;
    }

    .lang-globe {
        padding: 8px 10px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-item strong {
        font-size: 1.45rem;
    }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE 480px
   ================================================================ */
@media (max-width:480px) {
    section {
        padding: 44px 4%;
    }

    .logo-text h2 {
        font-size: 0.95rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .hero-left h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .about-left {
        padding: 22px 18px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .card {
        min-width: 88%;
    }

    #appointmentForm {
        padding: 22px 16px;
    }

    .footer-grid {
        gap: 22px;
    }

    .logo-section h2 {
        font-size: .9rem;
    }

    /* Very small screens — 1 card at a time */
    #serviceCards .card,
    #galleryCards .card,
    #reviewCards .card,
    #staffCards .card {
        min-width: 90%;
    }
}