/* ============================================================
   LA FAMILIA SIMÓN FOUNDATION — Shared Design System
   ============================================================ */

:root{
  /* Ink / brand navy */
  --ink:        #143459;
  --ink-2:      #1f4e7a;
  --ink-soft:   #3c6794;
  --muted:      #5e7790;
  --muted-2:    #88a0b5;

  /* Sky / paper */
  --sky-0:      #fbfdff;
  --sky-1:      #f2f8fd;
  --sky-2:      #e6f1fb;
  --sky-3:      #d6e8f7;
  --line:       #cfe1f0;
  --line-soft:  #e2eef8;
  --paper:      #ffffff;

  /* Gold */
  --gold:       #bd8a2e;
  --gold-2:     #d6a03e;
  --gold-soft:  #eedcb4;

  /* Warm accent (from logo burst) — used sparingly */
  --coral:      #e0653f;

  /* Type */
  --serif:      "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --caps:       "Cinzel", Georgia, serif;
  --sans:       "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --container:  1200px;
  --container-wide: 1320px;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 10px rgba(20,52,89,.06);
  --shadow:     0 18px 50px -20px rgba(20,52,89,.28);
  --shadow-lg:  0 40px 90px -30px rgba(20,52,89,.40);

  /* Per-organization accent (overridable) */
  --accent:     var(--ink-2);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--sky-0);
  font-size:18px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }

/* Subtle brand watermark — shows only through white/light areas;
   dark & photo sections have opaque backgrounds that cover it. */
body::before{
  content:"";
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:url("assets/lfs-logo.png");
  background-repeat:no-repeat;
  background-position:center 56%;
  background-size:min(58vmin,520px);
  opacity:.05;
}
@media print{ body::before{ display:none; } }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--gold-soft); color:var(--ink); }

/* ---------- Layout ---------- */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:28px; }
.container-wide{ max-width:var(--container-wide); }
section{ position:relative; }
.section-pad{ padding-block:clamp(72px,9vw,140px); }
.section-pad-sm{ padding-block:clamp(48px,6vw,90px); }

/* ---------- Type ---------- */
h1,h2,h3,h4{ margin:0; color:var(--ink); font-weight:600; line-height:1.08; }
.display{
  font-family:var(--serif);
  font-weight:600;
  letter-spacing:-.01em;
  font-size:clamp(2.6rem,6.2vw,5.4rem);
  line-height:1.02;
}
.h2{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.12;
  letter-spacing:-.01em;
}
.h3{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.5rem,2.4vw,2.1rem);
}
.lead{
  font-size:clamp(1.15rem,1.5vw,1.4rem);
  line-height:1.6;
  color:var(--ink-soft);
  font-weight:400;
}
.eyebrow{
  font-family:var(--caps);
  text-transform:uppercase;
  letter-spacing:.26em;
  font-size:.72rem;
  font-weight:600;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:.7em;
}
.eyebrow::before{
  content:""; width:30px; height:1px; background:var(--gold);
  display:inline-block; opacity:.7;
}
.eyebrow.center::after{
  content:""; width:30px; height:1px; background:var(--gold);
  display:inline-block; opacity:.7;
}
.eyebrow.no-rule::before{ display:none; }
.muted{ color:var(--muted); }
.serif-it{ font-family:var(--serif); font-style:italic; }
.balance{ text-wrap:balance; }
.pretty{ text-wrap:pretty; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--sans); font-weight:700; font-size:.95rem;
  letter-spacing:.01em;
  padding:.92em 1.7em;
  border-radius:999px;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{
  background:linear-gradient(180deg,var(--ink-2),var(--ink));
  color:#fff;
  box-shadow:0 12px 26px -12px rgba(20,52,89,.65);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 18px 34px -12px rgba(20,52,89,.7); }
.btn-gold{
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  color:#fff;
  box-shadow:0 12px 26px -12px rgba(189,138,46,.7);
}
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 18px 34px -12px rgba(189,138,46,.75); }
.btn-ghost{
  background:transparent; color:var(--ink); border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--ink-2); transform:translateY(-2px); }
