/* ==========================================================
   Marie Rydståle — gemensam stilmall
   Ändra färger på ett ställe: variablerna i :root nedan.
   ========================================================== */

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

:root {
  --cream:            #FAF7F2;
  --warm-white:       #FFFFFF;
  --sand:             #EDE5D8;
  --terracotta:       #B87060;
  --terracotta-light: #C9856F;
  --charcoal:         #2C2825;
  --muted:            #6B6058;
  --border:           #E3D9CE;
  --focus:            #8A4B3C;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Tydlig fokusmarkering — krävs för tangentbordsnavigering */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Hoppa-till-innehåll för skärmläsare */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--charcoal); }

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--terracotta-light) !important; }

/* Hamburgermeny — visas bara på mobil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 5rem;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: italic; color: var(--terracotta); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover { background: var(--terracotta-light); transform: translateY(-1px); }

.btn-secondary {
  color: var(--charcoal);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--terracotta); transform: translateY(-1px); }

/* Bildytor. Byt ut mot riktiga foton — se PUBLICERA.md */
.hero-image {
  flex: 0 0 380px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  /* Vitt, eftersom studiobilden har vit bakgrund och ska smälta in i ramen */
  background: var(--warm-white);
  border: 1px solid var(--border);
}

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

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--sand) 0%, #D4C5B2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 0.75rem;
  letter-spacing: 0.05em;
}

.img-placeholder svg { opacity: 0.35; }

/* ---- INTRODUKTIONSPRIS (tillfälligt kampanjband) ----
   Tas bort i sin helhet när kampanjen gått ut, tillsammans med
   aside.promo och span.service-promo i index.html. */
.promo {
  background: var(--terracotta);
  color: var(--cream);
  padding: 1.75rem 2rem;
}

.promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.promo-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.promo-text { flex: 1; min-width: 260px; }
.promo-text strong { font-weight: 500; }

.promo-link {
  color: var(--cream);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.5);
}

.promo-link:hover { border-bottom-color: var(--cream); }

/* Den vanliga fokusfärgen syns för dåligt mot terrakottan */
.promo-link:focus-visible { outline: 3px solid var(--cream); }

.service-promo {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--terracotta);
}

/* ---- GEMENSAMT FÖR SEKTIONER ---- */
section { padding: 100px 2rem; }

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

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.section-intro { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.8; }

/* ---- OM MIG ---- */
.about { background: var(--warm-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand);
}

.about-text p { color: var(--muted); margin-bottom: 1.25rem; line-height: 1.8; }
.about-text p:last-child { margin-bottom: 0; }

/* Bakgrundsruta: utbildning och erfarenhet i punktform.
   Det här är vad besökaren skannar efter innan hen vågar höra av sig. */
.credentials {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.credentials h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.credentials ul { list-style: none; }

.credentials li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0.5rem 0;
}

.credentials li + li { border-top: 1px solid var(--border); }

.credentials li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 0.6rem;
}

.credentials strong { color: var(--charcoal); font-weight: 500; }

.about-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terracotta);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.25rem;
  margin: 2rem 0;
  line-height: 1.6;
}

/* ---- TJÄNSTER ---- */
.services-header { margin-bottom: 4rem; }

/* Korten radar upp sig av sig själva: tre per rad på stora skärmar, färre på mindre.
   Lägger du till eller tar bort ett kort behöver ingenting ändras här. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,40,37,0.08); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--sand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

/* HHR-logotypen används i stället för en ikon, i YourMinds originalform. */
.service-logo {
  height: 52px;
  width: auto;
  display: block;
  /* Kortet är en flex-behållare, så utan den här raden sträcks logotypen ut på bredden */
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }

.service-price {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
  padding-top: 1.25rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.service-price span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

.service-link {
  font-size: 0.85rem;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.service-link:hover { gap: 0.6rem; }

/* ---- HUR DET FUNGERAR ---- */
.how { background: var(--warm-white); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }

.step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ---- RÖSTER ---- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.quote-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
}

/* Citattecknet som dekoration, dolt för skärmläsare eftersom det inte är text */
.quote-card::before {
  content: '”';
  position: absolute;
  top: 1rem;
  left: 1.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--sand);
}

.quote-card blockquote { position: relative; }

.quote-card blockquote p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.quote-card blockquote p:last-child { margin-bottom: 0; }

.quote-card figcaption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--terracotta);
}

/* ---- VANLIGA FRÅGOR ---- */
.faq-list { margin-top: 3rem; max-width: 760px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  padding: 1.4rem 0;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--terracotta);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p { color: var(--muted); padding-bottom: 1.5rem; line-height: 1.8; }

/* ---- KONTAKT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: start; }

.contact-info p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-detail + .contact-detail { margin-top: 0.75rem; }
.contact-detail a { color: var(--terracotta); }

/* Mejlrutan i kontaktdelen. Ersätter det tidigare kontaktformuläret. */
.contact-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.contact-card > p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }

.contact-button { width: 100%; text-align: center; font-size: 0.95rem; }

/* Introduktionspriset i kontaktkortet. Tas bort när kampanjen gått ut. */
.contact-promo {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terracotta);
  margin: -0.75rem 0 1.25rem;
}

/* Skiljelinje med ordet "eller" mellan bokning och mejl */
.contact-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-or::before, .contact-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Adressen i klartext, för den vars dator inte öppnar ett mejlprogram vid klick */
.contact-address {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 1.75rem;
  user-select: all;
}

.contact-tips {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 1rem;
}

.contact-tips li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}

.contact-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.form-note a { color: var(--terracotta); }

/* ---- INNEHÅLLSSIDA (integritetspolicy) ---- */
.doc { max-width: 720px; margin: 0 auto; padding: 140px 2rem 80px; }
.doc h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 0.5rem; }
.doc .doc-date { color: var(--muted); font-size: 0.85rem; margin-bottom: 3rem; }
.doc h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.doc p, .doc li { color: var(--muted); line-height: 1.8; margin-bottom: 0.9rem; }
.doc ul { padding-left: 1.4rem; }
.doc a { color: var(--terracotta); }

/* ---- FOOTER ---- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
}

footer strong {
  color: rgba(255,255,255,0.85);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

footer a { color: rgba(255,255,255,0.6); text-decoration: underline; }

/* Instagram-länken: ikon och text på samma rad */
.footer-social { margin-top: 1rem; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-social a:hover { color: #fff; }
footer a:hover { color: #fff; }

/* ---- RESPONSIVT ---- */
@media (max-width: 900px) {
  section { padding: 70px 1.5rem; }
  nav { padding: 0 1.5rem; }
  .hero { flex-direction: column; padding: 100px 1.5rem 60px; gap: 3rem; }
  .promo { padding: 1.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Behåll bildernas proportioner i mobilen. Tvingas ett stående porträtt in i
     en liggande ruta beskärs ansiktet bort, och ansiktet är hela poängen. */
  .hero-image {
    flex: none;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }

  .about-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 1rem; }
  .nav-links li:has(.nav-cta) { border-top: none; }
}

@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  .contact-card { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
