/* =========================================================
   THE RIPPLE EFFECT — GLOBAL STYLES
   Brand: #4d8aa1 (primary) / #6da8bf (secondary)
   ========================================================= */

:root {
  --primary: #4d8aa1;
  --primary-dark: #3d6f82;
  --secondary: #6da8bf;
  --secondary-light: #a8c9d6;
  --cream: #fdf9f3;
  --sand: #f5ede0;
  --ink: #1f2d35;
  --ink-soft: #455560;
  --ink-muted: #6c7a85;
  --line: #e6e2da;
  --accent-warm: #e8b86a;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(31, 45, 53, 0.04), 0 2px 8px rgba(31, 45, 53, 0.04);
  --shadow: 0 2px 6px rgba(31, 45, 53, 0.06), 0 12px 32px rgba(31, 45, 53, 0.08);
  --shadow-lg: 0 8px 24px rgba(31, 45, 53, 0.08), 0 24px 64px rgba(31, 45, 53, 0.12);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-w: 1200px;
  --max-w-narrow: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--ink-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 243, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(31, 45, 53, 0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(31, 45, 53, 0.05);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { align-self: flex-start; margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-body);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 18px rgba(77, 138, 161, 0.32);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(77, 138, 161, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }

@media (max-width: 700px) {
  section { padding: 64px 0; }
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(77, 138, 161, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-headline {
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 40px;
}

.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109, 168, 191, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(77, 138, 161, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(109, 168, 191, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 24px;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fdf9f3' d='M0,32L60,37.3C120,43,240,53,360,53.3C480,53,600,43,720,37.3C840,32,960,32,1080,37.3C1200,43,1320,53,1380,58.7L1440,64L1440,80L1380,80C1320,80,1200,80,1080,80C960,80,840,80,720,80C600,80,480,80,360,80C240,80,120,80,60,80L0,80Z'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-light);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: grid; place-items: center;
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 12px; font-size: 1.3rem; font-weight: 600; }
.card p { font-size: 0.98rem; line-height: 1.6; }

/* ---------- Stats banner ---------- */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.stats .container { position: relative; }

.stats h2 { color: white; text-align: center; margin-bottom: 48px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.98rem;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* ---------- Two-column blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.image-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(77, 138, 161, 0.25) 0%, rgba(109, 168, 191, 0.15) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.4) 0 2px, transparent 2px 14px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.image-placeholder.square { aspect-ratio: 1; }
.image-placeholder.wide { aspect-ratio: 16/10; }

.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%234d8aa1' stroke-opacity='0.12' stroke-width='1'%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Ccircle cx='50' cy='50' r='48'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

/* ---------- Story / long-form ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose p:first-of-type::first-line { font-weight: 500; color: var(--ink); }

/* ---------- CTA block ---------- */
.cta-block {
  background: linear-gradient(135deg, #2d5a6c 0%, var(--primary) 50%, var(--secondary) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-block > * { position: relative; }
.cta-block h2 { color: white; margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 600px; margin: 0 auto 32px; }
.cta-block .btn-primary { background: white; color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-block .btn-primary:hover { background: var(--cream); color: var(--primary-dark); }
.cta-block .btn-secondary { background: transparent; color: white; border-color: white; }
.cta-block .btn-secondary:hover { background: white; color: var(--primary); }

/* ---------- Stories grid ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.story-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.story-card .image-placeholder {
  aspect-ratio: 4/5;
  border-radius: 0;
  border: 0;
}

.story-card-body {
  padding: 20px 24px 24px;
}

.story-card-body h4 { margin-bottom: 6px; font-size: 1.05rem; font-weight: 600; }
.story-card-body p { font-size: 0.92rem; line-height: 1.5; color: var(--ink-muted); }

/* ---------- Partner logos ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
  padding: 32px 0;
}

.logo-slot {
  aspect-ratio: 3/1;
  border: 1px dashed rgba(77, 138, 161, 0.25);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
  background: white;
}

/* ---------- Activation rows ---------- */
.activation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.activation:first-of-type { border-top: 0; padding-top: 0; }

@media (max-width: 860px) {
  .activation { grid-template-columns: 1fr; gap: 32px; }
}

.activation-reverse > div:first-child { order: 2; }

@media (max-width: 860px) {
  .activation-reverse > div:first-child { order: 0; }
}

.activation h3 { font-size: 1.5rem; margin-bottom: 12px; }
.activation p { font-size: 1.05rem; line-height: 1.65; }

/* ---------- Form ---------- */
.form {
  max-width: 620px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .form { padding: 28px 24px; }
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field .hint { font-weight: 400; color: var(--ink-muted); margin-left: 6px; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: white;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-muted); }

.form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(109, 168, 191, 0.15);
  color: var(--primary-dark);
  font-size: 0.95rem;
  display: none;
}

.form-success.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 72px 0 32px;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer a:hover { color: white; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: white; margin-bottom: 12px; }
.footer-col h4 { color: white; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.55; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.95rem; }

.footer-socials { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; fill: white; }

.footer-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Helpers ---------- */
.bg-sand { background: var(--sand); }
.bg-white { background: white; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------- Subtle fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Simple ripple motif ---------- */
.ripple-bg {
  position: relative;
  overflow: hidden;
}
.ripple-bg::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(77,138,161,0.08);
  top: -300px; right: -200px;
  pointer-events: none;
}
.ripple-bg::after {
  content: "";
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  border: 1px solid rgba(77,138,161,0.05);
  top: -400px; right: -300px;
  pointer-events: none;
}
