@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --purple:       #3C3489;
  --purple-mid:   #534AB7;
  --purple-light: #7F77DD;
  --purple-pale:  #EEEDFE;
  --teal:         #1D9E75;
  --teal-mid:     #5DCAA5;
  --teal-pale:    #E1F5EE;
  --white:        #FFFFFF;
  --off-white:    #F8F7FD;
  --text-dark:    #1A1730;
  --text-mid:     #4A4668;
  --text-muted:   #8480A8;
  --border:       rgba(83,74,183,0.13);
  --border-mid:   rgba(83,74,183,0.26);
  --shadow-sm:    0 1px 4px rgba(60,52,137,0.07);
  --shadow-md:    0 4px 20px rgba(60,52,137,0.11);
  --shadow-lg:    0 12px 48px rgba(60,52,137,0.15);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --nav-h:        68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--text-mid); }
a  { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-mid); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-mid); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #158a64; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(29,158,117,0.28); }
.btn-outline { background: transparent; color: var(--purple); border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple-pale); }
.btn-sm  { padding: 8px 16px;  font-size: 13px; }
.btn-xs  { padding: 5px 11px;  font-size: 12px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
}
.badge-purple { background: var(--purple-pale); color: var(--purple); }
.badge-teal   { background: var(--teal-pale); color: #085041; }
.badge-gray   { background: #EDEDF0; color: #5F5E6A; }
.badge-green  { background: #EAF6F0; color: #0D6B4A; }
.badge-amber  { background: #FEF6E4; color: #8B5A00; }
.badge-blue   { background: #E6F1FB; color: #0C447C; }

/* ═══════════════════════════════════════════
   NAVIGATION  (hamburger on all viewports)
═══════════════════════════════════════════ */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}

/* Logo — real image */
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 38px; width: auto;
  display: block;
  /* logo PNG has black text; invert it so it works on white nav */
}

/* Hamburger button */
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm); cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 2px; background: var(--text-dark);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.nav-burger span:nth-child(3) { width: 65%; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

/* Dropdown menu panel */
.nav-menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.nav-menu.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: all;
}
.nav-menu-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-md);
  font-size: 15px; color: var(--text-mid); font-weight: 400;
  text-decoration: none; transition: background 0.13s, color 0.13s;
}
.nav-menu a:hover  { background: var(--purple-pale); color: var(--purple); }
.nav-menu a.active { background: var(--purple-pale); color: var(--purple); font-weight: 500; }
.nav-menu-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-mid); flex-shrink: 0;
}
.nav-menu a.active .nav-menu-dot { background: var(--teal); }

/* ── FOOTER ── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 1.25rem;
  margin-top: 5rem;
  text-align: center;
  font-size: 13px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer strong { color: rgba(255,255,255,0.9); }

/* ── PAGE WRAPPER ── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }

/* ── CARDS ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(83,74,183,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── DECORATIVE ── */
.dot-grid {
  position: absolute;
  background-image: radial-gradient(circle, rgba(83,74,183,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hex-shape {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--text-dark); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none; max-width: 300px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-left: 4px solid var(--teal); }
#toast.error   { border-left: 4px solid #E24B4A; }
