:root {
  --navy: #071a28;
  --navy-2: #0d2a40;
  --ink: #122433;
  --teal: #14939a;
  --teal-2: #1cb8b0;
  --teal-d: #0c6d73;
  --gold: #c9a227;
  --red: #9b1c2e;
  --paper: #f4f7f8;
  --mist: #e7eef1;
  --white: #ffffff;
  --muted: #5c6e7a;
  --line: rgba(16, 36, 58, 0.12);
  --shadow: 0 18px 50px rgba(7, 26, 40, 0.16);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .logo-word, .kicker, .nav a, .btn {
  font-family: "Montserrat", sans-serif;
}
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* Header */
.topbar {
  background: var(--navy);
  color: #d7e3ea;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .container {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 8px 0; flex-wrap: wrap;
}
.topbar a:hover { color: var(--teal-2); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
}
.nav a:hover { color: var(--teal-d); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal-d); color: white; border: 0;
  padding: 12px 18px; border-radius: 4px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: 12.5px; cursor: pointer;
  transition: transform .16s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #0a5b60; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b38d16; }
.btn-outline {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: white; color: var(--navy); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 7px 8px; }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - 118px);
  display: grid; place-items: stretch;
  color: white; overflow: hidden;
  background: #071a28;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,26,40,.94) 0%, rgba(7,26,40,.78) 46%, rgba(7,26,40,.45) 100%),
    url("../img/hero.jpg") center 30%/cover no-repeat;
}
.hero-content {
  position: relative; z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 80px;
  max-width: 740px;
  justify-self: start;
}
.kicker {
  display: inline-block; color: var(--teal-2); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 18px; text-wrap: balance;
}
.hero p.lead { font-size: 19px; max-width: 560px; color: #dce7ee; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  padding: 8px 12px; border-radius: 999px; font-size: 13px;
}

/* Stats */
.stats {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: white;
}
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stat { padding: 28px 12px; text-align: center; }
.stat b { display: block; font-family: Montserrat, sans-serif; font-size: 28px; color: var(--teal-2); }
.stat span { color: #c6d4dc; font-size: 14px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 12px;
}
.section-head p { color: var(--muted); font-size: 17px; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: white; }
.bg-navy .section-head p { color: #c5d3db; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.card {
  background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(16,36,58,.06);
  transition: transform .22s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 220px; object-fit: cover; object-position: center 30%; }
.card-body { padding: 22px 22px 24px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-d); margin-bottom: 8px;
}

/* Services list */
.service-list { display: grid; gap: 16px; }
.service-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  background: white; padding: 18px; border-radius: 14px; border: 1px solid var(--line);
}
.ico {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(160deg, #14939a, #0c6d73);
  color: white; display: grid; place-items: center; font-size: 22px;
}

/* Courses */
.course {
  background: white; padding: 22px; border-radius: 16px; border-left: 5px solid var(--teal);
  box-shadow: var(--shadow);
}
.course h3 { font-size: 18px; margin-bottom: 8px; }
.course p { color: var(--muted); font-size: 14.5px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill {
  background: var(--mist); color: var(--navy-2); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
}

/* Instructor */
.instructor-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: 20px; box-shadow: var(--shadow);
}
.facts { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.facts li {
  display: grid; grid-template-columns: 140px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.facts b { color: var(--teal-d); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gallery a, .gallery img { height: 210px; width: 100%; object-fit: cover; border-radius: 10px; }
.gallery a:nth-child(1), .gallery a:nth-child(7) { grid-column: span 2; }
.gallery a:nth-child(1) img, .gallery a:nth-child(7) img { height: 210px; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-card {
  background: var(--navy-2); color: white; padding: 32px; border-radius: 18px;
}
.contact-card a { color: var(--teal-2); }
.contact-card p { color: #c9d7df; margin: 6px 0 16px; }
.form {
  background: white; padding: 28px; border-radius: 18px; box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.form label { font-size: 13px; font-weight: 700; color: var(--navy-2); }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px;
  background: #fbfcfd;
}
.form textarea { min-height: 110px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Footer */
footer { background: #05131e; color: #b7c5ce; padding: 36px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
footer h4 { color: white; margin-bottom: 10px; }
.tiny { font-size: 13px; color: #8ea0ab; }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; fill: white; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 118px 16px auto 16px; background: white;
    border-radius: 14px; box-shadow: var(--shadow); padding: 18px;
    display: none; flex-direction: column; align-items: stretch;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .stats .container, .grid-3, .grid-2, .contact-wrap, .gallery, .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery a:nth-child(1), .gallery a:nth-child(7) { grid-column: auto; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .form .row { grid-template-columns: 1fr; }
  .brand img { width: 170px; }
  .hero { min-height: 86vh; }
  section { padding: 64px 0; }
}
