/* =========================================================
   J.L FOUNDATION  |  style.css
   Palette: deep teal #035352, cream #F3E8BC, plus a dark ink
   shade of the teal (#012E2D) for text and the footer.
   ========================================================= */

:root {
  --teal: #035352;
  --teal-2: #0A6A68;          /* lighter teal for hovers */
  --ink: #012E2D;             /* darkest teal, body text */
  --cream: #F3E8BC;
  --cream-2: #FBF6E3;         /* paler cream for page ground */
  --cream-3: #E7D896;         /* deeper cream for accents */
  --line: rgba(3, 83, 82, .16);
  --line-light: rgba(243, 232, 188, .22);

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream-2);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); color: var(--teal); }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: 64ch; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--cream-3); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 780px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--cream); }
.muted { color: rgba(1, 46, 45, .7); }
.small { font-size: .92rem; }
.soft { opacity: .78; margin-top: 16px; }
.big { font-size: 1.15rem; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn-cream { background: var(--cream); color: var(--teal); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.btn-line { border-color: var(--cream); color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--teal); }
.btn-teal { background: var(--teal); color: var(--cream); width: 100%; }
.btn-teal:hover { background: var(--teal-2); }
.section-teal .btn-teal { background: var(--cream); color: var(--teal); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--cream);
  transition: background .35s, box-shadow .35s, color .35s;
}
.site-header.scrolled {
  background: rgba(251, 246, 227, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--teal);
  box-shadow: 0 1px 0 var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; color: var(--cream); transition: transform .5s var(--ease); }
.site-header.scrolled .brand-mark { color: var(--teal); }
.site-header.scrolled .brand-mark path { stroke: var(--cream); }
.site-header.scrolled .brand-mark circle:last-child { fill: var(--cream); }
.brand:hover .brand-mark { transform: rotate(-12deg); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; color: inherit; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: 10px 12px;
}
.nav a:not(.nav-donate)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-donate { background: var(--cream); color: var(--teal) !important; border-radius: 999px; padding: 10px 18px !important; margin-left: 6px; }
.site-header.scrolled .nav-donate { background: var(--teal); color: var(--cream) !important; }

.lang { display: flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; flex: none; }
.lang button {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 700 .78rem var(--body); letter-spacing: .04em; padding: 0 11px; min-height: 34px;
  transition: background .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--teal); }
