/* ============================================
   Naprapat Schaulin – Stylesheet
   Fonts: Playfair Display + Source Sans 3
   Uppdaterad: 2026-04-17
   ============================================ */

/* Fonter laddas via <link rel="stylesheet"> i header.php för snabbare FCP/LCP
   (tidigare @import här – långsammare eftersom filen måste laddas först). */

/* ── CSS Variables ── */
:root {
  --navy:      #1a2b3c;
  --teal:      #2e7d6e;
  --teal-dark: #1f5c50;
  --gold:      #c9a84c;
  --light:     #f5f2ee;
  --white:     #ffffff;
  --gray:      #6b7280;
  --text:      #2c2c2c;
  --border:    #e0dbd3;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', sans-serif;

  --max-width: 1160px;
  --section-pad: 80px 24px;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Cookie Banner ── */
#ns-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #cdd5df;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
#ns-consent p { flex: 1; min-width: 260px; max-width: 700px; }
#ns-consent p a { color: var(--gold); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-accept {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-body);
  transition: background .2s;
}
.btn-accept:hover { background: var(--teal-dark); }
.btn-decline {
  background: transparent;
  color: #cdd5df;
  border: 1px solid #4a5568;
  padding: 9px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color .2s, color .2s;
}
.btn-decline:hover { border-color: #9ca3af; color: var(--white); }

/* ── Top bar ── */
.topbar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 9px 24px;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.topbar a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.topbar a:hover { color: var(--gold); }

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }
.btn-book-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background .2s !important;
}
.btn-book-nav::after { display: none !important; }
.btn-book-nav:hover { background: var(--teal-dark) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  transition: all .3s;
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu a {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn-book-nav {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 8px;
  color: var(--white) !important;
}
.mobile-menu.open { display: flex; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font-body);
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--light); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: #b8922e; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 80vh;
  min-height: 520px;
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2b3c 0%, #2e7d6e 100%);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 600px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Section base ── */
section { padding: var(--section-pad); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark); /* #1f5c50 – tillräcklig kontrast även på ljus beige */
  margin-bottom: 10px;
}
h2.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Reviews ── */
.reviews-section { background: var(--light); }
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.reviews-score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.score-meta { display: flex; flex-direction: column; gap: 4px; }
.score-meta img { height: 20px; width: auto; }
.score-meta span { font-size: 13px; color: #4b5563; } /* mörkare grå för AA-kontrast */

/* Carousel */
.carousel-wrapper { position: relative; }
.carousel-track-outer { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid var(--teal);
}
.review-stars { color: #f59e0b; font-size: 17px; letter-spacing: 2px; }
.review-text {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.review-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  font-style: normal;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--teal); color: var(--white); }
.carousel-dots { display: flex; gap: 7px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.carousel-dot.active { background: var(--teal); }

/* ── Stotvag section ── */
.stotvag-section { background: var(--white); }
.stotvag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.stotvag-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stotvag-img img { width: 100%; height: 380px; object-fit: cover; }
.stotvag-content ul {
  margin: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stotvag-content li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
}
.stotvag-content li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Akuttid CTA ── */
.akuttid-section {
  background: var(--navy);
  padding: 60px 24px;
}
.akuttid-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.akuttid-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 8px;
}
.akuttid-inner p { color: rgba(255,255,255,0.75); font-size: 16px; }
.akuttid-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ── Friskvård + Betalning ── */
.friskvard-section { background: var(--light); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.info-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.info-card ul { display: flex; flex-direction: column; gap: 8px; }
.info-card li {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px;
}
.info-card li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.info-card p { color: var(--gray); font-size: 16px; line-height: 1.7; }

/* ── Martin ── */
.martin-section { background: var(--white); }
.martin-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.martin-photo {
  position: sticky;
  top: 88px;
}
.martin-photo img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.martin-bio p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.8;
}
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edu-list h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.edu-item:last-child { border-bottom: none; }
.edu-item::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.edu-item strong { color: var(--navy); }

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
}
.footer-logo span { color: var(--gold); } /* gold på navy uppfyller AA-kontrast (~7:1) */
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  transition: color .2s;
  font-size: 14px;
}
.footer-links a:hover { color: var(--gold); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Content pages ── */
.content-section { padding: 64px 24px; }
.content-section .container { max-width: 800px; }
.prose h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 32px 0 10px;
}
.prose h4:first-child { margin-top: 0; }
.prose p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; font-size: 16px; }
.prose ul { margin: 12px 0 20px 16px; list-style: disc; }
.prose li { color: var(--gray); font-size: 16px; margin-bottom: 6px; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.prose strong { color: var(--navy); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.contact-box {
  background: var(--light);
  border-radius: 8px;
  padding: 32px;
}
.contact-box h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 18px;
}
.contact-box p, .contact-box li {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
}
.contact-box a { color: var(--teal); }
.contact-box ul { display: flex; flex-direction: column; gap: 4px; }
.contact-box li { list-style: none; }
.notice-box {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.notice-box p { color: #5a4500; font-size: 15px; margin: 0; }
.notice-box strong { color: #3d2e00; }
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.map-wrapper iframe { display: block; width: 100%; height: 360px; border: none; }

/* ── Stotvag page ── */
.stotvag-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.stotvag-sidebar {
  position: sticky;
  top: 88px;
}
.stotvag-sidebar img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.cta-card {
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}
.cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cta-card p { font-size: 15px; opacity: 0.88; margin-bottom: 18px; }
.cta-card .btn { background: var(--white); color: var(--teal); width: 100%; }
.cta-card .btn:hover { background: var(--light); }

/* ── Terms ── */
.terms-hero .boka-img {
  margin: 24px auto 0;
  display: block;
  height: 50px;
  width: auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --section-pad: 60px 20px; }

  .stotvag-grid,
  .martin-grid,
  .two-col,
  .contact-grid,
  .stotvag-page-grid { grid-template-columns: 1fr; }

  .martin-photo { position: static; }
  .martin-photo img { width: 180px; height: 180px; }

  .stotvag-sidebar { position: static; }

  .review-card { flex: 0 0 calc(50% - 12px); }

  .akuttid-inner { grid-template-columns: 1fr; text-align: center; }
  .akuttid-inner .btn { align-self: center; }

  .reviews-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { height: 70vh; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .review-card { flex: 0 0 calc(100% - 0px); min-width: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .score-number { font-size: 2.2rem; }
}
