/* ==========================================================================
   Waltham International College — shared stylesheet
   ========================================================================== */

:root {
  --navy-950: #08152c;
  --navy-900: #0d2043;
  --navy-800: #123061;
  --navy-700: #1a4080;
  --navy-600: #24519c;
  --gold-600: #b9812a;
  --gold-500: #d9a441;
  --gold-400: #e8bc6a;
  --gold-100: #fbf1de;
  --white: #ffffff;
  --gray-50: #f7f8fb;
  --gray-100: #eef1f6;
  --gray-200: #dfe4ec;
  --gray-400: #9aa5b5;
  --gray-500: #6b7688;
  --gray-700: #3d4657;
  --gray-900: #161c2a;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(13, 32, 67, 0.06);
  --shadow-md: 0 12px 30px rgba(13, 32, 67, 0.1);
  --shadow-lg: 0 24px 60px rgba(13, 32, 67, 0.16);

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-950);
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--gray-700); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p {
  font-size: 1.05rem;
}

.bg-alt { background: var(--gray-50); }
.bg-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-dark {
  background: var(--navy-950);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-950);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.logo-chip .logo-img { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-950); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-500);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-950); border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 18%, #16305e 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
  padding: 110px 0 130px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(217,164,65,0.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero-lede {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.hero-meta strong { color: var(--white); display: block; font-size: 1.5rem; font-family: var(--font-head); }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: blur(6px);
}

.hero-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 18px; }

.hero-card ul { display: flex; flex-direction: column; gap: 14px; }

.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
}

.hero-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--white);
  margin-top: -64px;
  position: relative;
  z-index: 5;
}

.stats-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stats-card div {
  padding: 34px 28px;
  border-right: 1px solid var(--gray-100);
  text-align: center;
}
.stats-card div:last-child { border-right: none; }

.stats-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy-950);
}
.stats-card span { font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Icon tile ---------- */

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-100);
  color: var(--gold-600);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Discipline / feature grid ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

.discipline-card a.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.discipline-card a.more svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.discipline-card a.more:hover svg { transform: translateX(3px); }

/* ---------- Course cards ---------- */

.course-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.course-card .band {
  height: 8px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
}

.course-card-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--navy-800);
  margin-bottom: 14px;
  width: fit-content;
}
.tag.gold { background: var(--gold-100); color: var(--gold-600); }

.course-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.course-card p { font-size: 0.92rem; flex: 1; }

.course-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.82rem;
  color: var(--gray-500);
  font-family: var(--font-head);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--navy-700); color: var(--navy-800); }
.filter-btn.active { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }

/* ---------- Values ---------- */

.value-row {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.value-row:first-of-type { border-top: 1px solid var(--gray-200); }
.value-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--gold-600);
  font-weight: 700;
  min-width: 46px;
}
.value-row h4 { font-size: 1.08rem; margin-bottom: 6px; }
.value-row p { margin: 0; font-size: 0.94rem; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.media-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: flex-end;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.media-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(232,188,106,0.25) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.media-panel .panel-tag {
  position: relative;
  color: var(--white);
  font-family: var(--font-head);
}
.media-panel .panel-tag strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.media-panel .panel-tag span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ---------- Testimonial / campus ---------- */

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
}
.info-row .icon-tile { margin-bottom: 0; width: 44px; height: 44px; }
.info-row .icon-tile svg { width: 20px; height: 20px; }
.info-row h4 { font-size: 0.98rem; margin-bottom: 4px; }
.info-row p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA banner ---------- */

.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--navy-950));
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(217,164,65,0.25), transparent 70%);
  top: -120px; right: -80px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; max-width: 480px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.7); margin: 0; max-width: 460px; position: relative; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-grid ul li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--gold-400); }

.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }

.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: radial-gradient(circle at 85% 20%, #16305e 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
  padding: 72px 0 90px;
}
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); max-width: 700px; }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-family: var(--font-head); font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Contact form ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--gray-900); }
.field input, .field select, .field textarea {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 14px; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  height: 100%;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }

/* ---------- Utility ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stats-card div:nth-child(2) { border-right: none; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-sm.hide-mobile { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-card { grid-template-columns: 1fr; }
  .stats-card div { border-right: none; border-bottom: 1px solid var(--gray-100); }
}

/* ---------- Mobile nav drawer ---------- */

.nav-links.open {
  display: flex;
  position: absolute;
  top: 84px;
  left: 0; right: 0;
  background: var(--white);
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 18px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
