/* =============================================================================
   Walk2Fit — Main Stylesheet
   Target: Overweight women 25-65. Warm, compassionate, readable.
   ============================================================================= */

/* ── Google Fonts loaded in header.php ── */

/* ── Custom Properties ───────────────────────────────────────────────────── */
:root {
    --blue:         #1A5F9E;
    --blue-dark:    #0F3D6B;
    --blue-light:   #E8F2FB;
    --green:        #2D8653;
    --green-dark:   #1E5C38;
    --green-light:  #E6F5EE;
    --orange:       #E8660A;
    --orange-dark:  #B84F08;
    --orange-light: #FEF0E7;
    --text:         #1A1A2E;
    --text-muted:   #5A5A78;
    --white:        #FFFFFF;
    --gray-light:   #F8F9FA;
    --gray-mid:     #EEF0F4;
    --border:       #D9DEE8;
    --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
    --shadow:       0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
    --radius:       10px;
    --radius-lg:    16px;
    --transition:   .2s ease;
    --max-width:    1200px;
    --nav-height:   70px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.text-center { text-align: center; }
.text-muted   { color: var(--text-muted); }

/* ── Layout Utilities ────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section {
    padding: 5rem 0;
}
.section-sm {
    padding: 3rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 3rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,102,10,.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--blue-dark);
}
.btn-blue {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-blue:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-1px);
}
.btn-green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-1px);
}
.btn-lg { padding: .9rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}
.nav-brand .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-dark);
}
.nav-brand .logo-dot {
    color: var(--orange);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-links a {
    padding: .4rem .85rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--text);
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--blue-light);
    color: var(--blue-dark);
}
.nav-links .btn {
    margin-left: .5rem;
    padding: .45rem 1.1rem;
    font-size: .9rem;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: .4rem;
    border-radius: 6px;
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--gray-mid); }
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--blue-dark);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: .45;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,61,107,.85) 0%,
        rgba(15,61,107,.45) 60%,
        rgba(15,61,107,.15) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 640px;
    padding: 4rem 0;
}
.hero-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero p {
    font-size: 1.15rem;
    opacity: .92;
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Stats Bar ───────────────────────────────────────────────────────────── */
.stats-bar {
    background: var(--blue-dark);
    color: var(--white);
    padding: 1.25rem 0;
}
.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem 2.5rem;
    border-right: 1px solid rgba(255,255,255,.2);
    text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}
.stat-label {
    font-size: .8rem;
    opacity: .85;
    margin-top: .3rem;
    letter-spacing: .03em;
}

/* ── Cards Grid ──────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 { margin-bottom: .5rem; }
.card-body p  { color: var(--text-muted); flex: 1; }
.card-footer  { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .9rem;
}
.tag {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.tag-blue   { background: var(--blue-light);   color: var(--blue-dark); }
.tag-green  { background: var(--green-light);  color: var(--green-dark); }
.tag-orange { background: var(--orange-light); color: var(--orange-dark); }

/* ── Program Page ────────────────────────────────────────────────────────── */
.program-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 3.5rem 0;
}
.program-hero h1 { color: var(--white); margin-bottom: .75rem; }
.program-hero p  { opacity: .9; max-width: 640px; }
.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.program-meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
}
.program-meta-item svg { flex-shrink: 0; }

.week-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow: hidden;
}
.week-header {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    width: 100%;
    background: var(--blue-light);
    border: none;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    user-select: none;
    text-align: left;
    transition: background var(--transition);
}
.week-header:hover { background: #d4e9f7; }
.week-header:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.week-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: .65rem;
    line-height: 1.3;
    text-align: center;
    flex-shrink: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}
.week-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; flex: 1; }
.week-chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
    color: var(--blue);
    flex-shrink: 0;
}
.week-block.open .week-chevron { transform: rotate(180deg); }
.week-content { padding: 1.5rem; display: none; }
.week-block.open .week-content { display: block; }

.day-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}
.day-table th {
    background: var(--gray-light);
    padding: .65rem 1rem;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.day-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: .93rem;
}
.day-table tr:last-child td { border-bottom: none; }
.day-table .rest-day { color: var(--text-muted); font-style: italic; }
.day-name { font-weight: 600; white-space: nowrap; }
.intensity-badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}
.intensity-easy     { background: var(--green-light); color: var(--green-dark); }
.intensity-moderate { background: var(--blue-light);  color: var(--blue-dark); }
.intensity-brisk    { background: var(--orange-light); color: var(--orange-dark); }

