/* ------------------------------
   COLOR PALETTE
------------------------------ */

:root {
    --navy: #010938;
    --ice: #E8EFFC;
    --deep-purple: #45157D;
    --purple: #6549AF;
    --blue: #3148B0;
    --white: #FFFFFF;
}


/* ------------------------------
   GENERAL PAGE SETTINGS
------------------------------ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--ice);
    color: var(--navy);
    line-height: 1.65;
}

h2,
h3 {
    color: var(--deep-purple);
}

h2 {
    margin-top: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

a {
    color: var(--blue);
}


/* ------------------------------
   HEADER / BRAND
------------------------------ */

header {
    background-color: var(--navy);
    padding: 22px 20px 18px;
    text-align: center;
    border-bottom: 4px solid var(--blue);
}

.site-title {
    margin: 0 0 14px;
    font-family: Garamond, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: 1;
    color: var(--ice);
    letter-spacing: 0.01em;
}

.brand-strong {
    font-weight: 700;
}

.brand-health {
    font-weight: 400;
}


/* ------------------------------
   NAVIGATION
------------------------------ */

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
}

nav a {
    text-decoration: none;
    color: var(--ice);
    font-weight: 700;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a:focus-visible {
    color: var(--white);
    border-bottom-color: var(--purple);
}


/* ------------------------------
   MAIN CONTENT
------------------------------ */

main {
    max-width: 980px;
    margin: 42px auto;
    padding: 0 22px;
}

section {
    background-color: var(--white);
    padding: clamp(26px, 5vw, 48px);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(1, 9, 56, 0.08);
}


/* ------------------------------
   HOMEPAGE
------------------------------ */

.mission-section {
    background: linear-gradient(135deg, var(--navy), var(--deep-purple));
    color: var(--ice);
    padding-top: clamp(42px, 7vw, 72px);
    padding-bottom: clamp(42px, 7vw, 72px);
}

.mission-section h2 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 18px;
}

.mission-description {
    max-width: 720px;
    font-size: 1.12rem;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--ice);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.doctor-section {
    overflow: auto;
}

.doctor-bio {
    font-size: 1.03rem;
}

.doctor-photo {
    width: 230px;
    max-width: 42%;
    float: left;
    margin: 4px 26px 14px 0;
    border-radius: 14px;
    border: 4px solid var(--ice);
    box-shadow: 0 8px 22px rgba(1, 9, 56, 0.14);
}


/* ------------------------------
   RESOURCE CARDS
------------------------------ */

.resource-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 24px;
    padding: 24px;
    background-color: var(--ice);
    border: 1px solid rgba(49, 72, 176, 0.22);
    border-left: 6px solid var(--blue);
    border-radius: 12px;
}

.resource-card-body {
    flex: 1;
    min-width: 0;
}

.resource-card-image {
    width: 180px;
    height: 125px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(1, 9, 56, 0.14);
}


/* ------------------------------
   FAQS
------------------------------ */

.faq-section {
    background-color: var(--white);
}

.faq-item {
    border: 1px solid rgba(49, 72, 176, 0.28);
    border-radius: 10px;
    margin: 14px 0;
    overflow: hidden;
    background-color: var(--ice);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    color: var(--navy);
    font-weight: 700;
    position: relative;
    padding-right: 52px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    font-size: 1.6rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0;
    padding: 0 20px 20px;
}


/* ------------------------------
   BUTTONS
------------------------------ */

.button {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 10px;
    background-color: var(--deep-purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover,
.button:focus-visible {
    background-color: var(--purple);
    transform: translateY(-1px);
}

.mission-section .button {
    background-color: var(--ice);
    color: var(--navy);
}

.mission-section .button:hover,
.mission-section .button:focus-visible {
    background-color: var(--white);
}

.secondary-button {
    display: inline-block;
    padding: 11px 18px;
    margin: 10px 0 0 10px;
    color: var(--deep-purple);
    background-color: transparent;
    border: 2px solid var(--purple);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}


/* ------------------------------
   SURVEY SHARE SECTION
------------------------------ */

.share-survey {
    text-align: center;
}

.share-survey p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.survey-qr {
    display: block;
    width: 190px;
    max-width: 70%;
    height: auto;
    margin: 24px auto 14px;
    padding: 10px;
    background-color: var(--white);
    border: 3px solid var(--blue);
    border-radius: 12px;
}

.share-status {
    min-height: 1.5em;
    margin-top: 12px;
    color: var(--deep-purple);
    font-size: 0.95rem;
}


/* ------------------------------
   CENTERED / SUPPORTING TEXT
------------------------------ */

.centered {
    text-align: center;
}

.price-list {
    text-align: left;
    display: inline-block;
    margin: 0 auto 18px;
}

.fine-print {
    font-style: italic;
    font-size: 0.95rem;
}


/* ------------------------------
   FOOTER
------------------------------ */

footer {
    text-align: center;
    padding: 30px;
    color: var(--navy);
    font-size: 14px;
}


/* ------------------------------
   MOBILE
------------------------------ */

@media (max-width: 700px) {

    header {
        padding-bottom: 14px;
    }

    nav {
        flex-direction: column;
        gap: 4px;
    }

    nav a {
        display: block;
        padding: 6px;
    }

    main {
        margin-top: 24px;
        padding: 0 14px;
    }

    section {
        border-radius: 12px;
    }

    .doctor-photo {
        float: none;
        display: block;
        width: 220px;
        max-width: 100%;
        margin: 0 auto 22px;
    }

    .resource-card {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-card-image {
        width: 100%;
        height: 190px;
        order: 2;
    }

    .secondary-button {
        display: block;
        width: fit-content;
        margin: 12px auto 0;
    }
}
