/*
Theme Name: ACF Volunteers
Theme URI: https://acfvolunteers.org
Author: Abandoned Children's Foundation
Description: Custom theme for the Abandoned Children's Foundation volunteer website.
Version: 1.1.4
License: GNU General Public License v2 or later
Text Domain: acf-volunteers
*/


    :root {
      color-scheme: light dark;
      --paper: #f6f2e8;
      --paper-2: #fffdf7;
      --ink: #142425;
      --muted: #496061;
      --line: #c8c5b8;
      --red: #e8392f;
      --teal: #00a7a0;
      --yellow: #f2c500;
      --green: #47a93c;
      --navy: #112f46;
      --white: #fffef9;
      --shadow: 0 18px 45px rgba(20,36,37,.12);
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --paper: #101b1c;
        --paper-2: #182627;
        --ink: #f7f1e5;
        --muted: #b7c7c4;
        --line: #415152;
        --red: #ff6d60;
        --teal: #22c9c1;
        --yellow: #f8d64a;
        --green: #71c664;
        --navy: #b7dff4;
        --white: #101b1c;
        --shadow: 0 18px 45px rgba(0,0,0,.26);
      }
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 90px; }
    body { margin: 0; background: var(--paper); color: var(--ink); font-family: "IBM Plex Sans", sans-serif; line-height: 1.6; }
    img { display: block; max-width: 100%; }
    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    .skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
    .skip:focus { top: 12px; }
    .site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); }
    .header-inner { width: min(1180px, calc(100% - 36px)); margin: auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
    .brand img { width: 64px; height: 64px; object-fit: contain; }
    .brand span { font-family: "Source Serif 4", serif; font-weight: 750; font-size: 18px; line-height: 1.05; max-width: 180px; }
    nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
    nav a { text-decoration: none; }
    nav a:not(.nav-cta):hover, nav a:not(.nav-cta):focus-visible { color: var(--teal); }
    .nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; text-decoration: none; font-weight: 700; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
    .nav-cta:hover, .button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
    .button.alt { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
    .menu-button { display: none; border: 0; background: transparent; color: var(--ink); padding: 10px; }
    .menu-button svg { width: 27px; height: 27px; }
    main { overflow: hidden; }
    .hero { width: min(1180px, calc(100% - 36px)); margin: 42px auto 72px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 48px; }
    .hero-copy { position: relative; z-index: 2; }
    .eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 18px; }
    .eyebrow::before { content:""; width: 34px; height: 3px; background: var(--yellow); }
    h1, h2, h3 { font-family: "Source Serif 4", serif; line-height: 1.06; margin: 0; text-wrap: balance; }
    h1 { font-size: clamp(45px, 6.1vw, 82px); letter-spacing: -.045em; }
    h1 em { color: var(--red); font-style: normal; }
    .hero-copy > p:not(.eyebrow) { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 600px; margin: 24px 0 30px; }
    .button-row { display: flex; flex-wrap: wrap; gap: 15px; }
    .quick-facts { display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 0; margin: 28px 0 0; list-style: none; font-size: 14px; font-weight: 600; }
    .quick-facts li { display:flex; align-items:center; gap:8px; }
    .quick-facts li::before { content:""; width: 9px; height: 9px; background: var(--green); border-radius: 50%; }
    .hero-art { position: relative; min-height: 520px; }
    .hero-art img { width: 100%; height: 520px; object-fit: cover; border-radius: 60% 4px 45% 5px / 18% 4px 18% 4px; box-shadow: var(--shadow); }
    .impact-note { position:absolute; right:-10px; bottom:28px; width:210px; padding:22px; color:#112f46; background: var(--yellow); border: 3px solid #112f46; transform: rotate(2deg); box-shadow: 7px 7px 0 rgba(17,47,70,.25); }
    .impact-note strong { display:block; font-family:"Source Serif 4",serif; font-size:43px; line-height:.85; margin-bottom:10px; }
    .impact-note span { font-weight:700; line-height:1.25; display:block; }
    .trust-strip { background: var(--navy); color: var(--white); }
    @media (prefers-color-scheme: dark) { .trust-strip { background:#09283b; color:#fff; } }
    .trust-inner { width:min(1180px, calc(100% - 36px)); margin:auto; display:grid; grid-template-columns:repeat(3,1fr); }
    .trust-item { padding:34px 30px; display:flex; gap:16px; align-items:flex-start; border-right:1px solid rgba(255,255,255,.2); }
    .trust-item:last-child { border:0; }
    .trust-icon { font-family:"Source Serif 4",serif; font-size:28px; font-weight:750; color:var(--yellow); line-height:1; }
    .trust-item strong { display:block; font-size:16px; margin-bottom:3px; }
    .trust-item span { display:block; font-size:14px; opacity:.82; line-height:1.45; }
    .acf-section { padding: 94px 0; }
    .wrap { width:min(1180px, calc(100% - 36px)); margin:auto; }
    .section-head { display:grid; grid-template-columns:.82fr 1.18fr; gap:50px; align-items:end; margin-bottom:42px; }
    .section-head h2, .split-copy h2, .contact-copy h2 { font-size:clamp(36px,5vw,60px); letter-spacing:-.035em; }
    .section-head p { margin:0; font-size:18px; color:var(--muted); max-width:630px; }
    .program-list { display:grid; gap:28px; }
    .program { display:grid; grid-template-columns:1.12fr .88fr; min-height:320px; background:var(--paper-2); border-top:5px solid var(--red); box-shadow:0 10px 30px rgba(20,36,37,.07); }
    .program:nth-child(even) { grid-template-columns:.88fr 1.12fr; border-top-color:var(--teal); }
    .program:nth-child(even) .program-image { order:2; }
    .program:nth-child(3) { border-top-color:var(--yellow); }
    .program:nth-child(4) { border-top-color:var(--green); }
    .program-image { min-height:320px; overflow:hidden; }
    .program-image img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
    .program:hover .program-image img { transform:scale(1.015); }
    .program-copy { padding:clamp(28px,4vw,52px); display:flex; flex-direction:column; justify-content:center; }
    .program-number { font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--muted); }
    .program h3 { font-size:clamp(28px,4vw,43px); margin:8px 0 16px; }
    .program p { margin:0; color:var(--muted); }
    .program .note { margin-top:18px; font-size:14px; font-weight:700; color:var(--ink); }
    .logistics { background:var(--paper-2); }
    .logistics-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:58px; align-items:start; }
    .timeline { border-top:2px solid var(--ink); }
    .timeline-row { display:grid; grid-template-columns:128px 1fr; gap:26px; padding:23px 0; border-bottom:1px solid var(--line); }
    .timeline-row strong { color:var(--teal); }
    .timeline-row p { margin:0; }
    .stay-card { background:var(--navy); color:#fff; padding:42px; position:sticky; top:106px; box-shadow:10px 10px 0 var(--yellow); }
    @media (prefers-color-scheme: dark) { .stay-card { background:#09283b; } }
    .stay-card h3 { font-size:34px; margin-bottom:20px; }
    .stay-card p { color:rgba(255,255,255,.82); }
    .stay-card ul { list-style:none; padding:0; margin:25px 0 0; }
    .stay-card li { padding:13px 0 13px 28px; border-top:1px solid rgba(255,255,255,.2); position:relative; }
    .stay-card li::before { content:"+"; position:absolute; left:0; color:var(--yellow); font-weight:700; }
    .guide { background:#142425; color:#f6f2e8; }
    .guide .eyebrow { color:var(--yellow); }
    .guide .section-head p { color:#c5d1ce; }
    .guide-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:34px; align-items:start; }
    .day-card { background:var(--paper); color:var(--ink); padding:clamp(28px,4vw,48px); }
    .day-card h3, .guide-panel h3 { font-size:clamp(27px,3.5vw,38px); }
    .day-card > p { color:var(--muted); margin:12px 0 28px; }
    .day-flow { display:grid; }
    .day-step { display:grid; grid-template-columns:92px 1fr; gap:24px; padding:18px 0; border-top:1px solid var(--line); }
    .day-step:last-child { border-bottom:1px solid var(--line); }
    .day-step time { color:var(--teal); font-weight:700; }
    .day-step p { margin:0; }
    .guide-stack { display:grid; gap:24px; }
    .guide-panel { border-top:4px solid var(--yellow); background:rgba(255,255,255,.07); padding:30px; }
    .guide-panel:nth-child(2) { border-top-color:var(--teal); }
    .guide-panel h3 { color:#fff; margin-bottom:15px; }
    .guide-panel p { color:#c5d1ce; margin:0; }
    .guide-list { list-style:none; padding:0; margin:19px 0 0; }
    .guide-list li { position:relative; padding:11px 0 11px 24px; border-top:1px solid rgba(255,255,255,.2); }
    .guide-list li::before { content:"—"; position:absolute; left:0; color:var(--yellow); }
    .guide-note { margin:30px 0 0; color:#aebfbc; font-size:12px; }
    .principles { padding-top:100px; }
    .principle-grid { display:grid; grid-template-columns:repeat(5,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
    .principle { padding:28px 22px 32px; border-right:1px solid var(--line); }
    .principle:last-child { border-right:0; }
    .principle strong { display:block; font-family:"Source Serif 4",serif; font-size:25px; margin-bottom:10px; }
    .principle p { margin:0; font-size:14px; color:var(--muted); }
    .about-split { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
    .about-visual { min-height:510px; position:relative; background:var(--teal); padding:46px; display:flex; flex-direction:column; justify-content:space-between; color:#062c2b; clip-path:polygon(0 0, 94% 5%, 100% 92%, 8% 100%); }
    .about-visual blockquote { font-family:"Source Serif 4",serif; font-size:clamp(27px,3.7vw,44px); font-weight:650; line-height:1.16; margin:0; }
    .about-visual p { font-size:14px; font-weight:700; max-width:360px; margin:25px 0; }
    .about-mark { font-family:"Source Serif 4",serif; font-size:100px; line-height:.6; color:rgba(255,255,255,.55); }
    .split-copy > p { color:var(--muted); font-size:18px; }
    .registered { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:28px; }
    .registered div { border:1px solid var(--line); padding:19px; }
    .registered strong { display:block; font-size:15px; margin-bottom:4px; }
    .registered span { color:var(--muted); font-size:13px; }
    .sponsorship { background:var(--yellow); color:#1f2c25; padding:76px 0; }
    .sponsor-inner { display:grid; grid-template-columns:1fr auto; align-items:center; gap:45px; }
    .sponsor-inner h2 { font-size:clamp(36px,5vw,62px); letter-spacing:-.035em; }
    .sponsor-inner p { max-width:670px; font-size:18px; margin:18px 0 0; }
    .sponsorship .button { background:#1f2c25; border-color:#1f2c25; color:#fff; box-shadow:5px 5px 0 rgba(31,44,37,.25); }
    .faq { background:var(--paper-2); }
    .faq-grid { display:grid; grid-template-columns:.72fr 1.28fr; gap:70px; }
    .faq-intro h2 { font-size:clamp(36px,5vw,58px); }
    .faq-intro p { color:var(--muted); }
    details { border-top:1px solid var(--line); }
    details:last-child { border-bottom:1px solid var(--line); }
    summary { list-style:none; cursor:pointer; padding:23px 45px 23px 0; font-family:"Source Serif 4",serif; font-size:21px; font-weight:650; position:relative; }
    summary::-webkit-details-marker { display:none; }
    summary::after { content:"+"; position:absolute; right:8px; top:19px; color:var(--teal); font-family:"IBM Plex Sans",sans-serif; font-size:28px; }
    details[open] summary::after { content:"–"; }
    details p { margin:0; padding:0 42px 24px 0; color:var(--muted); }
    .contact { padding:94px 0 52px; }
    .contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:76px; }
    .contact-copy > p { color:var(--muted); font-size:18px; max-width:530px; }
    .contact-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
    .contact-list { margin:0; padding:0; list-style:none; border-top:2px solid var(--ink); }
    .contact-list li { padding:20px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:88px 1fr; gap:20px; }
    .contact-list strong { font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--teal); }
    .contact-list a { text-decoration-thickness:1px; text-underline-offset:3px; overflow-wrap:anywhere; }
    footer { width:min(1180px, calc(100% - 36px)); margin:auto; padding:30px 0 40px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:30px; color:var(--muted); font-size:13px; }
    footer p { margin:0; }
    .source-note { margin-top:34px; font-size:12px; color:var(--muted); }
    @media (max-width: 900px) {
      .menu-button { display:block; }
      nav { display:none; position:absolute; top:78px; left:0; right:0; background:var(--paper); border-bottom:1px solid var(--line); padding:24px; flex-direction:column; align-items:stretch; gap:0; }
      nav.open { display:flex; }
      nav a { padding:13px 0; }
      nav .nav-cta { margin-top:10px; padding:0 16px; }
      .hero { grid-template-columns:1fr; gap:34px; margin-top:28px; }
      .hero-art { min-height:420px; }
      .hero-art img { height:420px; }
      .trust-inner { grid-template-columns:1fr; }
      .trust-item { border-right:0; border-bottom:1px solid rgba(255,255,255,.2); }
      .section-head, .logistics-grid, .guide-grid, .about-split, .faq-grid, .contact-grid { grid-template-columns:1fr; gap:34px; }
      .program, .program:nth-child(even) { grid-template-columns:1fr; }
      .program:nth-child(even) .program-image { order:0; }
      .program-image { min-height:260px; }
      .stay-card { position:static; }
      .principle-grid { grid-template-columns:repeat(2,1fr); }
      .principle:nth-child(2), .principle:nth-child(4) { border-right:0; }
      .principle { border-bottom:1px solid var(--line); }
      .principle:last-child { grid-column:1/-1; }
      .sponsor-inner { grid-template-columns:1fr; }
    }
    @media (max-width: 560px) {
      .header-inner, .hero, .wrap, .trust-inner, footer { width:min(100% - 28px,1180px); }
      .header-inner { min-height:68px; }
      .brand img { width:50px; height:50px; }
      .brand span { font-size:14px; max-width:145px; }
      nav { top:68px; }
      h1 { font-size:43px; }
      .acf-section { padding:72px 0; }
      .hero { margin-bottom:54px; }
      .hero-art { min-height:365px; }
      .hero-art img { height:365px; border-radius:45% 3px 38% 4px / 13% 3px 13% 4px; }
      .impact-note { width:184px; right:-4px; bottom:18px; padding:17px; }
      .impact-note strong { font-size:36px; }
      .button-row, .contact-actions { display:grid; }
      .button { width:100%; }
      .trust-item { padding:26px 14px; }
      .program-image { min-height:205px; }
      .program-copy { padding:27px 22px 31px; }
      .timeline-row, .day-step { grid-template-columns:1fr; gap:5px; }
      .stay-card { padding:30px 24px; box-shadow:7px 7px 0 var(--yellow); }
      .day-card, .guide-panel { padding:26px 22px; }
      .principle-grid { grid-template-columns:1fr; }
      .principle, .principle:nth-child(2), .principle:nth-child(4) { border-right:0; }
      .principle:last-child { grid-column:auto; }
      .about-visual { min-height:420px; padding:38px 29px; }
      .registered { grid-template-columns:1fr; }
      .sponsorship { padding:62px 0; }
      .faq-grid { gap:25px; }
      .contact-list li { grid-template-columns:1fr; gap:5px; }
      footer { flex-direction:column; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior:auto; }
      *, *::before, *::after { transition:none !important; }
    }
  
/* FAQ accordion (converted from native details/summary for block editing) */
.faq-item { border-top:1px solid var(--line); }
.faq-item:last-child { border-bottom:1px solid var(--line); }
.faq-question { list-style:none; cursor:pointer; padding:23px 45px 23px 0; font-family:"Source Serif 4",serif; font-size:21px; font-weight:650; position:relative; margin:0; }
.faq-question::after { content:"+"; position:absolute; right:8px; top:19px; color:var(--teal); font-family:"IBM Plex Sans",sans-serif; font-size:28px; }
.faq-item.open .faq-question::after { content:"\2013"; }
.faq-answer { display:none; margin:0; padding:0 42px 24px 0; color:var(--muted); max-width:none; }
.faq-item.open .faq-answer { display:block; }

/* Centering reinforcement — ensures content stays centered on all screen sizes (2026-10-13) */
html, body { overflow-x: clip; }
.header-inner, .hero, .wrap, .trust-inner, footer { margin-left: auto; margin-right: auto; }

/* Fix: WordPress wraps group content in an inner container that breaks CSS grid layouts.
   display:contents makes the wrapper transparent to layout (2026-10-13) */
.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* Fix program images not filling their containers (figure needs explicit height) */
.program-image .wp-block-image,
.program-image figure { height: 100%; margin: 0; }
.program-image img { height: 100% !important; object-fit: cover; display: block; }