.site-header.scrolled .lang button[aria-pressed="true"] { background: var(--teal); color: var(--cream); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 90px max(28px, env(safe-area-inset-right, 0px)) 40px max(28px, env(safe-area-inset-left, 0px));
    background: var(--teal); color: var(--cream);
    clip-path: circle(0 at calc(100% - 40px) 36px);
    transition: clip-path .6s var(--ease);
    visibility: hidden;
  }
  .nav.open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
  .nav a { font-family: var(--display); font-weight: 400; font-size: 2rem; padding: 6px 0; color: var(--cream) !important; }
  .nav a::after { display: none; }
  .nav-donate { margin: 18px 0 0; font-family: var(--body) !important; font-size: 1.05rem !important; background: var(--cream) !important; color: var(--teal) !important; }
  body.menu-open .site-header { color: var(--cream); background: transparent; box-shadow: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--teal); color: var(--cream);
  padding-top: calc(130px + env(safe-area-inset-top, 0px)); padding-bottom: 150px;
  overflow: hidden;
}
.hero::before {
  /* soft grain of light behind the copy */
  content: ""; position: absolute; width: 620px; height: 620px; left: -220px; top: -180px;
  background: radial-gradient(circle, rgba(243,232,188,.14), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-title { font-size: clamp(2.5rem, 7vw, 4.6rem); color: var(--cream); letter-spacing: -.01em; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease) forwards; }
.hero-lead { margin-top: 22px; font-size: 1.15rem; opacity: 0; animation: fade 1s var(--ease) .7s forwards; color: rgba(243,232,188,.88); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; opacity: 0; animation: fade 1s var(--ease) .9s forwards; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.sun { fill: var(--cream); animation: float 7s ease-in-out infinite; }
.sun-ring { fill: none; stroke: var(--cream); stroke-width: 1.5; opacity: .35; transform-origin: 290px 110px; animation: pulse 5s ease-in-out infinite; }
.hill.h1 { fill: rgba(243,232,188,.14); }
.hill.h2 { fill: rgba(243,232,188,.24); }
.hands path { fill: none; stroke: var(--cream); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.6s var(--ease) .5s forwards; }
.hands .heart { fill: var(--cream); stroke: none; transform-origin: 200px 220px; transform: scale(0); animation: pop .8s var(--ease) 1.7s forwards, beat 2.6s ease-in-out 2.6s infinite; }
.hero-facts { display: flex; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.hero-facts div { flex: 1 1 140px; border: 1px solid var(--line-light); border-radius: 14px; padding: 12px 16px; }
.hero-facts dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.hero-facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.1rem; }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 110px; }
.wave-back { fill: var(--cream); opacity: .35; animation: sway 12s ease-in-out infinite alternate; }
.wave-front { fill: var(--cream-2); }

@media (max-width: 860px) {
  .hero { padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art svg { max-width: 360px; margin: 0 auto; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: 96px; scroll-margin-top: 70px; }
.section-head { margin-bottom: 44px; display: grid; gap: 4px; }
.section-head p:last-child { margin-top: 12px; }
.section-teal { background: var(--teal); color: var(--cream); }
.section-teal h2 { color: var(--cream); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid > * { min-width: 0; }
.leader { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.leader strong { display: block; font-size: 1.05rem; }
.leader span { color: rgba(1,46,45,.7); font-size: .95rem; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--cream); color: var(--teal); border: 2px solid var(--teal); display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem; flex: none; }
.mv { display: grid; gap: 18px; }
.mv-card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.mv-card h3 { color: var(--teal); margin-bottom: 8px; }
.mv-alt { background: transparent; border: 1.5px solid var(--teal); margin-left: 40px; }

.values { margin-top: 72px; }
.values h3 { color: var(--teal); font-size: 1.5rem; margin-bottom: 22px; }
.values ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1.5px solid var(--teal); }
.values li { padding: 20px 18px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.values b { font-family: var(--display); font-weight: 400; color: var(--teal); font-size: 1.15rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .mv-alt { margin-left: 0; }
  .values ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .values ul { grid-template-columns: 1fr; } }

/* actions cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: rgba(243,232,188,.06); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.card:hover { transform: translateY(-6px); background: rgba(243,232,188,.12); border-color: rgba(243,232,188,.45); }
.card svg { width: 46px; height: 46px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.card:hover svg { transform: scale(1.08) rotate(-4deg); }
.card p { flex: 1; font-size: .97rem; color: rgba(243,232,188,.82); }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--cream); color: var(--teal); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: blink 2.4s ease-in-out infinite; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* news & gallery */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.news-grid > * { min-width: 0; }
.news-grid h2 { margin-bottom: 20px; }
.empty { border: 1.5px dashed var(--teal); border-radius: var(--radius); padding: 28px; color: rgba(1,46,45,.75); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.ph {
  aspect-ratio: 1; max-width: 100%; border-radius: 14px; background: var(--cream);
  display: grid; place-items: center; text-align: center; padding: 10px;
  font-size: .82rem; color: var(--teal); position: relative; overflow: hidden;
}
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 3.2s ease-in-out infinite; }
.ph:nth-child(2)::after { animation-delay: .4s; }
.ph:nth-child(3)::after { animation-delay: .8s; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; gap: 48px; } }

/* donate */
.section-donate { background: var(--cream); }
.pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.pay-grid > * { min-width: 0; }
.pay { background: var(--cream-2); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; align-content: start; border: 1.5px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.pay:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(1,46,45,.5); }
.pay-main { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.pay h3 { font-size: 1.6rem; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.field { display: grid; gap: 6px; }
.field small, .contact-list small { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-line code { font: 600 1.08rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; padding: 9px 14px; border-radius: 10px; background: rgba(3,83,82,.08); word-break: break-all; }
.pay-main code { background: rgba(243,232,188,.14); }
.copy {
  border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  border-radius: 999px; padding: 0 14px; min-height: 36px; font: 600 .85rem var(--body);
  transition: background .25s, color .25s, transform .2s;
}
.copy:hover { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.pay-main .copy:hover { background: var(--cream); color: var(--teal); border-color: var(--cream); }
.copy.done { animation: tick .45s var(--ease); }
.notice { margin-top: 22px; max-width: none; padding: 18px 22px; border-radius: 14px; border-left: 4px solid var(--teal); background: var(--cream-2); font-size: .97rem; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }

/* forms */
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-grid > * { min-width: 0; }
.form-grid h2 { margin-bottom: 16px; }
.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius); background: rgba(243,232,188,.07); border: 1px solid var(--line-light); }
.form-light { background: var(--cream); border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  font: 400 1rem var(--body); color: var(--ink); background: var(--cream-2);
  border: 1.5px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(3,83,82,.15); }
.section-teal .form input:focus, .section-teal .form textarea:focus { border-color: var(--cream-3); box-shadow: 0 0 0 4px rgba(243,232,188,.2); }
.form textarea { min-height: 120px; resize: vertical; }
.form .invalid { border-color: #B54A2C !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: block; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid currentColor; transition: background .25s, color .25s; }
.chips input:checked + span { background: var(--cream); color: var(--teal); border-color: var(--cream); }
.chips input:focus-visible + span { outline: 3px solid var(--cream-3); outline-offset: 2px; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.form-msg { padding: 14px 16px; border-radius: 12px; background: var(--cream-2); color: var(--ink); font-size: .95rem; max-width: none; animation: fade .4s var(--ease); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list strong { font-size: 1.08rem; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } .form { padding: 22px; } }

/* faq */
.section-faq { background: var(--cream); }
.faq { margin-top: 26px; }
details { border-bottom: 1.5px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--display); font-size: 1.2rem; color: var(--teal);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--body); font-size: 1.6rem; transition: transform .35s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 20px; color: rgba(1,46,45,.8); }
details[open] p { animation: fade .4s var(--ease); }

/* footer */
.footer { background: var(--ink); color: var(--cream); padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand { font-family: var(--display); font-size: 1.6rem; margin-bottom: 10px; }
.foot-h { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 12px; opacity: .7; }
.foot a { display: block; color: var(--cream); text-decoration: none; padding: 4px 0; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.foot a:hover { opacity: 1; transform: translateX(4px); }
.foot p { opacity: .85; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; opacity: .7; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* back to top */
.to-top {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(1,46,45,.6);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.12); opacity: .12; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }
@keyframes sway { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }
@keyframes tick { 50% { transform: scale(1.1); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 additions: logo, hero photo, sliding commitment cards
   ========================================================= */

/* logo */
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; }

/* hero photo */
.hero-photo { position: relative; margin: 0; }
.hero-photo > img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 28px 28px 28px 120px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.96);
  animation: photoIn 1.2s var(--ease) .3s forwards;
}
.hero-photo::before {
  /* cream frame offset behind the photo */
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--cream); border-radius: 28px 28px 28px 120px; opacity: .45;
}
.hero-badge {
  position: absolute; left: -14px; top: -14px; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.hero-badge img { width: 70px; height: 70px; }
@keyframes photoIn { to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-photo { max-width: 520px; margin: 10px 18px 0 0; }
  .hero-badge { width: 72px; height: 72px; left: -6px; top: -16px; }
  .hero-badge img { width: 54px; height: 54px; }
}

/* sliding commitment cards */
.marquee {
  overflow: hidden; position: relative;
  margin-inline: calc(-1 * max(18px, env(safe-area-inset-left, 0px)));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.track {
  display: flex; gap: 0; width: max-content; padding-block: 14px;
  animation: slide 38s linear infinite;
}
.marquee:hover .track,
.marquee:focus-within .track,
.marquee.paused .track { animation-play-state: paused; }
.track .card {
  width: clamp(280px, 30vw, 380px); flex: none; margin-right: 24px;
  padding: 34px 32px; gap: 16px; min-height: 340px;
}
.track .card h3 { font-size: 1.6rem; }
.track .card p { font-size: 1.05rem; }
.track .card svg { width: 60px; height: 60px; }
.marquee:hover .card { opacity: .6; }
.marquee .card:hover { opacity: 1; transform: translateY(-8px); background: rgba(243,232,188,.14); }
.marquee .card { transition: transform .4s var(--ease), background .4s, border-color .4s, opacity .4s; }
.marquee-hint { margin-top: 16px; font-size: .88rem; opacity: .65; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .track { animation: none; }
  .track .card[aria-hidden="true"] { display: none; }
  .marquee-hint { display: none; }
}
