/* ============================================================================
   JOCKES TAXI — styles
   Palett:  kalksten #F1ECE1 · skiffer #1E2A2C · havsteal #0C4A45 · sand #E0A24A
   Metod:   mobil först, responsiv uppåt. Layout via flex/grid + gap.
   ========================================================================== */

:root {
  --ground:     #F1ECE1;   /* kalksten */
  --surface:    #FBF9F3;   /* ljusare kort */
  --text:       #1E2A2C;   /* skiffer */
  --muted:      #55625F;   /* dämpad text */
  --sea:        #0C4A45;   /* Östersjön — primär */
  --sea-deep:   #082F2C;   /* djupare hav */
  --sea-soft:   #0F5A54;   /* hover på hav */
  --sand:       #E0A24A;   /* sandsten — CTA */
  --sand-deep:  #C6852F;   /* CTA hover */
  --brand-blue: #1E3FB4;   /* loggans blå (matchar bilen) */
  --line:       #DED6C6;   /* linjer på kalksten */
  --line-sea:   rgba(241, 236, 225, 0.18);

  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 44, 0.06), 0 8px 28px rgba(30, 42, 44, 0.08);
}

/* Loggan (wordmark) är en egen komponent — se components/logo/.
   Fonten (Satisfy) är inbäddad i logo-SVG:n, så sidan laddar ingen egen webfont. */

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

html { scroll-behavior: smooth; }

/* Kompensera för den fastnålade headern så rubriker inte hamnar bakom den. */
main[id],
section[id] { scroll-margin-top: 80px; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0; }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sand);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eyebrow / etiketter (mono) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--sea); }
.eyebrow-on-sea { color: var(--sand); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--sand);
  color: #241a06;
  box-shadow: 0 6px 18px rgba(224, 162, 74, 0.35);
}
.btn-call:hover { background: var(--sand-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ground);
  border-color: var(--line-sea);
}
.btn-ghost:hover {
  border-color: var(--ground);
  background: rgba(241, 236, 225, 0.08);
}

.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-call-ico { font-size: 1.05em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 225, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
/* Loggan (.brand) stylas i components/logo/logo.css */

/* Mobil: menyn är en utfällbar panel under headern. */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 6px 20px 14px;
}
.nav.is-open { display: flex; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: none; }
.nav a:hover { color: var(--sea); }
.header-call { display: none; }

