/* ============================================
   NBNC — National Board of Nutritionist Certification
   Brand Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --forest: #2D6A4F;
    --growth-green: #40916C;
    --earth-brown: #5C4033;
    --sage: #74C69D;
    --warm-sand: #D4A574;
    --soft-cream: #FAF3E8;
    --white: #FFFFFF;
    --tier-1: #52B788;
    --tier-2: #2D6A4F;
    --tier-3: #1B4332;
    --advocacy-gold: #C9A227;
    --cta-terracotta: #C17847;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--earth-brown);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--forest);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 500; line-height: 1.4; color: var(--forest); }

p { margin-bottom: 1rem; max-width: 75ch; }

a { color: var(--growth-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--forest); }

strong { font-weight: 600; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--cta-terracotta);
    color: var(--white);
    border-color: var(--cta-terracotta);
}
.btn-primary:hover {
    background-color: #a8623a;
    border-color: #a8623a;
    color: var(--white);
}

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

.btn-full { width: 100%; }

.btn-nav {
    background-color: var(--cta-terracotta);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
}
.btn-nav:hover {
    background-color: #a8623a;
    color: var(--white) !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--growth-green);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--earth-brown);
    text-decoration: none;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--forest); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--forest);
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--growth-green) 50%, var(--tier-1) 100%);
    color: var(--white);
    text-align: center;
}

.hero h1 {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 2.75rem;
}

.hero-sub {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--soft-cream);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}
.section-intro p { max-width: none; }

.section-intro-text {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 48px;
    font-size: 1.1rem;
}

/* ============================================
   WHY NBNC - VALUE CARDS
   ============================================ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--growth-green);
    transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--soft-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--forest);
}

.value-card h3 {
    margin-bottom: 12px;
}

.value-card p {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CERTIFICATION TIERS
   ============================================ */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.tier-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}
.tier-1::before { background: var(--tier-1); }
.tier-2::before { background: var(--tier-2); }
.tier-3::before { background: var(--tier-3); }

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--white);
}
.tier-1 .tier-badge { background: var(--tier-1); }
.tier-2 .tier-badge { background: var(--tier-2); }
.tier-3 .tier-badge { background: var(--tier-3); }

.tier-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.tier-abbr {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest);
    display: block;
    margin-bottom: 12px;
}

.tier-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.tier-details {
    list-style: none;
    margin-bottom: 20px;
}
.tier-details li {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0ebe4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tier-details li i {
    color: var(--growth-green);
    margin-top: 3px;
    min-width: 16px;
}

.tier-scope {
    background: var(--soft-cream);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.tier-scope h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--growth-green);
}
.tier-scope p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest);
    text-align: center;
}

.tier-price-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.bundle-banner {
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}
.bundle-banner i {
    font-size: 1.5rem;
    color: var(--advocacy-gold);
}
.bundle-banner p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ============================================
   PATHWAYS
   ============================================ */
.pathways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.pathway-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--growth-green);
}

.pathway-icon {
    width: 56px;
    height: 56px;
    background: var(--soft-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--forest);
    margin-bottom: 20px;
}

.pathway-card h3 {
    margin-bottom: 12px;
}

.pathway-desc {
    margin-bottom: 16px;
    font-weight: 500;
}

.pathway-steps {
    padding-left: 20px;
    margin-bottom: 20px;
}
.pathway-steps li {
    padding: 6px 0;
    font-size: 0.95rem;
}

.pathway-note {
    background: var(--soft-cream);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pathway-card h4 {
    margin: 16px 0 10px;
    font-size: 1rem;
}

.pathway-reqs {
    list-style: none;
    margin-bottom: 20px;
}
.pathway-reqs li {
    padding: 6px 0;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}
.pathway-reqs li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--growth-green);
    font-size: 0.8rem;
    top: 9px;
}

.pathway-window {
    background: var(--soft-cream);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.pathway-window i { color: var(--advocacy-gold); }

/* ============================================
   PROGRAMS
   ============================================ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--growth-green);
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.program-card-featured {
    border-top-color: var(--advocacy-gold);
}

.program-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    background: var(--growth-green);
    color: var(--white);
}

.program-badge-bundle {
    background: var(--advocacy-gold);
}

.program-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.program-abbr {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forest);
    display: block;
    margin-bottom: 8px;
}

.program-hours {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.program-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 16px;
}

.program-savings {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--advocacy-gold);
    margin-bottom: 16px;
    margin-top: -8px;
}

/* Study Materials */
.programs-materials {
    margin-bottom: 32px;
}

.material-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 24px;
}

