/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== Design Tokens — Hippovisa-inspired navy + gold ===== */
:root {
  --primary: #081f3a;        /* deep navy */
  --primary-dark: #061429;   /* darker navy */
  --primary-mid: #1c3559;    /* mid navy */
  --accent: #c9a55c;         /* gold */
  --accent-dark: #a8853f;    /* deep gold */
  --accent-light: #dabd7f;   /* light gold */
  --text: #0a1f3c;
  --text-muted: #6b7280;
  --bg-soft: #faf6ef;        /* cream */
  --bg-alt: #f3f5f9;         /* cool gray */
  --border: #e2e7ef;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(8,31,58,.06);
  --shadow-md: 0 8px 24px rgba(8,31,58,.10);
  --container: 1180px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
h1, h2, h3, h4 { color: #0f172a; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--text); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p  { color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent  { background: var(--accent); color: var(--primary); }
.btn-accent:hover  { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost   { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover   { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.brand-logo { height: 64px; width: auto; display: block; }
.site-footer .brand-logo { height: 72px; background:#fff; padding:8px 14px; border-radius:10px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-weight: 500; color: var(--text);
  padding: 6px 0; position: relative;
}
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px auto; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(8,31,58,.92), rgba(28,53,89,.85)),
    url("https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  padding: 110px 0 120px;
}
.hero-inner { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p  { color: rgba(255,255,255,.92); font-size: 1.125rem; max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; max-width: 820px;
}
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stat .label { color: rgba(255,255,255,.85); font-size: .9rem; }

/* Smaller hero for sub-pages */
.subhero {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff; padding: 70px 0 60px;
  border-bottom: 3px solid var(--accent);
}
.subhero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.subhero p  { color: rgba(255,255,255,.9); max-width: 640px; margin-top: 10px; }

/* ===== Services / Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(8,31,58,.08), rgba(201,165,92,.18));
  color: var(--accent-dark); display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* Services section — icon-less, gold-bar title style */
.service-card { padding: 26px 28px; }
.service-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.3;
  margin-bottom: 14px;
}
.service-card p { font-size: .95rem; }

/* ===== Team tiers ===== */
.team-tier { margin-top: 56px; }
.team-tier:first-of-type { margin-top: 0; }
.tier-title {
  text-align: center;
  margin-bottom: 28px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .18em;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.tier-title::before, .tier-title::after {
  content: ""; height: 1px; width: 56px; background: var(--accent);
  display: inline-block;
}
.member-card { text-align: center; padding: 26px 20px; }
.member-card h3 { font-size: 1.05rem; margin: 0 0 2px; color: var(--primary); }
.member-card .role {
  color: var(--accent-dark); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.member-card .bio { margin-top: 12px; font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.member-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  margin: 0 auto 14px;
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800;
  border: 2px solid var(--accent);
  letter-spacing: .03em;
}
.member-card.compact { padding: 22px 16px; }
.member-card.compact .member-avatar { width: 62px; height: 62px; font-size: 1.05rem; margin-bottom: 10px; }
.member-card.compact h3 { font-size: .98rem; }
.member-card.compact .bio { font-size: .82rem; margin-top: 8px; }

/* Founder featured card */
.founder-card {
  display: grid; grid-template-columns: 1fr 1.5fr;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.founder-left {
  background: var(--primary); color: #fff;
  padding: 40px 34px; border-bottom: 4px solid var(--accent);
}
.founder-left .member-avatar { margin: 0 0 22px; }
.founder-left h3 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.founder-left .role { color: var(--accent); font-weight: 700; margin-bottom: 18px; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.founder-left p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.6; }
.founder-right { padding: 40px 36px; }
.founder-right h4 {
  color: var(--accent-dark); text-transform: uppercase;
  letter-spacing: .14em; font-size: .82rem; margin-bottom: 18px;
}
.founder-right ul { list-style: none; padding: 0; }
.founder-right ul li {
  position: relative; padding-left: 20px; margin-bottom: 12px;
  color: var(--text); font-size: .94rem; line-height: 1.55;
}
.founder-right ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 800px) { .founder-card { grid-template-columns: 1fr; } }

/* Clickable tel: link — inherits color, hover hints with gold underline */
a.tel-link { color: inherit; text-decoration: none; transition: color .15s ease; }
a.tel-link:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ===== Programs ===== */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 22px; border-radius: 999px; background: var(--bg-soft);
  font-weight: 600; color: var(--text);
}
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.program-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.program-flag {
  height: 150px;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-mid));
  background-size: cover;
  background-position: center;
  color: var(--accent); display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800;
  letter-spacing: .05em;
  text-shadow: 0 2px 10px rgba(8,31,58,.55);
}
.program-body { padding: 18px 20px 20px; }
.program-body h4 { font-size: 1.05rem; margin-bottom: 4px; color: #0f172a; }
.program-body .type { font-size: .8rem; color: var(--accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.program-body p { color: var(--text-muted); font-size: .9rem; margin-top: 8px; }

/* ===== Stats ===== */
.stats-band { background: var(--bg-soft); }
.stats-band .grid-4 { gap: 20px; }
.stat-box { text-align: center; padding: 28px 16px; }
.stat-box .num { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.stat-box .label { color: var(--text-muted); margin-top: 4px; }

/* ===== Process ===== */
.process { background: #fff; }
.process .grid-4 { gap: 24px; }
.step {
  text-align: center; padding: 24px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  position: relative;
}
.step .num-circle {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: .92rem; }

/* ===== CTA Band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff; text-align: center;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 26px; }

/* ===== About / Contact specific ===== */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
}
.feature-list .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: .8rem; margin-top: 3px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-card {
  display: flex; gap: 14px; padding: 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.info-card .icon { flex-shrink: 0; }
.info-card h4 { font-size: 1rem; margin-bottom: 2px; }
.info-card p  { color: var(--text-muted); font-size: .92rem; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,165,92,.20);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .msg { font-size: .9rem; margin-top: 8px; }
.form .msg.success { color: var(--accent-dark); }
.form .msg.error   { color: #b91c1c; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark); color: #cbd5e1;
  padding: 56px 0 24px;
  border-top: 3px solid var(--accent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h5 { color: var(--accent); margin-bottom: 16px; font-size: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul li { margin-bottom: 10px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid var(--primary-mid); margin-top: 40px; padding-top: 20px;
  text-align: center; font-size: .85rem; color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links { display: none; position: absolute; top: 88px; left: 0; right: 0;
               background: #fff; flex-direction: column; gap: 0; padding: 12px 20px;
               border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0; }
}
