/* ==========================================================================
   S*Tebasiles – stilmall
   Enkel, modern CSS utan ramverk. Färger och mått styrs av variablerna nedan.
   ========================================================================== */

/* ---------- Typsnitt (lokalt lagrade, inga anrop till Google) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Designvariabler ---------- */
:root {
  --cream: #faf6ef;
  --cream-2: #f3ece1;
  --sand: #e8dccb;
  --paper: #ffffff;
  --ink: #2f2923;
  --ink-soft: #6b6056;
  --cocoa: #8a5a3b;        /* accent – chokladbrun */
  --cocoa-dark: #6e4529;
  --sapphire: #4f7196;     /* birmans blå ögon */
  --line: #e4d8c7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 8px 24px rgb(60 40 20 / .08);
  --shadow-lg: 0 2px 4px rgb(60 40 20 / .06), 0 18px 48px rgb(60 40 20 / .14);
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; -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(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--cocoa); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cocoa-dark); }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 246 239 / .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em;
}
.brand-name sup { font-size: .55em; color: var(--cocoa); margin-inline: .04em; }
.brand-tag {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font: 600 .95rem var(--font-body); padding: .55rem .9rem; border-radius: 999px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: var(--cream-2); color: var(--cocoa-dark); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }

@media (max-width: 1060px) {   /* menyn får inte plats på en rad under ca 1010 px */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .75rem var(--gutter) 1.25rem; gap: .15rem; }
  .site-nav a { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cocoa); color: #fff; }
.btn-primary:hover { background: var(--cocoa-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: .45rem .95rem; font-size: .9rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Sektioner ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--cream-2); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cocoa); margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Startsida: hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.hero h1 em { font-style: italic; color: var(--cocoa); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -1rem; bottom: 1.5rem;
  background: var(--paper); border-radius: var(--radius); padding: .85rem 1.1rem;
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; max-width: 220px;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--cocoa); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-badge { left: .75rem; }
}

/* ---------- Nyhetskort (aktuell kull) ---------- */
.news {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.news + .news { margin-top: 1.5rem; }
.news-media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.card-media img[src*="sassis-kull"] { object-position: center 25%; }
.news-body { padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
.news-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  background: #eef3f8; color: var(--sapphire); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; color: var(--ink-soft); }
.facts strong { color: var(--ink); }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }

/* ---------- Kort/rutnät ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-narrow { max-width: 820px; }
.grid-fit.grid-narrow { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 380px)); }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; margin: 0;
}
.card-media { display: block; position: relative; overflow: hidden; background: var(--sand); }
.card-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .4s ease;
}
.card-media:hover img { transform: scale(1.03); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .25rem; }
.card-meta { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.card figcaption { padding: .8rem 1rem .95rem; font-size: .95rem; color: var(--ink-soft); }
.card figcaption strong { color: var(--ink); display: block; font-weight: 700; }

.title-badge {
  display: inline-block; font: 800 .7rem var(--font-body); letter-spacing: .08em;
  background: var(--cocoa); color: #fff; border-radius: 6px; padding: .2rem .45rem; margin-right: .4rem;
  vertical-align: .25em;
}

/* Kattprofiler */
.cat-card .card-media img { aspect-ratio: 4 / 3; }
.cat-card dl { margin: .75rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; font-size: .95rem; }
.cat-card dt { color: var(--ink-soft); }
.cat-card dd { margin: 0; font-weight: 600; }

/* ---------- Om oss / fördelar ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist {
  list-style: none; margin: 0; padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: .8rem;
}
.checklist h3 { margin-bottom: .25rem; }
.checklist li:not(:first-child) { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li:not(:first-child)::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: .15rem;
  background: var(--cocoa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.trust { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.trust-item {
  display: flex; align-items: center; gap: .9rem; background: var(--paper); border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.4; flex: 1 1 260px;
  text-decoration: none; color: var(--ink);
}
.trust-item img { width: 44px; height: auto; flex: none; }
.trust-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #eef3f8; color: var(--sapphire);
}
.trust-icon svg { width: 22px; height: 22px; }

/* Raser */
.breeds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 700px) { .breeds { grid-template-columns: 1fr; } }
.breed {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; color: #fff;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); text-decoration: none;
}
.breed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.breed:hover img { transform: scale(1.04); }
.breed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 20 12 / .78), rgb(30 20 12 / 0) 60%); }
.breed-body { position: relative; z-index: 1; padding: 1.5rem 1.6rem; }
.breed-body h3 { font-size: 1.7rem; margin-bottom: .2rem; color: #fff; }
.breed-body p { margin: 0; opacity: .92; }

/* ---------- Kullar (kattungar) ---------- */
.litter { margin-bottom: 3rem; scroll-margin-top: 90px; }
.litter-jump { font-weight: 600; margin: 0 0 2rem; }
.litter-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.litter-head h2, .litter-head h3 { margin: 0; }
.litter-age { color: var(--ink-soft); font-weight: 600; }
.parents { color: var(--ink-soft); margin-bottom: 1.25rem; }
.parents strong { color: var(--ink); }

.archive details {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: .9rem; overflow: hidden;
}
.archive summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2923' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.archive details[open] summary::after { transform: rotate(45deg); }
.archive summary small { font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin-left: .5rem; }
.archive .details-body { padding: 0 1.4rem 1.6rem; }
.archive .card { box-shadow: none; border: 1px solid var(--line); }
.archive-year { font-size: 1rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cocoa); margin: 2rem 0 .8rem; }

