/* ════════════════════════════════════════════════════════════════════
   SERVICE HUB SHARED STYLES - Fixarflytt
   Common styles for all 6 service hub pages.
   Loaded globally via base.njk after styles.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── HERO SECTION ─────────────────────────────────────────────────── */
.hero {
  margin-top: 0;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  background: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(30, 58, 138, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(249, 115, 22, 0.2);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--accent-orange);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: rotate(2deg);
  transition: transform 0.5s;
}

.hero-image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent-orange);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* ── SECTION STRUCTURE ────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-label {
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ── FEATURE CARDS ────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.055);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--primary-blue);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── CTA STRIP ────────────────────────────────────────────────────── */
.cta-strip {
  padding: 5rem 2rem;
  background: var(--light-bg, #f8fafc);
  text-align: center;
}

.cta-strip h2 {
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 900;
}

.cta-strip p {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ SECTION ──────────────────────────────────────────────────── */
.faq-section {
  padding: 5rem 2rem;
  background: #f8fafc;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

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

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.3rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f97316;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "DM Sans", sans-serif;
}

.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #f97316;
  transition: transform 0.3s;
  font-weight: 400;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 0 1.3rem;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-a p {
  color: #1e3a8a;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ── RELATED SERVICES GRID (hub pages) ───────────────────────────── */
.related-services-section {
  padding: 5rem 2rem;
  background: #f0f4ff;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.service-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--primary-blue);
  border: 2px solid #e5e7eb;
  transition: all 0.25s;
}

.service-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2.5rem;
    min-height: unset;
  }

  .hero-image {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-image-wrapper {
    transform: rotate(0deg);
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-strip h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
