/* =============================================
   NEXT MILE RUN COACHING — Static Site Styles
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:        #14213d;
    --navy-mid:    #1e2f54;
    --navy-light:  #253a66;
    --accent:      #e07b39;
    --accent-dark: #c46a28;
    --white:       #ffffff;
    --off-white:   #f8f9fa;
    --text:        #2c2c2c;
    --text-muted:  #666666;
    --border:      #e0e0e0;
    --font-head:   'Montserrat', sans-serif;
    --font-body:   'Open Sans', sans-serif;
    --radius:      8px;
    --shadow-sm:   0 4px 16px rgba(0,0,0,.07);
    --shadow-md:   0 10px 36px rgba(0,0,0,.12);
    --shadow-lg:   0 20px 60px rgba(0,0,0,.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--navy);
    line-height: 1.2;
}

h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.3;
}

.label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn-light:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-full { width: 100%; display: block; }

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--navy);
    transition: box-shadow 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link { display: flex; align-items: center; }

.logo {
    height: 85px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    background: var(--navy-mid);
    padding: 1rem 2rem 1.5rem;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        140deg,
        rgba(20, 33, 61, 0.88) 0%,
        rgba(20, 33, 61, 0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 820px;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(2.75rem, 7.5vw, 5.25rem);
    color: var(--white);
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    gap: 0.05em;
}

.hero-content h1 span { display: block; }

.hero-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== ABOUT ===== */
#about {
    padding: 6rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4.5rem;
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.about-text .label { margin-bottom: 0.4rem; }

.about-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.credentials span {
    background: var(--off-white);
    border: 1px solid var(--border);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.2px;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.85rem 1.25rem;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--navy);
    background: var(--off-white);
    border-radius: 0 4px 4px 0;
    line-height: 1.65;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.97rem;
}

/* Personal Records */
.prs {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--navy);
    border-radius: var(--radius);
    color: var(--white);
}

.prs h3 {
    font-family: var(--font-head);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.pr-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0;
    border-right: 1px solid rgba(255,255,255,.12);
}

.pr-item:last-child { border-right: none; }

.pr-race {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.55);
    font-family: var(--font-head);
    font-weight: 600;
}

.pr-time {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: var(--white);
}

.pr-time small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* ===== COACHING PACKAGES ===== */
#coaching {
    padding: 6rem 0;
    background: var(--off-white);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.package-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.package-featured {
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
    border: 2px solid var(--accent);
}

.package-featured:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.package-img {
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

.package-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.package-card:hover .package-img img { transform: scale(1.06); }

.package-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.package-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
    font-family: var(--font-head);
    width: fit-content;
}

.package-body h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.package-price {
    font-size: 2.1rem;
    font-weight: 900;
    font-family: var(--font-head);
    color: var(--navy);
    margin-bottom: 1.1rem;
    line-height: 1;
}

.package-price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-body ul {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.package-body ul li {
    padding-left: 1.35rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.package-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.package-body .btn { width: 100%; }

/* Group photo */
.group-photo {
    border-radius: var(--radius);
    overflow: hidden;
    height: 380px;
}

.group-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

/* ===== CTA BANNER ===== */
#cta {
    background: var(--navy);
    padding: 5.5rem 0;
    text-align: center;
}

.cta-inner h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-inner p {
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ===== CONTACT ===== */
#contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.75;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    font-family: var(--font-head);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy);
}

.contact-item a,
.contact-item span {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(20,33,61,.08);
}

.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
#footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    align-items: start;
}

.footer-logo {
    height: 87px;
    width: auto;
    margin-bottom: 0.8rem;
}

.footer-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.footer-location {
    font-size: 0.83rem;
    color: rgba(255,255,255,.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.2rem;
}

.footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.2rem;
}

.footer-social a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-social a:hover { color: var(--accent); }

.ig-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.ig-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 1.2rem;
    background: rgba(0,0,0,.22);
    font-size: 0.78rem;
    color: rgba(255,255,255,.35);
}

/* ===== PAGE HEADER (interior pages: blog index, articles) ===== */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 150px 0 4rem;
    text-align: center;
}

.page-header .label { color: var(--accent); }

.page-header h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.page-header p {
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-meta-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.25rem;
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
    font-family: var(--font-head);
}

/* ===== BLOG LISTING ===== */
#blog-posts {
    padding: 5rem 0 6rem;
    background: var(--white);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-card-img { height: 200px; overflow: hidden; flex-shrink: 0; }

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.post-card:hover .post-card-img img { transform: scale(1.06); }

.post-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-body .label { margin-bottom: 0.6rem; }

.post-card-body h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.post-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-body h3 a:hover { color: var(--accent); }

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.post-readmore {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== ARTICLE PAGE ===== */
.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-section { padding: 4.5rem 0 6rem; background: var(--white); }

.back-to-blog {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-to-blog:hover { color: var(--accent); }

.article-featured-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body p {
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.85;
    font-size: 1.02rem;
}

.article-body h2 { margin-top: 2.75rem; margin-bottom: 1rem; }
.article-body h3 { margin-top: 2.25rem; margin-bottom: 0.75rem; color: var(--navy); font-size: 1.15rem; }

.article-body ul,
.article-body ol {
    margin: 0 0 1.25rem 1.5rem;
    line-height: 1.85;
    color: var(--text);
}

.article-body img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.article-sources {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.5rem;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 3rem 0;
}

.author-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    flex-shrink: 0;
}

.author-box h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.author-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 960px) {
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .package-featured {
        transform: none;
        border-width: 2px;
    }

    .package-featured:hover { transform: translateY(-5px); }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-photo img {
        max-height: 420px;
        aspect-ratio: auto;
        object-position: center 12%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand { grid-column: 1 / -1; }

    .pr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pr-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
        padding-bottom: 0.75rem;
    }

    .pr-item:last-child,
    .pr-item:nth-child(2) { border-bottom: none; }
}

/* Mobile */
@media (max-width: 600px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .header-inner { padding: 0.85rem 1.25rem; }
    .container { padding: 0 1.25rem; }

    #about, #coaching, #contact { padding: 4rem 0; }
    #cta { padding: 3.5rem 0; }
    #footer { padding: 2.5rem 0 0; }

    .hero-content h1 { font-size: clamp(2rem, 10vw, 2.75rem); }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-brand { grid-column: auto; }

    .page-header { padding: 130px 0 3rem; }

    #blog-posts { padding: 3.5rem 0 4rem; }

    .article-section { padding: 3rem 0 4rem; }
}