.material-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--soft-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--forest);
}

.material-info {
    flex: 1;
}
.material-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.material-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.material-action {
    text-align: center;
    min-width: 140px;
}
.material-action .program-price {
    margin-bottom: 10px;
}

/* Donation */
.programs-donate {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-left: 4px solid var(--sage);
}
.programs-donate h3 {
    margin-bottom: 12px;
}
.programs-donate p {
    max-width: 640px;
    margin: 0 auto 24px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ============================================
   ADVOCACY
   ============================================ */
.advocacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.advocacy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.advocacy-card i {
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 16px;
}
.advocacy-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}
.advocacy-card p {
    font-size: 0.9rem;
    max-width: none;
    line-height: 1.7;
}

.advocacy-cta {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--advocacy-gold);
}
.advocacy-cta h3 {
    margin-bottom: 16px;
}
.advocacy-cta ul {
    list-style: none;
}
.advocacy-cta li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}
.advocacy-cta li i {
    color: var(--growth-green);
    margin-top: 4px;
}

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

.faq-item {
    border-bottom: 1px solid #e8e2da;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--earth-brown);
    transition: color var(--transition);
    gap: 16px;
}
.faq-question:hover { color: var(--forest); }
.faq-question i {
    font-size: 0.85rem;
    color: var(--growth-green);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}
.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    max-width: none;
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-list {
    list-style: none;
    margin: 16px 0 24px;
}
.about-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}
.about-list li i {
    color: var(--growth-green);
    margin-top: 4px;
}

/* ============================================
   WAITLIST
   ============================================ */
.section-waitlist {
    background: linear-gradient(135deg, var(--forest) 0%, var(--growth-green) 100%);
    color: var(--white);
    text-align: center;
}
.section-waitlist .section-title {
    color: var(--white);
}

.waitlist-desc {
    font-size: 1.1rem;
    margin-bottom: 36px;
    opacity: 0.95;
}

.waitlist-form {
    max-width: 440px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}
.form-group input::placeholder { color: rgba(255,255,255,0.7); }
.form-group select { color: rgba(255,255,255,0.7); }
.form-group select option { color: var(--earth-brown); background: var(--white); }
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.15);
}

.waitlist-form .btn-primary {
    margin-top: 8px;
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
    font-size: 1.05rem;
}
.waitlist-form .btn-primary:hover {
    background: var(--soft-cream);
    border-color: var(--soft-cream);
}

.form-note {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 12px;
    margin-bottom: 0;
}

.form-success {
    display: none;
    text-align: center;
    padding: 32px;
}
.form-success.visible { display: block; }
.form-success i {
    font-size: 3rem;
    color: var(--sage);
    margin-bottom: 16px;
}
.form-success p {
    max-width: none;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--tier-3);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
}

.footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}
.footer-links li,
.footer-contact li {
    padding: 4px 0;
    font-size: 0.9rem;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-contact i { font-size: 0.85rem; color: var(--sage); }

.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: background var(--transition);
}
.social-icons a:hover { background: var(--growth-green); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.85rem;
    max-width: none;
    margin-bottom: 8px;
}
.footer-legal {
    font-size: 0.8rem !important;
    opacity: 0.7;
}
.footer-bottom-links {
    margin-top: 12px;
    display: flex;
    gap: 24px;
    justify-content: center;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .value-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin-left: auto; margin-right: auto; }
    .advocacy-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: 70px 0; }

    .hero { padding: 130px 0 80px; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }

    .pathways-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .material-card { flex-direction: column; text-align: center; }

    .bundle-banner { flex-direction: column; text-align: center; padding: 20px; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .footer-contact li { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-bottom-links { flex-direction: column; gap: 8px; }

    /* Mobile Nav */
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        gap: 0;
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #f0ebe4;
        font-size: 1rem;
    }
    .btn-nav {
        margin-top: 16px;
        text-align: center;
        display: block;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 280px; }
    .tier-card { padding: 28px 20px; }
    .pathway-card { padding: 28px 24px; }
}
