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

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e8f2ff;
    --red: #dc2626;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --white: #fff;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--slate-900);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6
}

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

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

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

button {
    cursor: pointer
}

/* UTILITIES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem
}

.section {
    padding: 6rem 0
}

.section-sm {
    padding: 4rem 0
}

.text-center {
    text-align: center
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem
}

.flex {
    display: flex
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.gap-1 {
    gap: .5rem
}

.gap-2 {
    gap: 1rem
}

.gap-3 {
    gap: 1.5rem
}

.relative {
    position: relative
}

.absolute {
    position: absolute
}

/* TYPOGRAPHY */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.2
}

.section-sub {
    font-size: 1.1rem;
    color: var(--slate-600);
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.7
}

.section-header {
    text-align: center;
    margin-bottom: 4rem
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
    cursor: pointer;
    white-space: nowrap
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, .3)
}

.btn-outline {
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px)
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .25)
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700
}

.btn-red:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, .3)
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    height: 3.5rem
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all .4s
}

#navbar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: -1.2rem;
}

.nav-logo-icon {
    width: auto;
    height: 5rem;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    margin: -1rem 0;
    flex-shrink: 0;
}

.nav-logo-icon img {
    height: 5rem;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    transition: color .3s
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    transition: color .3s
}

.nav-links a:hover {
    color: var(--white)
}

.nav-cta {
    margin-left: 2rem;
    padding: .5rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 100px;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s;
    border: 1px solid var(--primary)
}

.nav-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark)
}

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

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    flex-direction: column;
    gap: .5rem
}

.mobile-menu.open {
    display: flex
}

.mobile-menu a {
    display: block;
    padding: .8rem 1rem;
    color: var(--slate-700);
    font-weight: 500;
    border-radius: .75rem;
    transition: all .2s
}

.mobile-menu a:hover {
    background: var(--slate-50);
    color: var(--primary)
}

.mobile-menu .btn-primary {
    margin-top: .5rem;
    justify-content: center;
    width: 100%;
    border-radius: .75rem
}

/* Scrolled state */
#navbar.scrolled {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    padding: .75rem 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, .08)
}

#navbar.scrolled .nav-logo-text {
    color: #000
}

#navbar.scrolled .nav-links a {
    color: #000
}

#navbar.scrolled .nav-links a:hover {
    color: var(--primary)
}

#navbar.scrolled .nav-cta {
    background: var(--primary);
    color: var(--white)
}

#navbar.scrolled .nav-cta:hover {
    background: var(--primary-dark)
}

#navbar.scrolled .nav-hamburger span {
    background: #000
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 10rem;
    overflow: hidden
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, .85) 0%, rgba(30, 41, 59, .6) 60%, transparent 100%)
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: .35rem 1rem;
    background: rgba(0, 102, 204, .25);
    color: var(--white);
    border: 1px solid rgba(0, 102, 204, .4);
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px)
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem
}

.hero-title span {
    color: #93c5fd
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.75
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .5);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, .2);
    overflow: hidden;
    position: relative
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--white);
    animation: scrollAnim 1.5s linear infinite
}

@keyframes scrollAnim {
    to {
        transform: translateY(200%)
    }
}

/* EMERGENCY BANNER */
#emergency {
    padding: 4rem 0;
    background: #fff5f5;
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca
}

.emergency-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-3xl);
    box-shadow: 0 8px 40px rgba(220, 38, 38, .07);
    border: 1px solid #fecaca;
    flex-wrap: wrap
}

.emergency-left {
    display: flex;
    align-items: center;
    gap: 1.5rem
}

.emergency-icon {
    width: 4rem;
    height: 4rem;
    background: #fee2e2;
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.emergency-icon svg {
    width: 2rem;
    height: 2rem
}

.emergency-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: .25rem
}

.emergency-desc {
    color: var(--slate-600);
    font-size: 1rem
}

/* ABOUT */
#about {
    padding: 6rem 0;
    background: var(--white)
}

.about-img-wrap {
    position: relative
}

.about-img {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12)
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 95% 50%;
}

.about-blob1 {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 16rem;
    height: 16rem;
    background: rgba(0, 102, 204, .08);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1
}

.about-blob2 {
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 12rem;
    height: 12rem;
    background: rgba(147, 197, 253, .15);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1
}

.about-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1.25rem;
    line-height: 1.3
}

.about-text {
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 1rem
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.stat-icon svg {
    width: 1.4rem;
    height: 1.4rem
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1
}

.stat-label {
    font-size: .85rem;
    color: var(--slate-500);
    font-weight: 500;
    margin-top: .2rem
}

/* DEPARTMENTS */
#departments {
    padding: 6rem 0;
    background: var(--slate-50)
}

.dept-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--slate-100);
    transition: all .3s;
    cursor: pointer
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1)
}

.dept-card:hover .dept-name {
    color: var(--primary)
}

