@charset "UTF-8";

/* =============================================
   MAG Gestalt Center / Main Stylesheet
   All six pages use this single file.
   Per-page accent colors via body class.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Raleway:wght@300;400;500&display=swap');

:root {
  --purple:       #3362CC;
  --purple-dark:  #2D55B4;
  --purple-light: #5C81D6;
  --purple-pale:  #8DA6E2;

  --sage:         #5D675B;
  --sage-light:   #C8DBD0;
  --sage-pale:    #EEF5F1;

  --blush:        #D4A5A0;
  --blush-light:  #F0DDD9;

  --gold:         #C8A96A;
  --gold-light:   #F0E4C8;

  --ink:          #2A2940;
  --ink-mid:      #4A495E;
  --smoke:        #F7F6F2;
  --white:        #FFFFFF;

  --accent:       #5C81D6; /* default, overridden per page */

  --nav-h:        9vh;
  --font-round:   'Arial Rounded MT Bold', 'Arial Rounded MT Pro Cyr', 'Nunito', sans-serif;
  --font-serif:   'Arial Rounded MT Pro Cyr', sans-serif;
  --font-body:    'Arial Rounded MT Pro Cyr', sans-serif;
}

/* -- PER-PAGE ACCENT COLORS -------------------- */
body.page-index   { --accent: #5C81D6; }
body.page-about   { --accent: #FF725E; }
body.page-students { --accent: #6DAC7F; }
body.page-careers { --accent: #AB5FB8; }
body.page-team    { --accent: #5C81D6; }
body.page-appointment { --accent: #5C81D6; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--smoke);
  color: var(--ink);
  overflow-x: hidden;
}

/* -- NAV --------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  min-height: 56px;
  max-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5vw;
  background: var(--purple);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  font-family: var(--font-round);
  font-size: 1.45rem;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
  max-width: 140px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-left-links {
  display: flex;
  align-items: center;
  gap: 2.2vw;
  margin-left: 2.5vw;
}

.nav-left-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-left-links a:hover { color: var(--white); }

.nav-group-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--purple);
  background: var(--white);
  border: none;
  border-radius: 2px;
  padding: 0.52em 1.4em;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--purple-dark);
}

.nav-link-active {
  color: var(--white) !important;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}

/* -- HERO --------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  padding-top: var(--nav-h);
  min-height: 500px;
}

/* LEFT PANEL */
.hero-left {
  background: var(--smoke);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5vw 5vw 5vh 5vw;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.4rem;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.hero-slogan em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 600px;
  margin-bottom: 2.8rem;
}

/* Decorative accent line */
.hero-left::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--sage-light), var(--blush-light), transparent);
}

/* EMAIL FORM */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.email-form label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.email-row {
  display: flex;
  border: 1.5px solid var(--purple-light);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s;
}

.email-row:focus-within { border-color: var(--purple); }

.email-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75em 1em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
}

.email-row input::placeholder { color: rgba(74,73,94,0.4); }

.email-row button {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 0.75em 1.3em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.email-row button:hover { background: var(--purple-dark); }

.email-note {
  font-size: 0.72rem;
  color: rgba(74,73,94,0.5);
  font-weight: 300;
}

/* RIGHT PANEL */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.97);
}

.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(75,74,158,0.10) 0%, rgba(124,158,138,0.08) 60%, transparent 100%);
  pointer-events: none;
}

/* -- SCROLLABLE LEFT (aboutus) ----------------- */
.hero-left.scrollable {
  overflow-y: auto;
  max-height: 100%;
}

.hero-left.scrollable::-webkit-scrollbar { width: 4px; }
.hero-left.scrollable::-webkit-scrollbar-track { background: transparent; }
.hero-left.scrollable::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 2px; }

/* -- CALENDLY PANEL (appointment) ------------- */
.hero-left.calendly-panel {
  padding: 5vw 5vw 0 5vw;
  overflow: hidden;
  justify-content: stretch;
}

.calendly-inline-widget {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* -- TEAM PANEL -------------------------------- */
.hero-left.team-panel {
  padding: 5vw 0 0 5vw;
  justify-content: flex-start;
  overflow: hidden;
}

.cards-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cards-area {
  flex: 1;
  min-height: 0;
}

.team-card {
  display: none;
  height: 100%;
  animation: fadein 0.3s ease;
}

.team-card.active { display: block; height: 100%; }

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.card-image {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text-right {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 2.5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.4rem;
  border-left: 1px solid var(--sage-light);
}

.card-text-bottom {
  grid-column: 1;
  grid-row: 2;
  padding: 2.5vw;
  border-top: 1px solid var(--sage-light);
}

.card-text-right p,
.card-text-bottom p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-mid);
  font-weight: 300;
}

.card-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 1.2rem 0 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage-light);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--purple);
  transform: scale(1.25);
}

.text-link {
  color: #FF725E;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: italic;
}

/* -- FOOTER ------------------------------------ */
.footer-strip {
  background: var(--purple-dark);
  text-align: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

/* -- RESPONSIVE -------------------------------- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: auto;
    min-height: 100vh;
  }

  .hero-left { padding: 4vh 6vw; }
  .hero-right { height: 42vh; }
  .nav-logo-sub { display: none; }
  .nav-left-links { gap: 4vw; }
}

@media (max-width: 500px) {
  .nav-left-links a { font-size: 0.75rem; }
  .nav-left-links { gap: 3vw; }
}
