/* =============================
   Iron Talisman Civic Lab — style.css
   Design system: modern_bold (bold fonts, bright accents, geometric shapes, high contrast)
   Layout: FLEXBOX ONLY (no CSS Grid / Columns)
   Mobile-first, responsive, accessible
   ============================= */

/* -----------------------------
   0) RESET / NORMALIZE
   ----------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, main { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: ""; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
button, a { cursor: pointer; }
button { background: none; border: none; }
*:focus { outline: none; }
:focus-visible { outline: 3px solid #2E7D6C; outline-offset: 2px; }

/* -----------------------------
   1) THEME TOKENS
   ----------------------------- */
:root {
  --color-primary: #1E3A5F;   /* Deep navy */
  --color-secondary: #2E7D6C; /* Teal */
  --color-accent: #F2F6FF;    /* Light blue */
  --color-black: #0B0D12;
  --color-dark: #122033;
  --color-mid: #2A3D57;
  --color-text: #0E1B2B;
  --color-muted: #5B6A7C;
  --color-border: #D9E2EF;
  --color-white: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(14,27,43,0.06), 0 1px 8px rgba(14,27,43,0.05);
  --shadow-md: 0 6px 18px rgba(14,27,43,0.12);
  --shadow-lg: 0 18px 40px rgba(14,27,43,0.16);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;

  --speed-fast: 160ms;
  --speed-normal: 240ms;
  --speed-slow: 360ms;
}

/* -----------------------------
   2) BASE TYPOGRAPHY
   ----------------------------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  background: #F8FAFF;
  background: var(--color-accent);
  color: #0E1B2B;
  color: var(--color-text);
  font-family: Verdana, Geneva, sans-serif; /* body font */
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; font-weight: 800; color: #1E3A5F; color: var(--color-primary); line-height: 1.15; letter-spacing: 0.2px; }

h1 { font-size: 40px; margin-bottom: var(--space-16); }
h2 { font-size: 28px; margin-bottom: var(--space-16); }
h3 { font-size: 22px; margin-bottom: var(--space-8); }

p { margin-bottom: var(--space-16); color: var(--color-text); }
strong { font-weight: 800; }
em { font-style: italic; }

.subheadline { font-size: 18px; color: var(--color-dark); max-width: 48ch; }

