/* ============================================================
   Cervello Research — style.css
   Design system: Playfair Display / Inter
   Primary green: #1a7a3c  |  Dark green: #0f4d25
   ============================================================ */

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
    --green-primary:   #1a7a3c;
    --green-dark:      #0f4d25;
    --green-light:     #e8f5ee;
    --green-mid:       #2d9a55;
    --text-dark:       #1a1a2e;
    --text-muted:      #6c757d;
    --section-alt:     #f8fdf9;
    --white:           #ffffff;
    --shadow-sm:       0 2px 8px rgba(0,0,0,.08);
    --shadow-md:       0 6px 24px rgba(0,0,0,.12);
    --shadow-lg:       0 12px 40px rgba(0,0,0,.16);
    --radius:          12px;
    --transition:      0.25s ease;
}

/* ─── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

p { line-height: 1.8; }

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

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

/* ─── Navigation ──────────────────────────────────────────── */
#mainNav {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#mainNav.scrolled {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

#mainNav.scrolled .navbar-brand,
#mainNav.scrolled .nav-link {
    color: var(--text-dark) !important;
}

#mainNav.scrolled .navbar-toggler-icon {
    filter: invert(1) brightness(0);
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.brand-research {
    color: #7ee8a2;
}

#mainNav.scrolled .brand-logo { color: var(--green-dark); }
#mainNav.scrolled .brand-research { color: var(--green-primary); }

.nav-link {
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .02em;
    color: rgba(255,255,255,.92) !important;
    padding: .4rem .75rem !important;
    transition: color var(--transition) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

.nav-link.active {
    border-bottom: 2px solid #7ee8a2;
}

#mainNav.scrolled .nav-link { color: var(--text-dark) !important; }
#mainNav.scrolled .nav-link:hover { color: var(--green-primary) !important; }
#mainNav.scrolled .nav-link.active {
    color: var(--green-primary) !important;
    border-bottom-color: var(--green-primary);
}

.btn-nav-cta {
    background: var(--green-primary);
    color: var(--white) !important;
    border-radius: 50px;
    padding: .45rem 1.25rem !important;
    font-size: .875rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-nav-cta:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10, 40, 20, .78) 0%,
        rgba(15, 77, 37, .62) 55%,
        rgba(26, 122, 60, .45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    max-width: 640px;
    opacity: .92;
    margin-top: 1.25rem;
}

.hero-sub-page {
    min-height: 52vh;
}

.hero-sub-page h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-primary-cervello {
    background: var(--green-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-primary-cervello:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 122, 60, .35);
}

.btn-primary-cervello.pulse {
    animation: ctaPulse 2.8s infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,122,60,.4); }
    50%       { box-shadow: 0 0 0 12px rgba(26,122,60,0); }
}

.btn-outline-cervello {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-outline-cervello:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-green {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-outline-green:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ─── Section Helpers ─────────────────────────────────────── */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-primary);
    display: block;
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title.light { color: var(--white); }

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--green-primary);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

.section-divider.center { margin-left: auto; margin-right: auto; }
.section-divider.light  { background: rgba(255,255,255,.6); }

/* ─── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
    background: var(--green-primary);
    color: var(--white);
    padding: 3.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    display: block;
}

.stat-suffix {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
}

.stat-label {
    font-size: .88rem;
    font-weight: 400;
    opacity: .88;
    margin-top: .4rem;
    display: block;
    letter-spacing: .01em;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card-cervello {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--green-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--green-primary);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.card-title-sm {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

/* ─── Proof Points / Partner Strip ───────────────────────── */
.proof-strip {
    background: var(--white);
    border-top: 1px solid #e8f0ea;
    border-bottom: 1px solid #e8f0ea;
    padding: 1.75rem 0;
}

.proof-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.proof-item {
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
    white-space: nowrap;
}

.proof-item:hover { color: var(--green-primary); }

.proof-dot {
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    opacity: .5;
}

/* ─── Testimonial ─────────────────────────────────────────── */
.testimonial-block {
    background: var(--section-alt);
    border-radius: var(--radius);
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.testimonial-block::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    line-height: 1;
    color: var(--green-primary);
    opacity: .1;
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    pointer-events: none;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.65;
    position: relative;
}

.testimonial-author {
    font-size: .9rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-top: 1.25rem;
}

.testimonial-role {
    font-size: .82rem;
    color: var(--text-muted);
}

/* ─── CTA Section ─────────────────────────────────────────── */
.cta-section {
    background: var(--green-dark);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

/* ─── Two-Column Feature Section ─────────────────────────── */
.feature-photo {
    border-radius: var(--radius);
    width: 100%;
    height: 420px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* ─── Math Infographic ────────────────────────────────────── */
.math-block {
    background: var(--green-light);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
}

.math-block .math-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--green-dark);
}

