/* ============================================================
   GIVE marketing — conventional layout, deck-material faithful
   Uses the deck's palette, fonts, cards, callouts — organized as
   a scrollable single-page site rather than slide-by-slide.
   ============================================================ */

:root {
  --brand: #5336D9;
  --brand-ink: #7159DC;
  --brand-deep: #3B24A8;
  --ink: #1F1A4E;
  --ink-2: #262040;
  --muted: #6D6D82;
  --bg: #E9E8E8;
  --bg-soft: #F2F1F1;
  --rule: #D8D6DE;
  --wrap: 1200px;

  --serif: "Droid Serif", Georgia, "Times New Roman", Times, serif;
  --sans:  "Barlow", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --logo:  "Nunito", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  hyphens: auto;
  -webkit-hyphens: auto;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(237,237,239,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px clamp(24px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity .15s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 2px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-deep); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--logo);
  line-height: 1;
  font-size: 24px;
  text-decoration: none;
}
.logo-give { font-weight: 900; color: var(--brand); letter-spacing: -0.02em; }
.logo-mkt  { font-weight: 400; color: var(--ink); font-size: 0.62em; }
.logo--dark .logo-give { color: #fff; }
.logo--dark .logo-mkt  { color: #C9C4FF; }

/* ---------- Hero (mirrors deck cover) ---------- */
.hero {
  background: var(--brand);
  color: #fff;
  padding: clamp(88px, 12vw, 160px) 0 clamp(96px, 13vw, 180px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 28px;
  position: relative;
  z-index: 1;
}
.hero-inner::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: #fff;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(22px, 5.2vw, 66px);
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #fff;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-sub {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.2vw, 17px);
  color: #fff;
  margin: 0;
  opacity: 0.92;
}

/* ---------- Section frame ---------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
  overflow: hidden;
}
.section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/background.png") center / cover no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
.section > .wrap { position: relative; z-index: 1; }

/* Section break — small centered brand mark between sections */
.hero + .section::before,
.section + .section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg) url("assets/brand-mark.png") center / 22px auto no-repeat;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 3;
  pointer-events: none;
}
/* Thin hairline rule behind the mark for the subtle "connecting" line */
.hero + .section,
.section + .section {
  border-top: 1px solid rgba(83, 54, 217, 0.12);
}

.section-head {
  max-width: 820px;
  margin: 0 0 40px;
}
.section h2 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--brand);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.deck-statement {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.008em;
  margin: 0 0 10px;
}
.deck-statement + .lead { margin-top: 6px; }
.lead {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: 1.15fr 1fr; align-items: start; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tiles (slide 2 departments — deck style) ---------- */
.tile {
  background: var(--brand-ink);
  color: #fff;
  border-radius: 4px;
  padding: 24px 20px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 128px;
}
.tile h3 {
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.tile p {
  font-family: var(--serif);
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.4;
}

/* ---------- Lists (deck bullets) ---------- */
.list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list li {
  font-family: var(--serif);
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-deep);
}
.list--ring li::before {
  background: transparent;
  border: 1.5px solid var(--brand-deep);
  width: 7px; height: 7px;
  top: 0.52em;
  left: 2px;
}
.list--sm li { font-size: 14.5px; }
.list--sep { gap: 14px; }

.post { margin-top: 24px; }
.post-lede {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  font-size: 16px;
}

.body {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0 0 10px;
  line-height: 1.55;
}
.body--mt { margin-top: 14px; }
.body--strong { font-weight: 700; color: var(--ink); }

.soft {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 14px;
  margin: 22px 0 0;
}

/* ---------- Pullquote (mirrors deck serif-callout) ---------- */
.pullquote {
  background: transparent;
  border-left: 2px solid var(--brand);
  padding: 6px 0 6px 22px;
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.05;
}
.pullquote p { margin: 0; color: var(--ink); }
.pq-big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: 0.001em;
  color: var(--ink);
}
.pq-small {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.15;
  letter-spacing: 0.006em;
  color: var(--ink);
}
.pq-tiny {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 10px !important;
}
.pullquote--inline { align-self: center; }
.pullquote--cierre { margin-top: 28px; }

/* ---------- Cards (criterios) ---------- */
.num-grid { list-style: none; padding: 0; margin: 0; }
.card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--brand);
  padding: 18px 0 0;
  position: relative;
}
.card-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 10px;
}

/* ---------- Chip (deck style) ---------- */
.chip {
  font-family: var(--serif);
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  background: #DEDBFF;
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.chip:hover { background: #CCC7FF; }

/* ---------- Split section head (slide 5) ---------- */
.section-head--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: none;
  align-items: start;
}

/* ---------- Contacto ---------- */
.contacto-inner { align-items: start; }
.contacto-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--brand);
  padding: 18px 0 0;
}
.contacto-card h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.contacto-card p {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}
.contacto-card a { text-decoration: none; color: var(--ink); }
.contacto-card a:hover { text-decoration: underline; }
.contacto-address {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 16px !important;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: #C9C4FF;
  padding: 28px 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot .logo-give { color: #fff; }
.foot .logo-mkt  { color: #C9C4FF; }
.foot-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.foot-meta a { color: #fff; text-decoration: none; }
.foot-meta a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
h1, h2, h3, h4, .deck-statement, .pq-big, .pq-small, .lead, .body, .hero-sub {
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}
.grid > *, .section-head, .section-head > * { min-width: 0; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .tile { min-height: auto; padding: 20px 18px 22px; }
}
@media (max-width: 540px) {
  body, .section, .hero, .wrap, .foot { max-width: 100vw; overflow-x: hidden; }
  .wrap { padding: 0 16px; }

  .nav-inner { padding: 12px 16px; gap: 10px; }
  .nav-cta { padding: 8px 12px; font-size: 11px; letter-spacing: 0.12em; }
  .logo { font-size: 19px; }

  .hero { padding: 52px 0 64px; }
  .hero-inner { padding-left: 14px; max-width: 100%; }
  .hero h1 {
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1.12;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero-sub {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; max-width: 100%; }
  .section h2 {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }
  .deck-statement {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .lead {
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pullquote { padding-left: 16px; margin-top: 24px; }
  .pq-big { font-size: 22px; }
  .pq-small { font-size: 14px; }
  .pq-tiny { font-size: 10px; }

  .list li { font-size: 14.5px; padding-left: 18px; }
  .body { font-size: 15px; }

  .card { padding-top: 14px; }
  .card h3 { font-size: 16px; }
  .card-num { font-size: 10px; margin-bottom: 8px; }

  .contacto-card p { font-size: 15px; }
  .contacto-address { font-size: 13px; }

  .foot-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-meta { font-size: 11px; letter-spacing: 0.05em; }
}