.dept-card-featured {
    padding: 2.5rem 2rem;
    border: 2px solid var(--primary-light);
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.dept-card-featured .dept-name {
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.dept-card-featured .dept-desc {
    font-size: 1.05rem;
}

.dept-card-featured .dept-icon {
    width: 4.5rem;
    height: 4.5rem;
}

.dept-card-featured .dept-icon svg {
    width: 2.2rem;
    height: 2.2rem;
}

.dept-card-featured:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 204, .12);
}

.dept-card-small {
    padding: 1.5rem;
}

.dept-card-small .dept-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
}

.dept-card-small .dept-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.dept-card-small .dept-name {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.dept-card-small .dept-desc {
    font-size: 0.9rem;
}

.dept-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform .3s
}

.dept-card:hover .dept-icon {
    transform: scale(1.1)
}

.dept-icon svg {
    width: 2rem;
    height: 2rem
}

.dept-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: .6rem;
    transition: color .3s
}

.dept-desc {
    color: var(--slate-600);
    font-size: .95rem;
    line-height: 1.6
}

.icon-rose {
    background: #fff1f2;
    color: #f43f5e
}

.icon-purple {
    background: #f5f3ff;
    color: #8b5cf6
}

.icon-amber {
    background: #fffbeb;
    color: #f59e0b
}

.icon-sky {
    background: #f0f9ff;
    color: #0ea5e9
}

.icon-emerald {
    background: #ecfdf5;
    color: #10b981
}

.icon-red {
    background: #fef2f2;
    color: #ef4444
}

/* DOCTORS */
#doctors {
    padding: 6rem 0;
    background: var(--white)
}

.doctors-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 1.5rem;
    flex-wrap: wrap
}

.view-all {
    display: flex;
    align-items: center;
    gap: .25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    transition: opacity .2s;
    flex-shrink: 0
}

.view-all:hover {
    opacity: .75
}

.doctor-card {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    position: relative;
    cursor: pointer
}

.doctor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s
}

.doctor-card:hover img {
    transform: scale(1.05)
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .9) 0%, rgba(15, 23, 42, .2) 50%, transparent 100%);
    opacity: .8;
    transition: opacity .3s
}

.doctor-card:hover .doctor-overlay {
    opacity: 1
}

.doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    transform: translateY(4px);
    transition: transform .3s
}

.doctor-card:hover .doctor-info {
    transform: translateY(0)
}

.doctor-specialty {
    color: #93c5fd;
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem
}

.doctor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .25rem
}

.doctor-exp {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7)
}

.doctor-cta {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s .1s
}

.doctor-cta svg {
    width: 1rem;
    height: 1rem
}

.doctor-card:hover .doctor-cta {
    opacity: 1
}

.doctor-cta:hover {
    color: #93c5fd
}

/* FACILITIES */
#facilities {
    padding: 6rem 0;
    background: var(--slate-50)
}

.facility-item {
    display: flex;
    gap: 1.25rem
}

.facility-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    color: var(--primary)
}

.facility-icon svg {
    width: 1.6rem;
    height: 1.6rem
}

.facility-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: .4rem
}

.facility-desc {
    color: var(--slate-600);
    font-size: .9rem;
    line-height: 1.6
}

/* TESTIMONIALS */
#testimonials {
    padding: 6rem 0;
    background: var(--white)
}

.testimonial-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    display: flex;
    flex-direction: column
}

.quote-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(0, 102, 204, .2);
    margin-bottom: 1.5rem
}

.testimonial-text {
    color: var(--slate-700);
    font-size: 1.05rem;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 2rem;
    font-style: italic
}

.testimonial-author {
    font-weight: 700;
    color: var(--slate-900)
}

.testimonial-role {
    font-size: .85rem;
    color: var(--slate-500);
    margin-top: .15rem
}

/* APPOINTMENT */
#appointment {
    padding: 6rem 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden
}

.appt-bg {
    position: absolute;
    inset: 0;
    opacity: .08
}

.appt-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.appt-content {
    position: relative;
    z-index: 1
}

.appt-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem
}

.appt-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px
}

.appt-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.appt-step {
    display: flex;
    align-items: center;
    gap: 1.25rem
}

.step-num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    flex-shrink: 0
}

.step-text {
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
    font-size: 1.05rem
}

.appt-form-wrap {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3)
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.25rem
}

.form-group label {
    font-size: .9rem;
    font-weight: 500;
    color: var(--slate-700)
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: .75rem;
    padding: .85rem 1rem;
    color: var(--slate-900);
    transition: border-color .2s, box-shadow .2s;
    width: 100%
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .1)
}

.form-group textarea {
    resize: none;
    height: 120px
}

.form-group select {
    appearance: none;
    cursor: pointer
}

.btn-submit {
    width: 100%;
    height: 3.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: .875rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all .3s;
    border: none;
    cursor: pointer
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, .3)
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

/* CONTACT */
#contact {
    padding: 6rem 0;
    background: var(--white)
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.contact-icon svg {
    width: 1.4rem;
    height: 1.4rem
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: .35rem
}

.contact-val {
    color: var(--slate-600);
    line-height: 1.6
}

