@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Nunito:wght@400;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #1A4380;
  --secondary: #002845;
  --accent: #1A4380;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e6ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 44px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(26,67,128,0.06);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  padding-top: 8px !important;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: rgba(26,67,128,0.08);
  color: var(--primary);
}

.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.navbar-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(to right, rgba(0,15,40,0.82) 0%, rgba(0,15,40,0.65) 55%, rgba(0,15,40,0.3) 100%),
    url('/images/hero-bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  max-width: 680px;
  margin-left: 5vw;
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 28px;
  font-weight: 400;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  color: #4CAF50;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 24px;
}

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

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ===== BEHANDLINGAR ===== */
.behandlingar {
  background: var(--light-gray);
}

.behandlingar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,67,128,0.13);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f0fe, #c8d8f8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 8px;
}

/* ===== REVIEWS ===== */
.reviews {
  background: var(--white);
}

.reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--light-gray);
  padding: 12px 24px;
  border-radius: 50px;
  margin-top: 16px;
}

.stars {
  color: #fbbc04;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-score {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--secondary);
}

.rating-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
  justify-content: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.review-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.reviewer-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.review-stars {
  color: #fbbc04;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== INFO BAND ===== */
.info-band {
  background: var(--primary);
  color: var(--white);
  padding: 60px 24px;
}

.info-band .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.info-item h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.info-item p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-section .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.75);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}

.footer-socials a:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  padding: 120px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--light-gray);
}

.faq-question .faq-icon {
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-box {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 32px;
}

.contact-info-box h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-mobile-toggle {
    display: flex;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    opacity: 1;
    pointer-events: all;
    transform: none;
    display: none;
  }

  .nav-item.open .dropdown {
    display: block;
  }

  .nav-link {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }

  .hero-content {
    margin-left: 0;
    padding: 60px 24px;
    max-width: 100%;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ── Mega Menu ───────────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: -160px;
  /* padding-top bridges the 8px gap so hover isn't lost mid-travel */
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  min-width: 700px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
  background: transparent;
}

/* The visible card lives in ::before so it starts below the bridge */
.mega-menu::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  z-index: -1;
}

/* Actual content needs its own padding inside the card */
.mega-col {
  padding: 20px 0 20px 0;
}
.mega-col:first-child { padding-left: 32px; }
.mega-col:last-child  { padding-right: 32px; }

.has-mega:hover .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mega-col > h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  min-height: 2.4rem;
  display: flex;
  align-items: flex-end;
}

.mega-col > h4 > a {
  color: var(--primary);
  text-decoration: none;
}

.mega-col > h4 > a:hover {
  text-decoration: underline;
}

.mega-col > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col > ul > li > a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.mega-col > ul > li > a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .mega-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 16px;
    opacity: 1;
    pointer-events: all;
    transform: none;
    display: none;
    grid-template-columns: 1fr 1fr;
    min-width: unset;
    gap: 16px;
  }

  .nav-item.open .mega-menu {
    display: grid;
  }
}
