/* Hello Baby! — shared styles
   Used by the home page, the New Parent Resource Hub, and all hub articles. */

:root {
    /* Palette sampled from hellobaby3dimaging.com */
    --rose:      #E6ABC9;  /* dusty rose — accent, highlights */
    --rose-tint: #FBF0F5;  /* rose wash for panels */
    --sage:      #A3C5B3;  /* brand sage — secondary buttons, footer, promo bar */
    --sage-tint: #EDF5F0;  /* sage wash for panels */
    --teal:      #417586;  /* primary calls to action */
    --teal-dark: #35606F;  /* hover */
    --blue-grey: #8F9DB3;  /* decorative fills only — too light for text on white */
    --ink:       #202623;  /* headings and body */
    --muted:     #566B62;  /* secondary text — darkened for contrast */
    --bg:        #F6FDF9;  /* page background */
    --white:     #FFFFFF;
    --soft-line: rgba(32, 38, 35, 0.10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Forum', Georgia, serif;
    font-weight: 400;
}

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

/* ---------- Header / nav ---------- */

.promo-bar {
    background-color: var(--sage);
    color: var(--ink);
    text-align: center;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    width: 76px;
    height: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.4rem;
    color: var(--ink);
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover { color: var(--muted); }

/* Mobile hamburger (CSS-only; no JS so it survives an embed) */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---------- Buttons ---------- */

.btn {
    background-color: var(--teal);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--teal-dark);
}

.btn-secondary {
    background-color: var(--sage);
    color: var(--ink);
}

.btn-secondary:hover { background-color: #94BAA7; }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--sage);
    color: var(--ink);
    box-shadow: none;
}

.btn-outline:hover { background-color: var(--sage-tint); }

/* ---------- Generic sections ---------- */

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hub landing ---------- */

.hub-hero {
    background: linear-gradient(145deg, #ffffff, #F2FAF6);
    border-bottom: 1px solid var(--soft-line);
    padding: 44px 20px 38px 20px;
    text-align: center;
}

.hub-hero h1 {
    font-size: 2.7rem;
    line-height: 1.25;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hub-hero p.lede {
    max-width: 760px;
    margin: 0 auto 25px auto;
    font-size: 1.1rem;
    color: var(--muted);
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background-color: var(--white);
    border: 1px solid var(--soft-line);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.category-card .cat-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 14px;
}

.category-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.category-card > p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.category-card ul {
    list-style: none;
    margin-bottom: 22px;
    flex-grow: 1;
}

.category-card li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--soft-line);
    font-size: 0.95rem;
}

.category-card li:last-child { border-bottom: none; }

.category-card li a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.category-card li a:hover { text-decoration: underline; }

.badge-soon {
    font-size: 0.7rem;
    background: var(--bg);
    color: var(--muted);
    border-radius: 20px;
    padding: 2px 9px;
    margin-left: 6px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- Article layout ---------- */

.breadcrumb {
    max-width: 780px;
    margin: 25px auto 0 auto;
    padding: 0 20px;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--muted); }

article.post {
    max-width: 780px;
    margin: 0 auto 50px auto;
    padding: 25px 20px 0 20px;
}

article.post h1 {
    font-size: 2.35rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

article.post .meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--soft-line);
}

article.post h2 {
    font-size: 1.65rem;
    margin: 38px 0 14px 0;
}

article.post h3 {
    font-size: 1.2rem;
    margin: 26px 0 10px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

article.post p { margin-bottom: 16px; }

article.post ul, article.post ol {
    margin: 0 0 18px 22px;
}

article.post li { margin-bottom: 9px; }

article.post strong { font-weight: 600; }

/* Callouts */

.quick-answer {
    background-color: var(--white);
    border-left: 5px solid var(--rose);
    border-radius: 0 15px 15px 0;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.quick-answer h2 {
    margin: 0 0 10px 0 !important;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
}

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

.callout {
    background-color: var(--white);
    border: 1px solid var(--soft-line);
    border-radius: 15px;
    padding: 24px 28px;
    margin: 30px 0;
}

.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.callout-provider {
    background-color: #FBF0F5;
    border: 2px solid var(--rose);
}

.callout-provider h2 {
    margin-top: 0 !important;
    font-size: 1.35rem;
}

.callout-cta {
    background-color: #F7FBF9;
    border: 2px solid var(--sage);
    text-align: center;
}

.callout-cta h2 {
    margin-top: 0 !important;
    font-size: 1.5rem;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.disclaimer {
    background-color: var(--bg);
    border: 1px dashed var(--muted);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 35px 0 0 0;
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.65;
}

.disclaimer strong { color: var(--ink); }

/* Related resources */

.related {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--soft-line);
}

.related h2 { font-size: 1.45rem; margin-bottom: 16px !important; }

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    list-style: none;
    margin: 0 !important;
}

.related-list li { margin: 0 !important; }

.related-list a {
    display: block;
    height: 100%;
    background-color: var(--white);
    border: 1px solid var(--soft-line);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.related-list a:hover { transform: translateY(-2px); }

/* Simple timeline / table styling used in several articles */

.week-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 25px 0;
    font-size: 0.95rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.week-table th, .week-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--soft-line);
    vertical-align: top;
}

.week-table th {
    background-color: var(--sage);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.week-table tr:last-child td { border-bottom: none; }

.table-scroll { overflow-x: auto; }

.checklist {
    list-style: none;
    margin-left: 0 !important;
}

.checklist li {
    padding-left: 30px;
    position: relative;
}

.checklist li::before {
    content: "☐";
    position: absolute;
    left: 4px;
    top: 0;
    font-size: 1.05rem;
    color: var(--muted);
}

/* ---------- Lead magnet ---------- */

.magnet {
    background: linear-gradient(145deg, #ffffff, #F2FAF6);
    border: 1px solid rgba(230, 171, 201, 0.6);
    border-radius: 20px;
    padding: 35px;
    margin: 45px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.magnet h2 { margin-top: 0 !important; font-size: 1.8rem; }

.magnet p { max-width: 560px; margin-left: auto; margin-right: auto; }

.signup-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.signup-form input {
    padding: 13px 18px;
    border-radius: 30px;
    border: 1px solid var(--soft-line);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    min-width: 260px;
}

/* ---------- Footer ---------- */

footer {
    background-color: var(--sage);
    color: var(--ink);
    padding: 50px 20px 20px 20px;
    border-top: 4px solid var(--muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-col h2, .footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col ul {
    font-size: 0.95rem;
    list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a { color: var(--ink); }

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
    .nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
        line-height: 1;
        cursor: pointer;
        color: var(--ink);
        padding: 2px 6px;
        user-select: none;
        -webkit-user-select: none;
    }
    /* dropdown panel below the sticky header */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        box-shadow: 0 10px 14px rgba(0, 0, 0, 0.07);
        border-top: 1px solid var(--soft-line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
    }
    .nav-toggle:checked ~ .nav-menu {
        max-height: 85vh;
        overflow-y: auto;
    }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 15px 22px;
        font-size: 1rem;
        border-top: 1px solid var(--soft-line);
    }
    .nav-menu li:first-child a { border-top: none; }

    .brand-logo { width: 52px; }
    .brand-name { font-size: 1.25rem; }

    .hub-hero h1 { font-size: 2.05rem; }
    article.post h1 { font-size: 1.85rem; }
    .signup-form input { min-width: 100%; }
}

@media print {
    header, footer, .promo-bar, .breadcrumb, .cta-row, .signup-form { display: none; }
    body { background: #fff; }
}
