/* =============================
   GENERATION REBOOT BASE STYLES
============================= */
:root {
  --primary: #3E7D7C;
  --accent: #EBA45E;
  --light-bg: #F7F7F7;
  --secondary-bg: #DCD2C8;
  --text: #333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* =============================
   HEADER & NAVIGATION
============================= */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  flex-wrap: nowrap;
}

.nav-logo {
  height: 44px;
}

.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.menu a.active,
.menu a:hover {
  color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-accent:hover {
  background-color: #d68d45;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: 0.3s;
}

.menu-toggle {
  display: none;
}

/* =============================
   HERO SECTIONS
============================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  overflow: hidden;
}

.hero.left .hero-image {
  order: -1;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  flex: 1;
  padding: 4rem;
  text-align: center;
}

.hero-overlay h1,
.hero-overlay h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.hero-logo-box img {
  height: 100px;
  margin-bottom: 1rem;
}

/* =============================
   BUTTONS
============================= */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent);
}

/* =============================
   SECTIONS & TYPOGRAPHY
============================= */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.bg-secondary {
  background-color: var(--secondary-bg);
}

.program-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.program-list li {
  margin: 0.6rem 0;
}

/* Quote Blocks */
.quote-block {
  background-color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  font-style: italic;
}

.quote-block blockquote {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 auto 1rem;
  max-width: 700px;
}

/* Partner Table */
.partner-table {
  max-width: 700px;
  margin: 2rem auto;
  text-align: left;
}

.partner-row {
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.partner-row h3 {
  margin: 0;
  color: var(--primary);
}

.partner-row .amount {
  font-weight: 700;
  margin: 0.4rem 0;
}

.partner-row .desc {
  font-size: 0.95rem;
}

.note {
  max-width: 700px;
  margin: 2rem auto 0;
  font-style: italic;
}

/* =============================
   CONTACT SECTION
============================= */
.section.contact {
  background-color: var(--light-bg);
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form label {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  margin-top: 1.5rem;
  display: inline-block;
}

.contact-info {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1rem;
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* =============================
   TEAM GRID
============================= */
.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  width: 160px;
}

.team-member img {
  width: 100%;
  border-radius: 50%;
}

.team-member .name {
  font-weight: 600;
  margin-top: 0.5rem;
}

.linkedin {
  display: inline-block;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin-top: 0.5rem;
  text-decoration: none;
  font-weight: 700;
}

/* =============================
   FOOTER
============================= */
.footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 900px) {

  .nav {
    flex-wrap: wrap;
    padding: 0.75rem 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 1rem 0;
    margin-top: 0.5rem;
  }

  .menu li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .menu-toggle:checked + .hamburger + .menu {
    display: flex;
  }

  .btn-accent {
    order: 3;
    margin-left: auto;
    margin-top: 0.5rem;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .hero-image img {
    height: 300px;
    object-fit: cover;
  }

  .hero-overlay {
    padding: 2rem 1.2rem;
  }

  .hero-overlay h1,
  .hero-overlay h2 {
    font-size: 1.6rem;
  }

  .hero-overlay p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .team-grid {
    gap: 1.2rem;
  }

  .contact-wrapper {
    padding: 0 1rem;
  }
}

/* =============================
   STORY / HISTORIER
============================= */

.story-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  background-color: #f9f9f9;
}

.story-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.story-intro {
  max-width: 500px;
  text-align: left;
}

.story-intro h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.story-intro .tagline {
  font-weight: 600;
  margin-bottom: 1rem;
}

.story-intro .lead {
  font-size: 1.05rem;
  line-height: 1.6;
}

.story-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: left;
}

.story-content p {
  margin-bottom: 1.2rem;
}

.story-list {
  list-style: disc;
  margin: 1.5rem 2rem;
}

.quote-block {
  background-color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  font-style: italic;
}

.quote-author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Responsiv anpassning */
@media (max-width: 768px) {
  .story-hero {
    flex-direction: column;
    text-align: center;
  }

  .story-image img {
    width: 220px;
    height: 220px;
  }

  .story-intro {
    text-align: center;
  }
}

/* =====================================
   HISTORIER – Daniel (hero-fix)
===================================== */

/* Cirkulär mask på Daniel-bilden i hero */
.hero.left.story-hero .hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.hero.left.story-hero .hero-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Textjustering */
.story-overlay {
  text-align: left;
  padding: 3rem 2rem;
}

.story-overlay h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.story-overlay .tagline {
  font-weight: 600;
  color: #555;
  margin-bottom: 1rem;
}

.story-overlay .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Mobiljustering */
@media (max-width: 768px) {
  .hero.left.story-hero {
    flex-direction: column;
    text-align: center;
  }

  .hero.left.story-hero .hero-image img {
    width: 220px;
    height: 220px;
    margin-bottom: 1.5rem;
  }

  .story-overlay {
    padding: 2rem 1rem;
    text-align: center;
  }
}

/* =====================================
   PROGRAMSIDAN – Layoutfixar & Ikoner
===================================== */

/* Gemensam stil för rubriker */
.section h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

/* Döljer de gamla inline-SVG:erna */
.section h2 svg.icon {
  display: none;
}

/* Lägg till emoji automatiskt före varje fas */
.section h2:before {
  font-size: 1.4rem;
}

/* Unika emojis per sektion via nth-of-type */
.section:nth-of-type(3) h2:before { content: "🎯"; }
.section:nth-of-type(4) h2:before { content: "👥"; }
.section:nth-of-type(5) h2:before { content: "🧠"; }
.hero.left h2:before { content: "🎥"; }
.section:nth-of-type(7) h2:before { content: "🚀"; }
.section:nth-of-type(8) h2:before { content: "💡"; }
.section:nth-of-type(9) h2:before { content: "🔧"; }
.section:nth-of-type(10) h2:before { content: "📈"; }

/* Programtabell snyggt kortlayoutad */
.program-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 750px;
  margin: 2rem auto;
}

.program-table .row {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  line-height: 1.5;
  font-size: 1rem;
}

.program-table .row strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.program-table .row em {
  font-style: normal;
  color: #777;
  font-weight: 600;
}

/* Hover-effekt för premiumkänsla */
.program-table .row:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

/* Responsivitet */
@media (max-width: 768px) {
  .section h2 {
    font-size: 1.4rem;
    text-align: center;
    justify-content: center;
  }

  .program-table {
    padding: 0 1rem;
  }

  .program-table .row {
    font-size: 0.95rem;
  }
}

/* =====================================
   PROGRAMSIDAN – Mini-cards (mål)
===================================== */

.goal-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
}

.goal-card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
  text-align: center;
  transition: all 0.25s ease;
  border-top: 4px solid var(--primary);
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.goal-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.goal-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

/* Mobiljustering */
@media (max-width: 768px) {
  .goal-cards {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .goal-card {
    width: 90%;
  }
}

/* =====================================
   PROGRAMSIDAN – Layoutfix
===================================== */

/* Hero clean variant utan 80vh */
.hero.clean {
  flex-direction: column;
  text-align: center;
  min-height: auto;
  padding: 4rem 2rem;
}

.hero-inline {
  max-width: 700px;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Smalare textyta för läsbarhet */
.section.narrow {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Fix för bakgrundssektioner */
.section.bg-secondary {
  padding: 4rem 2rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
