/* ==========================================================================
   STUDIUS — shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0a4d8f;
  --navy-dark: #073863;
  --teal: #8ec9c4;
  --teal-light: #eaf5f4;
  --ink: #1e1e1e;
  --body: #333333;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-footer: #eef1f5;
  --border: #e6e8ec;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 40, 80, 0.08);
  --shadow-sm: 0 4px 14px rgba(10, 40, 80, 0.06);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Afacad Flux", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); text-align: center; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.btn-dark:hover { background: #000; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(10,77,143,.28);
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 28px;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}
.brand img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  color: var(--body);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); border-color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header-actions .btn-primary.header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  color: #fff;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding-top: 84px;
  padding-bottom: 84px;
  min-height: 480px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 480px; margin-bottom: 30px; }
.hero-art { display: flex; align-items: center; justify-content: center; }

.painting-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
}
.painting-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.06);
  transform: rotate(-1.5deg);
  animation: paintingFloat 6s ease-in-out infinite;
}
.painting-frame img { width: 100%; display: block; }
.painting-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 54% 58%, rgba(255,203,110,.55), transparent 45%);
  mix-blend-mode: screen;
  animation: glowPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e6 0%, #ffd873 55%, transparent 75%);
  box-shadow: 0 0 10px 3px rgba(255,214,102,.85);
  left: 54%;
  bottom: 40%;
  opacity: 0;
  animation: sparkleRise 3.4s ease-in infinite;
}
.sparkle-1 { animation-delay: 0s; left: 50%; }
.sparkle-2 { animation-delay: .8s; left: 57%; bottom: 42%; }
.sparkle-3 { animation-delay: 1.7s; left: 46%; bottom: 38%; }
.sparkle-4 { animation-delay: 2.5s; left: 60%; bottom: 44%; }

@keyframes paintingFloat {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-8px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes sparkleRise {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  15% { opacity: 1; }
  75% { opacity: .55; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.15); }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; padding-bottom: 56px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .painting-wrap { max-width: 220px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .painting-frame, .painting-glow, .sparkle { animation: none; }
}

/* ---------- Offer cards ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.offer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.offer-icon svg { width: 26px; height: 26px; fill: currentColor; }
.offer-card h3 { margin-bottom: 8px; }
.offer-card p { color: var(--muted); margin: 0; }

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

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.how-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 520px;
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid img { max-height: 320px; }
}

/* ---------- Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  padding: 20px 4px;
  cursor: pointer;
}
.accordion-trigger .icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .2s ease;
}
.accordion-item.open .accordion-trigger .icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.accordion-panel p {
  color: var(--muted);
  padding: 0 4px 20px;
  margin: 0;
}
.placeholder-note {
  color: #b3541e;
  font-style: italic;
  font-size: .92rem;
}

/* ---------- University strip ---------- */
.uni-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}
.uni-strip img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.65);
  transition: filter .2s ease;
}
.uni-strip img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-footer);
  padding: 64px 0 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.footer-links h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-links a { display: block; padding: 5px 0; color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- About: story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.story-photos figure { margin: 0; }
.story-photos img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.story-photos figcaption {
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
  color: var(--navy);
}
.story-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 42px;
}
.story-card p { color: var(--body); }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-card { padding: 28px; }
}

.wave-divider { display: block; width: 100%; height: auto; color: var(--navy); margin: 0; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--teal-light);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(135deg, var(--teal-light), #fff);
}
.team-body { padding: 18px 20px 22px; }
.team-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.team-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.tag-placeholder {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #b3541e;
  background: #fdf0e4;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-label { color: var(--muted); margin-top: 8px; font-weight: 600; }
@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px 30px;
  text-align: center;
}
.contact-card .icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card .icon-circle svg { width: 26px; height: 26px; fill: currentColor; }
.contact-card a.mail { color: var(--navy); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.faq-wrap { max-width: 760px; margin: 0 auto; }

/* ---------- Form ---------- */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: .95rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10,77,143,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .96rem;
  cursor: pointer;
}
.checkbox-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--teal-light);
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 700;
  margin-bottom: 22px;
}
.form-success.show { display: block; }

/* ---------- Legal / privacy policy page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal .updated {
  display: inline-block;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  font-size: .9rem;
}
.legal p { color: var(--body); }
.legal h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 2.4em;
  margin-bottom: .6em;
}
.legal > .legal-intro + h2,
.legal h2:first-of-type { margin-top: 0; }
.legal ul {
  margin: 0 0 1.2em 1.3em;
  list-style: disc;
}
.legal li {
  margin-bottom: .55em;
  color: var(--body);
}
.legal a { color: var(--navy); font-weight: 700; }
.legal .contact-block {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-top: .5em;
}
.legal .contact-block p { margin: 0 0 .4em; }
.legal .contact-block p:last-child { margin: 0; }
.legal .toc {
  background: var(--teal-light);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 0 0 2.4em;
}
.legal .toc p { margin: 0 0 10px; font-weight: 700; color: var(--navy); }
.legal .toc ol { margin: 0 0 0 1.2em; padding: 0; }
.legal .toc li { margin-bottom: 4px; color: var(--body); }
.legal .toc a { color: var(--body); font-weight: 600; }
.legal .toc a:hover { color: var(--navy); }

/* CTA banner (used on contact page) */
.cta-banner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
}
