:root {
    --terracotta: #c1502e;
    --charcoal: #2b2b2b;
    --sage: #8fa89b;
    --taupe: #a69277;
    --cream: #faf6ef;
    --cream-2: #fffdfa;
    --line: #e7ddd0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fffdf9;
    color: var(--charcoal);
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
    font-family: "Cormorant Garamond", Georgia, serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
.site-header {
    text-align: center;
    padding: 60px 20px 45px;
    background: linear-gradient(180deg, var(--cream) 0%, #fffdf9 100%);
    border-bottom: 1px solid var(--line);
}
.site-header h1 {
    font-size: 52px;
}
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #faf6ef;
    padding: 11px 11px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(193, 80, 46, 0.08);
    border: 1px solid #e7ddd07a;
    margin-bottom: 24px;
}

.logo-badge img {
    height: 148px;
    border: 1px solid #bd5b3824;
    width: auto;
    border-radius: 20px;
    object-fit: contain;
}

.eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(30px, 4.8vw, 50px);
    font-weight: 700;
    color: var(--terracotta);
    margin: 0 auto 14px;
    line-height: 1.15;
    max-width: 850px;
}

.subhead {
    font-size: 20px;
    font-style: italic;
    color: #4a4a4a;
    max-width: 720px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.header-disclaimer {
    font-size: 14px;
    font-style: italic;
    color: var(--taupe);
    max-width: 680px;
    margin: 0 auto;
    padding-top: 20px;
    line-height: 1.45;
}

/* How to Use booklet card */
.redflag-wrap {
    max-width: 780px;
    margin: 36px auto;
    padding: 0 20px;
}

.redflag {
    background: var(--cream);
    border: 1px solid var(--line);
    border-top: 3.5px solid var(--terracotta);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(166, 146, 119, 0.06);
}

.redflag h3 {
    margin: 0 0 16px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta);
}

.redflag ul {
    margin: 0;
    padding-left: 20px;
}

.redflag li {
    margin-bottom: 10px;
    font-size: 17px;
    color: #383838;
    font-family: "DM Sans", sans-serif;
}

.redflag li:last-child {
    margin-bottom: 0;
}

/* Nav pills sticky bar */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(8px);
    /* border-top: 1px solid var(--line); */
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.nav-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: center;
}

.nav-pill {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--cream);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-pill:hover {
    background: var(--terracotta);
    color: #fff;
    border-color: var(--terracotta);
    transform: translateY(-1px);
}

/* Main container & parts */
main {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

.part {
    margin-top: 70px;
    scroll-margin-top: 70px;
}

.part-head {
    text-align: center;
    margin-bottom: 32px;
}

.part-eyebrow {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 6px;
}

.part h2 {
    font-size: clamp(26px, 3.6vw, 36px);
    color: var(--terracotta);
    margin: 0 0 6px;
    font-weight: 700;
}

.part-tagline {
    font-style: italic;
    color: var(--taupe);
    margin: 0;
    font-size: 16px;
}

/* FAQ items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    scroll-margin-top: 80px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: #d6c8b5;
    box-shadow: 0 4px 14px rgba(193, 80, 46, 0.04);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 17px;
    color: var(--charcoal);
    user-select: none;
}

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

.q-num {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 700;
    color: #8fa89b;
    min-width: 28px;
    line-height: 1;
}

.q-text {
    flex: 1;
    line-height: 1.4;
}

.q-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.q-icon::before,
.q-icon::after {
    content: "";
    position: absolute;
    background: var(--terracotta);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.q-icon::before {
    width: 14px;
    height: 2px;
}

.q-icon::after {
    width: 2px;
    height: 14px;
    transition: transform 0.25s ease;
}

details[open] .q-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

details[open] summary {
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.faq-answer {
    padding: 18px 22px 24px 26px;
    font-size: 15.5px;
    color: #333338;
}

.faq-answer p {
    margin: 0 0 14px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--terracotta);
    text-decoration: underline;
    text-decoration-color: rgba(193, 80, 46, 0.4);
    text-underline-offset: 3px;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration-color: var(--terracotta);
}

/* Takeaway Callout Box */
.takeaway {
    margin-top: 16px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
}

.takeaway-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8fa89b;
    margin-bottom: 4px;
}

.takeaway p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: #2d2d2d;
}

/* Unique PCOS Education Summary Block */
.pcos-education-summary-block {
    border-top: 1px solid var(--line);
    background: var(--cream);
    padding: 60px 20px 54px;
    text-align: center;
}

.pcos-summary-quote-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    font-style: italic;
    color: #000000;
    margin: 0 auto 22px;
    line-height: 1.4;
}

.pcos-summary-body-text {
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    font-family: "DM Sans", sans-serif;
}

.pcos-summary-doctor-link {
    color: var(--terracotta);
    text-decoration: underline;
    font-weight: 600;
}

.pcos-summary-disclaimer-text {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: 15px;
    color: #948574;
    font-style: italic;
    line-height: 1.5;
    font-family: "DM Sans", sans-serif;
}