.tip-box {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.tip-box strong { color: var(--green-dark); }

.warning-box {
    background: var(--orange-light);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.info-box {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

/* ── RPE Visual Scale ────────────────────────────────────────────────────── */
.rpe-scale {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    margin: 1rem 0;
}
.rpe-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
    cursor: default;
}
.rpe-bar span {
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    font-weight: 600;
}
.rpe-bar[data-level="1"]  { height: 20px;  background: #d1fae5; }
.rpe-bar[data-level="2"]  { height: 30px;  background: #a7f3d0; }
.rpe-bar[data-level="3"]  { height: 45px;  background: #6ee7b7; }
.rpe-bar[data-level="4"]  { height: 60px;  background: #34d399; }
.rpe-bar[data-level="5"]  { height: 75px;  background: #fcd34d; }
.rpe-bar[data-level="6"]  { height: 90px;  background: #fbbf24; }
.rpe-bar[data-level="7"]  { height: 105px; background: #f97316; }
.rpe-bar[data-level="8"]  { height: 120px; background: #ea580c; }
.rpe-bar[data-level="9"]  { height: 135px; background: #dc2626; }
.rpe-bar[data-level="10"] { height: 150px; background: #991b1b; }
.rpe-bar.highlight { outline: 3px solid var(--blue); }
.rpe-target { font-size: .85rem; color: var(--text-muted); margin-top: 2.2rem; }

/* ── Benefits Grid ───────────────────────────────────────────────────────── */
.benefit-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    flex-shrink: 0;
    font-size: 1.4rem;
}
.benefit-icon.blue   { background: var(--blue-light); }
.benefit-icon.green  { background: var(--green-light); }
.benefit-icon.orange { background: var(--orange-light); }
.benefit-card h4 { margin-bottom: .35rem; }
.benefit-card p  { margin: 0; color: var(--text-muted); font-size: .93rem; }

/* ── Newsletter CTA ──────────────────────────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 4rem 0;
}
.newsletter-section h2 { color: var(--white); margin-bottom: .75rem; }
.newsletter-section p  { opacity: .9; margin-bottom: 1.75rem; }
.newsletter-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}
.newsletter-form {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: .8rem 1.25rem;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.65); }
.newsletter-form input[type="email"]:focus { border-color: rgba(255,255,255,.7); }
.newsletter-privacy {
    font-size: .78rem;
    opacity: .7;
    margin-top: .75rem;
}

/* ── Gear / Product Cards ────────────────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-img-wrap {
    background: var(--gray-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.product-img-wrap img {
    max-height: 160px;
    object-fit: contain;
}
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-body h4 { margin-bottom: .35rem; font-size: 1rem; }
.product-body p  { color: var(--text-muted); font-size: .88rem; flex: 1; }
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: .5rem 0;
}
.product-footer { padding: .75rem 1.25rem; border-top: 1px solid var(--border); }
.affiliate-note {
    font-size: .72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: var(--radius);
}

/* ── Content / Article ───────────────────────────────────────────────────── */
.article-body h2 { margin: 2rem 0 .75rem; }
.article-body h3 { margin: 1.5rem 0 .5rem; }
.article-body ul, .article-body ol {
    margin: .75rem 0 1rem 1.5rem;
    list-style: initial;
}
.article-body li { margin-bottom: .35rem; }
.article-body blockquote {
    border-left: 4px solid var(--blue);
    padding: .75rem 1.25rem;
    background: var(--blue-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--blue-dark);
}
.toc {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
.toc h4 { margin-bottom: .75rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; color: var(--text-muted); }
.toc ol { list-style: decimal; margin-left: 1.25rem; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--blue); font-size: .93rem; }

/* ── Two-column content layout ───────────────────────────────────────────── */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.sticky-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}
.sidebar-card {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}
.sidebar-card h4 { margin-bottom: .75rem; font-size: 1rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--text-muted);
    padding: .85rem 0;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { opacity: .5; }

/* ── Callout / Quote ─────────────────────────────────────────────────────── */
.callout {
    background: var(--green-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}
.callout h3 { color: var(--green-dark); margin-bottom: .75rem; }
.callout p  { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ── Testimonial ─────────────────────────────────────────────────────────── */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-quote {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--blue-light);
    font-family: Georgia, serif;
    margin-bottom: .5rem;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
    line-height: 1.7;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-meta { color: var(--text-muted); font-size: .8rem; }

/* ── Steps visual ────────────────────────────────────────────────────────── */
.steps-list { counter-reset: step; }
.step-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.step-number {
    counter-increment: step;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.step-body h4 { margin-bottom: .35rem; }
.step-body p  { color: var(--text-muted); margin: 0; font-size: .93rem; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .93rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,95,158,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }
.alert {
    padding: .9rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: .93rem;
}
.alert-success { background: var(--green-light); color: var(--green-dark); }
.alert-error   { background: #fee2e2; color: #991b1b; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,.8);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.35rem; }
.footer-tagline {
    font-size: .88rem;
    opacity: .7;
    margin: .5rem 0 1.25rem;
    line-height: 1.6;
}
.footer-col h5 {
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .8rem;
    opacity: .65;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { opacity: 1; color: var(--white); }

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 3rem 0;
    color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p  { opacity: .88; max-width: 560px; }

/* ── Calorie calculator ──────────────────────────────────────────────────── */
.calc-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid var(--border);
}
.calc-result {
    background: var(--green-light);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    margin-top: 1.25rem;
    display: none;
}
.calc-result.visible { display: block; }
.calc-big-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-sidebar-layout { grid-template-columns: 1fr; }
    .sticky-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: var(--shadow);
        gap: .25rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .65rem .85rem; border-radius: 8px; }
    .nav-links .btn { margin-left: 0; margin-top: .5rem; text-align: center; justify-content: center; }
    .nav-toggle { display: flex; }

    .hero { min-height: 460px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }

    .stats-grid { flex-direction: row; justify-content: space-around; }
    .stat-item  { border-right: none; padding: .75rem 1rem; }

    .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .day-table { font-size: .85rem; }
    .day-table th, .day-table td { padding: .55rem .75rem; }

    .program-meta { gap: 1rem; }
}

@media (max-width: 480px) {
    .section { padding: 3rem 0; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: var(--radius); }
    .stat-item { flex: 0 0 50%; }
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ── Print (tracker pages) ───────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .newsletter-section,
    .btn, .breadcrumb, .sidebar-card { display: none !important; }
    .week-content { display: block !important; }
    .section { padding: 1rem 0; }
    body { font-size: 12px; }
}
