/* ============================
   HBS QUADNOVA — STYLESHEET
   Aesthetic: Refined Academic / Deep Navy & Gold
   ============================ */

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

:root {
  --navy:   #0f2044;
  --navy2:  #1a3260;
  --gold:   #c8963e;
  --gold2:  #e8b55a;
  --cream:  #faf6ef;
  --text:   #1c1c2e;
  --muted:  #6b7280;
  --white:  #ffffff;
  --border: #e2d9c8;
  --shadow: 0 4px 24px rgba(15,32,68,0.10);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.4rem 1rem;
  flex-wrap: wrap;
}
.topbar span { display: flex; align-items: center; gap: 0.4rem; }

/* ---- HEADER ---- */
header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,32,68,0.08);
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.logo-icon {
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--gold2);
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 900;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.logo-sub  { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.03em; }

/* HEADER */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.logo-sub {
  font-size: 12px;
  color: #555;
}

/* NAV */
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a.active {
  color: #0077cc;
}

/* MOBILE */
.nav-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
  }

  nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
  }
}
nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
nav a:hover, nav a.active {
  background: var(--navy);
  color: var(--gold2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ---- MAIN ---- */
main { min-height: 70vh; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 60%, var(--navy2) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8963e' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 820px; margin: auto; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(200,150,62,0.2);
  border: 1px solid rgba(200,150,62,0.4);
  color: var(--gold2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--gold2); font-style: italic; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.72rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold2); border-color: var(--gold2); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--gold);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--navy); opacity: 0.75; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- SECTION ---- */
section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1100px; margin: auto; }
.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-desc { color: var(--muted); max-width: 640px; font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.8; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 55%, #243a6e 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; }

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,32,68,0.14); }
.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ---- TWO-COL ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---- FEATURE LIST ---- */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(200,150,62,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
}
.feature-list .fi-text h4 { font-size: 0.95rem; color: var(--navy); font-weight: 600; margin-bottom: 0.2rem; }
.feature-list .fi-text p  { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }

/* ---- WHY CHOOSE US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.why-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.why-item h4 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: 0.4rem; }
.why-item p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ---- POLICY BLOCKS ---- */
.policy-block {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.policy-block h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.policy-block p  { color: var(--muted); font-size: 0.93rem; line-height: 1.8; margin-bottom: 0.8rem; }
.policy-block ul { color: var(--muted); font-size: 0.93rem; line-height: 1.8; padding-left: 1.4rem; }

/* ---- TEAM ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; margin-top: 2rem; }
.team-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: var(--gold2);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.team-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin-bottom: 0.3rem; }
.team-card p  { font-size: 0.83rem; color: var(--muted); }

/* ---- CONTACT ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
@media (max-width: 720px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-form-box {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form-box h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); margin-bottom: 1.3rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-submit:hover { background: var(--gold); color: var(--navy); }

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
}
.contact-info-item .ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold2);
}
.contact-info-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info-item p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---- BOOKS ---- */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.book-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,32,68,0.14); }
.book-spine {
  height: 140px;
  background: linear-gradient(160deg, var(--navy) 60%, var(--navy2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.book-card h3 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); padding: 1rem 1rem 0.3rem; }
.book-card p  { font-size: 0.83rem; color: var(--muted); padding: 0 1rem 1.2rem; line-height: 1.5; }

/* ---- ABOUT PAGE ---- */
.about-visual {
  background: linear-gradient(135deg, var(--navy), #243a6e);
  border-radius: 14px;
  padding: 2.5rem;
  color: var(--white);
  text-align: center;
}
.about-visual .av-num { font-family: var(--font-head); font-size: 3.5rem; color: var(--gold2); font-weight: 900; }
.about-visual .av-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; }
.about-visual hr { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 1.5rem 0; }

/* ---- FOOTER ---- */
footer { background: var(--navy); color: var(--white); padding: 3.5rem 1.5rem 0; }
.footer-inner {
  max-width: 1100px; margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--gold2); margin-bottom: 0.7rem; }
footer p, footer a { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; text-decoration: none; display: block; }
footer a:hover { color: var(--gold2); }
footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold2); margin-bottom: 0.9rem; font-weight: 700; }
.footer-bottom { max-width: 1100px; margin: auto; padding: 1.2rem 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ---- SUCCESS MSG ---- */
.alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 2px solid var(--gold); padding: 1rem; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  nav.open { display: flex; }
  header { position: relative; }
  .header-inner { flex-wrap: wrap; }
}
