/* Västkustveterinären – publik stil
   Färger: navy, havsblått och svala ljusgrå toner. */
:root {
  --sea-900: #0c1b34;
  --sea-800: #14284b;
  --sea-700: #213e68;
  --teal-600: #1f7f99;
  --teal-500: #3eadc6;
  --teal-100: #e4f3f7;
  --sand-50: #f6f9fa;
  --sand-100: #ecf3f6;
  --sand-200: #d3e2e8;
  --accent-500: #1f86a3;
  --accent-600: #176a82;
  --ink: #1b2a35;
  --muted: #5b6b76;
  --line: #dbe5ea;
  --white: #fff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 8px 28px rgba(20, 40, 75, .08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--sea-800); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--sea-800); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.prose p:last-child, .card p:last-child { margin-bottom: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--sea-800); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-small { padding: .55rem 1rem; font-size: .92rem; }
.btn-accent { background: var(--accent-500); color: #fff; box-shadow: 0 6px 18px rgba(31, 134, 163, .3); }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--sea-800); border-color: var(--sea-800); }
.btn-ghost:hover { background: var(--sea-800); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 249, 250, .9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20,40,75,.06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--sea-800); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.brand-text small { font-size: .8rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem;
  padding: .5rem .75rem; border-radius: 999px; transition: background .15s, color .15s;
}
.site-nav a:not(.btn):hover { background: var(--sand-100); }
.site-nav a.is-active:not(.btn) { color: var(--teal-600); background: var(--teal-100); }
.nav-call { margin-left: .5rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--sea-800); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(62,173,198,.20), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(62,173,198,.10), transparent 60%),
    var(--sand-50);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.kicker, .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 1rem;
}
.eyebrow { margin-bottom: .6rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: #34444f; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 .75rem; }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 600; color: var(--sea-700); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }

.hero-media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; background: var(--teal-100); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero-media.is-illustration { background: linear-gradient(180deg, #dcf0f5 0%, #eef4f6 100%); }
.hero-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: .7rem 1rem;
  display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(20,40,75,.12);
}
.badge-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.badge-text { font-family: var(--serif); font-size: 1.2rem; color: var(--sea-800); font-weight: 600; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--sand-100); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: #3d4c57; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cards { display: grid; gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: 0 1px 2px rgba(20,40,75,.04);
}
.card h3 { margin-bottom: .35em; }
.card p { color: #3d4c57; }
.card-feature { background: var(--sea-800); border-color: var(--sea-800); color: #e8f0f3; }
.card-feature h3 { color: #fff; }
.card-feature p { color: #d3e1e6; }
.card-feature .card-icon { background: rgba(255,255,255,.12); color: #fff; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-600); margin-bottom: .9rem;
}
.card-icon svg { width: 24px; height: 24px; }

.animal-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.animal-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem .55rem .6rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--sea-800); font-weight: 600;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.animal-chip:hover { border-color: var(--teal-500); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--sea-800); }
.animal-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-600); flex: none; }
.animal-icon svg { width: 20px; height: 20px; }
.chip-arrow { color: var(--teal-600); transition: transform .15s; }
.animal-chip:hover .chip-arrow { transform: translateX(3px); }

/* ---------- Flikar & prislista ---------- */
.tabs { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: hidden; }
.tablist { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--sand-50); }
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.05rem .75rem; font: 600 1.05rem var(--sans); color: var(--muted);
  border-bottom: 3px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.tab:hover { color: var(--sea-800); background: var(--white); }
