:root {
    --bg-color: #FEFBF0;
    --text-color: #111111;
    --border-color: #e5e7eb;
    --accent-color: #000000;

    --hero-heading: #102341;
    --hero-text: #1f2933;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

/* ===== HERO ===== */

.hero {
  position: relative;
  overflow: hidden;
  background-image: url("Pictures/Turquoise-Gradient-Curve.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--hero-text);
}

.hero-inner {
  position: relative;
  width: min(100vw, 2560px);
  margin: 0 auto;

  padding-top: calc(100vh / 12);
  padding-bottom: calc(100vh / 12);
  padding-left: calc(100vw / 10);
  padding-right: calc(100vw / 10);

  display: flex;
  flex-direction: column;
  /* MINDRE AVSTÅND MELLAN TEXT OCH UGGla */
  gap: calc(100vh / 35);   /* tidigare: 100vh / 22 */
  justify-content: center;
  min-height: calc(100vh - 60px);
}


.hero-text {
  /* större textblock = kommer längre in mot mitten */
  max-width: calc(100vw / 2.1);      /* ca 1200px på 2560 */
}

/* 2560px → ~140px, 1920 → ~106px, 1440 → ~80px */
.hero-title {
  font-size: clamp(36px, calc(100vw / 18), 140px);
  line-height: 1.03;
  font-weight: 800;
  color: var(--hero-heading);
  margin-bottom: calc(100vh / 32);
}

/* 2560px → ~46px, 1920 → ~35px, 1440 → ~27px */
.hero-subtitle {
  font-size: clamp(18px, calc(100vw / 55), 46px);
  line-height: 1.6;
  color: #1f2937;
  margin-bottom: calc(100vh / 28);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: calc(100vw / 80);
}

/* knappar lite större också */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(100vh / 60) calc(100vw / 70);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(13px, calc(100vw / 95), 19px);
  text-decoration: none;
  border-width: 1.5px;
  border-style: solid;
  cursor: pointer;
  white-space: nowrap;
}

.hero-btn-primary {
  background: transparent;
  color: #1f2933;
  border-color: #1f2933;
}

.hero-btn-primary:hover {
  background: #1f2933;
  color: #ffffff;
}

.hero-btn-secondary {
  background: transparent;
  color: #1f2933;
  border-color: #1f2933;
  backdrop-filter: blur(2px);
}

.hero-btn-secondary:hover {
  background: #1f2933;
  color: #ffffff;
}

.hero-btn-arrow {
  margin-left: calc(100vw / 150);
  font-size: clamp(14px, calc(100vw / 85), 20px);
  line-height: 1;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  margin-top: calc(100vh / 60);   /* tidigare: 100vh / 40 */
}  

/* 2560px → ~730px bred uggla (2560/3.5) */
.hero-illustration img {
  width: clamp(220px, calc(100vw / 3.5), 730px);
  height: auto;
  margin-top: calc(-100vh / 28);
  filter: drop-shadow(0 14px 34px rgba(15, 23, 42, 0.55));
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero-text {
    flex: 0 0 50%;
  }

  .hero-illustration {
    flex: 0 0 50%;
    justify-content: flex-end;
    margin-top: 0;
  }

  /* ännu lite större på desktop */
  .hero-illustration img {
    width: clamp(280px, calc(100vw / 3.2), 780px);
    margin-top: calc(-100vh / 30);   /* tidigare: -100vh / 24 */
  }
}


/* ===== FEATURES / KURSER- OCH PROVSEKTION ===== */

.features {
  background-color: #FEFBF0;
  padding-top: calc(100vh / 10);
  padding-bottom: calc(100vh / 10);
}

.features-inner {
  width: min(100vw, 2560px);
  margin: 0 auto;
  /* samma sidpadding som hero-inner = 100vw/10 */
  padding-left: calc(100vw / 10);
  padding-right: calc(100vw / 10);
}

/* 2560px → ca 100px, 1920 → ca 75px, 1440 → ca 55px */
.features-title {
  text-align: center;
  font-size: clamp(30px, calc(100vw / 25), 100px);
  line-height: 1.1;
  font-weight: 800;
  color: #102341;
  margin-bottom: calc(100vh / 16);
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: calc(100vh / 16);
}

.feature-row {
  display: flex;
  flex-direction: column;
  gap: calc(100vh / 36);
  align-items: center;
}

.feature-row--reverse {
  /* flip på desktop */
}

/* STÖRRE REKTANGEL */
.feature-card {
  width: 100%;
  /* 2560px → ca 1060px (2560/2.4) */
  max-width: calc(100vw / 2.4);
  /* högre kort, 4:3 istället för plattare */
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  background-image: url("Pictures/Turquoise-Gradient.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 2560px → ca 980px (2560/2.6) */
.feature-text {
  max-width: calc(100vw / 2.6);
  color: #102341;
}

/* 2560px → ca 80px, 1920 → ca 60px, 1440 → ca 45px */
.feature-heading {
  font-size: clamp(26px, calc(100vw / 32), 80px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: calc(100vh / 55);
}

/* 2560px → ca 50px, 1920 → ca 37px */
.feature-subheading {
  font-size: clamp(20px, calc(100vw / 50), 50px);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: calc(100vh / 50);
}

/* 2560px → ca 24px, 1920 → ca 18–20px */
.feature-body {
  font-size: clamp(15px, calc(100vw / 80), 24px);
  line-height: 1.7;
}

/* Desktop-layout: bild + text sida vid sida, varannan rad spegelvänd */
@media (min-width: 900px) {
  .feature-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .feature-row--reverse {
    flex-direction: row-reverse;
  }

  .feature-card {
    flex: 0 0 48%;
  }

  .feature-text {
    flex: 0 0 44%;
  }
}


/* ===== CTA-SEKTION OVANFÖR FOOTER ===== */

.cta-section {
  background-image: url("Pictures/Turquoise-Gradient.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;

  /* fyll upp höjd beroende på skärm */
  padding-top: calc(100vh / 9);
  padding-bottom: calc(100vh / 9);
}

.cta-inner {
  /* samma breddlogik som hero/features */
  width: min(100vw, 2560px);
  margin: 0 auto;
  padding-left: calc(100vw / 10);
  padding-right: calc(100vw / 10);
}

.cta-title {
  /* 2560px → ~80px, 1920 → ~60px, 1440 → ~45px */
  font-size: clamp(26px, calc(100vw / 28), 80px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: calc(100vh / 40);
}

.cta-subtitle {
  /* 2560px → ~22px, laptop → ~16–18px */
  font-size: clamp(14px, calc(100vw / 90), 22px);
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: calc(100vh / 30);
}

.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: calc(100vw / 80);
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(100vh / 65) calc(100vw / 80);
  border-radius: 999px;
  border-width: 1.5px;
  border-style: solid;
  font-weight: 600;
  font-size: clamp(13px, calc(100vw / 95), 19px);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.cta-btn-primary {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
}

.cta-btn-primary:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.cta-btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.cta-btn-secondary:hover {
  background: #ffffff;
  color: #000000;
}

.cta-btn-arrow {
  margin-left: calc(100vw / 150);
  font-size: clamp(14px, calc(100vw / 85), 20px);
}
