/* ================= DESIGN TOKENS ================= */
:root {
    --color-ink: #0c1222;
    --color-body: #3d4a5c;
    --color-muted: #64748b;
    /* Logo-aligned palette (deep blue + teal) */
    --color-brand: #134a9b;
    --color-brand-mid: #0f63b8;
    --color-accent: #0aa59a;
    --color-accent-hover: #088a82;
    --color-surface: #f4f6fb;
    --color-surface-warm: #fafbfc;
    --color-border: rgba(26, 35, 126, 0.08);
    --color-white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 35, 126, 0.08);
    --shadow-lg: 0 20px 50px rgba(12, 18, 34, 0.1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --space-section: clamp(4rem, 8vw, 6.5rem);
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= GLOBAL ================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-body);
    background: var(--color-surface-warm);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--color-brand-mid);
    outline-offset: 3px;
}

/* ================= TOP BAR ================= */
.top-bar {
    background: linear-gradient(105deg, #0b1a3f 0%, var(--color-brand) 48%, var(--color-brand-mid) 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar .container {
    row-gap: 0.5rem;
}

.top-bar i {
    margin-right: 0.45rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }
}

/* ================= NAVBAR ================= */
.custom-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    z-index: 1030;
}

/* Solid white bar while stuck; slightly stronger edge when scrolled */
.custom-navbar.navbar-scrolled {
    box-shadow: 0 4px 24px rgba(12, 18, 34, 0.08);
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    max-height: 52px;
    max-width: 240px;
    width: auto;
    display: block;
}

@media (min-width: 992px) {
    .navbar-brand img {
        max-height: 70px;
        max-width: 320px;
    }
}

.navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2812, 18, 34, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--color-ink) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.85rem !important;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-brand-mid) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.btn-cta {
    background: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    border: 2px solid var(--color-accent);
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 6px 18px rgba(10, 165, 154, 0.22);
}

.btn-cta:hover {
    background: var(--color-white);
    color: var(--color-accent) !important;
    border-color: var(--color-accent);
    box-shadow: 0 10px 28px rgba(10, 165, 154, 0.14);
}

/* ================= HERO ================= */
.hero-full {
    min-height: clamp(420px, 72vh, 640px);
    display: flex;
    align-items: center;
    position: relative;
    background-image: url("../images/header-bg.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(12, 18, 34, 0.88) 0%,
        rgba(19, 74, 155, 0.55) 42%,
        rgba(19, 74, 155, 0.2) 100%
    );
}

.hero-full::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(15, 99, 184, 0.22), transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    padding: 2rem 0;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 0;
}

.hero-content .btn-primary {
    margin-top: 1.75rem !important;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-brand) !important;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #f0f4ff;
    color: var(--color-brand) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

/* ================= SECTIONS ================= */
.section {
    padding: var(--space-section) 0;
    position: relative;
}

.section.bg-light {
    background: linear-gradient(180deg, var(--color-surface) 0%, #eef1f8 100%) !important;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

#about {
    background: var(--color-white);
}

#about h2 {
    font-size: clamp(1.65rem, 3vw, 2.125rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#about .sub {
    color: var(--color-brand-mid);
    margin-bottom: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
}

#about p {
    margin-bottom: 1rem;
    max-width: 36rem;
}

#about .img-fluid {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

#doctor h2.text-center {
    font-size: clamp(1.65rem, 3vw, 2.125rem);
    font-weight: 700;
    margin-bottom: 3rem !important;
    position: relative;
    display: inline-block;
    width: 100%;
}

#doctor h2.text-center::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), rgba(10, 165, 154, 0.35));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.read-more {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

/* ================= DOCTOR CARDS ================= */
.doctor-card {
    background: var(--color-white);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: var(--radius-md);
    height: 100%;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-brand-mid), var(--color-accent));
    border-radius: 4px 0 0 4px;
    opacity: 0.95;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 35, 126, 0.12);
}

.doctor-card h4 {
    color: var(--color-brand);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    padding-left: 0.5rem;
}

.degree {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.65;
    padding-left: 0.5rem;
}

.doctor-card p {
    font-size: 0.9375rem;
    padding-left: 0.5rem;
}

.doctor-card ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 0.5rem;
}

.doctor-card ul li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    color: var(--color-body);
}

.doctor-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand-mid);
    opacity: 0.85;
}

/* ================= SERVICES ================= */
#services {
    background: var(--color-white);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.65rem, 3vw, 2.125rem);
}

#services .text-muted {
    color: var(--color-muted) !important;
    font-size: 1rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), rgba(10, 165, 154, 0.35));
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.service-box {
    background: var(--color-white);
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
    height: 100%;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-box i {
    font-size: 2rem;
    color: var(--color-brand-mid);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, rgba(26, 35, 126, 0.08), rgba(26, 35, 126, 0.03));
}

.service-box h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 35, 126, 0.15);
}

.service-box.advanced {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--color-white);
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.service-box.advanced i {
    font-size: 1.75rem;
    color: var(--color-brand);
    margin-bottom: 1rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(19, 74, 155, 0.12), rgba(10, 165, 154, 0.08));
}

