/*
Theme Name: Eleva DPC Coming Soon
Theme URI: https://elevadpc.com
Author: Eleva DPC
Description: Centered bilingual coming-soon theme for Eleva Direct Primary Care.
Version: 1.4.0
*/

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

* {
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0a2d57;
    --navy-deep: #061f3e;
    --teal: #16766c;
    --teal-dark: #105e57;
    --gold: #a78348;
    --white: #ffffff;
    --text: #243136;
    --muted: #5f6b6e;
    --line: rgba(22, 118, 108, 0.2);
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --shadow: 0 20px 55px rgba(10, 45, 87, 0.12);
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5faf9;
    background-image:
        radial-gradient(circle at 12% 10%, rgba(22, 118, 108, 0.16), transparent 31rem),
        radial-gradient(circle at 88% 7%, rgba(167, 131, 72, 0.16), transparent 28rem),
        linear-gradient(145deg, #f9fcfc 0%, #eef7f5 47%, #f8f4ec 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    position: fixed;
    z-index: -1;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

body::before {
    top: -18rem;
    left: 50%;
    width: 48rem;
    height: 48rem;
    transform: translateX(-50%);
    border: 1px solid rgba(22, 118, 108, 0.12);
    box-shadow:
        0 0 0 5rem rgba(255, 255, 255, 0.14),
        0 0 0 10rem rgba(167, 131, 72, 0.035);
}

body::after {
    right: -12rem;
    bottom: -18rem;
    width: 36rem;
    height: 36rem;
    background: rgba(22, 118, 108, 0.055);
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Language selector */
.top {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 16px 6px;
}

.lang {
    display: inline-flex;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 28px rgba(10, 45, 87, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lang button {
    min-width: 92px;
    padding: 10px 19px;
    border: 0;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang button:hover:not(.active) {
    background: rgba(22, 118, 108, 0.08);
}

.lang button.active {
    color: var(--white);
    background: var(--teal);
}

.lang button:focus-visible,
.submit:focus-visible,
.contact-line a:focus-visible {
    outline: 3px solid rgba(167, 131, 72, 0.5);
    outline-offset: 3px;
}

/* Main centered column */
main {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 12px 20px 40px;
}

.card {
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.logo {
    display: block;
    width: clamp(260px, 45vw, 520px);
    max-width: 100%;
    height: auto;
    margin: 6px auto 18px;
    filter: drop-shadow(0 14px 22px rgba(10, 45, 87, 0.11));
}

.eleva-word-gold {
    color: var(--gold);
}

/* Pronunciation */
.eleva-pronunciation-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
}

.eleva-pronunciation-row .pronunciation-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    white-space: nowrap;
}

.pronunciation-button .audio-icon {
    font-size: 14px;
}

.pronunciation-button .pronunciation-name {
    font-weight: 700;
}

.pronunciation-button .pronunciation-phonetic {
    font-size: 0.92em;
    font-style: italic;
    opacity: 0.92;
}

/* Shared centered panels */
.headline,
.intro,
.bilingual,
.benefits,
.coming,
.signup {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.headline {
    max-width: 960px;
    margin-bottom: 16px;
    padding: 20px clamp(18px, 4vw, 44px);
    border-radius: 24px;
    color: var(--teal-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.08;
}

.divider {
    width: min(300px, 70%);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 18px;
}

.divider::before,
.divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--gold);
}

.divider span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.intro,
.bilingual {
    max-width: 880px;
    padding: 16px clamp(18px, 4vw, 38px);
    border-radius: 18px;
}

.intro {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.65;
}

.bilingual {
    margin-bottom: 24px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.55;
}

/* Benefits */
.benefits {
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    padding: 18px 14px;
    border-radius: 24px;
}

.benefit {
    min-width: 0;
    padding: 12px 16px;
    text-align: center;
}

.benefit + .benefit {
    border-left: 1px solid rgba(167, 131, 72, 0.27);
}

.icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon .gold {
    stroke: var(--gold);
}

.benefit h3 {
    margin-bottom: 7px;
    color: var(--teal-dark);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.benefit p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* Coming soon */
.coming {
    max-width: 960px;
    margin-bottom: 20px;
    padding: 14px 24px;
    border-radius: 999px;
    color: var(--teal);
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: clamp(3px, 0.55vw, 6px);
    text-transform: uppercase;
}

/* Signup */
.signup {
    max-width: 820px;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 26px;
}

.signup h2 {
    margin-bottom: 8px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 4vw, 34px);
    font-weight: 400;
    text-align: center;
}

.signup > p {
    max-width: 650px;
    margin: 0 auto 20px;
    color: #4f6064;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.contact-line {
    margin: -2px auto 22px !important;
    color: var(--navy) !important;
}

.contact-line strong {
    font-weight: 600;
}

.contact-line a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.contact-line a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Form functionality/layout */
.form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto;
    text-align: left;
}

.field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid rgba(22, 118, 108, 0.28);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: var(--surface-strong);
}

.field input:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(22, 118, 108, 0.1);
}

.consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.submit {
    grid-column: 1 / -1;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--teal);
    box-shadow: 0 9px 24px rgba(22, 118, 108, 0.2);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.submit:hover {
    transform: translateY(-1px);
    background: var(--teal-dark);
    box-shadow: 0 12px 28px rgba(22, 118, 108, 0.25);
}

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

.status {
    display: none;
    margin-top: 14px;
    padding: 13px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
}

.success {
    border: 1px solid rgba(22, 118, 108, 0.18);
    color: var(--teal-dark);
    background: rgba(237, 247, 245, 0.95);
}

.error {
    border: 1px solid #efcccc;
    color: #8b3535;
    background: rgba(255, 242, 242, 0.95);
}

.privacy {
    margin: 11px auto 0 !important;
    color: #677478 !important;
    font-size: 11px !important;
}

.footer {
    width: 100%;
    padding: 18px 16px 24px;
    color: rgba(10, 45, 87, 0.7);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 820px) {
    .benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit + .benefit {
        border-left: 0;
    }

    .benefit:nth-child(even) {
        border-left: 1px solid rgba(167, 131, 72, 0.27);
    }

    .benefit:nth-child(n + 3) {
        border-top: 1px solid rgba(167, 131, 72, 0.27);
    }
}

@media (max-width: 560px) {
    body {
        background-attachment: scroll;
    }

    .top {
        padding-top: 14px;
    }

    .lang button {
        min-width: 84px;
        padding: 9px 14px;
        font-size: 13px;
    }

    main {
        padding: 8px 12px 26px;
    }

    .logo {
        width: min(88vw, 390px);
        margin-bottom: 14px;
    }

    .headline {
        padding: 17px 14px;
        border-radius: 19px;
        font-size: clamp(34px, 10vw, 44px);
    }

    .intro,
    .bilingual {
        padding: 15px 14px;
    }

    .intro {
        font-size: 15px;
    }

    .benefits {
        display: block;
        padding: 8px 14px;
    }

    .benefit,
    .benefit:nth-child(even),
    .benefit:nth-child(n + 3) {
        padding: 17px 6px;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(167, 131, 72, 0.24);
        border-left: 0;
    }

    .benefit:last-child {
        border-bottom: 0;
    }

    .coming {
        padding: 13px 12px;
        font-size: 25px;
        letter-spacing: 3px;
    }

    .signup {
        padding: 22px 15px;
        border-radius: 21px;
    }

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

    .field.full,
    .consent,
    .submit {
        grid-column: 1;
    }

    .eleva-pronunciation-row .submit {
        width: auto;
        max-width: 100%;
        padding: 10px 15px;
        letter-spacing: 1px;
    }
}

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

    .submit,
    .lang button {
        transition: none;
    }
}
