/* =========================================
   VFWA Implementation Guide Styles
   Extends Oxford Blue + Magenta palette
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --oxford-blue: #002147;
    --oxford-blue-dark: #001633;
    --oxford-blue-light: #003366;
    --magenta: #E6007E;
    --magenta-hover: #cc006e;
    --magenta-light: #ff3399;
    --white: #FFFFFF;
    --light-grey: #F3F3F3;
    --dark-text: #1a1a2e;
    --body-text: #3a3a4a;
    --border-light: rgba(230, 0, 126, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 8px 32px rgba(0, 33, 71, 0.08);
    --shadow-hover: 0 12px 48px rgba(0, 33, 71, 0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vfwa-magenta: #E6007E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body { font-family: var(--font-main); color: var(--dark-text); line-height: 1.7; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { color: var(--body-text); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section--dark { background: var(--oxford-blue); color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.8); }
.section--dark .section-label { color: var(--magenta-light); }
.section--grey { background: var(--light-grey); }
.text-center { text-align: center; }

.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; color: var(--magenta); margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1.25rem; }
.section-subtitle { font-size: 1.1rem; color: var(--body-text); max-width: 720px; margin: 0 auto 2.5rem; }

/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(0, 33, 71, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06); transition: var(--transition);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { font-weight: 800; font-size: 1.1rem; color: var(--white); display: flex; align-items: center; gap: 0.5rem; }
.nav__logo-accent { color: var(--magenta); }
.nav__links { display: flex; gap: 1.1rem; align-items: center; }
.nav__links a { color: rgba(255,255,255,0.75); font-size: 0.77rem; font-weight: 500; transition: var(--transition); position: relative; }
.nav__links a::after { content:''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--magenta); transition: var(--transition); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__hamburger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }

/* HERO */
.guide-hero {
    position: relative; min-height: 50vh; display: flex; align-items: center; justify-content: center;
    background: var(--oxford-blue); overflow: hidden; padding: 120px 2rem 4rem;
}
.guide-hero__bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(230,0,126,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(230,0,126,0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0,51,102,0.4) 0%, transparent 70%);
}
.guide-hero__content { position: relative; z-index: 2; text-align: center; max-width: 860px; animation: fadeInUp 0.8s ease-out; }
.guide-hero__badge {
    display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(230,0,126,0.15);
    border: 1px solid rgba(230,0,126,0.3); border-radius: 100px; padding: 0.4rem 1.2rem;
    font-size: 0.75rem; font-weight: 600; color: var(--magenta-light); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 1.5rem;
}
.guide-hero h1 { color: var(--white); margin-bottom: 1rem; }
.guide-hero h1 span { color: var(--magenta); }
.guide-hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 680px; margin: 0 auto 2rem; line-height: 1.8; }
.guide-hero__cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--magenta); color: var(--white); font-weight: 600; padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.9rem; transition: var(--transition); }
.guide-hero__cta:hover { background: var(--magenta-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230,0,126,0.35); }

@keyframes fadeInUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }

/* CHEAT SHEET */
.cheat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2.5rem;
}
.cheat-card {
    background: var(--white); border-radius: var(--radius-md); padding: 2rem;
    box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
    transition: var(--transition); position: relative; overflow: hidden;
}
.cheat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--magenta); transform: scaleY(0); transition: var(--transition); transform-origin: top;
}
.cheat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cheat-card:hover::before { transform: scaleY(1); }
.cheat-card__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--magenta); margin-bottom: 0.5rem; }
.cheat-card__title { font-size: 1rem; color: var(--oxford-blue); margin-bottom: 0.5rem; }
.cheat-card p { font-size: 0.9rem; }

.core-shift {
    background: linear-gradient(135deg, var(--oxford-blue), var(--oxford-blue-light));
    border-radius: var(--radius-lg); padding: 2.5rem 3rem; margin: 2.5rem 0; text-align: center;
}
.core-shift p { color: var(--white); font-size: 1.05rem; line-height: 1.8; }
.core-shift .strike { text-decoration: line-through; opacity: 0.5; }
.core-shift .highlight { color: var(--magenta-light); font-weight: 700; }

