/*
Theme Name: Loretonian
Theme URI: https://loretonian.org
Author: Loretonian
Description: Lightweight block theme for Loretonian, a non-profit serving Loreto, Dinagat Islands, Philippines. No plugins or page builders required.
Version: 1.3.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: loretonian
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a):focus-visible, :where(button):focus-visible { outline: 3px solid var(--wp--preset--color--sunset); outline-offset: 3px; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--wp--preset--color--sunset); font-weight: inherit; }

.eyebrow {
  font-size: .78rem !important; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--wp--preset--color--sunset); margin-bottom: 1rem !important;
}
.is-dark .eyebrow, .hero .eyebrow { color: var(--wp--preset--color--mango); }
.muted { color: var(--wp--preset--color--muted); }

/* Full-bleed sections sit flush against each other */
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(10, 31, 92, .08);
}
.admin-bar .site-header { top: 32px; }
.site-header .wp-block-site-title a { text-decoration: none; letter-spacing: -.01em; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--sunset); }
.brand-mark { width: 34px; height: 34px; flex: none; }

/* ---------- Logo & photos ---------- */
.brand-seal { display: block; line-height: 0; }
.brand-seal img { width: 46px; height: 46px; border-radius: 50%; }
.footer-seal { width: 72px; height: 72px; border-radius: 50%; margin-bottom: .75rem; background: #fff; }
.photo { margin: 2rem 0 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 50px -28px rgba(10,31,92,.55); }
.photo figcaption { margin-top: .6rem; font-size: .85rem; color: var(--wp--preset--color--muted); }

/* ---------- Hero ---------- */
.hero.wp-block-cover { min-height: min(88vh, 820px); }
.hero .wp-block-cover__inner-container { max-width: 1200px; }
.hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero h1 em { color: var(--wp--preset--color--mango); }
.hero .lead { max-width: 54ch; opacity: .9; }
.hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(5,16,52,.82) 0%, rgba(5,16,52,.45) 55%, rgba(5,16,52,.1) 100%) !important; opacity: 1 !important; }

/* ---------- Impact strip ---------- */
.impact { border-bottom: 1px solid rgba(10,31,92,.1); }
.stat-num {
  font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  line-height: 1 !important; color: var(--wp--preset--color--sea); margin-bottom: .5rem !important; letter-spacing: -.02em;
}
.stat-label { color: var(--wp--preset--color--muted); font-size: .95rem; max-width: 24ch; }
.impact .wp-block-column { border-left: 2px solid var(--wp--preset--color--mango); padding-left: 1.25rem; }
.source { font-size: .8rem; color: var(--wp--preset--color--muted); }

/* ---------- Mission ---------- */
.mission-quote { font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem) !important; line-height: 1.3 !important; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- Cards ---------- */
.cards { gap: 1.5rem !important; }
.card {
  background: #fff; border-radius: 20px; padding: 2rem !important;
  box-shadow: 0 1px 0 rgba(10,31,92,.06), 0 18px 40px -24px rgba(10,31,92,.35);
  transition: transform .25s ease, box-shadow .25s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(10,31,92,.06), 0 28px 50px -24px rgba(10,31,92,.45); }
.card h3 { margin-top: .25rem; }
.card p:not(.card-num) { color: var(--wp--preset--color--muted); }
.card-num { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--sunset); font-size: .95rem !important; margin: 0 !important; }
.card.is-feature { background: var(--wp--preset--color--sea); color: #fff; }
.card.is-feature p { color: rgba(255,255,255,.8) !important; }

/* ---------- Starlink ---------- */
.starlink { background: radial-gradient(ellipse at 85% 0%, #0038a8 0%, transparent 60%), linear-gradient(160deg, #050f33, #0a1f5c 60%, #0b2a7a); }
.starlink p { color: rgba(255,255,255,.82); }
.sl-panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 2.25rem !important; }
.sl-goal { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.6rem, 5vw, 3.6rem) !important; color: var(--wp--preset--color--mango) !important; line-height: 1 !important; margin: 0 !important; }
.sl-tiers { list-style: none; padding: 0 !important; margin: 1.5rem 0 0 !important; display: grid; gap: .6rem; }
.sl-tiers li { padding: .85rem 1rem; background: rgba(255,255,255,.05); border-radius: 12px; color: rgba(255,255,255,.85); }
.sl-tiers strong { color: var(--wp--preset--color--mango); display: inline-block; min-width: 5rem; }
.fine { font-size: .82rem !important; color: rgba(255,255,255,.55) !important; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0 !important; margin: 0; border-left: 2px solid rgba(10,31,92,.15); }
.timeline li { position: relative; padding: 0 0 1.4rem 2rem; color: var(--wp--preset--color--muted); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--cream); border: 2px solid var(--wp--preset--color--mango); }
.timeline li:last-child::before { background: var(--wp--preset--color--sunset); border-color: var(--wp--preset--color--sunset); }
.timeline strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.3rem; color: var(--wp--preset--color--sea-deep); font-weight: 600; }

/* ---------- Reunion strip (secondary) ---------- */
.reunion-strip { border-top: 1px solid rgba(10,31,92,.08); color: var(--wp--preset--color--muted); }
.reunion-strip a { font-weight: 700; text-decoration: none; }

/* ---------- Give ---------- */
.tier { background: #fff; border: 1px solid rgba(10,31,92,.1); border-radius: 20px; padding: 1.75rem !important; height: 100%; }
.tier .amt { font-family: var(--wp--preset--font-family--serif); font-size: 2.1rem !important; color: var(--wp--preset--color--sea-deep); margin: 0 0 .4rem !important; line-height: 1.1 !important; }
.tier p:last-child { color: var(--wp--preset--color--muted); margin: 0; }
.tier.is-feature { background: var(--wp--preset--color--mango); border-color: transparent; }
.tier.is-feature p:last-child { color: var(--wp--preset--color--sea-deep); }

/* ---------- Involve ---------- */
.involve .wp-block-column { border-top: 1px solid rgba(10,31,92,.15); padding-top: 1.5rem; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 28px; background: linear-gradient(120deg, var(--wp--preset--color--sea) 0%, #0a3fbf 70%); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(252,209,22,.45), transparent 70%); pointer-events: none; }
.cta-band h2, .cta-band h3, .cta-band p { color: #fff; }
.cta-band .wp-block-button__link { background: var(--wp--preset--color--mango) !important; color: var(--wp--preset--color--sea-deep) !important; }

/* Flag stripe accent under header */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, var(--wp--preset--color--sea) 0 50%, var(--wp--preset--color--sunset) 50% 100%); }

/* ---------- Footer ---------- */
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--mango); }
.site-footer p { color: rgba(255,255,255,.7); }
.footer-links { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .5rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .impact .wp-block-column { padding-left: 1rem; }
  .hero.wp-block-cover { min-height: 78vh; }
  .hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(5,16,52,.55), rgba(5,16,52,.85)) !important; }
  .admin-bar .site-header { top: 46px; }
}
