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

:root {
    --header-height: 72px;
    --header-height-mobile: 64px;
    --primary: #087fd0;
    --primary-dark: #0875c9;
    --accent: #f21b91;
    --bg: #eefaff;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 4px 14px rgba(40, 155, 210, 0.12);
    --radius: 18px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height-mobile) + 12px);
}

section[id] {
    scroll-margin-top: calc(var(--header-height-mobile) + 12px);
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--bg);
    color: var(--primary-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    height: var(--header-height-mobile);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(7, 84, 154, 0.06);
    box-shadow: 0 3px 16px rgba(7, 84, 154, 0.08);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        background 0.35s ease;
    will-change: transform;
}

.header.scrolled {
    box-shadow: 0 6px 24px rgba(7, 84, 154, 0.12);
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(7, 84, 154, 0.14);
}

.header.hidden {
    transform: translateY(-120%);
}

.header-inner {
    width: 92%;
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: auto;
    flex-shrink: 0;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    margin-left: 8px;
    font-size: 13px;
    line-height: 12px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.brand-text div:nth-child(2) {
    color: var(--accent);
}

.brand-text small {
    display: block;
    font-size: 7px;
    line-height: 7px;
    text-align: center;
    color: var(--primary-dark);
    letter-spacing: 1px;
    font-weight: 700;
}

/* Navigation */
.navigation {
    display: none;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

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

/* Mobile menu toggle */
.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(7, 84, 154, 0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
    flex-shrink: 0;
}

.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.menu-toggle .bar + .bar {
    margin-top: 5px;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Login button */
.login-btn {
    width: 130px;
    height: 36px;
    border-radius: 22px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header .login-btn {
    display: none;
}

.login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* Hero */
.hero {
    width: 100%;
    position: relative;
    line-height: 0;
    overflow: visible;
    isolation: isolate;
    background: #bfeaf7;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.hero-buttons {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    line-height: normal;
    z-index: 5;
    width: 92%;
    max-width: 420px;
    margin: 12px auto 4px;
}

.hero-btn {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appointment-btn {
    width: auto;
    padding: 0 18px;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.learn-btn {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 84, 154, 0.18);
}

.arrow {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

/* Icon section */
.icon-section {
    width: 94%;
    max-width: 1200px;
    min-height: 110px;
    margin: 16px auto;
    padding: 14px 12px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
}

.icon-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.icon-item + .icon-item {
    border-left: none;
}

.icon-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.health-condition-item {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 10px;
    padding: 8px 6px;
}

/* Content wrapper */
.content-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f5fcff;
    background-image: url("/images/home/bg3.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/* About section */
.about-section {
    width: 100%;
    min-height: 260px;
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-direction: column;
}

.about-left {
    width: 100%;
    min-width: 0;
    height: auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 1;
}

.health-decoration {
    width: 150px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.health-subtitle {
    margin: 4px 0 0;
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
    width: 100%;
    max-width: 220px;
}

.about-main {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 3;
    order: 2;
    flex-direction: column;
    text-align: center;
}

.about-photo {
    width: 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 0;
    color: var(--primary-dark);
}

.about-text h2 {
    margin: 0 0 9px;
    color: var(--primary-dark);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.about-text p {
    margin: 0;
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 100%;
}

.about-features {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 14px 16px;
    background: rgba(225, 247, 255, 0.88);
    border-radius: 15px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    order: 3;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
}

.feature-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-item h3 {
    margin: 0 0 3px;
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.feature-item p {
    margin: 0;
    color: var(--primary-dark);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
}

.blank-section {
    width: 100%;
    height: 260px;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Services section */
.services-section {
    width: 92%;
    max-width: 1200px;
    margin: 24px auto 22px;
    padding: 24px 26px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid #d9edf7;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 3;
}

.services-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 20px;
}

.services-header .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.services-header h2 {
    margin: 0;
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
}

.services-header h2 span {
    font-size: 26px;
}

.services-header h1 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
}

.services-header p {
    margin-top: 4px;
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.hassle-img {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-top: 8px;
    margin-left: 0;
    align-self: center;
}

.services-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
    margin-top: 4px;
}

.service-card {
    min-height: 210px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #d8eef8;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(40, 155, 210, 0.14);
}

.general-card { border-color: #f7b5dc; }
.laboratory-card { border-color: #b9e6f8; }
.procedure-card { border-color: #f7b5dc; }

.service-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-title img {
    width: 64px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-title h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 800;
    margin-left: -6px;
}

.service-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-card li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 16px;
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

/* Contact section */
.contact-section {
    width: 92%;
    max-width: 1200px;
    margin: 22px auto 28px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius);
    border: 1px solid #d9edf7;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 3;
}

.contact-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
}

.contact-info h2 {
    position: static;
    margin: 0;
    color: var(--primary-dark);
    font-size: 26px;
    font-weight: 800;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
}

.contact-item img {
    width: 56px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    word-break: break-word;
}

.contact-message {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-message img {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-left: 0;
}

.map-area {
    width: 100%;
    height: 200px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #dbeaf0;
}

.clinic-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.find-us-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 110px;
    height: 36px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.find-us-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 84, 154, 0.16);
}

.find-us-btn span {
    font-size: 11px;
}

/* Footer */
.footer {
    width: 100%;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    background-color: #07549a;
    background-image: url("/images/home/footerbg.jpeg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    color: white;
    z-index: 5;
}

.footer-content {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 26px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-brand {
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    margin-left: 0;
    text-align: left;
}

.footer-brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-top: 0;
}

.footer-brand-text {
    margin-left: 8px;
    margin-top: 0;
    font-size: 14px;
    line-height: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
    text-align: left;
}

.footer-brand-text div:nth-child(2) {
    color: var(--accent);
}

.footer-brand-text small {
    display: block;
    font-size: 8px;
    line-height: 10px;
    text-align: left;
    color: var(--primary-dark);
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    white-space: nowrap;
    padding-top: 0;
    margin-left: 0;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-navigation a:hover {
    color: var(--accent);
}

.footer-navigation span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.footer-hours {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0;
    position: static;
    left: auto;
    flex-direction: row;
    justify-content: center;
    text-align: left;
}

.footer-hours img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0;
}

.footer-hours h3 {
    margin: 0 0 3px;
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.footer-hours p {
    margin: 1px 0;
    color: white;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
}

.footer-contact {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 0;
    position: static;
    left: auto;
    align-items: flex-start;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.footer-contact-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-contact-item p {
    margin: 0;
    color: white;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
}

.footer-bottom {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 14px 0;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    margin: 0;
    color: white;
    font-size: 11px;
    font-weight: 400;
    text-align: center;
}

/* Appointment popover */
.appointment-action {
    position: relative;
    display: flex;
    width: 100%;
    line-height: normal;
    z-index: 20;
}

.appointment-btn {
    cursor: pointer;
    font-family: 'Poppins', Arial, sans-serif;
    width: 100%;
}

.appointment-popover {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    width: 100%;
    max-width: none;
    padding: 18px;
    border: 1px solid #d9edf7;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 38px rgba(7, 84, 154, 0.22);
    color: var(--primary-dark);
    line-height: 1.4;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transform-origin: top center;
    will-change: transform, opacity;
}

.appointment-popover:not([hidden]) {
    animation: appointment-popover-mobile-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
    pointer-events: auto;
}

.appointment-popover[hidden] {
    display: none !important;
}

.appointment-popover::before {
    content: "";
    position: absolute;
    left: 24px;
    top: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #d9edf7;
    border-top: 1px solid #d9edf7;
    transform: rotate(45deg);
}

@keyframes appointment-popover-mobile-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-heading {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.appointment-popover > p {
    margin: 5px 0 15px;
    color: #64869b;
    font-size: 11px;
    line-height: 1.5;
}

.popover-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    border: 1px solid #e0f0f7;
    border-radius: 12px;
    color: var(--primary-dark);
    text-decoration: none;
    background: #f7fcff;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.popover-option + .popover-option {
    margin-top: 8px;
}

.popover-option:hover,
.popover-option:focus-visible {
    border-color: #f5a5d2;
    background: #fff5fb;
    transform: translateX(2px);
    outline: none;
}

.popover-option-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--primary);
    font-size: 18px;
    font-weight: 600;
}

.popover-option-icon.signup-icon {
    background: var(--accent);
}

.popover-option strong,
.popover-option small {
    display: block;
}

.popover-option strong {
    font-size: 12px;
    font-weight: 800;
}

.popover-option small {
    margin-top: 2px;
    color: #64869b;
    font-size: 10px;
}

.popover-chevron {
    margin-left: auto;
    color: var(--accent);
    font-size: 23px;
    line-height: 1;
}

@keyframes appointment-popover-in {
    from { opacity: 0; transform: translateX(-14px) translateY(-50%) scale(0.97); }
    to { opacity: 1; transform: translateX(0) translateY(-50%) scale(1); }
}

/* Mobile navigation overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    padding: calc(var(--header-height-mobile) + 10px) 24px 30px;
    box-shadow: -4px 0 20px rgba(7, 84, 154, 0.08);
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 4px;
}

.mobile-nav .mobile-brand {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.mobile-nav .mobile-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.mobile-nav .mobile-brand-text {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

.mobile-nav .mobile-brand-text div:nth-child(2) {
    color: var(--accent);
}

.mobile-nav .mobile-brand-text small {
    display: block;
    font-size: 7px;
    margin-top: 2px;
    color: var(--primary-dark);
    font-weight: 700;
}

.mobile-nav .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px;
}

.mobile-nav .mobile-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.mobile-nav .mobile-links a:hover,
.mobile-nav .mobile-links a.active {
    background: #f0f8ff;
    color: var(--accent);
}

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

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 84, 154, 0.25);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============ Tablet & Desktop ============ */
@media (min-width: 901px) {
    html {
        scroll-padding-top: calc(var(--header-height) + 12px);
    }

    section[id] {
        scroll-margin-top: calc(var(--header-height) + 12px);
    }

    .header {
        height: var(--header-height);
    }

    .header-inner {
        width: 90%;
    }

    .brand {
        width: auto;
    }

    .brand img {
        width: 54px;
        height: 54px;
    }

    .brand-text {
        font-size: 15px;
        line-height: 13px;
    }

    .brand-text small {
        font-size: 8px;
        line-height: 8px;
    }

    .navigation {
        display: flex;
        gap: 34px;
    }

    .nav-link {
        font-size: 15px;
        padding: 0;
    }

    .login-btn {
        width: 150px;
        height: 40px;
        font-size: 12px;
    }

    .header .login-btn {
        display: flex;
    }

    .menu-toggle {
        display: none !important;
    }

    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }

    .appointment-action {
        display: inline-flex;
        width: auto;
    }

    .appointment-btn {
        width: 190px;
    }

    .appointment-popover {
        left: calc(100% + 14px);
        right: auto;
        top: 50%;
        width: 290px;
        max-width: calc(100vw - 32px);
        transform: translateX(-14px) translateY(-50%) scale(0.97);
        transform-origin: center left;
        animation: none;
    }

    .appointment-popover:not([hidden]) {
        animation: appointment-popover-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .appointment-popover::before {
        left: -7px;
        top: 25px;
        border-top: none;
        border-left: 1px solid #d9edf7;
        border-bottom: 1px solid #d9edf7;
    }

    .hero-buttons {
        position: absolute;
        left: 8.5%;
        top: 77%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 13px;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .hero-btn {
        width: 165px;
        height: 42px;
        font-size: 12px;
        gap: 9px;
    }

    .appointment-btn {
        width: 190px;
    }

    .arrow {
        font-size: 17px;
    }

    .icon-section {
        width: 94%;
        min-height: 120px;
        margin: 18px auto;
        padding: 18px 22px;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0;
    }

    .icon-item {
        flex: 1;
        min-width: 0;
        flex-direction: row;
        font-size: 12px;
        line-height: 16px;
        text-align: left;
        padding: 0 15px;
        gap: 13px;
    }

    .icon-item + .icon-item {
        border-left: 1px solid #d9edf7;
    }

    .icon-item img {
        width: 50px;
        height: 50px;
    }

    .health-condition-item {
        flex: 1.3;
        grid-column: auto;
        padding-left: 20px;
        padding-right: 8px;
        text-align: left;
    }

    .about-section {
        flex-direction: row;
        min-height: 280px;
        padding: 22px 5.5%;
        gap: 28px;
        transform: translateY(-6px);
    }

    .about-left {
        width: 195px;
        min-width: 195px;
        height: 250px;
        order: 1;
    }

    .health-decoration {
        width: 180px;
        max-height: 195px;
    }

    .health-subtitle {
        order: 3;
        margin: 2px 0 0 22px;
        width: 140px;
        font-size: 14px;
    }

    .about-main {
        width: 56%;
        max-width: 760px;
        order: 2;
        flex-direction: row;
        text-align: left;
    }

    .about-photo {
        width: 275px;
        min-width: 275px;
    }

    .about-photo img {
        width: 275px;
        height: 275px;
        aspect-ratio: auto;
    }

    .about-text h2 {
        font-size: 18px;
    }

    .about-text p {
        max-width: 440px;
    }

    .about-features {
        width: 305px;
        min-width: 305px;
        height: 240px;
        order: 4;
    }

    .blank-section {
        height: 330px;
    }

    .services-section {
        width: 92%;
        margin: 28px auto 25px;
        padding: 30px 35px;
    }

    .services-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 25px;
    }

    .services-header .header-row {
        display: contents;
    }

    .services-header h1 {
        font-size: 34px;
        line-height: 1.05;
        margin-top: -10px;
    }

    .services-header p {
        font-size: 14px;
    }

    .hassle-img {
        width: 240px;
        margin-top: 5px;
        margin-left: -28px;
    }

    .services-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: -10px;
    }

    .service-card {
        min-height: 235px;
        padding: 20px 22px;
    }

    .service-card:hover {
        transform: translateY(-3px);
    }

    .service-title img {
        width: 80px;
        height: 70px;
    }

    .service-title h3 {
        font-size: 17px;
        margin-left: -10px;
    }

    .service-card li {
        font-size: 14px;
    }

    .contact-section {
        width: 92%;
        margin: 25px auto;
        padding: 25px 35px;
    }

    .contact-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
    }

    .contact-info {
        width: 34%;
        margin-top: 20px;
    }

    .contact-info h2 {
        position: absolute;
        margin-top: -125px;
        font-size: 30px;
    }

    .contact-item img {
        width: 80px;
        height: 100px;
    }

    .contact-item p {
        margin: 3px 0 3px -10px;
        font-size: 13px;
    }

    .contact-message {
        width: 25%;
    }

    .contact-message img {
        width: 220px;
        margin-left: -30px;
    }

    .map-area {
        width: 42%;
        height: 120px;
    }

    .find-us-btn {
        right: 10px;
        top: 10px;
        width: 105px;
        height: 34px;
        font-size: 10px;
    }

    .find-us-btn span {
        font-size: 11px;
    }

    .footer {
        min-height: 235px;
        background-size: 100% auto;
    }

    .footer-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        height: 115px;
        padding: 15px 25px 5px;
        gap: 18px;
        text-align: left;
    }

    .footer-brand {
        width: 230px;
        min-width: 230px;
        margin-left: -25px;
        text-align: left;
    }

    .footer-brand img {
        width: 80px;
        height: 80px;
        margin-top: 90px;
    }

    .footer-brand-text {
        margin-left: 8px;
        margin-top: 90px;
        font-size: 15px;
        line-height: 15px;
        text-align: left;
    }

    .footer-brand-text small {
        text-align: center;
    }

    .footer-navigation {
        gap: 10px;
        padding-top: 120px;
        margin-left: -75px;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .footer-navigation a {
        font-size: 13px;
    }

    .footer-navigation span {
        font-size: 12px;
    }

    .footer-hours {
        min-width: 185px;
        padding-top: 105px;
        position: relative;
        left: -65px;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .footer-hours img {
        width: 42px;
        height: 42px;
        margin-top: -25px;
    }

    .footer-hours h3 {
        font-size: 13px;
    }

    .footer-hours p {
        font-size: 11px;
    }

    .footer-contact {
        min-width: 230px;
        padding-top: 100px;
        position: relative;
        left: -130px;
        align-items: flex-start;
    }

    .footer-contact-item img {
        width: 39px;
        height: 39px;
    }

    .footer-contact-item p {
        font-size: 11px;
    }

    .footer-bottom {
        height: 35px;
        padding-bottom: 0;
        margin-top: 75px;
        border-top: none;
    }

    .footer-bottom p {
        font-size: 10px;
    }
}

@media (min-width: 1201px) {
    .services-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .header,
    .nav-link,
    .login-btn,
    .hero-btn,
    .service-card,
    .find-us-btn,
    .popover-option,
    .mobile-nav {
        transition: none !important;
        animation: none !important;
    }

    .appointment-popover,
    .appointment-popover:not([hidden]),
    .popover-option {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .header.hidden {
        transform: none;
    }
}
