/*----------------------------------------
  Impact Nutrition site styles
  1. Tokens and base       5. Home
  2. Buttons               6. Cards and grids
  3. Header                7. Forms and articles
  4. Page sections         8. Footer
----------------------------------------*/

/* 1. Tokens and base */
:root {
    --ink: #10293f;
    --body: #41556a;
    --muted: #64768a;
    --line: #e7e2d9;
    --paper: #ffffff;
    --cream: #fbf7f0;
    --blue: #0b76b5;
    --blue-soft: #e6f3fb;
    --orange: #ed8b00;
    --orange-strong: #c2570c;
    --orange-soft: #fdf0dc;
    --radius: 18px;
    --radius-small: 10px;
    --shadow: 0 1px 2px rgba(16, 41, 63, .05), 0 12px 32px rgba(16, 41, 63, .07);
    --shadow-lift: 0 2px 4px rgba(16, 41, 63, .06), 0 20px 44px rgba(16, 41, 63, .13);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); transition: color .2s ease; }
a:hover { color: var(--orange-strong); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.eyebrow {
    display: block;
    margin-bottom: .75rem;
    color: var(--orange-strong);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lead-text { color: var(--body); font-size: 1.15rem; }
.accent { color: var(--orange-strong); }

/* 2. Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .8em 1.6em;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--orange-strong);
    color: #fff;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    background: #a54906;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(194, 87, 12, .28);
}

.button--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); box-shadow: none; }
.button--small { padding: .55em 1.2em; font-size: .95rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-weight: 600;
    text-decoration: none;
}

.text-link i { transition: transform .2s ease; }
.text-link:hover { text-decoration: none; }
.text-link:hover i { transform: translateX(3px); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges a { display: block; transition: transform .2s ease; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { display: block; width: auto; height: 50px; }

/* 3. Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.site-logo { display: block; padding: 8px 0; }
.site-logo img { display: block; width: auto; height: 56px; }

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--paper);
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
}

.site-nav { flex-basis: 100%; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }

.nav-list > li:not(.nav-cta) > a, .nav-list > li > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35em;
    width: 100%;
    padding: .7rem .25rem;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.nav-list > li:not(.nav-cta) > a:hover, .nav-list > li > button:hover { color: var(--orange-strong); }
.nav-list > li.is-active > a, .nav-list > li.is-active > button { color: var(--orange-strong); }

.nav-sub a {
    display: flex;
    align-items: center;
    gap: .65em;
    padding: .5rem .75rem;
    border-radius: var(--radius-small);
    color: var(--body);
    text-decoration: none;
}

.nav-sub a:hover { background: var(--orange-soft); color: var(--orange-strong); }
.nav-sub i { width: 1.1em; text-align: center; }
.nav-cta { margin: .5rem 0 1rem; }
.nav-cta .button { width: 100%; }

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .site-nav.collapse { display: block !important; flex-basis: auto; }

    .nav-list { display: flex; align-items: center; gap: 1.6rem; }
    .nav-list > li { position: relative; }
    .nav-list > li:not(.nav-cta) > a, .nav-list > li > button { width: auto; padding: .5rem 0; }

    .nav-list > li:not(.nav-cta) > a::after, .nav-list > li > button::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--orange);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .nav-list > li:hover > a::after, .nav-list > li:hover > button::after, .nav-list > li.is-active > a::after, .nav-list > li.is-active > button::after {
        transform: scaleX(1);
    }

    .nav-sub {
        visibility: hidden;
        position: absolute;
        top: 100%;
        left: -1rem;
        width: 220px;
        margin-top: 8px !important;
        padding: 8px !important;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--paper);
        box-shadow: var(--shadow-lift);
        opacity: 0;
        transform: translateY(6px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }

    /* Bridges the gap so the menu stays open as the pointer moves onto it */
    .nav-sub::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }

    .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .nav-cta { margin: 0 0 0 .4rem; }
    .nav-cta .button { width: auto; }
}

/* 4. Page sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }

.section-intro { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-intro p:last-child { margin-bottom: 0; }

.page-head {
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
    background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
    text-align: center;
}

.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.page-head .search-form, .page-head .tabs { margin-top: 28px; }
.section--flush-top { padding-top: 0; }

.empty-state {
    padding: 56px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    text-align: center;
}

.empty-state p { margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.tabs a {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .55em 1.2em;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tabs a:hover { border-color: var(--orange-strong); color: var(--orange-strong); }
.tabs a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 5. Home */
.hero { padding: clamp(40px, 6vw, 80px) 0; background: var(--cream); overflow: hidden; }
.hero .lead-text { max-width: 540px; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; max-width: 480px; margin: 40px auto 24px; }

