@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: var(--fs-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-dark);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: var(--color-text); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.section { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-5) 0; }
.section-alt { background: var(--color-surface); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--sp-2);
}
.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head p { color: var(--color-text-muted); margin-top: var(--sp-2); }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.92); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-whatsapp { background: #1E7F4D; color: #fff; }
.btn-whatsapp:hover { background: #17663d; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.top-strip {
  background: var(--color-primary-dark);
  color: #E8ECF3;
  font-size: 0.8rem;
}
.top-strip .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.top-strip a { display: inline-flex; align-items: center; gap: 6px; }
.top-strip a:hover { color: var(--color-accent-soft); }

.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; object-fit: contain; }
.brand .brand-text .name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--color-primary-dark); line-height: 1.15; }
.brand .brand-text .short { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--color-accent); font-weight: 600; }

nav.main-nav { display: flex; align-items: center; gap: var(--sp-4); }
nav.main-nav ul { display: flex; gap: var(--sp-3); }
nav.main-nav a.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--color-text); padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main-nav a.nav-link:hover, nav.main-nav a.nav-link.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.header-ctas { display: flex; gap: var(--sp-2); align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--color-primary-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--color-surface); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.hero-copy .eyebrow { margin-bottom: var(--sp-2); }
.hero-copy h1 { margin-bottom: var(--sp-3); }
.hero-copy .lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 46ch; margin-bottom: var(--sp-4); }
.hero-ctas { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .arch-frame {
  position: relative;
  border-radius: 200px 200px 12px 12px;
  overflow: hidden;
  border: 6px solid var(--color-surface);
  box-shadow: var(--shadow-md);
}
.hero-media img { width: 100%; height: 420px; object-fit: cover; }
.hero-media .seal-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 108px; height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.25;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.hero-media .seal-badge strong { font-size: 1.1rem; display: block; color: var(--color-accent-soft); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-primary-dark); color: #fff; }
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; align-items: center;
  padding-top: var(--sp-3); padding-bottom: var(--sp-3);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #DCE3EE; }
.trust-item i { color: var(--color-accent); font-size: 1.1rem; }
.trust-item strong { color: #fff; }

/* ---------- Divider motif (arcade / colonnade echo) ---------- */
.arch-divider { height: 28px; overflow: hidden; }
.arch-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--sp-3); }
.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: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-accent-soft); }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: var(--sp-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card .meta { margin-top: var(--sp-2); font-size: 0.85rem; color: var(--color-accent); font-weight: 600; }

/* ---------- Leadership ---------- */
.leader-card { text-align: center; }
.leader-photo {
  width: 148px; height: 148px; border-radius: 50%; overflow: hidden;
  margin: 0 auto var(--sp-2); border: 4px solid var(--color-accent-soft);
  background: var(--color-primary); display: flex; align-items: center; justify-content: center;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo .initials { color: #fff; font-family: var(--font-display); font-size: 2rem; }
.leader-card .role { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Programs table / fees ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
table.fee-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.fee-table th, table.fee-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--color-border); }
table.fee-table th { background: var(--color-primary); color: #fff; font-family: var(--font-display); font-weight: 600; }
table.fee-table tr:last-child td { border-bottom: none; }
table.fee-table tr:nth-child(even) td { background: #FBFAF7; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--color-primary-dark); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; background: var(--color-surface); color: var(--color-text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent);
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); }
.form-success {
  display: none; background: #EAF5EE; border: 1px solid var(--color-success);
  color: var(--color-success); padding: var(--sp-3); border-radius: var(--radius); font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--sp-3) 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-family: var(--font-display); color: var(--color-primary-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 220ms ease; color: var(--color-text-muted); }
.faq-item.open .faq-a { max-height: 260px; padding-top: var(--sp-2); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-q i { transition: var(--transition); color: var(--color-accent); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D3E2; margin-bottom: var(--sp-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #C9D3E2; }
.site-footer .container { padding-top: var(--sp-6); padding-bottom: var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-2); }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--color-accent-soft); }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: var(--sp-2); }
.footer-brand img { height: 40px; width: 40px; background: #fff; border-radius: 50%; padding: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--sp-4); padding-top: var(--sp-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: #1E7F4D; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Chat widget ---------- */
.chat-launcher {
  position: fixed; bottom: 22px; left: 22px; z-index: 60;
  background: var(--color-primary); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
}
.chat-panel {
  position: fixed; bottom: 92px; left: 22px; z-index: 60; width: 320px; max-width: 88vw;
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border); display: none; overflow: hidden;
}
.chat-panel.open { display: block; }
.chat-panel .chat-head { background: var(--color-primary); color: #fff; padding: 14px 16px; font-weight: 600; }
.chat-panel .chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.chat-option { text-align: left; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); cursor: pointer; font-size: 0.9rem; }
.chat-option:hover { border-color: var(--color-accent); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { background: var(--color-primary-dark); color: #fff; padding: var(--sp-6) 0 var(--sp-5); }
.page-banner h1 { color: #fff; }
.page-banner .crumb { color: var(--color-accent-soft); font-size: 0.85rem; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
  .hero-media { order: -1; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  nav.main-nav ul { position: fixed; top: 76px; left: 0; right: 0; background: var(--color-surface);
    flex-direction: column; padding: var(--sp-3); border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md); display: none; gap: var(--sp-1); }
  nav.main-nav ul.open { display: flex; }
  nav.main-nav { position: static; }
  .header-ctas .btn span.btn-label-full { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-strip .container { justify-content: center; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-5) 0; }
}
