/*
Theme Name: Solace Child — AFAFI-FET
Template: solace
Version: 1.0.0
Text Domain: afafi-fet
Description: AFAFI-FET Madagasikara. Brand tokens, PHP archive/single templates (no Elementor Pro),
             and the image-placeholder treatment used until photographs are supplied.
*/

/* ── Self-hosted type — drop SourceSans3-Regular.woff2 / SourceSans3-Bold.woff2 into /fonts/
   (Google Fonts export, "Source Sans 3", weights 400 + 700, latin + latin-ext subsets) and these
   two @font-face rules activate automatically. Until then this falls back to the system UI font,
   never to Inter/Roboto/Arial. */
@font-face{
  font-family:"Source Sans 3";
  src:url("fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Source Sans 3";
  src:url("fonts/SourceSans3-Bold.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}

/* ── Brand tokens — the source of truth. Mirror these in Elementor → Site Settings. ── */
:root{
  --fet-blue:#1a4fd6;
  --fet-blue-pressed:#0f3aa8;
  --fet-red:#e02b20;
  --fet-ink:#12172a;
  --fet-muted:#5b6178;
  --fet-tint:#f4f6fb;
  --fet-divider:#d8deec;
  --fet-surface:#ffffff;

  --fet-r-sm:8px;
  --fet-r-md:16px;
  --fet-r-pill:999px;
  --fet-shadow:0 2px 8px rgba(18,23,42,.08);
  --fet-shadow-header:0 8px 24px rgba(18,23,42,.12);

  --fet-measure:66ch;
  --fet-font:"Source Sans 3","Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;
}

body{color:var(--fet-ink);font-family:var(--fet-font);font-size:17px;line-height:1.65}
h1,h2,h3,h4{font-family:var(--fet-font);line-height:1.15;text-wrap:pretty}
h1{font-size:clamp(34px,5vw,54px);font-weight:700;letter-spacing:-.015em}
h2{font-size:clamp(26px,3.4vw,38px);font-weight:700}
h3{font-size:24px;font-weight:700}
h4{font-size:20px;font-weight:600;line-height:1.3}
p{max-width:var(--fet-measure)}
/* Malagasy words are long: never justify. */
p,li{text-align:left;hyphens:none}

a{color:var(--fet-blue)}
a:hover{color:var(--fet-blue-pressed)}
:focus-visible{outline:2px solid var(--fet-blue);outline-offset:2px}
::selection{background:var(--fet-tint)}

/* Our own archive/single PHP templates (Fanabeazana, Hafatra, Vaovao, Ny tarika, 404,
   search) render <main class="main-page main-page1"><section class="container-page">
   directly, without the article > .boxes-content nesting Solace's own Customizer-driven
   width CSS targets -- so on those templates .container-page never picked up any max-width
   and stretched edge to edge, unlike the Elementor-built pages (which get their own
   e-con-boxed 1280px centering from Elementor itself, independent of this). Reuse Solace's
   own --container-page custom property (same 1280/992/748 breakpoints as the rest of the
   site, and it will follow the Customizer's content-width setting if that is ever changed)
   so every page on the site is consistently centered. */
main.main-page1 > .container-page{
  max-width:var(--container-page);
  margin:0 auto;
  padding:0 32px;
  box-sizing:border-box;
}
@media (max-width:767px){
  main.main-page1 > .container-page{padding:0 20px}
}

/* ── Logo: PNG only, square emblem (globe + heart), served via srcset, never upscaled ── */
.fet-logo img{height:52px;width:auto;display:block}
@media (max-width:767px){.fet-logo img{height:38px}}

/* ── Buttons ── */
.fet-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:14px 28px;border-radius:var(--fet-r-pill);font-size:16px;font-weight:600;
  text-decoration:none;border:1.5px solid transparent;transition:background .15s,color .15s}
.fet-btn--primary{background:var(--fet-blue);color:#fff}
.fet-btn--primary:hover,.fet-btn--primary:active{background:var(--fet-blue-pressed);color:#fff}
.fet-btn--secondary{border-color:var(--fet-blue);color:var(--fet-blue)}
.fet-btn--secondary:hover{background:var(--fet-tint)}
.fet-btn--on-blue{background:#fff;color:var(--fet-blue)}

/* ── Pills, cards, meta ── */
.fet-pill{display:inline-block;background:var(--fet-tint);color:var(--fet-blue);
  border-radius:var(--fet-r-pill);padding:4px 11px;font-size:12.5px;font-weight:700}
.fet-cards{display:grid;gap:20px}
.fet-cards--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.fet-card{display:flex;flex-direction:column;gap:10px;background:var(--fet-surface);
  border:1px solid var(--fet-divider);border-radius:var(--fet-r-md);padding:24px;
  text-decoration:none;color:inherit}
.fet-card:hover{box-shadow:var(--fet-shadow)}
.fet-card h3{font-size:19px;margin:0}
.fet-card p{font-size:15px;color:var(--fet-muted);margin:0}
.fet-card img{border-radius:var(--fet-r-md);width:100%;height:auto;object-fit:cover}
.fet-meta{font-size:13.5px;font-weight:600;color:var(--fet-muted)}
.fet-meta--locked{color:var(--fet-red)}
.fet-meta--locked::before{content:"🔒 "}

/* ── Blue band ── */
.fet-band{background:var(--fet-blue);color:#fff;padding:68px 0}
/* Full-opacity white only — never alpha-reduced type on the band. */
.fet-band h2,.fet-band p,.fet-band a{color:#fff}

/* ── Scripture panel (hafatra single) ── */
.fet-scripture{background:var(--fet-tint);border-radius:var(--fet-r-md);padding:34px 36px}
.fet-scripture blockquote{margin:0;font-size:27px;line-height:1.42;font-style:italic;max-width:none}
.fet-scripture cite{display:block;margin-top:14px;font-size:15px;font-weight:700;
  color:var(--fet-muted);font-style:normal}
.fet-prayer{border-left:3px solid var(--fet-red);padding-left:20px;font-style:italic}

/* ── Empty states & notices ── */
.fet-empty{padding:32px 0;font-size:17px;color:var(--fet-muted)}
.fet-notice{font-size:14.5px;color:var(--fet-muted);margin:0 0 16px}
.fet-locked{background:var(--fet-tint);border-radius:var(--fet-r-md);padding:28px;
  display:flex;flex-direction:column;gap:14px;align-items:flex-start}

/* ── Image placeholders — remove this block once real photographs land ──
   Same box and aspect ratio as the eventual photograph, so swapping in an
   image changes no layout. Find every instance by this class. */
.fet-img-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  margin:0;padding:16px;text-align:center;border-radius:var(--fet-r-md);
  border:1.5px dashed #a9b3cc;
  background:repeating-linear-gradient(135deg,var(--fet-tint) 0 14px,#e8edf8 14px 28px);
  font:400 13px/1.5 "IBM Plex Mono",ui-monospace,SFMono-Regular,monospace;
  color:var(--fet-muted);
}
.fet-img-placeholder span:last-child{font-size:12px;color:#8d96ad;max-width:34ch}

/* ── Print: a mpanabe prints hafatra and fanabeazana for meetings ── */
@media print{
  header,footer,nav,.fet-btn,.fet-share,.fet-pagination{display:none!important}
  body{font-size:12pt;color:#000}
  .fet-scripture{border:1px solid #999;background:none}
  a[href]::after{content:""}
}

/* ── Homepage layout helpers (Ny FET front page) ── */
.fet-section{padding:68px 0}
.fet-section__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:32px}
.fet-band--tint{background:var(--fet-tint);padding:68px 0}
.fet-split{display:grid;gap:32px;align-items:center}
@media (min-width:768px){.fet-split{grid-template-columns:1fr 1fr;gap:48px}}
.fet-stats{display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
@media (max-width:600px){.fet-stats{grid-template-columns:1fr}}
.fet-stat{background:var(--fet-surface);border-radius:var(--fet-r-md);padding:24px;text-align:center;box-shadow:var(--fet-shadow)}
.fet-stat strong{display:block;font-size:40px;line-height:1.1;color:var(--fet-blue)}
.fet-stat span{font-size:14px;color:var(--fet-muted)}
.fet-btn--outline-on-blue{border-color:#fff;color:#fff}
.fet-btn--outline-on-blue:hover{background:rgba(255,255,255,.12);color:#fff}
/* placeholder copy — remove this class from the markup once real text lands */
.fet-placeholder-copy{font-style:italic;color:var(--fet-muted);font-size:15px}
/* [fet_hafatra_today] shortcode markup */
.fet-hafatra-today{background:var(--fet-surface);border-radius:var(--fet-r-md);padding:32px;box-shadow:var(--fet-shadow)}
.fet-hafatra-today__date{font-weight:700;color:var(--fet-muted);font-size:13px;text-transform:uppercase;letter-spacing:.04em;margin:0}
.fet-hafatra-today__verse{font-size:26px;font-style:italic;line-height:1.4;margin:12px 0;max-width:none}
.fet-hafatra-today__ref{font-weight:700;color:var(--fet-blue);margin:0 0 12px}
.fet-hafatra-today__excerpt{color:var(--fet-muted);font-size:15px}

/* ── Tantara vertical timeline ── */
.fet-timeline{list-style:none !important;margin:0;padding:0;border-left:3px solid var(--fet-divider);max-width:66ch}
.fet-timeline li{list-style-type:none !important}
.fet-timeline li{position:relative;padding:0 0 32px 28px}
.fet-timeline li:last-child{padding-bottom:0}
.fet-timeline li::before{content:"";position:absolute;left:-9px;top:4px;width:14px;height:14px;border-radius:50%;background:var(--fet-blue)}
.fet-timeline__year{font-weight:700;color:var(--fet-blue);display:block;font-size:13px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.fet-timeline h3{margin:0 0 8px}

/* ── Branch pages ── */
.fet-breadcrumb{font-size:13px;color:var(--fet-muted);margin-bottom:24px}
.fet-breadcrumb a{color:var(--fet-muted);text-decoration:none}
.fet-breadcrumb a:hover{color:var(--fet-blue)}
.fet-verb-cards{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));margin-top:32px}
.fet-verb-card{background:var(--fet-surface);border-radius:var(--fet-r-md);padding:24px;box-shadow:var(--fet-shadow)}
.fet-verb-card__num{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--fet-red);color:#fff;font-weight:700;margin-bottom:12px}
.fet-verb-card h3{margin:0 0 8px;font-size:19px}
.fet-verb-card p{font-size:15px;color:var(--fet-muted);margin:0}
.fet-verb-card cite{display:block;margin-top:10px;font-size:13px;font-weight:700;color:var(--fet-blue);font-style:normal}

/* ── Header CTA + language switcher (design fidelity fix) ── */
.fet-menu-cta{margin-left:8px}
.fet-menu-cta>a{display:inline-flex !important;align-items:center;justify-content:center;
  background:var(--fet-blue);color:#fff !important;border-radius:var(--fet-r-pill);
  padding:10px 22px !important;font-size:15px;font-weight:600;line-height:1.3;transition:background .15s}
.fet-menu-cta>a:hover,.fet-menu-cta>a:focus{background:var(--fet-blue-pressed);color:#fff !important}
.fet-menu-cta>a .menu-item-title-wrap{color:inherit}

li.fet-lang-switcher-slot ul.fet-lang{display:flex !important;align-items:center;gap:8px;list-style:none;margin:0;padding:0;font-size:14px;font-weight:700;font-family:var(--fet-font)}
li.fet-lang-switcher-slot ul.fet-lang li{display:flex;align-items:center}
li.fet-lang-switcher-slot ul.fet-lang li:not(:last-child)::after{content:"|";color:var(--fet-divider);margin-left:8px}
li.fet-lang-switcher-slot ul.fet-lang a{color:var(--fet-muted) !important;text-decoration:none !important;text-transform:uppercase !important}
li.fet-lang-switcher-slot ul.fet-lang li.current-lang a{color:var(--fet-blue) !important}
li.fet-lang-switcher-slot ul.fet-lang a:hover{color:var(--fet-blue) !important}

/* Retire the unused Solace demo button until the header builder slot is repurposed */
.builder-item--button_base{display:none !important}

/* ── Language-switcher menu-item slot (see functions.php walker_nav_menu_start_el) ── */
li.fet-lang-switcher-slot{list-style:none;margin-left:8px;padding:0 !important;display:flex;align-items:center}
li.fet-lang-switcher-slot::after{content:none !important}
