/*
Theme Name: Reparista
Theme URI: https://www.reparista.dk/
Author: Reparista
Description: Tema til Reparista.dk — reparation af kaffe- og espressomaskiner. Indeholder forside, reservedele, salg af maskiner (refurbished), om os og kontakt, samt formularer med fotoupload.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: reparista
*/

/* ==========================================================================
   Reparista.dk — stylesheet
   Palette: brown & caramel accents on a light, near-white base
   ========================================================================== */

:root {
  /* Colors — a light, near-white base (like Berry & Beans) with two
     specified browns carrying all the accenting; no green anywhere. */
  --cream:        #FBF8F2;  /* main page background — warm near-white */
  --cream-2:      #FFFFFF;  /* alternating section background — now white, per request */
  --espresso:     #2E1B10;  /* dark roast-bean brown — text, dark sections */
  --espresso-70:  rgba(46, 27, 16, 0.72);
  --espresso-45:  rgba(46, 27, 16, 0.48);
  --roast:        #6B3F2A;  /* primary accent — buttons */
  --roast-dark:   #4A2B1C;  /* hover */
  --caramel:      #A8681F;  /* secondary accent */
  --caramel-light:#F0DCB0;
  --sage:         #A8681F;  /* was green — now caramel, per request */
  --sage-dark:    #6B3F2A;  /* was green — now roast brown, per request */
  --paper-line:   rgba(46, 27, 16, 0.14);
  --white:        #FFFFFF;  /* card surfaces — clean white, like Berry & Beans */

  /* Type — calm, clean, restrained */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
}

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

html { scroll-behavior: smooth; overflow-y: scroll; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; }

h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--roast); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--roast);
  outline-offset: 3px;
}

/* ---------------------------------- Buttons --------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--roast);
  color: var(--white);
}

.btn-primary:hover { background: var(--roast-dark); }

.btn-primary:disabled {
  background: var(--paper-line);
  color: var(--espresso-45);
  cursor: not-allowed;
}

.btn-primary:disabled:hover { background: var(--paper-line); }

.btn-ghost {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}

.btn-ghost:hover { background: var(--espresso); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 253, 249, 0.55);
  color: var(--white);
}

.btn-ghost-light:hover { background: rgba(255, 253, 249, 0.12); border-color: var(--white); }

/* ---------------------------------- Header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--paper-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
}

.logo-mark {
  height: 82px;
  width: auto;
  max-width: 260px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--roast);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-cta .btn-primary {
  background: #000000;
}

.nav-cta .btn-primary:hover {
  background: #262626;
}

.btn-fb {
  background: #000000;
}

.btn-fb:hover {
  background: #262626;
}

.nav-cta .btn { padding: 0.65em 1.3em; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--paper-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
  }
  .main-nav li { border-top: 1px solid var(--paper-line); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: none;
  }
  .nav-toggle { display: block; }
  .logo-mark { height: 54px; max-width: 170px; }
}

/* ---------------------------------- Hero -------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 108px;
  color: var(--white);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media {
  /* fills any letterbox space left by object-fit: contain below */
  background: linear-gradient(155deg, var(--roast) 0%, var(--espresso) 100%);
}

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

.hero-scrim {
  z-index: 1;
  background: linear-gradient(100deg, rgba(35, 20, 10, 0.86) 0%, rgba(35, 20, 10, 0.68) 48%, rgba(35, 20, 10, 0.42) 100%);
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-text { max-width: 620px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #000000;
  background: var(--white);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.hero h1 { color: var(--white); }

.hero-lede {
  font-size: 1.15rem;
  color: rgba(251, 248, 242, 0.88);
  max-width: 46ch;
}

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

@media (max-width: 640px) {
  .hero { padding: 76px 0 84px; }
}

/* ---------------------------------- Sections ---------------------------- */

section { padding: 76px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}

.bg-cream-2 { background: var(--cream-2); }

/* ---------------------------------- Card grid --------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

@media (max-width: 860px) {
  .grid-3,
.grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 2rem 1.8rem;
}

.card .icon {
  width: 44px; height: 44px;
  margin-bottom: 1.1rem;
  color: var(--roast);
}

.card h3 { margin-bottom: 0.5rem; }

.card p { margin-bottom: 0; color: var(--espresso-70); font-size: 0.98rem; }

/* ---------------------------------- Process (blueprint band) ------------ */

.process {
  position: relative;
  overflow: hidden;
  /* Warm coffee-toned gradient shown until a real bean photo is added
     at billeder/tiles/kaffeboenner.jpg (see .process-media below) */
  background: linear-gradient(155deg, var(--roast) 0%, var(--espresso) 100%);
}

.process-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.process-media img[data-photo] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.process-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(35, 20, 10, 0.72) 0%, rgba(35, 20, 10, 0.55) 100%);
}

.process > .container {
  position: relative;
  z-index: 2;
}

.process .section-tag { color: var(--caramel-light); }

.process h2 { color: var(--white); }

.process .section-head p { color: rgba(251, 248, 242, 0.85); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.6rem;
}

