/* Load AFTER styles.css. Targeted fixes only, nothing rewritten. */
:root {
    --primary: #E2725B;
    --primary-light: #FFB199;
    --secondary: #556B2F;
    --accent: #FFD700;
    --dark: #1A1A2E;
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --text: #333333;
    --muted: #6b7280;
    --line: rgba(26, 26, 46, 0.12);
    --wash: #fff8f1;
    --green-wash: #edf2e6;
    --gold: #E2725B;
    --gold-soft: #FFB199;
    --sun: #FFD700;
    --cream: #fff8f1;
    --sand: #edf2e6;
    --brown: #1A1A2E;
}

html { scroll-padding-top: 88px; }              /* anchors no longer hide under fixed nav */
body { overflow-x: clip; }

/* Type */
.hero-title, .section-header h2, .article-title { letter-spacing: -0.02em; text-wrap: balance; }
.section-header p, .about-copy p, .card p, .partner-card p { text-wrap: pretty; }
.hero-eyebrow { color: var(--primary-light); }

/* Hero */
.hero { min-height: 88dvh; }
.navbar { transition: box-shadow .25s ease; }
.navbar.scrolled { box-shadow: 0 10px 30px rgba(26, 26, 46, .08); }

.quote-mark { color: var(--primary); }

/* Equal 3-up cards get some rhythm */
.cards .card:nth-child(2) { transform: translateY(1.5rem); }
.cards .card:nth-child(2):hover { transform: translateY(1.2rem); }
.solution-grid { grid-template-columns: 1.3fr 1fr; }
.solution-grid .solution-item:first-child { grid-row: span 2; padding: 2rem; }

/* Nav: 1025-1280px was overflowing */
@media (min-width: 1025px) and (max-width: 1280px) {
    .brand-wordmark { display: none; }
    .nav-menu { gap: .5rem; }
    .nav-menu a { font-size: .76rem; }
}

/* Carousel: CSS showed 3-up on tablet while JS paged 2-up */
@media (max-width: 1024px) {
    .articles-carousel-track .article-card, .gallery-item, .team-card { flex-basis: calc((100% - 1rem) / 2); }
    .about-services, .about-statements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards, .solution-grid { grid-template-columns: 1fr; }
    .cards .card:nth-child(2) { transform: none; }
    .solution-grid .solution-item:first-child { grid-row: auto; }
    .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-reports { right: 0; }
    .nav-menu { max-height: calc(100dvh - 76px); overflow-y: auto; }
}
@media (max-width: 700px) {
    .articles-carousel-track .article-card, .gallery-item, .team-card { flex-basis: 100%; }
    .about-services, .about-statements, .stats-grid { grid-template-columns: 1fr; }
}

/* Events: fixed 540px cards clipped text, hover-scroll never worked on touch */
.event-card, .events-past-scroll .event-card { height: auto; }
.event-card-content { overflow: visible; }
.event-description { max-height: 13rem; overflow-y: auto; padding-right: .5rem; }
.event-card.event-hover-scroll .event-copy { animation: none; }

