/* ============================================================
   MAD GOAT PRESS, LLC — Editorial Design System
   Modern, visual, premium publishing company stylesheet.
   Mobile-first. No external frameworks.
   Usage: <link rel="stylesheet" href="css/style.css">
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --ink: #1a1a1a;
  --paper: #faf7f0;
  --paper-2: #ede6d6;
  --muted: #666;
  --accent: #c99a3f;
  --accent-dark: #a87f2c;
  --line: #d8d0bf;
  --green: #2d4a3e;
  --white: #fff;
  --danger: #b3261e;

  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06), 0 1px 4px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 6px 18px rgba(26, 26, 26, 0.10), 0 2px 6px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 18px 50px rgba(26, 26, 26, 0.16);
  --shadow-gold: 0 10px 30px rgba(201, 154, 63, 0.28);

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --header-h: 72px;
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  line-height: 1.18;
  margin: 0 0 0.55em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem); }

p { margin: 0 0 1rem; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--ink); text-decoration: underline; }

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: 0 0 0.4rem; }

button { font-family: inherit; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

strong { font-weight: 700; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section--tight { padding: 2.75rem 0; }
.section--alt { background-color: var(--paper-2); }
.section--dark { background-color: var(--ink); color: var(--paper); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(250, 247, 240, 0.78); }

.section-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem);
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 0.65rem;
}
.section-head--center .section-title::after { margin-left: auto; margin-right: auto; }

.section-lead {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- 4. Accessibility utilities ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--paper); text-decoration: none; }

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

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

/* ---------- 5. Image containers (proportional, never broken) ---------- */
.img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.img-box--wide { aspect-ratio: 16 / 9; }
.img-box--square { aspect-ratio: 1 / 1; }
.img-box--portrait { aspect-ratio: 3 / 4; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--sans);
  line-height: 1.1;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background-color: var(--ink); color: var(--paper); }

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background-color: var(--paper-2); color: var(--ink); text-decoration: none; }

.btn-block { width: 100%; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.08rem; min-height: 52px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- 7. Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(201, 154, 63, 0.14);
  color: var(--accent-dark);
  border: 1px solid rgba(201, 154, 63, 0.4);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- 8. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 240, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .brand-mark { color: var(--accent); }
.brand .brand-llc {
  font-size: 0.62em;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-left: 0.15rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}
.nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { background-color: var(--paper-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
  background-color: rgba(201, 154, 63, 0.1);
}

/* Mobile nav dropdown */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.5rem 1.25rem;
    gap: 0.1rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  .nav a[aria-current="page"] { background-color: transparent; }

  .nav-toggle.is-active span { background-color: transparent; }
  .nav-toggle.is-active span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span::after { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(201, 154, 63, 0.18), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 4vw, 3.5rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero p {
  font-size: clamp(1.05rem, 0.97rem + 0.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
}
.hero .btn-group { margin-top: 1.75rem; }
.hero-media .img-box {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

@media (min-width: 861px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

/* ---------- 10. Stats / trust strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat .stat-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.stat .stat-sub { font-size: 0.86rem; color: var(--muted); margin: 0.35rem 0 0; }

/* ---------- 11. Cards & grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover .img-box img { transform: scale(1.05); }
.card .img-box { border-radius: 0; }
.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; line-height: 1.55; }
.card-body .card-link { margin-top: 1rem; font-weight: 700; font-size: 0.92rem; color: var(--accent-dark); }

/* ---------- 12. Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.feature {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .feature-icon {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: var(--shadow-gold);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 620px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Two-column media + text block */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.split-media .img-box { box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.split-text .section-title { margin-bottom: 0.75rem; }
@media (min-width: 861px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--rev .split-media { order: 2; }
}

/* ---------- 13. Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem; top: 1.25rem;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 720px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 14. Page header band ---------- */
.page-header {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  color: var(--paper);
  padding: 3.25rem 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 200px at 85% 0%, rgba(201, 154, 63, 0.2), transparent 65%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header h1 {
  color: var(--paper);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.7rem);
  margin-bottom: 0.45rem;
}
.page-header p { color: rgba(250, 247, 240, 0.8); margin: 0; max-width: 660px; font-size: 1.05rem; }
.page-header .crumb {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
  letter-spacing: 0.03em;
}
.page-header .crumb a { color: var(--accent); }

/* ---------- 15. Forms ---------- */
.lead-form,
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form { max-width: 780px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-field--half { grid-column: span 1; }
  .form-grid .form-field--full { grid-column: span 2; }
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field label .req { color: var(--danger); }
.form-field .field-hint { font-size: 0.8rem; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 150px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 154, 63, 0.22);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.form-checkbox label { font-weight: 400; cursor: pointer; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

.form-error {
  display: none;
  margin-top: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: #fbe9e7;
  border: 1px solid #f3c1bb;
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.form-error.is-visible { display: block; }

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- 16. Map embed ---------- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 17. Legal / policy prose ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.55rem;
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.legal-content h3 {
  font-size: 1.22rem;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.legal-content p { margin-bottom: 1rem; color: var(--ink); }
.legal-content ul,
.legal-content ol { margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.45rem; }
.legal-content a { color: var(--accent-dark); text-decoration: underline; }
.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background-color: var(--ink);
  color: rgba(250, 247, 240, 0.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-col h2,
.footer-col h3 {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col .footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--paper);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.65rem;
}
.footer-col .footer-brand .brand-mark { color: var(--accent); }
.footer-col p { color: rgba(250, 247, 240, 0.72); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(250, 247, 240, 0.72);
  line-height: 1.75;
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: rgba(250, 247, 240, 0.82);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-links button {
  background: none;
  border: none;
  color: rgba(250, 247, 240, 0.82);
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: color 0.2s ease;
}
.footer-links button:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 154, 63, 0.25);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(250, 247, 240, 0.55);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(250, 247, 240, 0.6);
}

@media (min-width: 620px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
}

/* ---------- 19. Cookie banner & settings ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
  max-width: var(--container);
  margin: 0 auto;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--ink); }
.cookie-banner .btn-group { flex-wrap: wrap; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (min-width: 760px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .cookie-banner p { max-width: 62%; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.is-visible { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modal-close:hover { background: var(--paper-2); }
.modal-body { padding: 1.35rem; }
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--line);
}

.cookie-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.85rem;
}
.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.cookie-category-head h3 { margin: 0; font-size: 1rem; font-family: var(--sans); }
.cookie-category p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.cookie-toggle { position: relative; display: inline-flex; align-items: center; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle .switch {
  width: 44px; height: 24px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
  cursor: pointer;
  flex: 0 0 auto;
}
.cookie-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.cookie-toggle input:checked + .switch { background: var(--accent); }
.cookie-toggle input:checked + .switch::after { transform: translateX(20px); }
.cookie-toggle input:disabled + .switch { background: var(--accent); cursor: not-allowed; opacity: 0.7; }
.cookie-toggle input:focus-visible + .switch { outline: 3px solid var(--accent); outline-offset: 2px; }

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