/* ==========================================================
   TheHealthAuthor - Homepage styles (on top of Bootstrap 5)
   ========================================================== */

:root {
    --cream: #FAF7F2;
    --mint: #E8EFEA;
    --sage: #F0F3EE;
    --green: #2E6B5B;
    --green-light: #8FC1AE;
    --ink: #252927;
    --text: #5E6360;
    --muted: #7C817E;
    --border: #E3E5E0;
    --dark: #2B2E2D;
    --white: #FFFFFF;
    --radius: 10px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Container: 1124px content width on desktop (matches design) */
@media (min-width: 1200px) {
    .container { max-width: 1148px; }
}

/* ---------- Shared ---------- */
.section { padding: 64px 0 56px; }
.section--cream { background: var(--cream); }
.section--mint  { background: var(--mint); }
.section--sage  { background: var(--sage); }

.eyebrow {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
}
.section-head--tight { margin-bottom: 22px; align-items: center; }
.section-head--tight .eyebrow { margin-bottom: 14px; }
.section-head .eyebrow { margin-bottom: 16px; }

.section-title {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--ink);
}
.section-sub {
    font-size: 12.5px;
    color: var(--text);
    margin-top: 4px;
}

.link-arrow {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--green);
    white-space: nowrap;
    transition: opacity .2s;
}
.link-arrow:hover { color: var(--green); opacity: .75; }

/* ---------- Header ---------- */
.site-header {
    background: var(--cream);
}
.site-header .navbar { padding: 18px 0; }
.site-header .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    padding: 8px 14px !important;
}
.site-header .nav-link:hover { color: var(--green); }
.site-header .navbar-toggler { border-color: var(--border); margin-left: 10px; }

.header-icons { display: flex; align-items: center; gap: 6px; }
.header-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
}
.header-icon img { width: 14px; height: 14px; }
.header-icon:hover { background: var(--mint); }
.site-header .navbar-toggler:focus { box-shadow: none; }

/* ---------- Logo ---------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.logo__mark { width: 28px; height: 28px; }
.logo__accent { color: #4E9A84; margin: 0 3px; }
.logo--dark  { color: var(--ink); }
.logo--light { color: var(--white); }
.logo:hover { color: inherit; }

/* ==========================================================
   SECTION 1 - Hero
   ========================================================== */
.section--first { padding-top: 40px; }

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 468px;
    display: flex;
    align-items: flex-end;
    background: #222;
}
.hero-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 20, 0) 20%, rgba(20, 22, 20, .55) 55%, rgba(20, 22, 20, .88) 100%);
}
.hero-card__body {
    position: relative;
    z-index: 1;
    padding: 0 22px 32px;
    color: var(--white);
}
.hero-card__eyebrow {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hero-card__title {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
    max-width: 590px;
    margin-bottom: 12px;
}
.hero-card__text {
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 560px;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 18px;
}
.hero-card__note {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 20px;
}
.hero-card__links { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-card__links a { font-size: 12.5px; font-weight: 600; color: var(--white); }
.hero-card__links a:hover { opacity: .8; }

.hero-list { display: flex; flex-direction: column; gap: 36px; padding-top: 10px; }
.hero-item { display: flex; align-items: center; gap: 14px; }
.hero-item__thumb {
    width: 122px;
    height: 122px;
    flex-shrink: 0;
    border-radius: var(--radius);
    object-fit: cover;
}
.hero-item .eyebrow { margin-bottom: 6px; }
.hero-item__title {
    font-size: 18.5px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 4px;
}
.hero-item__text { font-size: 11.5px; color: var(--text); }
.hero-item:hover .hero-item__title { color: var(--green); }

/* ---------- Topics ---------- */
.topics { margin-top: 64px; }

.topic-card {
    display: block;
    height: 100%;
    min-height: 148px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 22px;
    transition: border-color .2s, transform .2s;
}
.topic-card:hover { border-color: #C9D6CE; transform: translateY(-2px); }
.topic-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.topic-card__icon svg { width: 18px; height: 18px; }
.topic-card__title {
    font-size: 19.5px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 6px;
}
.topic-card__text { font-size: 11.5px; color: var(--text); }

/* ==========================================================
   SECTION 2 - Tools
   ========================================================== */
#tools { padding: 60px 0 52px; }

.tool-card {
    height: 100%;
    min-height: 158px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.tool-card__icon {
    width: 94px;
    height: 94px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: #F1F2EE;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card__icon svg { width: 58px; height: 58px; }
.tool-card .eyebrow { margin-bottom: 6px; }
.tool-card__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 6px;
}
.tool-card__text {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 12px;
}

/* ==========================================================
   SECTION 3 - Nutrition
   ========================================================== */
.section--nutrition { padding: 66px 0 120px; }

@media (min-width: 992px) {
    .col-lg-feature { flex: 0 0 auto; width: 37.6%; }
}

.plate-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 347px;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
}
.plate-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.plate-card:hover .plate-card__img { transform: scale(1.03); }
.plate-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 20, 0) 45%, rgba(20, 22, 20, .8) 100%);
}
.plate-card__body { position: relative; z-index: 1; padding: 0 22px 22px; }
.plate-card__eyebrow {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.plate-card__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.015em;
    margin-bottom: 8px;
}
.plate-card__text { font-size: 12px; color: rgba(255, 255, 255, .9); }
.plate-card:hover { color: var(--white); }