.hero__media img {
    display: block;
    width: 100%;
    height: clamp(340px, 46vw, 560px);
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow-lift);
}

/* Posters carry their own text, so they are shown whole rather than cropped */
.hero__media--poster { max-width: 420px; }
.hero__media--poster img { height: auto; object-fit: contain; }

.hero__note {
    position: absolute;
    bottom: -20px;
    left: 16px;
    max-width: 290px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    font-size: .95rem;
    line-height: 1.45;
}

.hero__note strong { display: block; margin-bottom: 2px; color: var(--orange-strong); }

@media (min-width: 992px) {
    .hero__media { margin: 0 0 0 auto; }
    .hero__note { left: -40px; }
}

.facts { border-bottom: 1px solid var(--line); background: var(--paper); }
.fact { padding: 32px 12px; text-align: center; }

.fact strong {
    display: block;
    color: var(--blue);
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
    line-height: 1.2;
}

.fact span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.4; }

.mission-statement {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 500;
    line-height: 1.35;
}

.media-frame {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.media-frame video { display: block; width: 100%; height: auto; }

.app-band { background: var(--ink); color: #c9d6e2; }
.app-band h2 { color: #fff; }
.app-band .eyebrow { color: #f7b04a; }
.app-band .lead-text { color: #c9d6e2; margin-bottom: 1.75rem; }

.app-band__poster {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 40px auto 0;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

@media (min-width: 992px) {
    .app-band__poster { margin-top: 0; }
}

/* 6. Cards and grids */
.card-grid { row-gap: 28px; }

.tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tile:hover { border-color: transparent; box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.tile h3 { margin-bottom: .6em; }
.tile p:last-child, .tile ul:last-child { margin-bottom: 0; }

.tile__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange-strong);
    font-size: 1.6rem;
}

.tile__icon--blue { background: var(--blue-soft); color: var(--blue); }

a.tile { color: var(--body); text-decoration: none; }
a.tile .text-link { margin-top: auto; padding-top: 12px; color: var(--blue); }

.tick-list { margin: 0 0 1em; padding: 0; list-style: none; }
.tick-list li { position: relative; padding: .22em 0 .22em 1.7em; }

.tick-list li::before {
    content: "\f26b"; /* zmdi-check */
    position: absolute;
    top: .22em;
    left: 0;
    color: var(--orange-strong);
    font-family: 'Material-Design-Iconic-Font';
    font-weight: 700;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.chips li {
    padding: .25em .85em;
    border-radius: 999px;
    background: var(--blue-soft);
    color: #0a5d8f;
    font-size: .93rem;
    font-weight: 500;
}

/* Team */
.team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.team-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.team-card__photo { display: block; overflow: hidden; }

.team-card__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    object-position: center 18%;
    transition: transform .4s ease;
}

.team-card:hover .team-card__photo img { transform: scale(1.03); }
.team-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.team-card__body h3 { margin-bottom: .15em; font-size: 1.2rem; }
.team-card__body h3 a { color: var(--ink); text-decoration: none; }
.team-card__body h3 a:hover { color: var(--orange-strong); }
.team-card__role { display: block; margin-bottom: 14px; color: var(--muted); font-size: .95rem; line-height: 1.4; }

.team-card__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: .95rem;
}

.team-card__links .linkedin { color: var(--muted); font-size: 1.35rem; line-height: 1; }
.team-card__links .linkedin:hover { color: var(--blue); }

/* Bootstrap modal skin */
.modal-content { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.modal-header { align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.modal-title { margin: 0; font-size: 1.35rem; }
.modal-body { padding: 22px 26px 12px; }
.modal-header .close { font-family: var(--sans); }

.values-card h3 { margin-bottom: .75em; }
.closing-quote { max-width: 820px; margin: 0 auto; text-align: center; }

.closing-quote p {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.35;
}

/* Blog cards */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.post-card__image { display: block; background: var(--cream); overflow: hidden; }

.post-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}

.post-card:hover .post-card__image img { transform: scale(1.03); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.post-card__body h3 { font-size: 1.22rem; }
.post-card__body h3 a { color: var(--ink); text-decoration: none; }
.post-card__body h3 a:hover { color: var(--orange-strong); }
.post-card__body .text-link { margin-top: auto; padding-top: 6px; }
.post-card__description { font-size: .97rem; }

.meta-date {
    display: flex;
    align-items: center;
    gap: .45em;
    margin-bottom: .55rem;
    color: var(--muted);
    font-size: .9rem;
}

/* Testimony media */
.popup-image { position: relative; }

.popup-image::after {
    content: "\f1c3"; /* zmdi-search */
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-family: 'Material-Design-Iconic-Font';
    font-size: 1.15rem;
    opacity: 0;
    transition: opacity .2s ease;
}

.popup-image:hover::after, .popup-image:focus::after { opacity: 1; }
.popup-image img { aspect-ratio: 1 / 1; }
.podcast-cover img { aspect-ratio: 1 / 1; }

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius);
    background: var(--ink);
    overflow: hidden;
}

.post-card .video-frame { border-radius: 0; }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.podcast-player {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.podcast-player img { display: block; width: 100%; cursor: pointer; }
.podcast-player audio { display: block; width: 100%; padding: 14px; }
.detail-grid { row-gap: 32px; }
.back-link { margin-bottom: 1.25rem; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }

.faq__item {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.faq__item:hover { box-shadow: var(--shadow); }

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.faq__question i { flex-shrink: 0; color: var(--orange-strong); font-size: 1.35rem; transition: transform .25s ease; }
.faq__question:not(.collapsed) i { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 8px; }
.faq__answer .video-frame { margin-bottom: 1.25em; }

/* 7. Forms and articles */
.search-form { position: relative; max-width: 520px; margin-right: auto; margin-left: auto; }
.search-form i { position: absolute; top: 50%; left: 20px; color: var(--muted); font-size: 1.15rem; transform: translateY(-50%); }
.search-form input { padding-left: 48px; border-radius: 999px; }

.form-control, .field {
    display: block;
    width: 100%;
    height: auto;
    padding: .75em 1.1em;
    border: 1px solid #d5d0c6;
    border-radius: var(--radius-small);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus, .field:focus {
    border-color: var(--blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 118, 181, .18);
}

.form-label { display: block; margin-bottom: .3em; color: var(--ink); font-size: .95rem; font-weight: 600; }
.form-row-gap { margin-bottom: 18px; }

.article { max-width: 760px; margin: 0 auto; }
.article__hero { display: block; width: 100%; max-height: 480px; margin-bottom: 32px; border-radius: var(--radius); object-fit: cover; }

.prose { color: var(--body); font-size: 1.08rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.5em; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose img { height: auto !important; border-radius: var(--radius-small); }
.prose iframe { max-width: 100%; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }

.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.share-row__label { color: var(--ink); font-weight: 600; }

.comment-box { margin-bottom: 36px; padding: 28px; border-radius: var(--radius); background: var(--cream); }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment__name { color: var(--ink); font-weight: 700; }
.comment__date { color: var(--muted); font-size: .88rem; }
.comment p { margin: .35em 0 .2em; }

.contact-list { margin: 0 0 28px; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--ink); }
.contact-list .tile__icon { width: 44px; height: 44px; margin: 0; font-size: 1.25rem; }

/* 8. Footer */
.site-footer { padding: clamp(48px, 6vw, 72px) 0 0; background: var(--ink); color: #b9c8d6; font-size: .98rem; }
.site-footer h3 { margin-bottom: 1em; color: #fff; font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #dbe5ee; text-decoration: none; }
.site-footer a:hover { color: #f7b04a; }
.site-footer .row { row-gap: 36px; }

.site-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #fff;
}

.site-footer__logo img { display: block; width: auto; height: 52px; }

.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; gap: .7em; margin-bottom: .6em; line-height: 1.45; }
.footer-list i { width: 1.1em; margin-top: .2em; color: #f7b04a; text-align: center; }

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    font-size: 1.15rem;
    transition: background .2s ease, color .2s ease;
}

.social-icons a:hover { background: var(--orange); color: var(--ink); }
.site-footer .store-badges img { height: 44px; }

.site-footer__bottom {
    margin-top: 44px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #93a6b7;
    font-size: .9rem;
    text-align: center;
}

#scrollUp {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: var(--shadow);
    color: #fff;
    font-size: 1.4rem;
    line-height: 42px;
    text-align: center;
}

#scrollUp:hover { background: var(--orange-strong); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