.service-box.advanced h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.service-box.advanced p {
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.service-box.advanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ================= SERVICES DETAILED ================= */
.services-detailed {
    background: linear-gradient(180deg, var(--color-surface) 0%, #e8ecf5 100%);
    border-top: 1px solid var(--color-border);
}

.services-detailed > .container > h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 2.5rem !important;
}

.service-detail-card {
    background: var(--color-white);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}

.service-detail-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

.service-detail-card h4 {
    color: var(--color-brand);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.service-detail-card h6 {
    margin-top: 1.5rem;
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-accent);
    letter-spacing: 0.01em;
}

.service-detail-card p {
    font-size: 0.9375rem;
}

.service-detail-card ul {
    padding-left: 0;
    margin-top: 0.75rem;
    list-style: none;
}

.service-detail-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.service-detail-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-brand-mid);
    font-weight: 700;
    font-size: 0.85rem;
}

.highlight {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--color-ink);
}

/* ================= APPOINTMENT ================= */
.appointment-light {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface) 50%, #e8eaf2 100%);
    padding: var(--space-section) 0;
    position: relative;
}

.appointment-light::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.appointment-light h2 {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.125rem);
    font-weight: 700;
}

.appointment-text {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-body);
}

.form-box {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    background: var(--color-white);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.appointment-form .form-control {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #dce0e8;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.appointment-form .form-control:focus {
    border-color: var(--color-brand-mid);
    box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.12);
}

.form-check-label {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.btn-appointment {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-mid) 100%);
    color: var(--color-white) !important;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.28);
}

.btn-appointment:hover {
    background: var(--color-white);
    color: var(--color-brand) !important;
    border-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.15);
}

/* ================= FOOTER ================= */
.footer-main {
    background: linear-gradient(165deg, #151a3a 0%, #0f1328 55%, #0a0d1a 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: clamp(3rem, 6vw, 4.5rem) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main h5 {
    color: rgba(120, 245, 232, 0.92);
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.98;
}

.footer-main p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
}

.footer-main i {
    color: rgba(120, 245, 232, 0.92);
    opacity: 0.95;
}

.footer-main a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color var(--transition);
    border-bottom: 1px solid transparent;
}

.footer-main a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 183, 77, 0.5);
}

.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    margin-top: 0.25rem;
}

.map-embed iframe {
    display: block;
    vertical-align: middle;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.28);
    padding: 1.1rem 0;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    font-size: 0.8125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0.65rem;
    font-size: 1.125rem;
    transition: color var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    color: rgba(120, 245, 232, 0.95);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-right span {
    color: rgba(120, 245, 232, 0.92);
    font-weight: 600;
}

/* ================= FAB QUICK CONTACT (sticky) ================= */
.fab-contact {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.fab-contact__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.28s,
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-contact.is-open .fab-contact__panel {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-contact__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(12, 18, 34, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-contact__action i {
    font-size: 1.35rem;
    line-height: 1;
}

.fab-contact__action:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(12, 18, 34, 0.25);
}

.fab-contact__action:focus-visible {
    outline: 2px solid var(--color-brand-mid);
    outline-offset: 3px;
}

.fab-contact__action--wa {
    background: linear-gradient(145deg, #2fe066, #25d366);
}

.fab-contact__action--call {
    background: linear-gradient(145deg, var(--color-brand-mid), var(--color-brand));
}

.fab-contact.is-open .fab-contact__action--wa {
    transition-delay: 0.04s;
}

.fab-contact.is-open .fab-contact__action--call {
    transition-delay: 0.08s;
}

.fab-contact__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #37474f, #263238);
    box-shadow: 0 6px 24px rgba(12, 18, 34, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
}

.fab-contact__toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(12, 18, 34, 0.4);
    color: #fff;
}

.fab-contact__toggle:focus-visible {
    outline: 2px solid var(--color-brand-mid);
    outline-offset: 3px;
}

.fab-contact.is-open .fab-contact__toggle {
    background: linear-gradient(145deg, var(--color-accent), var(--color-accent-hover));
}

.fab-contact__toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-contact__toggle-icon i {
    font-size: 1.35rem;
    line-height: 1;
}

.fab-contact__toggle-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.fab-contact.is-open .fab-contact__toggle-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.fab-contact.is-open .fab-contact__toggle-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .custom-navbar .navbar-nav {
        align-items: flex-start !important;
        gap: 0.1rem;
        padding-bottom: 0.5rem;
    }

    .nav-link {
        padding: 0.65rem 0.5rem !important;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .btn-cta.ms-3 {
        margin-left: 0 !important;
        margin-top: 0.75rem;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 1.75rem 0;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 6.2vw, 2.2rem);
    }

    .btn-primary,
    .btn-appointment {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-full {
        background-position: center center;
    }
}

@media (max-width: 575.98px) {
    :root {
        --space-section: clamp(3.25rem, 8vw, 4.5rem);
    }

    .navbar-brand img {
        max-width: 190px;
    }

    .service-box {
        padding: 1.25rem 0.9rem;
    }

    .service-box.advanced p {
        font-size: 0.8rem;
    }
}