/* ---------- Galleri ---------- */
.gallery { columns: 4 150px; column-gap: 1rem; }
@media (max-width: 520px) { .gallery { column-gap: .6rem; } .gallery figure { margin-bottom: .6rem; } .gallery figcaption { font-size: .8rem; } }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.gallery img { width: 100%; transition: transform .4s ease, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .88rem; color: var(--ink-soft); padding: .45rem .2rem 0; }

/* ---------- Länkar ---------- */
.link-card {
  display: flex; flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.25rem 1.4rem;
  text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.link-logo { flex: none; width: 120px; height: 72px; display: grid; place-items: center; }
.link-logo img { max-width: 100%; max-height: 72px; width: auto; object-fit: contain; }
.link-card h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.link-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.link-card .url { color: var(--cocoa); font-weight: 700; font-size: .88rem; }

/* ---------- Kontakt ---------- */
.kontakt-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.kontakt-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kontakt-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
.kontakt-hero .lead { margin-bottom: 0; }
.kontakt-foto { position: relative; }
.kontakt-foto img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 40%;
  border-radius: var(--radius) 160px var(--radius) var(--radius); box-shadow: var(--shadow-lg);
}
@media (max-width: 820px) {
  .kontakt-hero-grid { grid-template-columns: 1fr; }
  .kontakt-foto { max-width: 520px; width: 100%; margin-inline: auto; }
  .kontakt-foto .hero-badge { left: .75rem; bottom: -1.25rem; }
}
.kontakt-foto .hero-badge { bottom: -1.5rem; max-width: none; white-space: nowrap; }
@media (max-width: 480px) { .kontakt-hero .hero-actions .btn { flex: 1 1 100%; justify-content: center; } }

