/* ============================================
   Base
   ============================================ */

:root {
  --color-primary: #1d3557;
  --color-primary-dark: #14253d;
  --color-accent: #e63946;

  --color-background: #ffffff;
  --color-background-light: #f4f6f8;
  --color-background-dark: #17202a;

  --color-text: #25313d;
  --color-text-light: #6b7785;
  --color-white: #ffffff;

  --container-width: 1200px;
  --content-width: 760px;

  --spacing-section: 100px;

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;

  --shadow-small:
    0 8px 25px rgba(0, 0, 0, 0.08);

  --shadow-medium:
    0 15px 45px rgba(0, 0, 0, 0.12);
}


/* ============================================
   Reset
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--color-text);
  background: var(--color-background);

  line-height: 1.7;
}

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

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


/* ============================================
   Layout
   ============================================ */

.container {
  width: min(
    calc(100% - 40px),
    var(--container-width)
  );

  margin-inline: auto;
}

.narrow {
  max-width: var(--content-width);
}


/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;

  color: var(--color-primary);
}

.logo span {
  margin-left: 5px;

  color: var(--color-accent);
}

.main-navigation {
  display: flex;
  gap: 32px;
}

.main-navigation a {
  position: relative;

  font-size: 0.95rem;
  font-weight: 600;
}

.main-navigation a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 0;
  height: 2px;

  background: var(--color-accent);

  transition: width 0.25s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}


/* ============================================
   Mobile Menu
   ============================================ */

.menu-toggle {
  display: none;

  border: 0;
  background: transparent;

  padding: 8px;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  margin: 5px 0;

  background: var(--color-primary);
}


/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;

  min-height: 720px;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: var(--color-white);
}

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

.hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(10, 25, 45, 0.85),
      rgba(10, 25, 45, 0.40),
      rgba(10, 25, 45, 0.10)
    );
}

.hero-content {
  position: relative;
  z-index: 1;

  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 12px;

  color: var(--color-accent);

  font-size: 0.8rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
  opacity: 0.8;
}

.hero h1 {
  max-width: 850px;

  margin: 0;

  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 620px;

  margin: 30px 0;

  font-size: clamp(1.05rem, 2vw, 1.3rem);
}


/* ============================================
   Buttons
   ============================================ */

.button {
  display: inline-flex;
  align-items: center;

  padding: 14px 24px;

  border-radius: 999px;

  background: var(--color-accent);
  color: var(--color-white);

  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);

  background: #c92f3b;
}


/* ============================================
   Sections
   ============================================ */

.section {
  padding: var(--spacing-section) 0;
}

.section-light {
  background: var(--color-background-light);
}

.section-dark {
  background: var(--color-background-dark);

  color: var(--color-white);
}

.section-heading {
  max-width: 700px;

  margin-bottom: 50px;
}

.section-heading h2,
.introduction h2,
.content-text h2 {
  margin: 0 0 20px;

  color: var(--color-primary);

  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;

  letter-spacing: -0.03em;
}

.section-dark .section-heading h2 {
  color: var(--color-white);
}

.section-heading > p:last-child {
  color: var(--color-text-light);
}

.section-dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}


/* ============================================
   Introduction
   ============================================ */

.introduction {
  text-align: center;
}

.introduction .eyebrow {
  display: inline-block;
}

.placeholder-text {
  margin-top: 30px;

  font-size: 1.15rem;
}


/* ============================================
   Program
   ============================================ */

.program-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}

.program-card {
  position: relative;

  padding: 35px;

  background: var(--color-white);

  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);
}

.day {
  display: block;

  margin-bottom: 20px;

  color: var(--color-accent);

  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.program-card h3 {
  margin: 0 0 8px;

  color: var(--color-primary);

  font-size: 1.7rem;
}

.program-label {
  margin: 0 0 15px;

  font-weight: 700;

  color: var(--color-accent);
}


/* ============================================
   Content Split
   ============================================ */

.content-split {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 70px;

  align-items: center;
}

.content-image {
  overflow: hidden;

  border-radius: var(--radius-large);

  box-shadow: var(--shadow-medium);
}

.content-image img {
  aspect-ratio: 4 / 3;

  object-fit: cover;
}

.content-text h2 {
  margin-bottom: 30px;
}

.content-text p {
  margin-bottom: 20px;
}


/* ============================================
   Gallery
   ============================================ */

.gallery {
  display: grid;

  grid-template-columns:
    2fr 1fr;

  grid-template-rows:
    280px 280px;

  gap: 18px;
}

.gallery-item {
  position: relative;

  overflow: hidden;

  margin: 0;

  border-radius: var(--radius-medium);
}

.gallery-large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;

  left: 20px;
  bottom: 18px;

  padding: 6px 12px;

  border-radius: 999px;

  background: rgba(0, 0, 0, 0.55);

  color: var(--color-white);

  font-size: 0.85rem;
  font-weight: 600;
}


/* ============================================
   Footer
   ============================================ */

.site-footer {
  padding: 40px 0;

  background: #0e151d;

  color: var(--color-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 5px 0 0;

  color: rgba(255, 255, 255, 0.6);
}

.copyright {
  font-size: 0.9rem;
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {

  :root {
    --spacing-section: 75px;
  }

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

  .content-split {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .content-image {
    order: 1;
  }

  .content-text {
    order: 2;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;

    grid-template-rows:
      300px 220px;
  }

  .gallery-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}


@media (max-width: 700px) {

  .container {
    width: min(
      calc(100% - 30px),
      var(--container-width)
    );
  }

  .header-inner {
    min-height: 65px;
  }

  .main-navigation {
    display: none;

    position: absolute;

    top: 65px;
    left: 0;

    width: 100%;

    padding: 20px;

    flex-direction: column;
    gap: 18px;

    background: var(--color-white);

    box-shadow: var(--shadow-small);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 65px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(10, 25, 45, 0.82),
        rgba(10, 25, 45, 0.45)
      );
  }

  .gallery {
    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows:
      repeat(3, 260px);
  }

  .gallery-large {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;
  }
}


@media (max-width: 400px) {
  .hero {
    min-height: 600px;
  }

  .section {
    padding: 60px 0;
  }

  .program-card {
    padding: 25px;
  }
}