.meal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}
.meal-item__thumb {
    width: 117px;
    height: 148px;
    flex-shrink: 0;
    border-radius: var(--radius);
    object-fit: cover;
}
.meal-item .eyebrow { margin-bottom: 6px; }
.meal-item__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 8px;
}
.meal-item__text { font-size: 11.5px; line-height: 1.45; color: var(--text); }
.meal-item:hover .meal-item__title { color: var(--green); }

/* ==========================================================
   SECTION 4 - Our approach
   ========================================================== */
.section--approach { padding: 80px 0 76px; }

.approach-head { margin-bottom: 32px; }
.approach-head .eyebrow { margin-bottom: 18px; }
.approach-title {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--ink);
    max-width: 560px;
    margin-bottom: 10px;
}
.approach-lead {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    max-width: 560px;
}
.approach-intro {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 20px;
}

.btn-outline-pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    border: 1.5px solid var(--green);
    border-radius: 999px;
    padding: 11px 22px;
    transition: background .2s, color .2s;
}
.btn-outline-pill:hover { background: var(--green); color: var(--white); }

.principle-card {
    height: 100%;
    min-height: 210px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px 26px;
}
.principle-card__num {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 26px;
}
.principle-card__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 14px;
}
.principle-card__text {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text);
}

.approach-bottom { margin-top: 0; padding-top: 16px; }

.info-card {
    height: 100%;
    min-height: 310px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 24px 30px;
    color: var(--text);
}
.info-card .eyebrow { margin-bottom: 8px; }
.info-card__title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--ink);
    margin-bottom: 26px;
}
.info-card p { font-size: 11.5px; line-height: 1.6; margin-bottom: 14px; }
.info-card .link-arrow { display: inline-block; margin-top: 10px; }

.info-card--dark { background: var(--dark); border-color: var(--dark); }
.info-card--dark .eyebrow { color: var(--green-light); }
.info-card--dark .info-card__title { color: var(--white); }
.info-card__list { list-style: none; padding: 0; margin: 0; }
.info-card__list li {
    position: relative;
    padding-left: 10px;
    font-size: 11.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
}
.info-card__list li::before { content: "•"; position: absolute; left: 0; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .72);
    padding: 66px 0 26px;
}
.footer__brand .logo { margin-bottom: 26px; }
.footer__brand p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 240px;
    margin-bottom: 18px;
}
.footer__social { font-size: 12px; color: rgba(255, 255, 255, .72); }
.footer__social:hover { color: var(--white); }

.footer__col h4 {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 10.5px;
    color: rgba(255, 255, 255, .6);
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet & below */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding-top: 10px; }
    .site-header .nav-link { padding: 10px 0 !important; border-top: 1px solid var(--border); }

    .section--first { padding-top: 24px; }
    .hero-card { min-height: 440px; }
    .hero-card__title { font-size: 44px; }
    .hero-list { gap: 20px; padding-top: 0; }

    .topics { margin-top: 56px; }
    .section-title { font-size: 30px; }

    .section--nutrition { padding-bottom: 80px; }
    .plate-card { min-height: 380px; }

    .section--approach { padding: 64px 0; }
    .approach-title { font-size: 42px; max-width: none; }
    .approach-lead { max-width: none; }
    .info-card { min-height: 0; }
}

/* Mobile */
@media (max-width: 767.98px) {
    .section { padding: 48px 0; }
    #tools { padding: 48px 0; }
    .section--nutrition { padding: 48px 0 64px; }
    .section--approach { padding: 52px 0; }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 28px;
    }
    .section-head--tight { margin-bottom: 22px; }
    .section-title { font-size: 26px; }

    .hero-card { min-height: 420px; }
    .hero-card__body { padding: 0 18px 24px; }
    .hero-card__title { font-size: 34px; }
    .hero-card__text { font-size: 14px; }
    .hero-item__thumb { width: 96px; height: 96px; }
    .hero-item__title { font-size: 17px; }

    .topics { margin-top: 48px; }
    .topic-card { min-height: 0; padding: 16px 14px 18px; }
    .topic-card__title { font-size: 16px; }
    .topic-card__icon { margin-bottom: 12px; }

    .tool-card { padding: 18px; gap: 16px; }
    .tool-card__icon { width: 80px; height: 80px; }
    .tool-card__icon svg { width: 48px; height: 48px; }

    .plate-card { min-height: 320px; }
    .meal-item__thumb { width: 100px; height: 126px; }
    .meal-item__title { font-size: 18px; }

    .approach-title { font-size: 34px; }
    .principle-card { min-height: 0; padding: 26px 22px; }
    .principle-card__num { margin-bottom: 18px; }
    .info-card { padding: 28px 20px; }
    .info-card__title { font-size: 22px; }

    .site-footer { padding-top: 52px; }
}

@media (max-width: 400px) {
    .hero-card__title { font-size: 30px; }
    .hero-item__thumb { width: 84px; height: 84px; }
    .tool-card { flex-direction: column; align-items: flex-start; }
}