.key-phrases { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
.key-phrase {
    display: inline-block; background: rgba(230,0,126,0.08); border: 1px solid rgba(230,0,126,0.2);
    border-radius: 100px; padding: 0.5rem 1.2rem; font-size: 0.82rem; font-weight: 500; color: var(--oxford-blue);
    transition: var(--transition);
}
.key-phrase:hover { background: var(--magenta); color: var(--white); border-color: var(--magenta); }

/* SECTION TABS */
.section-tabs {
    position: sticky; top: 72px; z-index: 100; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,33,71,0.08); padding: 0.75rem 0;
}
.section-tabs__inner { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0 2rem; scrollbar-width: none; -ms-overflow-style: none; }
.section-tabs__inner::-webkit-scrollbar { display: none; }
.section-tab {
    flex-shrink: 0; padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.78rem;
    font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap;
    background: transparent; border: 1px solid rgba(0,33,71,0.12); color: var(--body-text);
}
.section-tab:hover { border-color: var(--magenta); color: var(--magenta); }
.section-tab.active { background: var(--magenta); color: var(--white); border-color: var(--magenta); }

/* FAQ ACCORDION */
.faq-group { margin-bottom: 2rem; }
.faq-group__header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}
.faq-group__icon { font-size: 1.6rem; }
.faq-group__title { font-size: 1.3rem; color: var(--oxford-blue); }
.faq-group__subtitle { font-size: 0.85rem; color: var(--body-text); font-weight: 400; }

.faq-item {
    background: var(--white); border-radius: var(--radius-md); margin-bottom: 0.75rem;
    box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
    overflow: hidden; transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-hover); }

.faq-item__trigger {
    width: 100%; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; cursor: pointer; background: none; border: none; font-family: var(--font-main);
    font-size: 0.95rem; font-weight: 600; color: var(--oxford-blue); text-align: left; transition: var(--transition);
}
.faq-item__trigger:hover { color: var(--magenta); }
.faq-item__arrow {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(230,0,126,0.08);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: var(--transition); font-size: 0.8rem; color: var(--magenta);
}
.faq-item.open .faq-item__arrow { background: var(--magenta); color: var(--white); transform: rotate(180deg); }

.faq-item__content {
    max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-item__content { max-height: 2000px; }

.faq-item__inner { padding: 0 1.5rem 1.5rem; }

.faq-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.faq-table th, .faq-table td { padding: 0.75rem 1rem; text-align: left; font-size: 0.88rem; border-bottom: 1px solid rgba(0,33,71,0.06); }
.faq-table th { background: rgba(0,33,71,0.03); font-weight: 600; color: var(--oxford-blue); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.faq-table td:first-child { font-weight: 500; color: var(--oxford-blue); width: 40%; }
.faq-table tr:hover td { background: rgba(230,0,126,0.03); }

.faq-takeaway {
    background: linear-gradient(135deg, rgba(0,33,71,0.04), rgba(230,0,126,0.04));
    border-left: 3px solid var(--magenta); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem; margin-top: 0.75rem;
}
.faq-takeaway p { font-size: 0.9rem; font-weight: 600; color: var(--oxford-blue); font-style: italic; }

/* PRACTICAL IMPLEMENTATION TABLES */
.impl-table-wrapper {
    overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light); margin-bottom: 2rem; background: var(--white);
}
.impl-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.impl-table thead th {
    background: var(--oxford-blue); color: var(--white); padding: 1rem 1.25rem;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; text-align: left;
}
.impl-table tbody td { padding: 1rem 1.25rem; font-size: 0.88rem; border-bottom: 1px solid rgba(0,33,71,0.06); vertical-align: top; }
.impl-table tbody tr:hover td { background: rgba(230,0,126,0.03); }
.impl-table tbody tr:nth-child(even) td { background: rgba(0,33,71,0.015); }
.impl-table tbody tr:nth-child(even):hover td { background: rgba(230,0,126,0.03); }

.method-badge {
    display: inline-block; font-weight: 600; font-size: 0.82rem; color: var(--magenta);
}
.impl-table tbody td:first-child {
    background: rgba(230,0,126,0.06); font-weight: 600; color: var(--magenta);
}
.impl-table tbody tr:hover td:first-child { background: rgba(230,0,126,0.1); }

/* TEMPLATE FIELDS */
.template-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem; margin: 1.5rem 0;
}
.template-field {
    background: var(--white); border-radius: var(--radius-sm); padding: 1.25rem;
    border: 1px solid var(--border-light); transition: var(--transition);
}
.template-field:hover { border-color: var(--magenta); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.template-field__label { font-size: 0.82rem; font-weight: 700; color: var(--oxford-blue); margin-bottom: 0.25rem; }
.template-field__desc { font-size: 0.82rem; color: var(--body-text); }

/* COHORT SIZE CARDS */
.cohort-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.cohort-card {
    background: var(--white); border-radius: var(--radius-md); padding: 2rem;
    box-shadow: var(--shadow-card); border: 1px solid var(--border-light); transition: var(--transition);
}
.cohort-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--magenta); }
.cohort-card__size {
    display: inline-flex; align-items: center; gap: 0.5rem; background: var(--magenta);
    color: var(--white); font-weight: 700; font-size: 0.85rem; padding: 0.4rem 1rem;
    border-radius: 100px; margin-bottom: 1rem;
}
.cohort-card h4 { color: var(--oxford-blue); margin-bottom: 0.75rem; }
.cohort-card ul { list-style: none; padding: 0; }
.cohort-card li { font-size: 0.85rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(0,33,71,0.05); display: flex; gap: 0.5rem; }
.cohort-card li::before { content: '→'; color: var(--magenta); font-weight: 700; flex-shrink: 0; }