/* Hamburgar-knapp (endast mobil) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--sea);
  cursor: pointer;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
}
.nav-toggle-box span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(168deg, var(--sea-soft) 0%, var(--sea) 42%, var(--sea-deep) 100%);
  color: var(--ground);
  padding-block: 64px 156px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  color: #fff;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  color: rgba(241, 236, 225, 0.9);
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-price {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: 1.05rem;
  color: rgba(241, 236, 225, 0.92);
}
.hero-price strong { color: var(--sand); font-weight: 700; }
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.hero-cta .btn { width: 100%; }
.hero-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(241, 236, 225, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-note::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6fdc9a;
  box-shadow: 0 0 0 0 rgba(111, 220, 154, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111, 220, 154, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(111, 220, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 220, 154, 0); }
}
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
}

/* ---------- USP ---------- */
.usp {
  margin-top: -1px;
  background: var(--sea-deep);
  padding-block: 8px 44px;
}
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.usp-card {
  background: rgba(241, 236, 225, 0.05);
  border: 1px solid var(--line-sea);
  border-radius: var(--radius);
  padding: 24px 22px;
  color: var(--ground);
}
.usp-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--sand);
}
.usp-card h2 {
  font-size: 1.3rem;
  margin: 8px 0 8px;
  color: #fff;
}
.usp-card p {
  color: rgba(241, 236, 225, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Sektionstitlar (delade) ---------- */
.section-title {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  color: var(--sea);
  margin-bottom: 14px;
}
.section-lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ---------- Täckningsområde / karta ---------- */
.areas { padding-block: 64px; }
.map-figure {
  margin: 8px 0 22px;
  background: linear-gradient(168deg, var(--sea-soft), var(--sea) 55%, var(--sea-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 12px;
  box-shadow: var(--shadow);
}
.gotland-map {
  width: 100%;
  height: auto;
  display: block;
  max-height: 640px;
}
.m-land {
  fill: var(--ground);
  stroke: var(--sand);
  stroke-width: 5;
  stroke-linejoin: round;
  paint-order: stroke;
}
.m-dot { fill: var(--sand); stroke: var(--sea-deep); stroke-width: 3; }
.m-dot--big { fill: var(--sand-deep); stroke-width: 4; }
.m-label {
  fill: var(--sea-deep);
  stroke: var(--ground);
  stroke-width: 6;
  paint-order: stroke;
  stroke-linejoin: round;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
}
.m-label--island { font-style: italic; }
.m-compass line,
.m-compass path { stroke: rgba(241, 236, 225, 0.7); fill: rgba(241, 236, 225, 0.7); stroke-width: 3; }
.m-compass-n { fill: var(--ground); font-family: var(--font-mono); font-size: 34px; font-weight: 700; }
.map-caption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(241, 236, 225, 0.85);
}
.area-foot {
  font-size: 1.08rem;
  color: var(--muted);
}
.area-foot strong { color: var(--sea); }

/* ---------- Omdömen ---------- */
.reviews {
  padding-block: 64px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.review-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin: 0;
  box-shadow: var(--shadow);
}
.stars { color: var(--sand); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 12px; }
.review-card blockquote {
  margin: 0 0 16px;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--text);
}
.review-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Recensionsformulär ---------- */
.review-form-wrap {
  margin-top: 40px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}
.review-form-title { font-size: 1.5rem; color: var(--sea); margin-bottom: 8px; }
.review-form-lead { color: var(--muted); margin-bottom: 22px; max-width: 60ch; }
.review-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.review-form label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
}
.review-form .req { color: var(--sand-deep); }
.review-form .opt {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}
.review-form input,
.review-form select,
.review-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
}
.review-form textarea { resize: vertical; min-height: 120px; }
.review-form input:focus-visible,
.review-form select:focus-visible,
.review-form textarea:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 1px;
  border-color: var(--sand);
}
.review-form button { justify-self: start; }
/* Honungsfälla — dold för människor men syns för bottar. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.ok { background: #e4f4ea; color: #14533a; border: 1px solid #b9e0c8; }
.form-status.err { background: #fbe7e0; color: #8a2f16; border: 1px solid #f0c4b4; }

/* ---------- Kontakt ---------- */
.contact {
  background: linear-gradient(168deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--ground);
  padding-block: 68px;
}
.contact-inner { max-width: 640px; }
.contact-title { color: #fff; }
.contact-lead {
  color: rgba(241, 236, 225, 0.85);
  font-size: 1.08rem;
  margin-bottom: 28px;
}
.contact-actions { margin-bottom: 22px; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-sea);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  width: 92px;
  flex: none;
}
.contact-list a {
  color: var(--ground);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover { border-bottom-color: var(--sand); }

/* ---------- Vanliga frågor (FAQ) ---------- */
.faq {
  padding-block: 64px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.faq-inner { max-width: 760px; }
.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--sea);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--sand);
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--sea-soft); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--sea); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sea-deep);
  color: rgba(241, 236, 225, 0.8);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-brand p { margin-top: 6px; font-size: 0.95rem; color: rgba(241, 236, 225, 0.65); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: rgba(241, 236, 225, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--sand); }
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: rgba(241, 236, 225, 0.5);
}

/* ============================================================================
   RESPONSIVT — uppåt från mobil
   ========================================================================== */
@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hero-cta .btn { width: auto; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .review-form { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  body { font-size: 18px; }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 26px;
    background: none;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
  }
  .nav a {
    font-size: 0.96rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--sand); color: var(--text); }
  .header-call { display: inline-flex; }
  .hero { padding-block: 96px 180px; }
  .usp { padding-block: 12px 64px; }
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .areas, .reviews { padding-block: 88px; }
  .contact { padding-block: 92px; }
}
