/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #2563eb;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-lead {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  color: #475569;
  font-size: 1.06rem;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  border-color: #94a3b8;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
  text-decoration: none;
}

.brand-tld {
  color: #2563eb;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.header-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: #2563eb;
}

.lang-switch {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: #2563eb;
  color: #fff;
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.65)),
    url("../assets/img/hero-sky.jpg") center 30% / cover no-repeat;
  z-index: -1;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #bae6fd;
  margin: 0 0 1rem;
}

.hero-description {
  max-width: 40rem;
  margin: 1rem auto 2rem;
  font-size: 1.15rem;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Courses ---------- */
.courses {
  padding: 5rem 0;
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.course-flag {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.course-tagline {
  color: #2563eb;
  font-weight: 600;
  margin-top: -0.25rem;
}

.course-points {
  margin: 1rem 0 1.75rem;
  padding: 0;
  list-style: none;
  color: #334155;
}

.course-points li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.course-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.course-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Sailing ---------- */
.sailing {
  padding: 5rem 0;
  background: linear-gradient(180deg, #0c4a6e, #075985);
  color: #fff;
}

.sailing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sailing-image img {
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.4);
}

.sailing-content .course-points {
  color: #e0f2fe;
}

.sailing-content .course-points li::before {
  color: #7dd3fc;
}

.sailing-content p {
  color: #e0f2fe;
}

.sailing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 800px) {
  .sailing-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0;
}

.faq h2 {
  text-align: center;
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 0 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.15rem 0;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  color: #0f172a;
  cursor: pointer;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-chevron {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #64748b;
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s;
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.25s ease,
    opacity 0.25s ease;
}

.faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  margin: 0 0 1.15rem;
  color: #475569;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  text-align: center;
}

.final-cta-inner img {
  margin: 0 auto 1rem;
}

.final-cta p {
  color: #475569;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  margin: 0;
}
