﻿@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

:root {
    --navy: #123968;
    --navy-dark: #0b2a50;
    --teal: #12b5aa;
    --teal-dark: #07998f;
    --pale-blue: #effbfd;
    --blue-border: #cfe4ed;
    --text-muted: #5c7695;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(18, 57, 104, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy);
    background: var(--white);
    font-family: "Open Sans", Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

.site-header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 16px clamp(24px, 7vw, 104px);
    border-bottom: 1px solid var(--blue-border);
    background: var(--white);
}

.brand {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

    .brand span {
        color: var(--navy);
    }

    .brand strong,
    .brand b {
        color: var(--teal);
    }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.2vw, 34px);
    color: #263b55;
    font-size: 16px;
}

    .main-nav a:hover {
        color: var(--teal-dark);
    }

.login-button,
.primary-button,
.appointment-link {
    color: var(--white);
    background: var(--teal);
    border-radius: 10px;
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease;
}

.login-button {
    padding: 14px 19px;
    white-space: nowrap;
}

    .login-button:hover,
    .primary-button:hover,
    .appointment-link:hover {
        color: var(--white);
        background: var(--teal-dark);
        transform: translateY(-1px);
    }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    min-height: 585px;
    padding: 74px clamp(24px, 8vw, 158px);
    background: var(--pale-blue);
}

    .hero h1 {
        max-width: 620px;
        margin: 0 0 24px;
        color: var(--navy);
        font-size: clamp(54px, 6vw, 92px);
        line-height: 1.08;
        letter-spacing: -3px;
    }

    .hero p {
        max-width: 650px;
        margin: 0 0 32px;
        color: var(--text-muted);
        font-size: clamp(18px, 1.6vw, 25px);
        line-height: 1.65;
    }

.hero-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 18px;
}

.primary-button,
.secondary-button,
.appointment-link {
    min-height: 62px;
    padding: 0 26px;
    font-size: 19px;
}

.secondary-button {
    color: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 10px;
    background: var(--white);
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease;
}

    .secondary-button:hover {
        color: var(--navy);
        background: #e8f7f8;
        transform: translateY(-1px);
    }

/*
      Equal-size hero buttons.
      Both buttons use the same fixed width, height, alignment and spacing.
    */
.hero-actions .appointment-link,
.hero-actions .secondary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 270px !important;
    min-width: 270px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 20px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.hero-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 30px;
    background: #dff3f6;
    box-shadow: var(--shadow);
}

    .hero-visual img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 430px;
        object-fit: cover;
    }

.image-badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    max-width: 210px;
    padding: 12px 15px;
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 700;
}

.content-section {
    padding: 40px clamp(24px, 6vw, 110px);
}

.plan-finder {
    margin-top: -4px;
    padding: 32px;
    border: 1px solid var(--blue-border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

    .section-heading h2 {
        margin: 0;
        font-size: clamp(25px, 3vw, 35px);
    }

    .section-heading a {
        color: var(--teal-dark);
        font-weight: 700;
        text-decoration: underline;
    }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 54px;
    padding: 0 15px;
    border: 1px solid var(--blue-border);
    border-radius: 9px;
    color: #102d50;
    background: var(--white);
    font-weight: 600;
}

.filter-grid .primary-button {
    min-height: 54px;
    padding: 0 24px;
    white-space: nowrap;
}

.status-text {
    min-height: 20px;
    margin: 15px 0 0;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 700;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 8px;
}

.plan-card {
    padding: 24px;
    border: 1px solid var(--blue-border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 5px 16px rgba(18, 57, 104, 0.06);
}

    .plan-card h3 {
        margin: 0 0 12px;
        font-size: 20px;
    }

    .plan-card p {
        min-height: 52px;
        margin: 0 0 20px;
        color: var(--text-muted);
        line-height: 1.5;
    }

.plan-price {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 25px;
    font-weight: 800;
}

.plan-link {
    color: var(--teal-dark);
    font-weight: 700;
}

.support-strip {
    margin-top: 8px;
    padding: 26px;
    border-radius: 16px;
    color: var(--navy);
    background: #f4fbfc;
    text-align: center;
}

.quick-actions {
    position: fixed;
    z-index: 10;
    top: 50%;
    right: clamp(18px, 2.5vw, 42px);
    display: grid;
    width: 74px;
    overflow: hidden;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 18px;
    background: rgba(18, 181, 170, 0.88);
    box-shadow: 0 12px 28px rgba(18, 57, 104, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.quick-action {
    display: grid;
    min-height: 64px;
    place-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--white);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 700;
    transition: background 180ms ease;
}

    .quick-action:last-child {
        border-bottom: 0;
    }

    .quick-action:hover {
        background: rgba(7, 153, 143, 0.88);
    }

    .quick-action svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

.whatsapp-icon {
    fill: currentColor !important;
    stroke: none !important;
}

.appointment-screen {
    min-height: 100vh;
    padding: 42px 24px 70px;
    background: var(--pale-blue);
}

.appointment-panel {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--blue-border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.back-button {
    margin-bottom: 25px;
    color: var(--teal-dark);
    background: transparent;
    font-weight: 700;
}

.appointment-panel h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 52px);
}

.appointment-panel > p {
    margin: 0 0 30px;
    color: var(--text-muted);
}

.appointment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

    .appointment-form .field.full-width {
        grid-column: 1 / -1;
    }

.submit-appointment {
    grid-column: 1 / -1;
    min-height: 56px;
    margin-top: 8px;
    font-size: 17px;
}

.confirmation {
    margin-top: 22px;
    padding: 18px;
    border-radius: 12px;
    color: #146344;
    background: #e9f8ef;
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.appointment-mode #homeScreen,
body.appointment-mode .quick-actions {
    display: none !important;
}

body.appointment-mode #appointmentScreen {
    display: block !important;
}

@media (max-width: 1050px) {
    .site-header {
        gap: 16px;
    }

    .main-nav {
        gap: 15px;
        font-size: 14px;
    }

    .hero {
        grid-template-columns: 1fr 0.9fr;
        padding-inline: 7vw;
    }

    .filter-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

        .filter-grid .primary-button {
            grid-column: span 3;
        }
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 56px;
    }

        .hero h1 {
            font-size: clamp(48px, 14vw, 70px);
            letter-spacing: -2px;
        }

    .hero-visual {
        min-height: 320px;
    }

        .hero-visual img {
            min-height: 320px;
        }

    .filter-grid,
    .plans-grid,
    .appointment-form {
        grid-template-columns: 1fr;
    }

        .filter-grid .primary-button,
        .appointment-form .field.full-width,
        .submit-appointment {
            grid-column: auto;
        }

    .hero-actions .appointment-link,
    .hero-actions .secondary-button {
        width: 100% !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
    }

    .quick-actions {
        top: auto;
        right: 50%;
        bottom: 16px;
        width: min(300px, calc(100vw - 32px));
        grid-template-columns: repeat(3, 1fr);
        transform: translateX(50%);
        border-radius: 16px;
    }

    .quick-action {
        min-height: 60px;
    }
}
