.home-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.section-container,
.hero-container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.section-label,
.hero-label {
    display: inline-block;
    color: var(--primary-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 85% 20%,
            rgba(108, 162, 210, 0.12),
            transparent 28%),
        var(--off-white);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 90px;
    padding: 80px 0 120px;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    margin: 20px 0 26px;
    color: var(--primary);
    font-size: clamp(3.2rem, 5.2vw, 5.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-content h1 span {
    display: block;
    color: var(--text);
}

.hero-doctor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.hero-doctor::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--red);
}

.hero-doctor span {
    color: var(--text-light);
    font-weight: 500;
}

.hero-description {
    max-width: 570px;
    margin: 0;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
}

.hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 15px 24px;
    border-radius: 100px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-primary span {
    font-size: 1.1rem;
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-secondary span {
    transition: transform 0.25s ease;
}

.hero-secondary:hover span {
    transform: translate(3px, -3px);
}

.hero-visual {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    width: min(100%, 650px);
    overflow: hidden;
    border-radius: 100px 100px 35px 35px;
    box-shadow: 0 30px 70px rgba(6, 68, 131, 0.14);
}

.hero-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.hero-orbit {
    position: absolute;
    z-index: 3;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one {
    top: 30px;
    right: 5%;
    width: 35px;
    height: 35px;
    background: var(--red);
}

.orbit-two {
    right: -10px;
    bottom: 110px;
    width: 55px;
    height: 55px;
    background: var(--violet);
}

.orbit-three {
    top: 115px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: var(--orange);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-one {
    width: 420px;
    height: 420px;
    right: -250px;
    top: -200px;
    border: 1px solid rgba(108, 162, 210, 0.3);
}

.hero-shape-two {
    width: 280px;
    height: 280px;
    left: -180px;
    bottom: 20px;
    border: 1px solid rgba(202, 108, 215, 0.2);
}

.hero-shape-three {
    width: 8px;
    height: 8px;
    left: 46%;
    top: 16%;
    background: var(--green);
}

.hero-scroll {
    position: absolute;
    z-index: 5;
    bottom: 30px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.scroll-line {
    position: relative;
    width: 1px;
    height: 38px;
    overflow: hidden;
    background: rgba(6, 68, 131, 0.2);
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 70%;
    background: var(--primary);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(280%);
    }
}

.care-section {
    padding: 120px 0;
    background: var(--white);
}

.section-heading {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr;
    gap: 100px;
    align-items: end;
}

.section-heading h2,
.services-heading h2,
.clinic-heading h2 {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--primary);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading h2 span,
.services-heading h2 span,
.clinic-heading h2 span {
    display: block;
    color: var(--text);
}

.section-heading>p {
    margin: 0 0 6px;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.8;
}

.care-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-top: 90px;
}

.care-line {
    position: absolute;
    top: 53px;
    left: 0;
    right: 0;
    height: 1px;
    background: #dbe4ed;
}

.care-step {
    position: relative;
    z-index: 2;
}

.care-number {
    display: block;
    margin-bottom: 22px;
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 700;
}

.care-dot {
    display: block;
    width: 14px;
    height: 14px;
    margin-bottom: 30px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.care-step:nth-of-type(3) .care-dot {
    background: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.care-step:nth-of-type(4) .care-dot {
    background: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.care-step h3 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 1.25rem;
}

.care-step p {
    max-width: 330px;
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.75;
}

.doctor-section {
    padding: 130px 0;
    background: var(--off-white);
}

.doctor-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.8fr;
    gap: 130px;
    align-items: center;
}

.doctor-visual {
    position: relative;
    min-height: 570px;
}

.doctor-image-main {
    width: 78%;
    height: 510px;
    overflow: hidden;
    border-radius: 32px 100px 32px 32px;
}

.doctor-image-main img,
.doctor-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-image-small {
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 42%;
    height: 260px;
    overflow: hidden;
    border: 10px solid var(--off-white);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(23, 33, 43, 0.12);
}

.doctor-decoration {
    position: absolute;
    top: 30px;
    right: 10%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
}

.doctor-content {
    max-width: 510px;
}

.doctor-content h2 {
    margin: 14px 0 5px;
    color: var(--primary);
    font-size: clamp(2.8rem, 4.5vw, 4.7rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.doctor-content h2 span {
    display: block;
}

.doctor-role {
    margin: 0 0 28px;
    color: var(--red);
    font-size: 0.92rem;
    font-weight: 700;
}

.doctor-content>p:not(.doctor-role) {
    margin: 0 0 30px;
    color: var(--text-light);
    line-height: 1.85;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(6, 68, 131, 0.25);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.text-link span {
    transition: transform 0.25s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.services-home {
    padding: 130px 0;
    background: var(--white);
}

.services-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
}

.service-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 65px;
}

.service-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 340px;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #e3eaf0;
    border-radius: 24px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 25px 60px rgba(6, 68, 131, 0.1);
}

.service-index {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #aab5c0;
    font-size: 0.72rem;
}

.service-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;
    border-radius: 18px;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card h3 {
    width: 100%;
    max-width: 280px;
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.service-card p {
    width: 100%;
    max-width: 310px;
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.service-arrow {
    position: absolute;
    right: 28px;
    bottom: 26px;
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translate(4px, -4px);
}

.service-blue {
    background: rgba(30, 139, 224, 0.1);
    color: var(--blue);
}

.service-red {
    background: rgba(252, 45, 52, 0.1);
    color: var(--red);
}

.service-green {
    background: rgba(23, 198, 22, 0.1);
    color: var(--green);
}

.mobile-service-link {
    display: none;
}

.bayley-home {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background: var(--primary);
}

.bayley-background-text {
    position: absolute;
    left: -25px;
    bottom: -70px;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(10rem, 23vw, 25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.bayley-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 110px;
    align-items: center;
}

.bayley-label {
    color: var(--primary-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.bayley-content h2 {
    margin: 17px 0 28px;
    color: var(--white);
    font-size: clamp(2.6rem, 4.5vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.bayley-content h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
}

.bayley-content>p {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.bayley-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 35px;
}

.bayley-domains span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
}

.bayley-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 14px 22px;
    border-radius: 100px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.bayley-button:hover {
    transform: translateY(-2px);
}

.bayley-visual {
    position: relative;
    min-height: 520px;
}

.bayley-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 450px;
    overflow: hidden;
    border-radius: 100px 30px 30px 30px;
}

.bayley-image img,
.bayley-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bayley-mini-image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 230px;
    overflow: hidden;
    border: 8px solid var(--primary);
    border-radius: 25px;
}

.bayley-circle {
    position: absolute;
    z-index: 4;
    right: -20px;
    bottom: 20px;
    width: 115px;
    height: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    transform: rotate(5deg);
}

.bayley-circle span {
    font-size: 1.7rem;
    font-weight: 700;
}

.bayley-circle small {
    font-size: 0.7rem;
}

.clinic-home {
    padding: 140px 0;
    background: var(--off-white);
}

.clinic-heading {
    max-width: 850px;
    margin-bottom: 65px;
}

.clinic-showcase {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 35px;
    align-items: end;
}

.clinic-main-image {
    position: relative;
    height: 570px;
    display: block;
    overflow: hidden;
    border-radius: 35px;
}

.clinic-main-image img,
.clinic-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.clinic-main-image:hover img {
    transform: scale(1.025);
}

.clinic-image-button {
    position: absolute;
    right: 25px;
    bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 13px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.clinic-small-image {
    height: 310px;
    overflow: hidden;
    border-radius: 28px;
}

.clinic-side p {
    margin: 25px 0;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.75;
}

.home-contact {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--primary-dark);
}

.home-contact-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.light-label {
    color: var(--primary-light);
}

.home-contact h2 {
    max-width: 850px;
    margin: 16px auto 24px;
    color: var(--white);
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.home-contact h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
}

.home-contact p {
    max-width: 590px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.home-contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
}

.home-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 14px 22px;
    border-radius: 100px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.home-phone {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-contact-shape {
    position: absolute;
    top: -320px;
    left: 50%;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translateX(-50%);
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1250px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card:last-child {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1100px) {
    .hero-container {
        gap: 50px;
    }

    .doctor-layout {
        gap: 70px;
    }

    .bayley-layout {
        gap: 60px;
    }
}

@media screen and (max-width: 900px) {
    .home-hero {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 80px 0 110px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-content h1 {
        font-size: clamp(3.3rem, 10vw, 5rem);
    }

    .hero-visual {
        min-height: 500px;
    }

    .hero-image-wrapper {
        width: 90%;
    }

    .hero-scroll {
        display: none;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-heading>p {
        max-width: 600px;
    }

    .care-path {
        gap: 35px;
    }

    .doctor-layout {
        grid-template-columns: 1fr;
    }

    .doctor-visual {
        max-width: 700px;
    }

    .doctor-content {
        max-width: 650px;
    }

    .bayley-layout {
        grid-template-columns: 1fr;
    }

    .bayley-content {
        max-width: 700px;
    }

    .bayley-visual {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .clinic-showcase {
        grid-template-columns: 1fr;
    }

    .clinic-side {
        display: grid;
        grid-template-columns: 0.7fr 1fr;
        gap: 30px;
        align-items: center;
    }

    .clinic-small-image {
        grid-row: 1 / 3;
    }
}

@media screen and (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card,
    .service-card:last-child {
        grid-column: auto;
        width: 100%;
    }
}

@media screen and (max-width: 650px) {
    .hero-container {
        width: 88%;
        padding-top: 55px;
        gap: 45px;
    }

    .hero-content h1 {
        margin-top: 15px;
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .hero-doctor {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hero-doctor::before {
        width: 25px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-image-wrapper {
        width: 100%;
        border-radius: 70px 70px 25px 25px;
    }

    .orbit-one {
        right: -5px;
    }

    .orbit-two {
        width: 40px;
        height: 40px;
    }

    .section-container {
        width: 88%;
    }

    .care-section,
    .doctor-section,
    .services-home,
    .bayley-home,
    .clinic-home,
    .home-contact {
        padding: 90px 0;
    }

    .section-heading h2,
    .services-heading h2,
    .clinic-heading h2 {
        font-size: 2.5rem;
    }

    .care-path {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 55px;
        padding-left: 25px;
    }

    .care-line {
        top: 0;
        bottom: 0;
        left: 5px;
        width: 1px;
        height: auto;
    }

    .care-number {
        margin-bottom: 10px;
    }

    .care-dot {
        position: absolute;
        top: 27px;
        left: -26px;
        margin: 0;
    }

    .doctor-visual {
        min-height: 430px;
    }

    .doctor-image-main {
        width: 88%;
        height: 390px;
        border-radius: 25px 70px 25px 25px;
    }

    .doctor-image-small {
        width: 48%;
        height: 190px;
    }

    .doctor-content h2 {
        font-size: 3rem;
    }

    .services-heading {
        align-items: flex-start;
    }

    .desktop-service-link {
        display: none;
    }

    .mobile-service-link {
        display: inline-flex;
        margin-top: 30px;
    }

    .service-grid {
        margin-top: 45px;
    }

    .service-card {
        min-height: 300px;
    }

    .bayley-content h2 {
        font-size: 2.8rem;
    }

    .bayley-visual {
        min-height: 400px;
    }

    .bayley-image {
        width: 90%;
        height: 340px;
    }

    .bayley-mini-image {
        width: 43%;
        height: 170px;
    }

    .bayley-circle {
        right: 0;
        width: 95px;
        height: 95px;
    }

    .clinic-main-image {
        height: 400px;
    }

    .clinic-side {
        display: block;
    }

    .clinic-small-image {
        height: 240px;
    }

    .home-contact h2 {
        font-size: 2.8rem;
    }

    .home-contact-actions {
        flex-direction: column;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-line::after {
        animation: none;
    }

    .hero-image-wrapper img,
    .clinic-main-image img {
        transition: none;
    }
}