:root {
  --rebla-yellow: #fec30c;
  --rebla-burgundy: #800020;
  --bg-light: #f5f5f5;
  --text-dark: #333333;
  --text-gray: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 14px 0;
  border-bottom: 4px solid var(--rebla-yellow);
  background: #ffffff;
}

header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img {
  display: block;
  height: 45px;
  width: auto;
}

.tagline {
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--rebla-burgundy);
  font-weight: 700;
  text-transform: none;
}

/* Hero Section */
.hero {
  padding: 56px 0;
}

.hero .container {
  display: flex;
  gap: 96px;
  align-items: flex-start;
}

.hero-content {
  padding-left: 30px;
  border-left: 4px solid var(--rebla-burgundy);
  max-width: 800px;
  flex: 1;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text-dark);
  text-wrap: balance;
}

/* The yellow half of the headline starts on its own line */
.hero-content h1 .highlight {
  display: block;
  color: var(--rebla-yellow);
}

.hero-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
  font-weight: 400;
}

/* Customer quote between the intro and the button (card styles from .testimonial-item) */
.hero-content .hero-quote {
  margin-bottom: 30px;
}

.hero-cta {
  display: inline-block;
  background: var(--rebla-burgundy);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: #600018;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

/* Packages Section */
.packages {
  padding: 80px 0;
  border-bottom: 3px solid var(--rebla-burgundy);
  background: #ffffff;
}

/* Section headings */
.packages-heading {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 44px;
}

/* Short yellow accent under each section heading */
.packages-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--rebla-yellow);
  border-radius: 2px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: stretch;
}

.package {
  border: 1px solid var(--text-gray);
  border-top: 4px solid var(--rebla-yellow);
  padding: 48px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.package:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.package.featured {
  border-top: 6px solid var(--rebla-yellow);
  background: linear-gradient(to bottom, rgba(254, 195, 12, 0.08), var(--bg-light));
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(254, 195, 12, 0.2);
}

.package.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.package-level {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.package-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
  color: var(--text-dark);
}

.package-duration {
  font-size: 13px;
  color: var(--rebla-burgundy);
  margin-bottom: 16px;
  font-weight: 500;
}

.package-result {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.package-description {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.package-features {
  list-style: none;
  margin-bottom: auto;
}

.package-features li {
  font-size: 15px;
  color: #333;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.package-features li:before {
  content: "●";
  color: #666;
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 10px;
}

.package-image {
  margin-bottom: 20px;
}

.package-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
}

/* Topics Section */
.topics {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  border-bottom: 3px solid var(--rebla-yellow);
}

/* Topics on the left, Arbetssätt on the right */
.topics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.topics-grid {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.topic-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.topic-card:last-child {
  border-bottom: none;
}

/* Yellow accent on the left edge, shown on hover */
.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rebla-yellow);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.topic-card:hover {
  background: #fcfbf7;
}

.topic-card:hover::before {
  transform: scaleY(1);
}

.topic-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(128, 0, 32, 0.07);
  color: var(--rebla-burgundy);
  transition: all 0.3s ease;
}

.topic-icon svg {
  width: 22px;
  height: 22px;
}

.topic-card:hover .topic-icon {
  background: var(--rebla-yellow);
}

.topic-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0 0 2px 0;
}

.topic-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .topic-card,
  .topic-card::before,
  .topic-icon {
    transition: none;
  }

  .topic-card:hover::before {
    transition: none;
  }
}

/* Arbetssätt Box */
.arbetstatt-box {
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid #eee;
  border-left: 4px solid var(--rebla-yellow);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.arbetstatt-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--rebla-yellow);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Burgundy lead lines: Arbetssätt, Utbildningsansvarig and the CTA promise */
.arbetstatt-lead,
.about-intro-text .about-lead,
.cta-heading .cta-promise {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rebla-burgundy);
}

.arbetstatt-lead {
  margin: 0 0 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.arbetstatt-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.arbetstatt-content li {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.arbetstatt-content li:before {
  content: "●";
  color: #666;
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 6px;
}

/* About Section */
.about {
  padding: 60px 0;
  background: #ffffff;
}

.about-intro {
  margin: 0 auto;
  padding: 30px;
  background: #f5f5f5;
  border-left: 4px solid var(--rebla-burgundy);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.about-intro-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--rebla-burgundy);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.about-intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.about-intro-image {
  width: 380px;
  flex-shrink: 0;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.about-intro-caption {
  margin-top: 10px;
  text-align: center;
  padding: 0;
  display: block;
}

.caption-quote {
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  margin: 6px 0 12px 0;
}

.caption-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px 0;
}

.caption-title {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Experience list under the about text */
.background-highlights {
  list-style: none;
  margin: 22px 0 0 0;
  padding: 20px 0 0 0;
  border-top: 1px solid #e0e0e0;
}

.background-highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
}

.background-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rebla-burgundy);
}