.map-placeholder {
    background: var(--slate-100);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    color: var(--slate-500);
    gap: .75rem
}

.map-placeholder svg {
    width: 3rem;
    height: 3rem;
    opacity: .4
}

.map-placeholder p {
    font-weight: 600;
    font-size: 1rem
}

.map-placeholder span {
    font-size: .85rem;
    opacity: .7
}

/* FOOTER */
footer {
    background: var(--slate-950);
    color: var(--slate-300);
    padding: 5rem 0 2rem
}

.footer-social-icons {
    display: flex;
    flex-direction: row;
    gap: .75rem;
    margin-top: .5rem
}

.footer-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    transition: all .25s;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.1)
}

.footer-brand-link svg {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0
}

.footer-brand-link span {
    display: none
}

.footer-brand-fb {
    background: rgba(24, 119, 242, .15);
    color: #1877F2;
    border-color: rgba(24, 119, 242, .3)
}

.footer-brand-fb:hover {
    background: #1877F2;
    color: var(--white);
    border-color: #1877F2;
    transform: scale(1.1)
}

.footer-brand-ig {
    background: rgba(225, 48, 108, .12);
    color: #E1306C;
    border-color: rgba(225, 48, 108, .3)
}

.footer-brand-ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1)
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700
}

.footer-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white)
}

.footer-about {
    font-size: .9rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 260px
}

.social-links {
    display: flex;
    gap: .75rem
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    color: var(--slate-300)
}

.social-link:hover {
    background: var(--primary);
    color: var(--white)
}

.social-link svg {
    width: 1.1rem;
    height: 1.1rem
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.footer-links a {
    font-size: .9rem;
    color: var(--slate-400);
    transition: color .2s
}

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

.newsletter-text {
    font-size: .85rem;
    color: var(--slate-400);
    margin-bottom: 1rem
}

.newsletter-form {
    display: flex;
    gap: .5rem
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .5rem;
    padding: .6rem 1rem;
    color: var(--white);
    font-size: .9rem
}

.newsletter-form input::placeholder {
    color: var(--slate-500)
}

.newsletter-form input:focus {
    border-color: rgba(0, 102, 204, .5)
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    padding: .6rem 1rem;
    border-radius: .5rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s
}

.newsletter-form button:hover {
    background: var(--primary-dark)
}

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

.footer-copy {
    font-size: .85rem;
    color: var(--slate-500)
}

.footer-legal {
    display: flex;
    gap: 1.5rem
}

.footer-legal a {
    font-size: .85rem;
    color: var(--slate-500);
    transition: color .2s
}

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

/* FAB */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 4rem;
    height: 4rem;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(220, 38, 38, .4);
    transition: all .3s;
    animation: fabIn .5s 1s backwards
}

.fab:hover {
    background: #b91c1c;
    transform: scale(1.1)
}

.fab svg {
    width: 1.75rem;
    height: 1.75rem
}

.fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 38, .5);
    animation: pulse 1.8s ease-out infinite
}

.fab-pulse2 {
    animation-delay: .4s
}

.fab-whatsapp {
    position: fixed;
    bottom: 6.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 4rem;
    height: 4rem;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, .4);
    transition: all .3s;
    animation: fabIn .5s 1.2s backwards
}

.fab-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1)
}

.fab-whatsapp svg {
    width: 2rem;
    height: 2rem
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1
    }

    100% {
        transform: scale(1.8);
        opacity: 0
    }
}

@keyframes fabIn {
    from {
        transform: scale(0);
        opacity: 0
    }

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

/* TOAST */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--slate-900);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: .875rem;
    font-size: .95rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform .4s;
    max-width: 360px
}

.toast.show {
    transform: translateX(0)
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .2rem
}

.toast-desc {
    color: var(--slate-400);
    font-size: .85rem
}

/* GALLERY */
#gallery {
    background: var(--slate-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s, opacity 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s;
    pointer-events: none;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.hidden-gallery-item {
    display: none;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s, transform .7s
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .7s, transform .7s
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .7s, transform .7s
}

.zoom-in {
    opacity: 0;
    transform: scale(.94);
    transition: opacity .6s, transform .6s
}

.animated {
    opacity: 1 !important;
    transform: none !important
}

/* RESPONSIVE */
@media(max-width:1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }

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

@media(max-width:768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr
    }

    .nav-links,
    .nav-cta {
        display: none
    }

    .nav-hamburger {
        display: flex
    }

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

    .mobile-hidden {
        display: none;
    }

    .emergency-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem
    }

    .emergency-left {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .doctors-header {
        flex-direction: column;
        align-items: flex-start
    }

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

    .appt-content .grid-2 {
        grid-template-columns: 1fr
    }

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

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

    .scroll-indicator {
        display: none
    }
}

@media(max-width:480px) {
    .grid-3 {
        grid-template-columns: 1fr
    }

    .grid-4 {
        grid-template-columns: 1fr
    }

    .hero-btns {
        flex-direction: column
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr
    }
}