:root {
  --sea-950: #03293a;
  --sea-800: #0b4864;
  --sea-700: #1b6f8b;
  --sand-200: #f3e7cf;
  --sand-100: #faf5e8;
  --sun-500: #f4a261;
  --accent-500: #ff7f11;
  --text-900: #0c2330;
  --text-700: #365260;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(3, 41, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-900);
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 20%, rgba(27, 111, 139, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(244, 162, 97, 0.16), transparent 38%),
    linear-gradient(180deg, #f5f9fb 0%, #f9f5ea 100%);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: var(--sea-700);
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(3, 41, 58, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}

.brand img {
  width: auto;
  max-height: 56px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--sand-200);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 760px);
  color: var(--white);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-slides,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  background: var(--sea-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 36s infinite;
}

.hero-slide-placeholder {
  background-image: linear-gradient(130deg, #0b4864 10%, #1b6f8b 45%, #f4a261 130%);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(3, 41, 58, 0.72), rgba(3, 41, 58, 0.34) 50%, rgba(3, 41, 58, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 6rem 0;
  animation: rise 0.8s ease-out;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sun-500);
}

.hero h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero p {
  margin-top: 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--accent-500);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  padding: 0.72rem 1.15rem;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.section {
  padding: clamp(3.3rem, 8vw, 5.2rem) 0;
}

.lead {
  max-width: 90ch;
  color: var(--text-700);
}

.courses-layout {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(240px, 340px) 1fr;
}

.poster-card {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: start;
}

.poster-card img {
  width: 100%;
  display: block;
}

.lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.courses-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-item {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(11, 72, 100, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(3, 41, 58, 0.08);
}

.course-item h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--sea-800);
}

.course-item p {
  margin: 0.5rem 0 0;
}

.section-gallery {
  background: linear-gradient(180deg, rgba(11, 72, 100, 0.04), rgba(11, 72, 100, 0.02));
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 7px 15px rgba(3, 41, 58, 0.12);
  background: #e0edf3;
}

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

.lightbox {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 15, 22, 0.92);
  padding: 1.25rem;
}

.lightbox.is-open {
  display: flex !important;
}

.lightbox-image {
  max-width: min(96vw, 1500px);
  max-height: 92vh;
  border-radius: 0.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.info-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.35fr 1fr;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.map-card {
  background: linear-gradient(160deg, #0b4864, #1b6f8b);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.map-card h3 {
  margin-top: 0;
}

.map-card .button {
  margin-top: 0.5rem;
}

.section-contact {
  background: linear-gradient(180deg, rgba(244, 162, 97, 0.08), rgba(244, 162, 97, 0.02));
}

.contact-offline {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 72, 100, 0.16);
}

.section-single h1 {
  margin-top: 0;
}

.site-footer {
  background: #052838;
  color: #d3e7f0;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #ffe6c8;
}

@keyframes heroFade {
  0%, 16% { opacity: 0; }
  20%, 32% { opacity: 1; }
  36%, 100% { opacity: 0; }
}

@keyframes rise {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .courses-layout,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 86px;
    right: 1.25rem;
    left: 1.25rem;
    border-radius: 0.8rem;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(3, 41, 58, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