.tab[aria-selected="true"] { color: var(--sea-800); background: var(--white); border-bottom-color: var(--accent-500); }
.tab .animal-icon { width: 32px; height: 32px; }
.tab[aria-selected="true"] .animal-icon { background: var(--sea-800); color: #fff; }
.tab-count { font-size: .75rem; font-weight: 700; background: var(--sand-200); color: var(--sea-700); padding: .1rem .5rem; border-radius: 999px; }

.tabpanel { padding: 1.25rem clamp(1.1rem, 3vw, 2.25rem) 1.75rem; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-intro { color: var(--muted); margin: .5rem 0 .75rem; }
.empty { color: var(--muted); padding: 1rem 0; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .75rem;
  padding: .95rem 0; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-name { display: flex; flex-direction: column; min-width: 0; }
.price-name span { font-weight: 600; color: var(--ink); }
.price-name small { color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: .15rem; }
.price-dots { border-bottom: 2px dotted var(--sand-200); transform: translateY(-.3em); min-width: 1rem; }
.price-value { font-weight: 700; color: var(--sea-800); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-value.is-ask { font-weight: 500; color: var(--muted); font-style: italic; font-size: .95rem; }
.price-list.compact .price-row { padding: .75rem 0; }

.price-extras { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-top: 1rem; }
.card-swish hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }

/* ---------- Om ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.portrait img, .portrait-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.portrait-placeholder {
  display: grid; place-items: center; font-family: var(--serif); font-size: clamp(4rem, 10vw, 7rem); color: rgba(255,255,255,.92);
  background: linear-gradient(160deg, var(--teal-500), var(--sea-800));
}
.portrait figcaption { display: flex; flex-direction: column; margin-top: 1rem; }
.portrait figcaption strong { font-family: var(--serif); font-size: 1.25rem; color: var(--sea-800); }
.portrait figcaption span { color: var(--muted); font-size: .95rem; }
.onehealth { margin-top: 2rem; padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--teal-100); border-left: 4px solid var(--teal-500); }
.onehealth h3 { font-size: 1.2rem; }
.onehealth p { color: #2f454f; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hemavlivning ---------- */
.section-calm { background: linear-gradient(180deg, #e3eff4, #f6f9fa); }
.section-calm .prose p { color: #34444f; }
.calm-cta { margin-top: 1.75rem; font-weight: 600; color: var(--sea-800); }
.calm-cta a { white-space: nowrap; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal-500); color: var(--ink); }
.contact-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-800); color: #fff; margin-bottom: .8rem; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-family: var(--serif); font-size: 1.3rem; color: var(--sea-800); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea-900); color: #b9c9d2; padding: 2.5rem 0; font-size: .95rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #dfe9ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.footer-links { display: flex; flex-direction: column; gap: .3rem; }
.footer-meta { color: #8aa0ad; }

/* ---------- Mobilens snabbknappar ---------- */
.action-bar { display: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .about { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; max-width: 620px; }
  .portrait { position: static; max-width: 340px; }
  .price-extras { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--sand-50); padding: .75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20,40,75,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-call { margin: .5rem 0 0; justify-content: center; padding: .9rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-footer { padding-bottom: calc(2.5rem + 68px + env(safe-area-inset-bottom)); }
  .brand-text small { display: none; }
  .hero-media { aspect-ratio: 1 / 1; border-radius: 22px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 1rem; padding: 1.1rem 1.2rem; }
  .contact-icon { margin: 0; }
  .contact-label { flex: 1 1 auto; }
  .contact-value { flex: 1 1 100%; font-size: 1.15rem; padding-left: calc(46px + 1rem); margin-top: -.6rem; }

  .tablist { grid-template-columns: repeat(3, 1fr); }
  .tab { flex-direction: column; gap: .3rem; padding: .85rem .25rem; font-size: .95rem; }
  .tab-count { display: none; }
  .price-row { grid-template-columns: 1fr auto; }
  .price-dots { display: none; }
  .card { padding: 1.25rem; }

  .portrait { display: flex; align-items: center; gap: 1rem; max-width: none; }
  .portrait img, .portrait-placeholder { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; font-size: 2.2rem; flex: none; }
  .portrait figcaption { margin-top: 0; }

  .action-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--sea-800); padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(20,40,75,.18);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; padding: .45rem 0; border-radius: 10px;
  }
  .action-bar a:first-child { background: var(--accent-500); }
  .action-bar svg { width: 22px; height: 22px; }
}

@media print {
  .site-header, .action-bar, .hero-media, .hero-actions, .site-nav { display: none !important; }
  .tabpanel[hidden] { display: block !important; }
  body { background: #fff; padding: 0; }
}

/* ---------- Logotyp ---------- */
.brand-logo { height: 52px; width: auto; }
.hero-logo { width: min(360px, 82%); height: auto; margin: 0 0 1.5rem -4px; }
.footer-brand img { height: 64px; width: auto; }
@media (max-width: 860px) { .brand-logo { height: 44px; } }
@media (max-width: 640px) { .hero-logo { width: min(300px, 88%); margin-bottom: 1.25rem; } }

/* ---------- Karta ---------- */
.section-map { padding-bottom: 0; }
.section-map .section-head { margin-bottom: 1.5rem; }
.map-areas { margin: .5rem 0 0; font-size: .95rem; color: #3d4c57; }
.map-areas strong { color: var(--sea-800); }
.map-embed { position: relative; height: clamp(360px, 52vw, 520px); background: #e9ecec; z-index: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.map-embed .leaflet-container, .map-embed.leaflet-container { font: inherit; background: #e9ecec; }
.map-embed .leaflet-tile-pane, .map-embed[data-map-style="detaljerad"] .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.92); }
.map-embed[data-map-style="vit"] .leaflet-tile-pane { filter: url(#map-vit); }
.map-embed[data-map-style="gra"] .leaflet-tile-pane { filter: url(#map-gra); }
.map-embed[data-map-style="vit"], .map-embed[data-map-style="vit"] .leaflet-container { background: #f4f8fa; }
.vkv-pin { background: none; border: 0; }
.vkv-pin-body {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--teal-600); box-shadow: 0 4px 14px rgba(20,40,75,.35); border: 3px solid #fff;
}
.vkv-pin-body img { transform: rotate(45deg); width: 24px; height: 24px; filter: brightness(0) invert(1); }
.vkv-popup { display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; }
.vkv-popup strong { color: var(--sea-800); font-size: 1rem; }
.vkv-popup a { font-weight: 600; text-decoration: none; }
.map-embed .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 8px 28px rgba(20,40,75,.2); }
.map-embed .leaflet-popup-content { margin: .8rem 2rem .8rem 1rem; }
.map-embed .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; color: var(--sea-800); }
.map-embed .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); }
.map-hint {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 500; pointer-events: none;
  background: rgba(20,40,75,.82); color: #fff; font-size: .85rem; font-weight: 500; padding: .45rem .9rem; border-radius: 999px;
  transition: opacity .3s;
}
.map-hint.is-hidden { opacity: 0; }

/* ---------- Djurflikar (v2) ---------- */
.tabs { background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.tab-hint { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tablist { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2vw, 1.25rem); border: 0; background: none; margin-bottom: 1.4rem; }
.tab {
  position: relative; flex-direction: column; gap: .35rem; padding: 1.25rem .75rem 1.1rem;
  background: var(--white); border: 2px solid var(--line); border-radius: 22px; color: var(--sea-800);
  box-shadow: 0 1px 2px rgba(20,40,75,.05); transition: transform .18s ease, border-color .18s, background .18s, box-shadow .18s, color .18s;
}
.tab:hover { background: var(--white); border-color: var(--teal-500); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--sea-800); }
.tab-animal {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-600); transition: background .18s, color .18s, transform .25s;
}
.tab-animal svg { width: 64px; height: 64px; }
.tab:hover .tab-animal { transform: scale(1.05); }
.tab-label { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; margin-top: .25rem; }
.tab-meta { font-size: .82rem; font-weight: 500; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--sea-800); border-color: var(--sea-800); color: #fff; box-shadow: 0 10px 28px rgba(20,40,75,.22); transform: none; }
.tab[aria-selected="true"] .tab-animal { background: #fff; color: var(--sea-800); }
.tab[aria-selected="true"] .tab-meta { color: #b9cde0; }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -11px; width: 20px; height: 20px; background: var(--sea-800);
  transform: translateX(-50%) rotate(45deg); border-radius: 0 0 4px 0;
}
.tabpanel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 1.5rem clamp(1.1rem, 3vw, 2.5rem) 1.75rem; }
.panel-title { display: flex; align-items: center; gap: .7rem; font-size: 1.45rem; margin: 0 0 .5rem; }
.panel-animal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-600); flex: none; }
.panel-animal svg { width: 34px; height: 34px; }
.panel-intro { margin-top: 0; }

/* Ikoner i prislistan */
.price-list.has-icons .price-row { grid-template-columns: 48px auto 1fr auto; }
.price-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--teal-600); align-self: center; }
.price-icon svg { width: 34px; height: 34px; }
.price-row.is-sub { padding-top: .15rem; }
.price-row.is-sub .price-name span { font-weight: 500; color: #3d4c57; }
.price-row.is-sub .price-value { font-weight: 600; }
.price-row:has(+ .is-sub) { border-bottom-color: transparent; padding-bottom: .4rem; }
.credits { display: block; margin-top: .4rem; font-size: .72rem; color: #6f8796; max-width: 30rem; }

@media (max-width: 640px) {
  .tablist { gap: .5rem; margin-bottom: 1.1rem; }
  .tab { padding: .9rem .25rem .8rem; border-radius: 18px; }
  .tab-animal { width: 64px; height: 64px; }
  .tab-animal svg { width: 46px; height: 46px; }
  .tab-label { font-size: 1.1rem; }
  .tab-meta { display: none; }
  .tabpanel { border-radius: 18px; padding: 1.1rem 1rem 1.25rem; }
  .panel-title { font-size: 1.2rem; }
  .price-list.has-icons .price-row { grid-template-columns: 34px 1fr auto; gap: .6rem; }
  .price-icon { width: 30px; height: 30px; }
  .price-icon svg { width: 26px; height: 26px; }
}

/* ---------- Powered by ---------- */
.footer-powered {
  display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center;
  margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); width: min(1160px, 100% - 2.5rem);
}
.footer-powered span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8aa0ad; }
.footer-powered a { text-decoration: none; transition: color .2s; font-size: .95rem; letter-spacing: .32em; font-weight: 700; color: #fff; padding-left: .32em; }
.footer-address { font-style: normal; }

/* ---------- Djurflikar (v3): silhuetter som i förlagan ---------- */
:root { --animal-on: #2c5b5d; --animal-off: #c3cfcb; }
.tablist { gap: clamp(.5rem, 3vw, 2.5rem); align-items: end; margin-bottom: 1.75rem; }
.tab, .tab:hover, .tab[aria-selected="true"] {
  background: transparent; border: 0; box-shadow: none; border-radius: 16px; transform: none;
  padding: .75rem .5rem 1rem; gap: .6rem; justify-content: flex-end;
}
.tab[aria-selected="true"]::after { display: none; }
.tab .tab-animal, .tab[aria-selected="true"] .tab-animal {
  width: 100%; max-width: 230px; height: auto; border-radius: 0; background: none; display: block;
  color: var(--animal-off); transition: color .25s ease, transform .25s ease;
}
.tab .tab-animal svg { width: 100%; height: auto; display: block; }
.tab:hover .tab-animal { color: #8fa7a3; transform: translateY(-3px); }
.tab[aria-selected="true"] .tab-animal { color: var(--animal-on); transform: none; }
.tab-label { font-size: 1.25rem; color: #5f716e; position: relative; padding-bottom: .4rem; }
.tab-label::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 3px; background: var(--animal-on); transform: translateX(-50%); transition: width .25s; }
.tab[aria-selected="true"] .tab-label { color: var(--animal-on); }
.tab[aria-selected="true"] .tab-label::after { width: 2.2rem; }
.tab-meta, .tab[aria-selected="true"] .tab-meta { color: var(--muted); }
.tab:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; }

/* Små silhuetter (rubrik i prislistan och knappar i Tjänster) */
.panel-animal, .animal-icon { color: var(--animal-on); }
.panel-animal svg, .animal-icon svg { width: 80%; height: auto; }

@media (max-width: 640px) {
  .tab, .tab:hover, .tab[aria-selected="true"] { padding: .5rem .15rem .6rem; gap: .35rem; }
  .tab-label { font-size: 1.05rem; }
}

/* ---------- Tjänster (v2): intro i två kolumner + tre kort i rad ---------- */
.services-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; margin-bottom: clamp(2rem, 4vw, 3rem); }
.services-head h2 { margin-bottom: 1.25rem; }
.services-head .animal-chips { margin-top: 0; }
.services-text { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.7; color: #2c3b46; padding-top: .35rem; }
.cards-3 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.cards-3 .card { display: flex; flex-direction: column; padding: 1.75rem; }
.cards-3 .card h3 { font-size: 1.25rem; }
@media (max-width: 1000px) {
  .services-intro { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 .card-feature { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } .cards-3 .card { padding: 1.35rem; } }

/* ---------- Djurflikar: lagom stora på dator ---------- */
.tab .tab-animal, .tab[aria-selected="true"] .tab-animal { max-width: 150px; }
.tablist { max-width: 820px; margin-inline: auto; }
.tab-hint { text-align: center; }
@media (max-width: 640px) { .tab .tab-animal, .tab[aria-selected="true"] .tab-animal { max-width: none; } .tablist { max-width: none; } }
/* Tjänster: stort kort till vänster, två mindre staplade till höger – lika höga kolumner */
.services-intro { align-items: center; }
.cards-3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.cards-3 .card-feature { grid-row: 1 / span 2; justify-content: center; padding: 2.25rem; }
.cards-3 .card-feature h3 { font-size: 1.45rem; }
.cards-3 .card-feature p { font-size: 1.05rem; line-height: 1.7; }
.cards-3 .card:not(.card-feature) { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-content: center; }
.cards-3 .card:not(.card-feature) .card-icon { grid-row: 1 / span 2; margin: 0; }
.cards-3 .card:not(.card-feature) h3 { margin: .1rem 0 .3rem; }
@media (max-width: 1000px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-3 .card-feature { grid-row: auto; grid-column: auto; }
}
@media (max-width: 640px) {
  .services-head .animal-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .services-head .animal-chip { justify-content: center; padding: .45rem .5rem .45rem .4rem; gap: .4rem; font-size: .95rem; }
  .services-head .animal-chip .chip-arrow { display: none; }
  .services-head .animal-icon { width: 30px; height: 30px; }
  .cards-3 .card-feature { padding: 1.4rem; }
  .cards-3 .card-feature h3 { font-size: 1.25rem; }
  .cards-3 .card-feature p { font-size: 1rem; }
}
/* Avgifter + betalning + avmaskning: tre jämnstora rutor */
.price-extras { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.price-extras .card h3 { font-size: 1.2rem; }
@media (max-width: 1000px) { .price-extras { grid-template-columns: 1fr 1fr; } .price-extras .card:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .price-extras { grid-template-columns: 1fr; } }

/* ---------- Förtroendemärken (Om) ---------- */
.badges { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--sea-800); box-shadow: 0 1px 2px rgba(20,40,75,.05);
}
.badges svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; }
@media (max-width: 640px) { .badges li { font-size: .85rem; } }

/* ---------- Mjuka animationer vid scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero .reveal { transition-duration: .9s; }
}
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }
.price-unit { font-weight: 500; color: var(--muted); font-size: .9em; }

/* ---------- Rubriker i egen färg ---------- */
:root { --heading: #1a5c6b; }   /* djup petrolblå – kontrast ca 7:1 mot den ljusa bakgrunden */
h1, h2, h3, .panel-title, .contact-value, .portrait figcaption strong, .badge-text { color: var(--heading); }
.card-feature h3 { color: #fff; }
.services-text, .prose p { color: #2c3b46; }

/* ---------- Klickbara e-postadresser i text ---------- */
.text-link { color: var(--teal-600); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(31,127,153,.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; transition: color .15s, text-decoration-color .15s; }
.text-link:hover { color: var(--heading); text-decoration-color: currentColor; }
.card-feature .text-link { color: #9fe0ee; }

/* ---------- Hemavlivning: lugnt emblem ---------- */
.calm-head { text-align: center; margin-bottom: 1.5rem; }
.calm-emblem { width: 132px; height: 132px; display: block; margin: 0 auto .75rem; }
.calm-head h2 { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .calm-stars { animation: calm-twinkle 4.5s ease-in-out infinite; transform-origin: 60px 60px; }
  @keyframes calm-twinkle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
}
.section-calm .calm-cta { text-align: center; }
@media (max-width: 640px) { .calm-emblem { width: 104px; height: 104px; } }

/* ---------- Kontakt (v2): centrerad och luftig ---------- */
.section-contact { background: var(--white); }
.contact-c { text-align: center; }
.contact-c .eyebrow { display: block; }
.contact-c h2 { margin-bottom: .6rem; }
.contact-sub { max-width: 34rem; margin: 0 auto 2rem; color: #3d4c57; font-size: 1.1rem; }
.contact-sub p:last-child { margin-bottom: 0; }
.contact-phone {
  display: inline-flex; align-items: center; gap: .9rem; padding: .55rem 1.7rem .55rem .6rem; border-radius: 999px;
  background: var(--teal-100); color: var(--heading); text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.contact-phone:hover { background: #d3ecf3; color: var(--heading); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-phone-icon { width: clamp(46px, 4vw, 58px); height: clamp(46px, 4vw, 58px); border-radius: 50%; background: var(--teal-600); color: #fff; display: grid; place-items: center; flex: none; }
.contact-phone-icon svg { width: 46%; height: 46%; }
.contact-alts { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.contact-alts a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--sea-800); font-weight: 600; text-decoration: none; background: var(--white); transition: border-color .15s, color .15s, background .15s;
}
.contact-alts a:hover { border-color: var(--teal-500); color: var(--heading); background: var(--teal-100); }
.contact-alts svg { width: 20px; height: 20px; color: var(--teal-600); }
.contact-facts { list-style: none; padding: 2rem 0 0; margin: 2.75rem auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem 2.5rem; border-top: 1px solid var(--line); color: #3d4c57; font-size: .95rem; max-width: 900px; }
.contact-facts li { display: flex; align-items: center; gap: .5rem; }
.contact-facts svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; }
@media (max-width: 640px) {
  .contact-phone { padding-right: 1.2rem; }
  .contact-alts a { flex: 1 1 100%; justify-content: center; }
  .contact-facts { flex-direction: column; align-items: center; gap: .7rem; }
}

/* ============ Kampanjmeddelande (styrs från admin) ============ */
.campaign {
  position: relative; overflow: hidden;
  display: flex; gap: .9rem; align-items: flex-start;
  margin: 0 0 1.5rem; padding: 1rem 1.2rem 1.05rem; max-width: 38rem;
  color: #fff; border-radius: 18px;
  background: linear-gradient(120deg, #155f75 0%, #1a7590 60%, #1d7f9a 100%);
  box-shadow: 0 14px 32px -16px rgba(20, 40, 75, .55);
}
.campaign::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-100%); animation: campaign-shine 6s ease-in-out 1.2s infinite;
}
@keyframes campaign-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.campaign-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.16); color: #fff;
}
.campaign-body { min-width: 0; }
.campaign-title { margin: 0 0 .15rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d4f0f7; }
.campaign-text { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.campaign-text p { margin: 0; }
.campaign-text p + p { margin-top: .4rem; }
.campaign-text a, .campaign-text .text-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.campaign-until { margin: .35rem 0 0; font-size: .85rem; color: #d4f0f7; }
@media (max-width: 640px) {
  .campaign { padding: .9rem 1rem; gap: .75rem; border-radius: 16px; }
  .campaign-icon { width: 36px; height: 36px; }
  .campaign-text { font-size: 1rem; }
}
@media print { .campaign { color: #000; background: none; border: 2px solid #1f86a3; box-shadow: none; } .campaign::after { display: none; } }
.footer-powered a:hover, .footer-powered a:focus-visible { color: var(--teal-500); }

/* ============ Undersidor ============ */
.page-top {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.25rem, 5vw, 3.75rem);
  background:
    radial-gradient(1100px 460px at 90% -20%, rgba(62,173,198,.18), transparent 60%),
    var(--sand-50);
}
.page-top h1 { max-width: 22ch; }
.page-top .lead { max-width: 44rem; }
.page-top .lead p { margin: 0 0 .6rem; }
.page-top .hero-actions { margin-top: 1.5rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .9rem; color: #5b6b75; margin-bottom: 1.1rem; }
.crumbs a { color: var(--teal-600); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.page-content { padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.page-prose { max-width: 44rem; font-size: 1.06rem; }
.page-prose h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); margin: 2rem 0 .6rem; }
.page-prose h2:first-child { margin-top: 0; }
.page-prose ul { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.page-prose li { position: relative; padding-left: 1.6rem; }
.page-prose li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
.page-aside { display: grid; gap: 1rem; position: sticky; top: 6rem; }
.aside-card { padding: 1.25rem 1.35rem; }
.aside-title { font-size: 1.15rem; margin-bottom: .5rem; }
.aside-card p { font-size: .95rem; color: #4b5b65; }
.aside-contact, .aside-links { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .4rem; }
.aside-contact a { font-weight: 600; color: var(--teal-600); text-decoration: none; }
.aside-contact a:hover { text-decoration: underline; }
.aside-links .link-arrow { color: var(--sea-800); }
.price-groups { display: grid; gap: 1rem; }
.price-groups.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-groups.count-3 { grid-template-columns: 1fr; }
.price-group { padding: clamp(1.1rem, 3vw, 1.75rem); }
.prices-all { margin: 1.25rem 0 0; }
.calm-more { margin-top: 1.5rem; text-align: center; }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.area-chips li { padding: .4rem .85rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.page-cta { background: var(--sand-100); }
.cards .link-arrow { display: inline-block; margin-top: .9rem; }
.footer-pages { display: flex; flex-direction: column; gap: .3rem; }
.footer-pages a[aria-current] { font-weight: 700; }
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .price-groups.count-2 { grid-template-columns: 1fr; }
}