.btn-light{
  background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.32);
  backdrop-filter:blur(6px);
}
.btn-light:hover{ background:rgba(255,255,255,.2); transform:translateY(-2px); }
.btn-lg{ padding:1.05em 2em; font-size:1rem; }

.link-arrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-weight:700; color:var(--ink-2); font-size:.95rem;
}
.link-arrow svg{ width:17px; height:17px; transition:transform .25s; }
.link-arrow:hover svg{ transform:translateX(4px); }

/* ---------- Header ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .35s, box-shadow .35s, border-color .35s, padding .35s;
  border-bottom:1px solid transparent;
}
.site-header .bar{
  display:flex; align-items:center; gap:24px;
  padding-block:18px;
}
.site-header.scrolled{
  background:rgba(248,252,255,.86);
  backdrop-filter:saturate(140%) blur(14px);
  border-bottom-color:var(--line-soft);
  box-shadow:0 6px 24px -18px rgba(20,52,89,.5);
}
.brand{ display:flex; align-items:center; gap:13px; margin-right:auto; }
.brand img{ width:46px; height:46px; object-fit:contain; filter:drop-shadow(0 4px 10px rgba(20,52,89,.18)); }
.brand .bt{ line-height:1.05; }
.brand .bt b{
  font-family:var(--caps); font-weight:600; color:var(--ink);
  font-size:.95rem; letter-spacing:.02em; display:block;
}
.brand .bt span{
  font-size:.62rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--gold); font-weight:700;
}
.nav{ display:flex; align-items:center; gap:15px; flex-shrink:0; }
.nav a{
  font-weight:600; font-size:.88rem; color:var(--ink-soft);
  position:relative; padding:4px 0; transition:color .2s; white-space:nowrap;
}
.nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px;
  background:var(--gold-2); transition:right .3s cubic-bezier(.2,.7,.3,1);
}
.nav a:hover{ color:var(--ink); }
.nav a:hover::after{ right:0; }
.header-cta{ display:flex; align-items:center; gap:10px; margin-left:18px; }
.lang-pill{
  font-family:var(--sans); font-weight:700; font-size:.78rem;
  color:var(--ink-soft); border:1.5px solid var(--line); border-radius:999px;
  padding:.4em .8em; cursor:pointer; background:transparent; letter-spacing:.04em;
  transition:border-color .2s,color .2s;
}
.lang-pill:hover{ border-color:var(--ink-2); color:var(--ink); }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; color:var(--ink); padding:6px; }
.menu-toggle svg{ width:28px; height:28px; }

/* mobile drawer */
.drawer{
  position:fixed; inset:0; z-index:200; background:var(--sky-1);
  transform:translateX(100%); transition:transform .4s cubic-bezier(.5,0,.2,1);
  display:flex; flex-direction:column; padding:26px 28px; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.drawer.open{ transform:translateX(0); }
.drawer .drawer-top{ display:flex; align-items:center; justify-content:space-between; flex:none; }
.drawer nav{ display:flex; flex-direction:column; gap:0; margin-top:18px; }
.drawer nav a{
  font-family:var(--serif); font-size:1.22rem; font-weight:600; color:var(--ink);
  padding:9px 0; border-bottom:1px solid var(--line-soft);
}
.drawer .drawer-cta{ margin-top:18px; padding-top:6px; display:flex; flex-direction:column; gap:10px; flex:none; }
@media (max-height:720px){ .drawer nav a{ font-size:1.08rem; padding:7px 0; } .drawer nav{ margin-top:12px; } }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:#cdddec; padding-block:72px 30px; position:relative; overflow:hidden; }
.site-footer .container{ position:relative; z-index:2; }
.foot-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.3fr; gap:48px; }
.site-footer h4{ color:#fff; font-family:var(--caps); font-size:.78rem; letter-spacing:.2em; text-transform:uppercase; margin-bottom:18px; }
.site-footer a{ color:#a9c2da; font-size:.95rem; display:block; padding:5px 0; transition:color .2s; }
.site-footer a:hover{ color:#fff; }
.foot-brand img{ width:64px; height:64px; }
.foot-brand p{ color:#9fb8d1; font-size:.95rem; margin:16px 0 0; max-width:32ch; }
.foot-tagline{
  font-family:var(--caps); letter-spacing:.18em; text-transform:uppercase;
  color:var(--gold-2); font-size:.82rem; margin-top:20px;
}
.foot-bottom{
  border-top:1px solid rgba(255,255,255,.12); margin-top:54px; padding-top:24px;
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center;
  font-size:.84rem; color:#7f9bb6;
}
.foot-social{ display:flex; gap:12px; }
.foot-social a{
  width:38px; height:38px; border:1px solid rgba(255,255,255,.18); border-radius:50%;
  display:grid; place-items:center; padding:0;
}
.foot-social a:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.4); }
.foot-social svg{ width:17px; height:17px; }

/* ---------- Decorative ---------- */
.gold-rule{ width:64px; height:2px; background:linear-gradient(90deg,var(--gold-2),transparent); border:0; }
.center-rule{ width:80px; height:1px; background:var(--gold-2); margin:22px auto; opacity:.7; }
.badge-501{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.66rem; font-weight:700; letter-spacing:.03em;
  color:var(--ink-2); background:var(--paper);
  border:1px solid var(--line); border-radius:999px; padding:.34em .75em;
  box-shadow:var(--shadow-sm);
}
.badge-501 .dot{ width:6px; height:6px; border-radius:50%; background:#3fae6b; box-shadow:0 0 0 2px rgba(63,174,107,.18); }
.s1-bulb{ width:24px; height:24px; display:inline-grid; place-items:center; flex:none; filter:drop-shadow(0 0 5px rgba(58,139,219,.6)); perspective:120px; }
.s1-bulb svg{ width:22px; height:22px; transform-style:preserve-3d; animation:s1bulbSpin 4s linear infinite; }
@keyframes s1bulbSpin{ from{ transform:rotateY(0); } to{ transform:rotateY(360deg); } }
@media (prefers-reduced-motion:reduce){ .s1-bulb svg{ animation:none; } }

/* ---------- Cookie consent ---------- */
.consent{
  position:fixed; left:18px; right:18px; bottom:18px; z-index:300;
  max-width:600px; margin:0 auto;
  background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-lg);
  padding:20px 22px; display:flex; gap:18px; align-items:center; flex-wrap:wrap;
  transform:translateY(180%); transition:transform .55s cubic-bezier(.2,.7,.3,1);
}
.consent.show{ transform:none; }
.consent .cgrip{ display:flex; align-items:center; gap:14px; flex:1; min-width:220px; }
.consent .cgrip img{ width:34px; height:34px; object-fit:contain; flex:none; }
.consent p{ margin:0; font-size:.84rem; line-height:1.5; color:var(--ink-soft); }
.consent p a{ color:var(--ink-2); font-weight:700; text-decoration:underline; }
.consent .cbtns{ display:flex; gap:10px; }
.consent .btn{ padding:.62em 1.25em; font-size:.85rem; }
@media (max-width:520px){ .consent{ flex-direction:column; align-items:stretch; } .consent .cbtns .btn{ flex:1; justify-content:center; } }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in{ opacity:1; transform:none; }
.reveal[data-d="1"]{ transition-delay:.08s; }
.reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; }
.reveal[data-d="4"]{ transition-delay:.32s; }
.reveal[data-d="5"]{ transition-delay:.40s; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
  html{ scroll-behavior:auto; }
}

/* ---------- Image slot fallback styling ---------- */
image-slot{ display:block; width:100%; height:100%; }

/* ---------- Wave divider ---------- */
.wave{ display:block; width:100%; height:auto; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .foot-grid{ grid-template-columns:1fr 1fr; gap:36px; }
}
@media (max-width:1024px){
  .nav, .header-cta .btn{ display:none; }
  .header-cta .lang-pill{ display:inline-flex; padding:.35em .7em; }
  .menu-toggle{ display:block; }
  .header-cta{ gap:8px; }
}
@media (max-width:880px){
  body{ font-size:17px; }
}
@media (max-width:620px){
  .container{ padding-inline:20px; }
  .foot-grid{ grid-template-columns:1fr; gap:30px; }
}