/* Links */
a { color: #2E7D6C; color: var(--color-secondary); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

/* Geometric list bullets (modern_bold) */
ul li { position: relative; padding-left: 24px; }
ul li::before { content: ""; width: 10px; height: 10px; background: #2E7D6C; background: var(--color-secondary); border-radius: 2px; position: absolute; left: 0; top: 10px; box-shadow: 0 0 0 2px #FFFFFF inset; }

/* -----------------------------
   3) GLOBAL LAYOUT UTILITIES (FLEX ONLY)
   ----------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* Flex-only rule */
  flex-direction: column; /* mobile-first */
  gap: var(--space-20);
}

.content-wrapper {
  display: flex; /* Flex-only rule */
  flex-direction: column;
  gap: var(--space-20);
}

section { margin-bottom: var(--space-60); padding: var(--space-40) 0; position: relative; }

/* MANDATORY SPACING/ALIGNMENT PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* -----------------------------
   4) HEADER & NAVIGATION
   ----------------------------- */
header { background: #FFFFFF; box-shadow: 0 2px 10px rgba(14,27,43,0.08); position: sticky; top: 0; z-index: 1000; }

header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }

.main-nav { display: none; align-items: center; gap: 20px; }
.main-nav a { color: var(--color-dark); font-weight: 800; padding: 10px 6px; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; background: var(--color-secondary); transform: scaleX(0); transition: transform var(--speed-fast) ease; border-radius: 2px; }
.main-nav a:hover::after { transform: scaleX(1); }

/* Primary CTA in header */
header .button.primary { display: none; }

/* Mobile hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: #1E3A5F; background: var(--color-primary); color: #FFFFFF; font-size: 22px; line-height: 1; transition: background var(--speed-fast) ease, transform var(--speed-fast) ease; }
.mobile-menu-toggle:hover { background: #2A4B77; transform: translateY(-1px); }

/* Mobile slide-over menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(18,32,51,0.7); display: flex; transform: translateX(100%); transition: transform var(--speed-normal) ease; z-index: 1200; }
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .mobile-nav { background: #FFFFFF; width: 86%; max-width: 360px; margin-left: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 8px; background: var(--color-accent); color: var(--color-dark); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; background: #F6F9FF; color: var(--color-primary); font-weight: 800; box-shadow: var(--shadow-sm); }
.mobile-nav a:hover { background: #E9F2FF; }

/* -----------------------------
   5) HERO SECTIONS (modern_bold)
   ----------------------------- */
.hero { padding: 70px 0; }
.hero .container { position: relative; }
.hero .content-wrapper { gap: var(--space-20); }
.hero h1 { font-size: 42px; text-wrap: balance; }
.hero .subheadline { font-size: 18px; color: var(--color-dark); }

/* Geometric accent behind hero */
.hero .container, .hero .content-wrapper { z-index: 1; }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Supporting points list in hero */
.supporting-points { display: flex; flex-direction: column; gap: 8px; }
.tagline-note { color: var(--color-muted); font-size: 14px; }

/* -----------------------------
   6) BUTTONS
   ----------------------------- */
.button { background: #FFFFFF; color: var(--color-primary); border: 2px solid var(--color-primary); padding: 12px 16px; border-radius: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-sm); transition: transform var(--speed-fast) ease, background var(--speed-fast) ease, color var(--speed-fast) ease, box-shadow var(--speed-fast) ease; }
.button:hover { background: var(--color-primary); color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.button.primary { background: #2E7D6C; background: var(--color-secondary); color: #FFFFFF; border-color: var(--color-secondary); }
.button.primary:hover { background: #256A5C; border-color: #256A5C; }
.button:active { transform: translateY(0); }

/* -----------------------------
   7) FEATURE / SERVICE / CARD LAYOUTS
   ----------------------------- */
.feature-grid, .service-cards, .highlight-cards, .initiative-cards, .stats {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch;
}

.feature, .service, .card { flex: 1 1 260px; background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: transform var(--speed-fast) ease, box-shadow var(--speed-fast) ease, border-color var(--speed-fast) ease; }

.card h3, .service h3, .feature h3 { color: var(--color-primary); }
.feature img { width: 44px; height: 44px; }

.card:hover, .service:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #BFD1E8; }

/* Accent stripe for cards (geometric, modern) */
.card::before, .service::before, .feature::before { content: ""; position: absolute; top: 0; left: 0; height: 6px; width: 40%; background: var(--color-secondary); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }

/* Stats blocks */
.stats p { background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: 14px 16px; font-weight: 800; color: var(--color-primary); box-shadow: var(--shadow-sm); }
.stats p strong { font-size: 22px; margin-right: 6px; }

/* Chips */
.tag-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chips span { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background: #E9F2FF; color: var(--color-primary); font-weight: 800; border: 2px solid #CFE0F6; }

/* Pagination */
.pagination, .pagination-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pagination a, .pagination-controls a { padding: 8px 12px; border-radius: 10px; background: #FFFFFF; border: 2px solid var(--color-border); color: var(--color-primary); font-weight: 800; }
.pagination a:hover, .pagination-controls a:hover { background: #F7FBFF; }

/* Lists blocks styling (various sections) */
.values-list, .benefit-list, .impact-highlights, .news-list, .office-hours, .eligibility-criteria-list, .selection-rubric-points, .documentation-checklist, .timeline-points, .category-breakdown, .outcome-metrics, .role-list, .donation-tiers, .sponsor-benefits, .partnership-models, .moa-checklist, .press-release-links, .brand-guidelines-links, .download-links, .event-list, .rights-list, .legal-basis, .rights, .cookie-types-list, .strictly-necessary-list, .performance-list, .functional-list, .targeting-list, .browser-controls-instructions, .support-channels-list, .impact-milestones, .eligibility-criteria, .milestone-list { display: flex; flex-direction: column; gap: 10px; }

/* FAQ accordion (static content styled as card) */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.faq-accordion h3 { margin-bottom: 6px; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--color-muted); font-size: 14px; }
.breadcrumb a { color: var(--color-secondary); }

/* Text sections */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.story-overview { color: var(--color-dark); }

/* Before/After note */
.before-after { background: #FFFFFF; border: 2px solid var(--color-border); padding: 16px; border-radius: var(--radius-md); }

/* Media block */
.media-block, .case-highlights, .transparency-links { background: #FFFFFF; border: 2px solid var(--color-border); padding: 16px; border-radius: var(--radius-md); }

/* Contact details blocks */
.contact-details { display: flex; flex-direction: column; gap: 8px; }
.contact-details p { display: flex; align-items: center; gap: 10px; }
.contact-details img { width: 20px; height: 20px; }

/* Events teaser */
.events-teaser { background: #FFFFFF; border-left: 6px solid var(--color-secondary); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* -----------------------------
   8) TESTIMONIALS (high contrast, readable)
   ----------------------------- */
.testimonial-card { background: #FFFFFF; color: var(--color-text); border: 2px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--color-dark); }

/* -----------------------------
   9) FOOTER
   ----------------------------- */
footer { background: #0E1B2B; background: var(--color-primary); color: #FFFFFF; padding: 30px 0; margin-top: var(--space-60); }
footer .content-wrapper { display: flex; flex-direction: column; gap: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #FFFFFF; font-weight: 800; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.footer-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
footer .address-block, footer .hours-block, footer .phone-email-block { color: #E7F0FB; }
footer .social-links a { color: #CFE0F6; font-weight: 800; }
.copyright { color: #BFD1E8; font-size: 14px; margin-top: 6px; }

/* -----------------------------
   10) MOBILE NAV VISIBILITY RULES
   ----------------------------- */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  header .button.primary { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------
   11) RESPONSIVE LAYOUTS
   ----------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .hero { padding: 90px 0; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .feature-grid .feature, .service-cards .service, .highlight-cards .card, .initiative-cards .card { flex: 1 1 calc(50% - 20px); }
  .stats { justify-content: flex-start; }
}

@media (min-width: 1100px) {
  .feature-grid .feature, .service-cards .service, .highlight-cards .card, .initiative-cards .card { flex: 1 1 calc(25% - 20px); }
  .hero h1 { font-size: 52px; }
}

/* -----------------------------
   12) HEADER/SECTION VARIANTS
   ----------------------------- */
/* Subtle alternating background for visual rhythm */
section:nth-of-type(odd) { background: #FFFFFF; }
section:nth-of-type(even) { background: #F8FBFF; }

/* -----------------------------
   13) NEWS / CALENDAR / MISC
   ----------------------------- */
.category-filters, .filters { background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: 12px 16px; }
.calendar-teaser, .media-contact-note, .funding-totals, .response-times-note, .consent-banner-note, .preferences-management-note, .postal-address, .response-time-note { color: var(--color-muted); }

/* -----------------------------
   14) ACCESSIBILITY & FOCUS
   ----------------------------- */
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid #FFDD57; outline-offset: 2px; }

/* -----------------------------
   15) MOBILE MENU ANIMATIONS
   ----------------------------- */
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slideOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.mobile-menu.open .mobile-nav { animation: slideIn var(--speed-normal) ease; }

/* -----------------------------
   16) COOKIE CONSENT COMPONENTS
   ----------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; display: flex; justify-content: center; padding: 12px; transform: translateY(120%); transition: transform var(--speed-normal) ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { background: #0E1B2B; background: var(--color-primary); color: #FFFFFF; border-radius: 14px 14px 0 0; padding: 16px; width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 26px rgba(14,27,43,0.25); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .button { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
.cookie-banner .button:hover { background: #FFFFFF; color: var(--color-primary); }
.cookie-banner .button.primary { background: #2E7D6C; border-color: #2E7D6C; }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(14,27,43,0.6); display: none; align-items: center; justify-content: center; z-index: 1500; padding: 20px; }
.cookie-modal.show { display: flex; }
.cookie-modal .modal-panel { background: #FFFFFF; width: 100%; max-width: 640px; border-radius: 18px; border: 2px solid var(--color-border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 2px solid var(--color-border); }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.cookie-modal .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 2px solid var(--color-border); }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #F7FAFF; border: 2px solid var(--color-border); border-radius: 12px; }

/* Example toggle switch (CSS-only look) */
.switch { position: relative; width: 46px; height: 26px; background: #CBD8E6; border-radius: 99px; box-shadow: inset 0 0 0 2px #BFD1E8; transition: background var(--speed-fast) ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-sm); transition: transform var(--speed-fast) ease; }
.switch.on { background: #2E7D6C; }
.switch.on::after { transform: translateX(20px); }

/* -----------------------------
   17) UTILITIES
   ----------------------------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.max-w-70ch { max-width: 70ch; }

/* -----------------------------
   18) PAGE-SPECIFIC MINOR TWEAKS
   ----------------------------- */
/* Index: social links */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.social-links a { font-weight: 900; color: var(--color-secondary); }

/* About page lists */
.advisory-panel-list, .team-roles-list, .acknowledgement { display: flex; flex-direction: column; gap: 10px; }
.advisory-panel-list ul, .team-roles-list ul { display: flex; flex-direction: column; gap: 8px; }

/* Initiatives: filters row */
.filters { display: flex; flex-direction: column; gap: 8px; }

/* How it works: process steps as card */
.process-steps { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; }

/* Get involved: sections */
.role-list, .donation-tiers, .sponsor-benefits { background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; }

/* News-events: press links */
.press-release-links a, .brand-guidelines-links a, .download-links a { display: inline-flex; background: #FFFFFF; padding: 8px 10px; border: 2px solid var(--color-border); border-radius: 10px; font-weight: 800; }
.press-release-links a:hover, .brand-guidelines-links a:hover, .download-links a:hover { background: #F7FBFF; }

/* Legal pages readability */
.scope-statement, .data-retention-policy, .intellectual-property-notice, .disclaimers-limitations, .acceptance-of-terms, .third-party-links-clause, .termination-clause, .governing-law-clause, .changes-to-terms-clause { background: #FFFFFF; border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; }

/* -----------------------------
   19) ENSURE NO OVERLAP & ADEQUATE SPACING
   ----------------------------- */
.card, .service, .feature, .testimonial-card, .faq-accordion, .process-steps, .before-after { margin-bottom: 20px; }

/* -----------------------------
   20) PRINT BASICS
   ----------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