.kontakt-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.kontakt-grid.utan-formular { grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-grid .form-card { max-width: none; margin: 0; }
.kontakt-info { display: grid; gap: 1rem; }
.kontakt-kort { padding: clamp(1.25rem, 3vw, 1.75rem); }
.kontakt-kort h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.kontakt-rader { list-style: none; margin: 0; padding: 0; display: grid; }
.kontakt-rader li { display: flex; gap: .9rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); }
.kontakt-rader li:first-child { border-top: 0; padding-top: 0; }
.kontakt-rader li:last-child { padding-bottom: 0; }
.kontakt-rader div { min-width: 0; display: flex; flex-direction: column; }
.kontakt-rader .etikett { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.kontakt-rader a, .kontakt-rader .varde { font-size: 1.08rem; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.kontakt-rader a:hover { color: var(--cocoa); text-decoration: underline; }
.kontakt-info .map-link { margin-top: 0; }
.kontakt-info .map iframe { height: 320px; }
.kontakt-info .map-consent { min-height: 320px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-consent {
  min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; text-align: center; padding: 2rem 1.5rem;
  background:
    linear-gradient(rgb(232 220 203 / .82), rgb(232 220 203 / .82)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgb(138 90 59 / .12) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgb(138 90 59 / .12) 38px 40px),
    var(--cream-2);
}
.map-consent .trust-icon { width: 54px; height: 54px; background: var(--paper); color: var(--cocoa); margin-bottom: .4rem; box-shadow: var(--shadow); }
.map-consent p { margin: 0; }
.map-consent .sub { color: var(--ink-soft); font-size: .92rem; max-width: 38ch; margin-bottom: .9rem; }
.map-link { display: inline-block; margin-top: .75rem; font-weight: 700; }

/* ---------- Sidfot ---------- */
.site-footer { background: var(--ink); color: #d9cfc3; padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; }
.site-footer .brand-name sup { color: #e2b58f; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #a89a8b; margin-bottom: .75rem; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #4a4139; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #a89a8b; font-size: .85rem; }

/* ---------- Ljusbord (lightbox) ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgb(20 14 10 / .94); color: #fff;
}
.lightbox::backdrop { background: rgb(20 14 10 / .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox-figure { margin: 0; display: grid; place-items: center; gap: .9rem; padding: 4rem 4.5rem 1rem; max-height: 100vh; }
.lightbox-img { max-width: min(92vw, 1400px); max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.lightbox-caption { text-align: center; font-size: 1rem; color: #eee4d8; max-width: 70ch; }
.lightbox-count { color: #a89a8b; font-size: .85rem; margin-left: .5rem; }
.lightbox button {
  position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: background-color .15s;
}
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: rgb(255 255 255 / .22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-figure { padding: 4rem .75rem 5rem; }
  .lightbox-img { max-width: 96vw; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* ---------- Övrigt ---------- */
.note { background: #eef3f8; border-left: 4px solid var(--sapphire); padding: 1rem 1.25rem; border-radius: var(--radius-sm); color: var(--ink); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Galleri: filterknappar ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  font: 700 .92rem var(--font-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip span { color: var(--ink-soft); font-weight: 600; margin-left: .2rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: #cbbfb1; }
.gallery figure[hidden] { display: none; }
.gallery figcaption .from { display: block; font-size: .8rem; color: #8d8177; }

/* ---------- Saknad bild (felstavat filnamn i en listfil) ---------- */
.saknas { position: relative; }
.saknas::after {
  content: attr(data-saknas); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 1rem; background: #fbeee6; color: #8a3b1f; font-weight: 700; font-size: .9rem; border: 2px dashed #d9a58c;
  border-radius: inherit;
}

/* ---------- Kontaktformulär ---------- */
.form-card { max-width: 760px; margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card h2 { margin-bottom: .35rem; }
.form-intro { color: var(--ink-soft); margin: 0 0 1.5rem; }
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem;
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--sapphire); background: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.form-privacy { font-size: .88rem; color: var(--ink-soft); margin: 0; max-width: 44ch; }
.contact-form button[disabled] { opacity: .65; cursor: progress; }
.form-status { margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.ok { background: #edf5ec; border-left: 4px solid #4d7c4f; color: #28462a; }
.form-status.fel { background: #fbeeec; border-left: 4px solid #a4443b; color: #6d241d; }
#meddelande { scroll-margin-top: 80px; }

/* ---------- Status för kattungar (ledig / reserverad / såld) ---------- */
.status {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  font: 800 .78rem var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; color: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .18);
}
.status-ledig { background: #3f7a45; }
.status-reserverad { background: #b7791f; }
.status-sald { background: #6b6056; }
.litter-status { font-weight: 800; color: #3f7a45; }

/* ---------- Köpa kattunge ---------- */
.kopa-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .kopa-grid { grid-template-columns: 1fr; } }
.kopa-text h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2rem 0 .6rem; }
.kopa-text h2:first-child { margin-top: 0; }
.kopa-text p { max-width: 62ch; }
.kopa-ingar { padding: clamp(1.25rem, 3vw, 1.75rem); position: sticky; top: 90px; }
@media (max-width: 860px) { .kopa-ingar { position: static; } }
.kopa-ingar h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.kopa-ingar .btn { margin-top: 1.25rem; align-self: flex-start; }
.lista { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.lista li { position: relative; padding-left: 1.75rem; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #e5efe4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.kopa-cta { margin: 1.75rem 0 0; font-weight: 700; }
.lank-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lank-grid .link-card { flex-direction: column; align-items: center; text-align: center; gap: .9rem; padding: 1.5rem 1.25rem 1.4rem; }
.lank-grid .link-logo { width: 150px; height: 84px; }
.lank-grid .link-logo img { max-height: 84px; }
.lank-grid .link-card .url { display: inline-block; margin-top: .5rem; }
@media (max-width: 560px) {
  .lank-grid .link-card { flex-direction: row; text-align: left; align-items: center; padding: 1.1rem 1.2rem; }
  .lank-grid .link-logo { width: 84px; height: 60px; }
  .lank-grid .link-logo img { max-height: 60px; }
}

/* Våra katter – hoppmeny och grupper */
.hopp { margin: 1.5rem 0 0; }
a.chip { text-decoration: none; color: var(--ink); }
.katt-sektion, .katt-kolumn { scroll-margin-top: 70px; }
.katt-par { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 3.5rem); }   /* Honor överst, Avelshanar under */
.katt-kolumn .section-head { margin-bottom: 1.5rem; }

.katt-grupp + .katt-grupp { margin-top: 2.5rem; }
.katt-grupp h3 { font-size: 1.35rem; margin: 0 0 1rem; }
.grid .tom { grid-column: 1 / -1; font-size: 1.05rem; margin: 0; max-width: 46ch; }
.katt-kolumn .grid .tom { align-self: start; max-width: 380px; padding: 1.25rem 1.4rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
