:root {
    --bg-color: #FEFBF0;
    --text-color: #111111;
    --border-color: #e5e7eb;
    --accent-color: #000000;
    --bread-color: #1A7316;

    --hero-heading: #ffffff;
    --hero-text: #ffffff;
}

* {
    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/Hero.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;

  /* fyll skärmen under topbar med ratio-padding */
  padding-top: calc(100vh / 10);
  padding-bottom: calc(100vh / 10);
  padding-left: calc(100vw / 15);
  padding-right: calc(100vw / 10);

  display: flex;
  flex-direction: column;
  gap: calc(100vh / 30);
  justify-content: center;
  min-height: calc(100vh - 60px);
}

.hero-text {
  /* större block = längre in mot mitten, inga negativa margins */
  max-width: calc(100vw / 2.1);
}

/* 2560px → ~120px, 1920 → ~90px, 1440 → ~70px */
.hero-title {
  font-size: clamp(32px, calc(100vw / 21), 120px);
  line-height: 1.03;
  font-weight: 800;
  color: var(--hero-heading);
  margin-bottom: calc(100vh / 35);
}

/* 2560px → ~40px, laptop → ~28–32px, mobil ~18–20px */
.hero-subtitle {
  font-size: clamp(16px, calc(100vw / 70), 40px);
  line-height: 1.6;
  color: var(--hero-text);
  margin-bottom: calc(100vh / 30);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: calc(100vw / 80);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(100vh / 70) calc(100vw / 75);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(13px, calc(100vw / 95), 18px);
  text-decoration: none;
  border-width: 1.5px;
  border-style: solid;
  cursor: pointer;
  white-space: nowrap;
}

.hero-btn-primary {
  background: transparent;
  color: var(--hero-text);
  border-color: var(--hero-text);
}

.hero-btn-primary:hover {
  background: var(--hero-text);
  color: var(--bread-color);
}

.hero-btn-secondary {
  background: transparent;
  color: var(--hero-text);
  border-color: var(--hero-text);
  backdrop-filter: blur(2px);
}

.hero-btn-secondary:hover {
  background: var(--hero-text);
  color: var(--bread-color);
}

.hero-btn-arrow {
  margin-left: calc(100vw / 150);
  font-size: clamp(14px, calc(100vw / 85), 20px);
  line-height: 1;
}

/* Om du använder en extra illustration kan du låta dessa ligga kvar,
   annars stör de inte även om HTML saknas. */
.hero-illustration {
  display: flex;
  justify-content: center;
  margin-right: 0;
  margin-top: calc(100vh / 40);
}

.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;
    justify-content: flex-start;
  }

  .hero-text {
    flex: 0 0 50%;
    text-align: left;
  }

  .hero-illustration {
    flex: 0 0 50%;
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero-illustration img {
    width: clamp(280px, calc(100vw / 3.2), 780px);
    margin-top: calc(-100vh / 30);
  }
}


/* ===== 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;
  padding-left: calc(100vw / 40);
  padding-right: calc(100vw / 20);
}

/* 2560px → ca 100px, 1920 → ~75px, 1440 → ~55px */
.features-title {
  text-align: center;
  font-size: clamp(30px, calc(100vw / 25), 100px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--bread-color);
  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 {
  /* flippar på desktop */
}

/* större rektangel med green gradient */
.feature-card {
  width: 100%;
  max-width: calc(100vw / 2.4);   /* ~1060px på 2560 */
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  background-image: url("Pictures/Background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-text {
  max-width: calc(100vw / 2.6);   /* ~980px på 2560 */
  color: var(--bread-color);
}

/* 2560px → ~80px, 1920 → ~60px */
.feature-heading {
  font-size: clamp(26px, calc(100vw / 32), 80px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: calc(100vh / 55);
}

/* 2560px → ~50px, 1920 → ~37px */
.feature-subheading {
  font-size: clamp(20px, calc(100vw / 50), 50px);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: calc(100vh / 50);
}

/* 2560px → ~24px, laptop ~18–20px */
.feature-body {
  font-size: clamp(15px, calc(100vw / 80), 24px);
  line-height: 1.7;
}

/* Desktop layout */
@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/Background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;

  padding-top: calc(100vh / 9);
  padding-bottom: calc(100vh / 9);
}

.cta-inner {
  width: min(100vw, 2560px);
  margin: 0 auto;
  padding-left: calc(100vw / 10);
  padding-right: calc(100vw / 10);
}

/* 2560px → ~80px, laptop → ~50–60px */
.cta-title {
  font-size: clamp(26px, calc(100vw / 28), 80px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: calc(100vh / 40);
}

/* 2560px → ~22px, laptop → ~16–18px */
.cta-subtitle {
  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);
}