/* States */
.btn:active, .carousel-btn:active, .enroll-btn:active { transform: translateY(1px) scale(.98); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.team-card { cursor: pointer; }
.carousel-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Past events: equal-height cards in the scroller */
.events-past-scroll { align-items: stretch; }
.events-past-scroll .event-card { align-self: stretch; }

/* ===== Round 2 ===== */

/* Logo: bigger, clearer */
.nav-logo img, .logo-icon { width: 84px; height: 84px; filter: drop-shadow(0 2px 6px rgba(26,26,46,.25)); }
.navbar .container { min-height: 96px; }
html { scroll-padding-top: 108px; }
.brand-wordmark strong { font-size: 1.35rem; }
.site-footer-mark img { width: 84px; height: 84px; padding: 6px; border-radius: 14px; }
@media (max-width: 1180px) and (min-width: 901px) { .nav-logo img, .logo-icon { width: 70px; height: 70px; } }
@media (max-width: 900px) { .nav-logo img, .logo-icon { width: 64px; height: 64px; } .navbar .container { min-height: 80px; } }


/* Symmetry: centred section headers, equal columns */
.section-header { grid-template-columns: 1fr; justify-items: center; text-align: center; align-items: center; gap: 1rem; }
.section-header p { max-width: 62ch; }
.cards .card:nth-child(2), .cards .card:nth-child(2):hover { transform: none; }
.solution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.solution-grid .solution-item:first-child { grid-row: auto; padding: inherit; }
.card, .solution-item, .partner-card, .benefit-item, .stat-item, .contact-item { text-align: center; justify-items: center; }
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cta-center { display: flex; justify-content: center; }
@media (max-width: 1024px) { .solution-grid, .contact-grid { grid-template-columns: 1fr; } }

/* About: no image, wider copy */
.ab-hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.ab-hero-copy { max-width: 62rem; display: grid; justify-items: center; }
.ab-hero .ab-label { justify-content: center; }
.ab-hero .ab-label::before { display: none; }
.ab-title { font-size: clamp(2.6rem, 5vw, 5rem); max-width: 18ch; }
.ab-lede { max-width: 62rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding: 2rem 0 0; margin-top: 2.2rem; border-left: 0; border-top: 2px solid var(--primary-light); text-align: left; }
@media (max-width: 800px) { .ab-lede { grid-template-columns: 1fr; gap: 1rem; } }

/* About quote */
.ab-quote-about { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.ab-quote-in { text-align: center; }
.ab-quote-about .ab-qa { justify-items: center; text-align: center; }

/* Mission / Vision: equal halves, bar across both */
.ab-conn { grid-column: 1 / -1; border-top: 3px solid var(--primary-light); }
.ab-mission { grid-column: 1 / 7; grid-row: 2; padding-top: 2.5rem; padding-bottom: 1rem; }
.ab-vision { grid-column: 7 / 13; grid-row: 2; padding-top: 2.5rem; padding-bottom: 1rem; }

/* Flagship + services symmetry */
.ab-flag-grid { grid-template-columns: 1fr; text-align: center; }
.ab-flag-grid .ab-label, .ab-wwd .ab-label { justify-content: center; }
.ab-flag-grid .ab-label::before, .ab-wwd .ab-label::before { display: none; }
.ab-flag-t { max-width: 22ch; margin-inline: auto; }
.ab-flag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.ab-init + .ab-init { margin: 0; }
.ab-init { text-align: left; }
.ab-svc:nth-child(even) { margin-top: 0; }
.ab-cta { grid-column: 1 / -1; justify-content: center; margin-top: 2.5rem; }
@media (max-width: 900px) { .ab-flag-list { grid-template-columns: 1fr; } .ab-vision { grid-column: auto; grid-row: auto; } }


/* ===== Round 3: About content from document ===== */
.ab-intro { max-width: 52rem; margin: 1.8rem auto 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--text); }
.ab-hubs { margin: 1.4rem 0 0; color: var(--primary); font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.ab-hubs span { margin: 0 .5rem; opacity: .6; }
.ab-about { padding: clamp(4rem, 7vw, 6rem) 0; text-align: center; }
.ab-about .ab-label { justify-content: center; }
.ab-about .ab-label::before { display: none; }
.ab-about .ab-lede { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.8rem; }
@media (max-width: 900px) { .ab-about .ab-lede { grid-template-columns: 1fr; } }
.ab-flag-intro { max-width: 46ch; margin: 1rem auto 0; color: var(--muted); line-height: 1.7; }
.ab-flag-close { grid-column: 1 / -1; margin: 1rem auto 0; max-width: 60ch; text-align: center; font-weight: 700; color: var(--dark); line-height: 1.6; }
.ab-flag-list { display: grid; }


/* ===== Round 4: reports in hero, matching stats, Merriweather + Lato ===== */
.hero .container { position: static; }
.hero { position: relative; }
.hero-reports { position: absolute; top: 8.5rem; right: max(1.5rem, calc((100vw - 1180px) / 2)); left: auto; z-index: 2; width: 360px; display: grid; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.16); box-shadow: 0 18px 44px rgba(26,26,46,.35); }
.hero-reports-head, .hero-report-link { padding: 1rem 1.15rem; background: rgba(26,26,46,.82); }
.hero-reports-head strong { font-size: 1.5rem; }
.hero-reports-head span { font-size: .82rem; }
.hero-report-link { font-size: .95rem; line-height: 1.4; gap: .85rem; align-items: flex-start; }
.hero-report-link i { font-size: 1.5rem; margin-top: .1rem; }
.hero-reports-btn { display: none !important; }
@media (min-width: 901px) {
    .hero-content { width: min(760px, calc(100% - 400px)); }
}

/* Stats styled like the reports box */
.hero-proof { gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.16); box-shadow: 0 18px 44px rgba(26,26,46,.35); }
.hero-proof .stat { padding: 1rem 1.15rem; background: rgba(26,26,46,.82); }
.hero-proof strong { font-size: 1.5rem; }
.hero-proof span { font-size: .82rem; }

/* Mobile and tablet: reports shown inline in the hero */
@media (max-width: 900px) {
    .hero .container { display: flex; flex-direction: column; }
    .hero-content { order: 1; width: 100%; }
    .hero-reports { display: grid !important; position: relative; top: auto; right: auto; order: 2; width: 100%; margin: 1.6rem 0 0; }
    .hero-proof { order: 3; margin-top: 1rem; }
}

/* Merriweather is wide: tone heading sizes down */
.hero-title { font-weight: 700; line-height: 1.05; letter-spacing: -.01em; font-size: clamp(2.5rem, 5.2vw, 5.2rem); }
.section-header h2 { font-weight: 700; line-height: 1.12; font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.ab-title { font-weight: 700; line-height: 1.1; font-size: clamp(2.1rem, 4vw, 3.8rem); max-width: 20ch; }
.ab-break-t { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.1; }
@media (max-width: 700px) {
    .hero-title { font-size: clamp(2.2rem, 10vw, 2.9rem); }
    .ab-title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
}