/* Testimonials Section */
.testimonials {
  padding: 48px 0;
  background: var(--bg-light);
}

.testimonials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* An odd card out spans the full row instead of sitting alone */
.testimonial-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.testimonial-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 22px 24px 18px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Large decorative quote mark */
.testimonial-item::before {
  content: "\201D";
  position: absolute;
  top: 4px;
  right: 18px;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 1;
  color: var(--rebla-yellow);
  opacity: 0.6;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 14px 0;
  padding-right: 32px;
}

.testimonial-author {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-style: normal;
}

.testimonial-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-company {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--rebla-burgundy);
}

.arbetstatt-quote {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-style: italic;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 60px 0 100px 0;
  background: linear-gradient(135deg, rgba(254, 195, 12, 0.08) 0%, #f5f5f5 100%);
  border-top: 4px solid var(--rebla-yellow);
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.cta p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-contact {
  margin-top: 20px;
}

.cta-contact-info {
  display: inline-block;
  text-align: center;
  padding: 32px 40px;
  background: #ffffff;
  border: 2px solid var(--text-gray);
  border-radius: 12px;
}

.cta-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.cta-contact-info p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cta-contact-info a {
  color: var(--rebla-burgundy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cta-contact-info a:hover {
  color: #28a745;
  text-decoration: underline;
}

.cta-contact-info p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tagline {
    font-size: 15px;
  }

  .hero {
    padding: 32px 0;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-content {
    padding-left: 15px;
    border-left: 3px solid var(--rebla-burgundy);
  }

  .hero-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-content .hero-quote {
    margin-bottom: 20px;
  }

  .package {
    padding: 24px;
  }

  .package-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .package.featured {
    transform: scale(1);
  }

  .package.featured:hover {
    transform: scale(1) translateY(-4px);
  }

  .package-title {
    font-size: 18px;
  }

  .package-image {
    margin-bottom: 14px;
  }

  .package-image img {
    height: 64px;
  }

  .topics {
    padding: 32px 0 50px;
  }

  .topics-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topic-card {
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 14px 16px;
  }

  .topic-icon {
    width: 40px;
    height: 40px;
  }

  .topic-icon svg {
    width: 20px;
    height: 20px;
  }

  .topic-title {
    font-size: 15px;
  }

  .topic-description {
    font-size: 13px;
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  footer {
    padding: 20px 0;
    font-size: 12px;
  }

  .background-highlights li {
    font-size: 13px;
  }

  .packages-heading {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .arbetstatt-box {
    padding: 20px;
  }

  .arbetstatt-lead,
  .about-intro-text .about-lead,
  .cta-heading .cta-promise {
    font-size: 18px;
  }

  .arbetstatt-lead {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .testimonials-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials {
    padding: 32px 0;
  }

  .testimonial-item {
    padding: 18px 18px 14px;
  }

  .testimonial-quote {
    font-size: 14px;
  }

  .about-intro {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-intro-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .about-intro-title {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .about-intro-text p {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

/* Contact section layout */
.cta-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: stretch;
}

.cta-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cta-heading {
  margin-bottom: 50px;
}

.cta-heading h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.cta-heading p {
  font-size: 16px;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

.cta-heading .cta-promise {
  margin-bottom: 12px;
}

.cta-text {
  flex-shrink: 0;
}

/* The widget's iframe has a fixed height (it can't grow with its
 content), so this must fit the whole form incl. validation
 messages – otherwise you get a scroll area inside the page. */
#rebla-form {
  width: 100%;
  border: 2px solid var(--text-gray);
  border-radius: 12px;
  padding: 15px;
  background: #ffffff;
  --rebla-form-height: 600px;
}

@media (max-width: 768px) {
  .cta-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .cta-heading {
    margin-bottom: 30px;
  }

  .cta-heading h2 {
    font-size: 22px;
  }

  .cta-heading p {
    font-size: 14px;
  }
}