.math-block .math-label {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.math-block .math-op {
    font-size: 2.5rem;
    color: var(--green-primary);
    font-weight: 900;
    margin: 0 1.5rem;
}

.math-equals {
    background: var(--green-primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2rem 3rem;
    text-align: center;
    margin-top: 2rem;
}

.math-equals .math-result {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
}

/* ─── Tier / Giving Cards ─────────────────────────────────── */
.tier-card {
    background: var(--white);
    border: 2px solid #e8f0ea;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.tier-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tier-card.featured {
    border-color: var(--green-primary);
    background: var(--section-alt);
}

.tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.tier-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green-dark);
}

.tier-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

/* ─── Leadership Cards ────────────────────────────────────── */
.leader-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.leader-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-primary);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.leader-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.leader-title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: .1rem;
}

.leader-institution {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.leader-bio {
    font-size: .9rem;
    line-height: 1.75;
    color: #444;
}

/* ─── Contact Form ────────────────────────────────────────── */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-dark);
    margin-bottom: .35rem;
}

.form-control,
.form-select {
    border: 1.5px solid #d4e6da;
    border-radius: 8px;
    padding: .7rem 1rem;
    font-size: .95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(26,122,60,.15);
    outline: none;
}

.form-alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: .9rem;
    margin-top: 1rem;
}

/* ─── Contact Info Cards ──────────────────────────────────── */
.contact-info-card {
    background: var(--section-alt);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--green-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ─── Map ─────────────────────────────────────────────────── */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ─── Principles / Feature List ──────────────────────────── */
.principle-card {
    background: var(--section-alt);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    border-left: 4px solid var(--green-primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.scope-list li {
    padding: .45rem 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
}

.scope-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-primary);
    flex-shrink: 0;
}

/* ─── Stats (Why page) ────────────────────────────────────── */
.stat-highlight {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--green-primary);
    height: 100%;
    transition: transform var(--transition);
}

.stat-highlight:hover { transform: translateY(-3px); }

.stat-highlight .num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--green-primary);
    display: block;
    line-height: 1;
}

.stat-highlight .desc {
    font-size: .88rem;
    color: var(--text-muted);
    margin-top: .5rem;
    line-height: 1.5;
}

/* ─── Pull Quote ──────────────────────────────────────────── */
.pull-quote {
    border-left: 5px solid var(--green-primary);
    padding: 1.5rem 2rem;
    background: var(--section-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.65;
}

/* ─── Callout Banners ─────────────────────────────────────── */
.callout-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.callout-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.callout-banner .callout-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    display: block;
}

.callout-banner .callout-text {
    font-size: 1.05rem;
    opacity: .88;
    margin-top: .5rem;
}

/* ─── Section BGs ─────────────────────────────────────────── */
.bg-section-alt { background: var(--section-alt); }
.bg-green-light { background: var(--green-light); }

/* ─── List Groups / Benefit Lists ────────────────────────── */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem 0;
    font-size: .95rem;
    line-height: 1.5;
}

.benefit-list li .bi {
    color: var(--green-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,.82);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .25rem;
}

.footer-brand span { color: #7ee8a2; }

.footer-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    font-style: italic;
}

.footer-sub {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
}

.footer-legal {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
}

.footer-legal .bi { color: #7ee8a2; }

.footer-heading {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: .45rem; }

.footer-links a {
    color: rgba(255,255,255,.7);
    font-size: .875rem;
    transition: color var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .65rem;
    font-size: .875rem;
    color: rgba(255,255,255,.7);
}

.footer-contact .bi {
    color: #7ee8a2;
    font-size: .95rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--white); }

.footer-partner {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
}

.footer-partner a { color: rgba(255,255,255,.75); }
.footer-partner a:hover { color: var(--white); }
.footer-partner .bi { color: #7ee8a2; }

.footer-divider {
    border-color: rgba(255,255,255,.12);
    margin: 0;
}

.footer-copy {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

.footer-policy-link {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

.footer-policy-link:hover { color: rgba(255,255,255,.8); }

/* ─── Page Padding ────────────────────────────────────────── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero { min-height: 80vh; }
    .hero-bg { background-attachment: scroll; }
    .hero-sub-page { min-height: 45vh; }
    .testimonial-block { padding: 2rem 1.75rem; }
    .math-block .math-op { margin: 0 .75rem; }
}

@media (max-width: 767px) {
    .hero { min-height: 70vh; }
    .stats-bar .col-6:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
    .feature-photo { height: 280px; }
    .tier-card { margin-top: 1.5rem; }
    .math-block { padding: 2rem 1.25rem; }
}

@media (max-width: 575px) {
    .hero h1 { font-size: 2.2rem; }
    .cta-section { padding: 3.5rem 0; }
    .contact-form-wrapper { padding: 1.75rem 1.25rem; }
}