.step .num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--caramel);
  margin-bottom: 0.6rem;
  display: block;
}

.step .num::before { content: counter(step, decimal-leading-zero); }

.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }

.step p { font-size: 0.95rem; color: var(--espresso-70); margin-bottom: 0; }

/* ---------------------------------- Brand strip -------------------------- */

.brand-strip {
  padding: 44px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.brand-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-strip-label {
  font-weight: 600;
  color: #000000;
  font-size: 1.05rem;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.brand-pill {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.5em 1.1em;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: var(--white);
}

/* ---------------------------------- CTA band ----------------------------- */

.cta-band {
  background: var(--roast);
  color: var(--white);
  text-align: center;
}

.cta-band h2 { color: var(--white); }

.cta-band p { color: rgba(255, 253, 249, 0.82); margin-left: auto; margin-right: auto; }

.cta-band .hero-actions { justify-content: center; }

/* ---------------------------------- Forms -------------------------------- */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 2.4rem;
}

@media (max-width: 560px) {
  .form-wrap { padding: 1.6rem; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--espresso-45);
  margin-top: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-s);
  background: var(--cream);
  color: var(--espresso);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--roast);
  outline: none;
}

.field textarea { resize: vertical; min-height: 110px; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E1B10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 18px;
  padding-right: 2.4em;
  cursor: pointer;
}

/* honeypot field, hidden from real visitors */

.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  display: none;
  padding: 0.9em 1.1em;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
}

.form-msg.is-visible { display: block; }

.form-msg.success { background: #F3E4C4; color: var(--sage-dark); border: 1px solid var(--sage); }

.form-msg.error { background: #F3E3D2; color: #7A3418; border: 1px solid #C08856; }

.form-note {
  font-size: 0.86rem;
  color: var(--espresso-45);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ---------------------------------- Two column with form ----------------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.info-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--paper-line);
}

.info-list li:first-child { border-top: none; }

.info-list .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--roast); margin-top: 2px; }

.info-list strong { display: block; font-size: 0.95rem; }

.info-list span.detail { color: var(--espresso-70); font-size: 0.95rem; }

/* ---------------------------------- Photo box (self-updating) ------------

   Pattern used everywhere a real photo belongs (model photos, category
   photos, homepage tiles, refurbished listings). Each box ships with a
   drawn placeholder icon plus an <img data-photo> pointing at where a
   real photo file should live. The image is hidden by default; js/main.js
   reveals it automatically the moment that file actually exists on the
   server, and keeps the drawn icon showing until then. So: to go from
   "illustration" to "real photo" you only ever add/replace an image file
   — never touch the HTML or CSS.
   ---------------------------------------------------------------------- */

.photo-box {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-box .photo-fallback-icon { width: 40px; height: 40px; color: var(--caramel); }

.photo-box img[data-photo] {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------- Homepage photo tiles ------------------ */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 860px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.photo-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
}

.photo-tile .tile-media,
.photo-tile .tile-fallback {
  position: absolute;
  inset: 0;
}

.photo-tile .tile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--roast) 0%, var(--espresso) 100%);
  transition: transform 0.4s ease;
}

.photo-tile .tile-fallback svg { width: 68px; height: 68px; color: rgba(251, 247, 238, 0.85); }

.photo-tile .tile-media img[data-photo] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: transform 0.4s ease;
}

.photo-tile:hover .tile-fallback,
.photo-tile:focus-visible .tile-fallback,
.photo-tile:hover .tile-media img[data-photo],
.photo-tile:focus-visible .tile-media img[data-photo] {
  transform: scale(1.06);
}

.photo-tile .tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 11, 6, 0.88) 0%, rgba(20, 11, 6, 0.55) 30%, transparent 62%);
}

.photo-tile .tile-label {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.photo-tile .tile-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(251, 247, 238, 0.85);
  margin-top: 0.2rem;
}

/* ---------------------------------- Spare parts categories --------------- */

.btn-sm { padding: 0.5em 1em; font-size: 0.85rem; }

/* ---------------------------------- Facebook CTA card --------------------- */

.fb-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 2rem;
}

.fb-card .fb-icon { width: 50px; height: 50px; flex-shrink: 0; color: var(--roast); }

.fb-card-text { flex: 1; min-width: 220px; }

.fb-card-text h3 { margin-bottom: 0.4rem; }

.fb-card-text p { margin-bottom: 0; color: var(--espresso-70); font-size: 0.96rem; }

.fb-card-text .info-sub {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--espresso);
}

.fb-card-text ul { margin: 0; padding-left: 1.25rem; }

.fb-card-text li {
  margin-bottom: 0.3rem;
  color: var(--espresso-70);
  font-size: 0.96rem;
}

