/* Families Institute — shared styles
   Warm, modern, approachable design system */

:root {
  --color-cream: #fdf8f2;
  --color-cream-deep: #f7ede1;
  --color-terracotta: #d97a5f;
  --color-terracotta-dark: #b85c42;
  --color-sage: #7c9a82;
  --color-sage-dark: #5f7d66;
  --color-gold: #e8b04b;
  --color-ink: #362f2b;
  --color-ink-soft: #6b5f57;
  --color-white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(97, 69, 47, 0.08);
  --shadow-card: 0 6px 20px rgba(97, 69, 47, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-body: "Nunito", "Noto Sans SC", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Noto Sans SC", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-ink-soft); }
a { color: var(--color-terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  background: rgba(124, 154, 130, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(97, 69, 47, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-terracotta-dark); text-decoration: none; }

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--color-white);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-card);
}
.lang-switch a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-soft);
}
.lang-switch a:hover { text-decoration: none; background: var(--color-cream-deep); }
.lang-switch a.active {
  background: var(--color-terracotta);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--color-terracotta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(216, 122, 95, 0.35);
}
.btn-primary:hover { background: var(--color-terracotta-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: rgba(97, 69, 47, 0.25);
  color: var(--color-ink);
}
.btn-outline:hover { border-color: var(--color-terracotta); color: var(--color-terracotta-dark); }

.btn-light {
  background: #fff;
  color: var(--color-terracotta-dark);
}
.btn-light:hover { color: var(--color-terracotta-dark); background: var(--color-cream-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 90px;
  background: radial-gradient(ellipse at top right, rgba(232, 176, 75, 0.18), transparent 55%),
              radial-gradient(ellipse at bottom left, rgba(124, 154, 130, 0.16), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-terracotta-dark);
}
.hero-stat span { font-size: 0.85rem; color: var(--color-ink-soft); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art svg { width: 78%; height: 78%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--color-cream-deep); }
.section-dark {
  background: linear-gradient(135deg, var(--color-sage-dark), var(--color-sage));
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.88); }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(97, 69, 47, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(97,69,47,0.14); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: var(--color-cream-deep);
}
.card p:last-child { margin-bottom: 0; }

.icon-terracotta { background: rgba(216, 122, 95, 0.14); }
.icon-sage { background: rgba(124, 154, 130, 0.16); }
.icon-gold { background: rgba(232, 176, 75, 0.18); }

/* Values / rules list */
.rule-list { display: grid; gap: 18px; margin-top: 10px; }
.rule-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.rule-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.rule-item h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; }
.rule-item p { margin: 0; }

/* Two column with image block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.blob {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--color-terracotta), var(--color-gold));
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob svg { width: 55%; height: 55%; }

/* Team */
.team-card { text-align: center; }
.team-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}
.team-role {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-terracotta-dark);
  margin-bottom: 10px;
}

/* Partners */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.partner-pill {
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-weight: 700;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

/* CTA */
.cta-box {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: #fff;
  padding: 60px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.cta-box h2, .cta-box p { color: #fff; }
.cta-box .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-box .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-item .card-icon { margin-bottom: 0; }
.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}
.contact-form label {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(97, 69, 47, 0.16);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-cream);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 28px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-lang { display: flex; gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .blob { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--color-cream); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .lang-switch { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