@media (max-width: 640px) {
    .site-header {
        padding: 40px 16px 30px;
    }

    .nav-wrap {
        padding: 8px 10px;
    }

    .nav-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .nav-pill {
        flex: 0 0 auto;
        font-size: 12px;
        padding: 6px 14px;
    }

    .redflag {
        padding: 20px 22px;
    }

    .faq-answer {
        padding: 16px 18px 20px 18px;
    }

    .faq-item summary {
        padding: 16px 18px;
        gap: 12px;
    }

    .q-num {
        min-width: 24px;
        font-size: 19px;
    }
}

/* Footer Closing Wrap Override */
.footer-closing-wrap {
    text-align: center;
    padding: 60px 20px 60px;
    border-top: 1px solid #e7ddd0 !important;
    background-color: #faf6ef !important;
    background: #faf6ef !important;
    color: #2b2b2b !important;
    margin-top: 40px;
    width: 100%;
}

.footer-closing-wrap .closing {
    background: transparent !important;
    background-color: transparent !important;
    max-width: 560px;
    margin: 0 auto 20px !important;
    font-size: 15.5px !important;
    color: #333338 !important;
    line-height: 1.65;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
}

.footer-closing-wrap .closing.display {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 20px !important;
    font-style: italic !important;
    color: #2b2b2b !important;
    max-width: 600px;
    margin: 0 auto 20px !important;
    line-height: 1.4;
    background: transparent !important;
}

.footer-closing-wrap .closing p {
    color: inherit !important;
    margin: 0 !important;
}

.footer-closing-wrap .closing a {
    color: #c1502e !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(193, 80, 46, 0.4) !important;
    text-underline-offset: 3px !important;
    font-weight: 600 !important;
}

.footer-closing-wrap .closing a:hover {
    color: #a04a2b !important;
    text-decoration-color: #c1502e !important;
}

.footer-closing-wrap .disclaimer {
    max-width: 600px;
    margin: 24px auto 0 !important;
    font-size: 13.5px !important;
    color: #a69277 !important;
    font-style: italic !important;
    line-height: 1.5;
    background: transparent !important;
}

/* MCC Note / Continuing Your Care Card */
.mcc-note {
    background: #faf6ef;
    border: 1px solid #e7ddd0;
    border-radius: 16px;
    padding: 36px 40px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(166, 146, 119, 0.06);
}

.mcc-note .mcc-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8fa89b;
    margin-bottom: 12px;
}

.mcc-note h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 600;
    color: #c1502e;
    margin: 0 auto 20px;
    line-height: 1.25;
}

.mcc-note p {
    font-size: 16px;
    color: #383838;
    line-height: 1.65;
    max-width: 660px;
    margin: 0 auto 16px;
}

.mcc-note p a {
    color: #c1502e;
    text-decoration: underline;
    text-decoration-color: rgba(193, 80, 46, 0.4);
    text-underline-offset: 3px;
    font-weight: 600;
}

.mcc-note p a:hover {
    text-decoration-color: #c1502e;
}

.mcc-note p.note {
    font-size: 14px;
    font-style: italic;
    color: #a69277;
    max-width: 640px;
    margin: 20px auto 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .mcc-note {
        padding: 24px 20px;
    }
}

/* Site Header Section Style */
.site-header {
    text-align: center !important;
    padding: 50px 20px 40px !important;
    background: linear-gradient(180deg, #faf6ef 0%, #fffdfa 100%) !important;
    border-bottom: 1px solid #e7ddd0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.site-header .eyebrow {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    color: #8fa89b !important;
    margin: 0 auto 14px !important;
    text-align: center !important;
}

.site-header h1 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(32px, 5vw, 50px) !important;
    font-weight: 700 !important;
    color: #c1502e !important;
    margin: 0 auto 14px !important;
    line-height: 1.15 !important;
    max-width: 850px !important;
    text-align: center !important;
}

.site-header .subhead {
    font-size: clamp(17px, 2vw, 20px) !important;
    font-style: italic !important;
    color: #2b2b2b !important;
    max-width: 680px !important;
    margin: 0 auto 20px !important;
    opacity: 0.9 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.site-header .crosslink {
    margin: 22px 0 0 !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    text-align: center !important;
}

.site-header .crosslink a {
    display: inline-block !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #c1502e !important;
    text-decoration: none !important;
    border: 1.5px solid #c1502e !important;
    border-radius: 999px !important;
    padding: 8px 22px !important;
    background: #ffffff !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(193, 80, 46, 0.04) !important;
}

.site-header .crosslink a:hover {
    background: #c1502e !important;
    color: #ffffff !important;
}

.site-header .disclaimer {
    max-width: 740px !important;
    margin: 28px auto 0 !important;
    font-size: 13.5px !important;
    color: #a69277 !important;
    text-align: center !important;
    font-style: italic !important;
    line-height: 1.6 !important;
}