.btn-primary[aria-disabled="true"] {
  background: var(--paper-line);
  color: var(--espresso-45);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary[aria-disabled="true"]:hover { background: var(--paper-line); }

@media (max-width: 560px) {
  .fb-card { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.6rem 0 2rem;
  color: var(--espresso-45);
  font-size: 0.85rem;
  font-weight: 600;
}

.or-divider::before,
.or-divider::after { content: ""; flex: 1; height: 1px; background: var(--paper-line); }


/* ---------------------------------- Quote / values block ----------------- */

.pull-quote {
  border-left: 3px solid var(--sage);
  padding-left: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--espresso);
  margin: 2rem 0;
  max-width: 56ch;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.values-list li { display: flex; gap: 1rem; }

.values-list .icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--sage-dark); margin-top: 3px; }

.values-list h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

.values-list p { margin-bottom: 0; color: var(--espresso-70); font-size: 0.96rem; }

/* ---------------------------------- Footer -------------------------------- */

.site-footer {
  background: var(--espresso);
  color: rgba(247, 241, 230, 0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(247, 241, 230, 0.15);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-grid .logo { color: var(--cream); margin-bottom: 0.9rem; }

.footer-about p { color: rgba(247, 241, 230, 0.65); font-size: 0.95rem; }

.footer-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.7rem; }

.footer-links a {
  color: rgba(247, 241, 230, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.5);
}

/* ---------------------------------- Page intro (non-home pages) ---------- */

.page-intro { padding: 60px 0 20px; }

.page-intro .hero-eyebrow { margin-bottom: 1rem; }

.page-intro p.lede { font-size: 1.08rem; color: var(--espresso-70); max-width: 62ch; }

/* Full-bleed photo variant of .page-intro — used where a specific page
   wants its top intro box to be a full-width photo banner (like the
   homepage hero) rather than the plain light background. */

.page-intro-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 480px;
  display: flex;
  align-items: center;
  color: var(--white);
}

.page-intro-media,
.page-intro-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-intro-scrim {
  z-index: 1;
  background: linear-gradient(100deg, rgba(20, 11, 6, 0.82) 0%, rgba(20, 11, 6, 0.6) 55%, rgba(20, 11, 6, 0.4) 100%);
}

.page-intro-photo > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-intro-photo h1 { color: var(--white); }

.page-intro-photo p.lede { color: #FFFFFF; max-width: 62ch; }

@media (max-width: 640px) {
  .page-intro-photo { padding: 0; height: 580px; }
}

/* ---------------------------------- Consent checkbox ---------------------- */

.field-consent { margin-bottom: 1.4rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--espresso-70);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--roast);
  cursor: pointer;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--roast);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-btn:hover { color: var(--roast-dark); }

/* ---------------------------------- Policy modals -------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 11, 6, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-m);
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 2.4rem;
  box-shadow: 0 24px 60px rgba(20, 11, 6, 0.35);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--espresso-70);
  cursor: pointer;
}

.modal-close:hover { background: var(--cream-2); color: var(--espresso); }

.modal-box h2 { margin-bottom: 1.2rem; padding-right: 2rem; }

.modal-body p { font-size: 0.94rem; color: var(--espresso-70); margin-bottom: 1.1rem; }

.modal-body p:last-child { margin-bottom: 0; }

.modal-body strong { color: var(--espresso); }

.modal-body h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.6rem;
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body h4 {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 1.2rem 0 0.5rem;
}

.modal-body ul,
.modal-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.modal-body li {
  font-size: 0.94rem;
  color: var(--espresso-70);
  margin-bottom: 0.4rem;
}

.modal-body a { color: var(--roast); }

body.modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal-box { padding: 1.8rem; max-height: 88vh; }
}

/* ---------------------------------- FAQ accordion -------------------------- */

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--paper-line);
  padding: 1.1rem 0;
}

.faq-item:first-child { border-top: 1px solid var(--paper-line); }

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--roast);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0.8rem 0 0;
  color: var(--espresso-70);
  font-size: 0.96rem;
  max-width: 68ch;
}

/* Model photos specifically show the whole machine (no crop) — both
   backgrounds are white, so there's no visible seam. Other .photo-box
   uses (listing photos, category placeholders) keep the cover crop,
   since not all of those are on a clean white background. */

/* Salg af maskiner: tom-tilstand */
.salg-tom { padding: 4rem 0 6rem; }
.salg-tom p { font-family: var(--font-display, inherit); font-size: 1.5rem; color: var(--espresso); margin: 0; }

/* ---------------------------------- Maskiner til salg (WordPress) --------- */

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  overflow: hidden;
}
.listing-card .listing-info { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.listing-card .listing-info .btn { margin-top: auto; align-self: flex-start; }
.listing-card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.listing-card p { color: var(--espresso-70); font-size: 0.94rem; margin-bottom: 1rem; }
.listing-price { display: block; font-weight: 700; color: var(--espresso); margin-bottom: 0.7rem; }
.listing-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--sage-dark); background: #F3E4C4; border: 1px solid var(--sage);
  border-radius: 999px; padding: 0.2em 0.7em; margin-bottom: 0.6rem; align-self: flex-start;
}
.listing-card .photo-box img.listing-img { display: block; width: 100%; height: 100%; object-fit: cover; }
