/*
Theme Name: Serenity Changes Foundation
Theme URI: https://serenitychangesfoundation.org/
Author: Serenity Changes Foundation
Description: Accessible nonprofit theme for Serenity Changes Foundation.
Version: 1.7.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: serenity-changes
*/

/* About Us: keep leadership portraits identical in displayed size. */
.page-id-14 #team .wp-block-media-text__media {
  aspect-ratio: 1435 / 1536;
  align-self: start;
  overflow: hidden;
}

.page-id-14 #team .wp-block-media-text__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

:root {
  --scf-navy: #061b45;
  --scf-navy-2: #0b2b63;
  --scf-red: #c20e1a;
  --scf-gold: #e4a72b;
  --scf-ink: #071a3d;
  --scf-soft-blue: #eef4ff;
  --scf-soft-red: #fff0f1;
  --scf-white: #ffffff;
  --scf-shadow: 0 10px 28px rgba(5, 24, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--scf-ink); background: #fff; font-family: Georgia, "Times New Roman", serif; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.scf-wrap { width: min(1440px, 100% - 48px); margin-inline: auto; }

.site-header { background: #fff; border-bottom: 1px solid #dce3ee; position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 360px; }
.brand-mark { width: 90px; height: 78px; flex: 0 0 auto; }
.brand-copy strong { display: block; font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.brand-copy span { display: block; color: var(--scf-red); font-weight: 800; letter-spacing: .28em; text-transform: uppercase; margin-top: 6px; }
.brand-copy small { display: block; text-align: center; font-size: .93rem; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 27px; font-weight: 700; }
.site-nav a { text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a:focus { color: var(--scf-red); border-bottom-color: var(--scf-red); }
.donate-button, .primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 7px; padding: 14px 25px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.donate-button, .primary-button { background: var(--scf-red); color: #fff; box-shadow: 0 6px 16px rgba(194, 14, 26, .24); }
.secondary-button { background: #fff; color: var(--scf-navy); border: 1px solid #d9e1ed; }
.donate-button:hover, .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: var(--scf-shadow); }
.heart { font-size: 1.35em; }
.menu-toggle { display: none; background: var(--scf-navy); color: #fff; border: 0; border-radius: 6px; padding: 10px 13px; }

.photo-strip { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; height: clamp(230px, 26vw, 390px); overflow: hidden; }
.photo-panel { position: relative; overflow: hidden; background-image: url("assets/images/scf-mission-triptych.png"); background-repeat: no-repeat; background-size: 300% 100%; }
.photo-panel:nth-child(1) { background-position: left center; }
.photo-panel:nth-child(2) { background-position: center center; }
.photo-panel:nth-child(3) { background-position: right center; }
.photo-panel + .photo-panel { border-left: 7px solid #fff; transform: skewX(-8deg); margin-left: -28px; }
.photo-label { position: absolute; top: 18px; left: 28px; padding: 7px 11px; background: rgba(5, 26, 61, .87); color: #fff; border-radius: 4px; font: 700 .9rem/1.2 Arial, sans-serif; letter-spacing: .03em; }

.hero-copy { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 12% 45%, rgba(19,56,110,.9), transparent 25%), linear-gradient(110deg, var(--scf-navy) 0 74%, var(--scf-red) 74% 100%); text-align: center; padding: 28px 24px 34px; }
.hero-copy::before { content: "★   ★\A  ★   ★   ★\A★   ★   ★\A  ★   ★"; white-space: pre; position: absolute; left: 6px; top: 13px; color: rgba(255,255,255,.88); font-size: 2rem; line-height: 1.55; transform: rotate(-6deg); }
.hero-copy::after { content: ""; position: absolute; right: -5%; top: 8%; width: 33%; height: 150%; background: repeating-linear-gradient(-13deg, #fff 0 22px, #fff 22px 44px, var(--scf-red) 44px 66px, var(--scf-red) 66px 88px); opacity: .98; transform: rotate(-8deg); border-left: 7px solid #fff; }
.hero-copy .inner { position: relative; z-index: 2; width: min(940px, 76%); margin: auto; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0; line-height: 1.08; }
.hero-copy h2 { color: var(--scf-gold); margin: 6px 0 8px; font-size: clamp(1.2rem, 2.3vw, 2rem); font-style: italic; }
.hero-copy p { max-width: 820px; margin: 0 auto 16px; font-size: clamp(1rem, 1.35vw, 1.25rem); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 0; }
.impact-card { text-align: center; padding: 0 26px; border-right: 1px solid #b8c5d9; }
.impact-card:last-child { border-right: 0; }
.impact-icon { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--scf-navy); color: #fff; font: 700 1.5rem Arial, sans-serif; }
.impact-card:nth-child(even) .impact-icon { background: var(--scf-red); }
.impact-card h3 { margin: 0 0 5px; font-size: 1.05rem; text-transform: uppercase; }
.impact-card p { margin: 0; font-size: .94rem; }

.action-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 20px; padding: 8px 0 30px; }
.action-card { min-height: 185px; border: 1px solid #d7deea; border-radius: 9px; padding: 17px 22px; text-align: center; background: var(--scf-soft-blue); box-shadow: 0 4px 14px rgba(6,27,69,.06); }
.action-card.contact { background: linear-gradient(145deg, #061b45, #0c3475); color: #fff; text-align: left; }
.action-card.donate { background: linear-gradient(145deg, #fff, var(--scf-soft-red)); }
.action-card h3 { margin: 0 0 9px; text-transform: uppercase; font-size: 1.22rem; }
.action-card.donate h3 { color: var(--scf-red); }
.contact-line { display: flex; gap: 9px; margin: 8px 0; align-items: flex-start; }
.contact-line a { text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { text-decoration: underline; }
.mini-button { display: inline-block; margin-top: 10px; padding: 9px 16px; background: var(--scf-navy); color: #fff; border-radius: 5px; text-decoration: none; font-weight: 800; }
.donate .mini-button { background: var(--scf-red); }
.social-row { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.social-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--scf-navy); color: #fff; text-decoration: none; font-family: Arial, sans-serif; font-weight: 700; }

.site-footer { background: var(--scf-navy); color: #fff; border-top: 3px solid var(--scf-red); text-align: center; padding: 12px 20px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 5px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.legal { font-size: .92rem; margin: 0; }

.content-page { width: min(1000px, 100% - 42px); margin: 48px auto 70px; }
.content-page h1 { color: var(--scf-navy); font-size: clamp(2rem, 5vw, 3.2rem); }
.content-page a { color: var(--scf-red); }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  .brand { min-width: 0; }
  .site-nav { order: 3; width: 100%; justify-content: center; }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .scf-wrap { width: min(100% - 28px, 720px); }
  .site-header { position: static; }
  .brand-mark { width: 64px; height: 58px; }
  .brand-copy strong { font-size: 1.1rem; }
  .brand-copy span { font-size: .8rem; letter-spacing: .17em; }
  .brand-copy small { display: none; }
  .header-donate { display: none; }
  .menu-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 4px; border-bottom: 1px solid #e3e8f0; }
  .photo-strip { grid-template-columns: 1fr; height: auto; }
  .photo-panel { height: 230px; }
  .photo-panel + .photo-panel { transform: none; margin-left: 0; border-left: 0; border-top: 5px solid #fff; }
  .hero-copy { background: linear-gradient(145deg, var(--scf-navy), var(--scf-navy-2)); padding: 30px 20px 36px; }
  .hero-copy::before, .hero-copy::after { display: none; }
  .hero-copy .inner { width: 100%; }
  .hero-copy h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .hero-copy h2 { font-size: clamp(1.15rem, 5.5vw, 1.55rem); }
  .hero-copy p { font-size: 1rem; line-height: 1.6; }
  .hero-actions a { width: min(100%, 280px); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-card { border-right: 0; border-bottom: 1px solid #d4dce8; padding: 18px; }
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-copy strong { font-size: .92rem; }
  .brand-copy span { font-size: .68rem; }
  .impact-grid { grid-template-columns: 1fr; }
}