/* RETURN OPTIONS */
.return-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.return-list li {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,33,71,0.05); font-size: 0.9rem;
}
.return-list li::before { content: '✓'; color: var(--magenta); font-weight: 700; flex-shrink: 0; }

/* KEY REASSURANCE BANNER */
.reassurance-banner {
    background: linear-gradient(135deg, var(--oxford-blue), var(--oxford-blue-light));
    border-radius: var(--radius-lg); padding: 3rem; margin: 2rem 0; text-align: center;
}
.reassurance-banner h3 { color: var(--white); margin-bottom: 1rem; }
.reassurance-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 720px; margin: 0 auto; line-height: 1.8; }
.reassurance-banner .highlight-text { color: var(--magenta-light); font-weight: 600; }

/* INTRO PARAGRAPH */
.intro-para {
    font-size: 1.05rem; max-width: 780px; margin: 0 auto 2rem; line-height: 1.8; color: var(--body-text);
}

/* LIMITATIONS */
.limitations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.limitation-card {
    background: var(--white); border-radius: var(--radius-sm); padding: 1.25rem;
    border: 1px solid var(--border-light); transition: var(--transition);
}
.limitation-card:hover { border-color: var(--magenta); }
.limitation-card__label { font-size: 0.82rem; font-weight: 700; color: var(--magenta); margin-bottom: 0.25rem; }
.limitation-card p { font-size: 0.85rem; }

/* FOOTER */
.footer { background: var(--oxford-blue-dark); padding: 3rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer__brand { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.footer__brand span { color: var(--magenta); }
.footer__info { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-top: 0.25rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition); }
.footer__links a:hover { color: var(--magenta); }

.nowrap { white-space: nowrap; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .nav__links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(0,33,71,0.98); flex-direction: column; padding: 2rem; gap: 1.5rem; }
    .nav__links.open { display: flex; }
    .nav__hamburger { display: flex; }
    .guide-hero { min-height: auto; padding: 110px 1.5rem 3rem; }
    .cheat-grid { grid-template-columns: 1fr; }
    .core-shift { padding: 1.5rem; }
    .faq-table th, .faq-table td { padding: 0.6rem 0.75rem; font-size: 0.82rem; }
    .faq-table td:first-child { width: auto; }
    .section-tabs__inner { gap: 0.35rem; padding: 0 1rem; }
    .section-tab { padding: 0.4rem 0.9rem; font-size: 0.72rem; }
    .cohort-grid { grid-template-columns: 1fr; }
    .template-grid { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { flex-direction: column; align-items: center; }
    .key-phrases { gap: 0.5rem; }
}
