/* ============================================================
   Components: buttons, heroes, breadcrumb, section frame
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.3;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(254,119,0,.35); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(254,119,0,.45); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .bk-icon--arrow-left { transition: transform var(--transition); }
.btn:hover .bk-icon--arrow-left, .bekol-form .submit:hover .bk-icon--arrow-left { transform: translateX(var(--arrow-shift)); }
.btn-block { width: 100%; }

/* Ghost buttons on dark backgrounds read as light automatically. */
.bg-navy .btn-ghost,
.donate-banner .btn-ghost,
.final-cta .btn-ghost,
.navy-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.bg-navy .btn-ghost:hover,
.donate-banner .btn-ghost:hover,
.final-cta .btn-ghost:hover,
.navy-hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-row--center { justify-content: center; }

/* ---------- Eyebrow ---------- */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  color: var(--navy); font-weight: 700; font-size: .875rem;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.hero-eyebrow--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.accent { color: var(--orange); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(254,119,0,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 50%, rgba(29,29,76,.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.45fr 1fr;
  gap: 56px; align-items: center;
  padding-block: 80px 100px;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1; color: var(--navy);
  margin: 18px 0; font-weight: 800; letter-spacing: -0.5px;
}
.hero .lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted); max-width: 540px; margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions--center { justify-content: center; margin-top: 28px; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 40px !important;
  border-top: 1px solid var(--line); padding-top: 28px !important;
}
.hero-stats .item strong { display: block; color: var(--navy); font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.hero-stats .item { flex: 1 1 0; min-width: 0; }
.hero-stats .item span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; margin-top: 4px; }

.hero-visual {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-visual .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Very light shade at the bottom only, so the photo keeps its natural colours. */
  background: linear-gradient(180deg, transparent 65%, rgba(29,29,76,.15) 100%);
}
.hero-visual svg.waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .15; z-index: 1; }
.hero-visual .card-float {
  position: absolute; z-index: 2; background: #fff;
  padding: 16px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 600; line-height: 1.4;
}
.hero-visual .card-float small { color: var(--muted); font-weight: 400; }
.hero-visual .card-float .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream); display: grid; place-items: center; font-size: 1.375rem; flex-shrink: 0;
}
.hero-visual .card-1 { top: 30px; inset-inline-start: 20px; }
.hero-visual .card-2 { bottom: 40px; inset-inline-end: 20px; }
.hero-visual .card-3 { top: 50%; inset-inline-start: 30%; transform: translateY(-50%); }

/* ---------- Inner-page hero ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(254,119,0,.08), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(29,29,76,.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg-soft) 100%);
  padding: 80px 0 60px;
}
.page-hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.page-hero--no-image .container { grid-template-columns: minmax(0, 820px); }
.page-hero--compact { padding: 60px 0 40px; }
.page-hero h1 {
  font-size: clamp(2.125rem, 4.2vw, 3.375rem);
  line-height: 1.1; color: var(--navy);
  margin: 14px 0 18px; font-weight: 800; letter-spacing: -0.5px;
}
.page-hero .lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.page-hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
  background: var(--navy-50);
}
.page-hero-visual--landscape { aspect-ratio: 4/3; }
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(29,29,76,.25) 100%);
}

/* ---------- Navy hero ---------- */
.navy-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(254,119,0,.15), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; padding: 80px 0 120px; text-align: center;
}
.navy-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin: 18px 0; color: #fff; font-weight: 800; line-height: 1.15; }
.navy-hero .lead { font-size: 1.1875rem; color: rgba(255,255,255,.85); max-width: 660px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--muted); font-size: .875rem; margin-bottom: 8px;
}
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange-text); }
.breadcrumb .sep { color: #B9B9C8; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }
.breadcrumb--light { justify-content: center; }
.breadcrumb--light a, .breadcrumb--light .current { color: rgba(255,255,255,.85); }
.breadcrumb--light .sep { color: rgba(255,255,255,.35); }

/* ---------- Section frame ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section.pad-compact { padding-block: calc(var(--section-y) * .55); }
.section.pad-flush { padding-top: 0; }
/* Callouts have no background of their own, so their spacing is margin, not padding:
   consecutive callouts share one gap (vertical margins collapse) instead of doubling it. */
.section.section--callout { padding-block: 0; margin-block: var(--section-y); }
.section.section--callout.pad-compact { margin-block: calc(var(--section-y) * .55); }
.section.section--callout.pad-flush { margin-top: 0; }
/* Neighbouring sections on the same background read as one surface, so their paddings
   would add up to a double gap. Drop the second one's top padding so the gap between
   them equals the gap inside a section, the way collapsing margins behave. */
.section.bg-white + .section.bg-white,
.section.bg-soft + .section.bg-soft,
.section.bg-navy + .section.bg-navy { padding-top: 0; }
.section.bg-white + .section.section--callout { margin-top: 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #fff; overflow: hidden; }
.bg-navy::before {
  content: ""; position: absolute;
  inset-inline-start: -200px; top: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(254,119,0,.15), transparent 70%);
  pointer-events: none;
}
.bg-navy > .container { position: relative; }

.section-tag {
  display: inline-block; color: var(--orange-text);
  font-weight: 700; font-size: .875rem;
  letter-spacing: 2px; margin-bottom: 12px;
}
.bg-navy .section-tag,
.donate-banner .section-tag { color: var(--orange); }
.section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--navy); margin: 0 0 16px;
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
}
.bg-navy h2 { color: #fff; }
.section-lead { font-size: 1.125rem; color: var(--muted); max-width: 700px; margin: 0; }
.bg-navy .section-lead { color: rgba(255,255,255,.78); }
/* Lead emphasis (choice in the section header fields): same size, bolder and/or orange. */
.section-lead--bold, .section-lead--both { font-weight: 700; }
.section-lead--color, .section-lead--both { color: var(--orange-text); }
.bg-navy .section-lead--color, .bg-navy .section-lead--both { color: var(--orange); }

.section-head { margin-bottom: 50px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }

.section-foot { text-align: center; margin-top: 48px; }
.section-foot p { color: var(--muted); margin: 0 0 20px; }
.bg-navy .section-foot p { color: rgba(255,255,255,.78); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 60px; gap: 40px; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; aspect-ratio: 5/4; }
  .page-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-visual { max-width: 480px; margin-inline: auto; width: 100%; aspect-ratio: 5/4; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.125rem; }
  .hero-stats { gap: 16px; padding-top: 20px !important; }
  .hero-stats .item strong { font-size: 1.375rem; }
  .hero-stats .item span { font-size: .75rem; line-height: 1.35; }
  .hero-visual { aspect-ratio: 4/5; max-width: 360px; }
  .hero-visual .card-1 { inset-inline-start: 8px; top: 16px; }
  .hero-visual .card-2 { inset-inline-end: 8px; bottom: 16px; }
  .hero-visual .card-3 { display: none; }
  .page-hero { padding: 50px 0 40px; }
  .page-hero h1 { font-size: 1.875rem; }
  .page-hero-visual { max-width: 320px; }
  .navy-hero { padding: 56px 0 100px; }
}
