/* ==========================================================================
   Limpiezas Senyera S.L. — shared stylesheet
   Pure CSS design system. No frameworks.
   Tokens: light theme by default, dark theme via prefers-color-scheme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces & text */
  --site-bg: #f6f9f8;
  --site-surface: #ffffff;
  --site-surface-2: #ecf3f0;
  --site-text: #1a2622;
  --site-muted: #5a6b65;
  --site-border: #d9e3de;

  /* Brand palette */
  --site-primary: #0c7c6b;
  --site-primary-strong: #0a5f52;
  --site-on-primary: #ffffff;
  --site-primary-soft: #ddf0ea;
  --site-secondary: #134f5b;
  --site-accent: #e39a2e;

  /* Status colors */
  --site-success: #1f8a4c;
  --site-warning: #b27712;
  --site-error: #c24141;
  --site-info: #2a6ca8;

  /* Footer (deep petrol, independent of dark mode) */
  --site-footer-bg: #0f2b27;
  --site-footer-text: #d7e6e1;
  --site-footer-muted: #8fb0a8;
  --site-footer-border: #234a43;

  /* Header scrim */
  --site-header-bg: rgba(246, 249, 248, 0.86);

  /* Shape & elevation (radii kept in the 8-12px range) */
  --site-radius-sm: 8px;
  --site-radius: 10px;
  --site-radius-lg: 12px;
  --site-shadow: 0 10px 30px rgba(10, 60, 52, 0.08);
  --site-shadow-hover: 0 14px 34px rgba(10, 60, 52, 0.14);

  /* Layout */
  --site-container: 1140px;
  --site-header-h: 72px;
  --site-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --site-font-heading: "Lora", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --site-bg: #0d1513;
    --site-surface: #14201d;
    --site-surface-2: #1a2825;
    --site-text: #e6eeeb;
    --site-muted: #97aba4;
    --site-border: #263631;

    --site-primary: #35b79f;
    --site-primary-strong: #4fc9b1;
    --site-on-primary: #06201a;
    --site-primary-soft: #12312b;
    --site-secondary: #6fb9cb;
    --site-accent: #edb054;

    --site-success: #4cc07a;
    --site-warning: #d9a23c;
    --site-error: #e07070;
    --site-info: #6fa8dc;

    --site-header-bg: rgba(13, 21, 19, 0.86);
    --site-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --site-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--site-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--site-text);
  background-color: var(--site-bg);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--site-font-heading);
  line-height: 1.2;
  color: var(--site-text);
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--site-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35em;
}

/* Anchor offset for the sticky header */
[id] {
  scroll-margin-top: calc(var(--site-header-h) + 16px);
}

/* --------------------------------------------------------------------------
   3. Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--site-primary);
  color: var(--site-on-primary);
  padding: 10px 18px;
  border-radius: 0 0 var(--site-radius) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  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(--site-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Custom scrollbar
   -------------------------------------------------------------------------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--site-border) var(--site-bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--site-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--site-border);
  border-radius: 8px;
  border: 2px solid var(--site-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--site-primary);
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--site-container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--site-surface);
  border-block: 1px solid var(--site-border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
  color: var(--site-muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* --------------------------------------------------------------------------
   6. Chips, badges & notes
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--site-primary-soft);
  color: var(--site-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-accent {
  background: var(--site-surface-2);
  color: var(--site-accent);
}

@supports (background: color-mix(in srgb, red 10%, blue)) {
  .chip-accent {
    background: color-mix(in srgb, var(--site-accent) 18%, transparent);
  }
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-left: 3px solid var(--site-accent);
  background: var(--site-surface-2);
  border-radius: 0 var(--site-radius) var(--site-radius) 0;
  color: var(--site-muted);
  font-size: 0.92rem;
  margin: 16px 0;
}

.note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--site-accent);
}

.note p { margin: 0; }

/* --------------------------------------------------------------------------
   7. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--site-radius);
  border: 1.5px solid transparent;
  font-family: var(--site-font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--site-primary);
  color: var(--site-on-primary);
}

.btn-primary:hover {
  background: var(--site-primary-strong);
  box-shadow: var(--site-shadow);
}

.btn-outline {
  border-color: var(--site-border);
  color: var(--site-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--site-primary);
  color: var(--site-primary);
}

.btn-light {
  background: var(--site-surface);
  color: var(--site-primary-strong);
}

.btn-light:hover {
  background: var(--site-primary-soft);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: transparent;
}

.btn-ghost-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  border-color: var(--site-error);
  color: var(--site-error);
  background: transparent;
}

.btn-danger:hover {
  background: var(--site-error);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
}

.link-arrow svg {
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--site-bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--site-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--site-border);
  box-shadow: 0 4px 18px rgba(10, 60, 52, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--site-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--site-text);
  font-weight: 700;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--site-primary);
  color: var(--site-on-primary);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--site-font-heading);
  font-size: 1.12rem;
  color: var(--site-primary);
}

.brand-legal {
  font-size: 0.72rem;
  color: var(--site-muted);
  letter-spacing: 0.05em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--site-radius-sm);
  color: var(--site-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--site-primary);
  background: var(--site-primary-soft);
  text-decoration: none;
}

.nav-link.active {
  color: var(--site-primary);
  background: var(--site-primary-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-call {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  background: var(--site-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--site-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--site-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 20px;
    background: var(--site-surface);
    border-bottom: 1px solid var(--site-border);
    box-shadow: 0 18px 30px rgba(10, 60, 52, 0.12);
  }

  .nav-open .primary-nav { display: flex; }

  .nav-link {
    padding: 12px 14px;
    font-size: 1.02rem;
  }
}

@media (max-width: 460px) {
  .btn-call span { display: none; }
  .btn-call { padding: 8px 12px; }
  .brand-legal { display: none; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--site-primary-soft), transparent 65%),
    var(--site-bg);
  padding: 88px 0 76px;
}

.hero-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--site-primary-soft);
  filter: blur(75px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-blob-1 { top: -160px; right: -120px; }
.hero-blob-2 { bottom: -200px; left: -140px; opacity: 0.4; }

.hero-inner {
  position: relative;
  max-width: 780px;
}

.hero h1 {
  margin: 18px 0 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--site-primary);
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--site-muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 620px;
  color: var(--site-muted);
  font-size: 0.9rem;
  margin: 0;
}

.hero-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--site-info);
}

@media (max-width: 680px) {
  .hero { padding: 60px 0 56px; }
  .hero-cta .btn { width: 100%; }
}

/* Subpage hero (smaller, used on inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 360px at 90% -20%, var(--site-primary-soft), transparent 60%),
    var(--site-bg);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--site-border);
}

.page-hero-inner { max-width: 780px; }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  padding: 26px;
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-shadow-hover);
  border-color: var(--site-primary);
}

.card h3 { margin-top: 14px; }
.card p { color: var(--site-muted); margin-bottom: 14px; }

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

/* Process steps */
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--site-primary);
  color: var(--site-on-primary);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Icon circle used in info blocks */
.icon-circle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--site-primary-soft);
  color: var(--site-primary);
  margin-bottom: 14px;
}

/* Example / project cards */
.example-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.example-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.example-meta li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.95rem;
}

.example-meta svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--site-success);
}

.example-card .note { margin-bottom: 0; }

/* Guide article */
.guide-article {
  padding: 34px 0;
  border-bottom: 1px solid var(--site-border);
}

.guide-article:last-of-type { border-bottom: none; }
.guide-article h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.guide-article p { max-width: 760px; }

/* --------------------------------------------------------------------------
   11. Service detail sections (servicios.html)
   -------------------------------------------------------------------------- */
.service-detail { margin-bottom: 28px; }

.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 6px;
}

@media (max-width: 680px) {
  .service-cols { grid-template-columns: 1fr; }
}

.service-cols h3 {
  font-family: var(--site-font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-muted);
  margin-bottom: 10px;
}

.service-cols ul { list-style: none; margin: 0; padding: 0; }

.service-cols li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.service-cols li svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.list-yes svg { color: var(--site-success); }
.list-no svg { color: var(--site-error); }

/* --------------------------------------------------------------------------
   12. FAQ (native details/summary — accessible without JS)
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; }

.faq details {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  min-height: 56px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--site-primary);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 20px 18px;
  color: var(--site-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. CTA band & contact
   -------------------------------------------------------------------------- */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--site-radius-lg);
  background: linear-gradient(120deg, var(--site-primary-strong), var(--site-secondary));
  color: #ffffff;
  padding: 48px 40px;
}

.cta-card h2 { color: #ffffff; }
.cta-card p { color: rgba(255, 255, 255, 0.88); max-width: 620px; }

.cta-card .hero-cta { margin-bottom: 0; }

.cta-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(70px);
  top: -140px;
  right: -80px;
  pointer-events: none;
}

@media (max-width: 680px) {
  .cta-card { padding: 36px 24px; }
  .cta-card .hero-cta .btn { width: 100%; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

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

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--site-border);
}

.contact-line:last-of-type { border-bottom: none; }

.contact-line .icon-circle {
  margin: 0;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-weight: 600;
  color: var(--site-text);
}

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--site-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--site-primary);
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 16px;
}

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

.field .hint {
  font-weight: 400;
  color: var(--site-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--site-font-body);
  font-size: 0.98rem;
  color: var(--site-text);
  background: var(--site-bg);
  border: 1.5px solid var(--site-border);
  border-radius: var(--site-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--site-primary);
  box-shadow: 0 0 0 3px var(--site-primary-soft);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--site-muted);
  opacity: 0.75;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 2px;
  accent-color: var(--site-primary);
  flex-shrink: 0;
}

.consent label {
  font-size: 0.9rem;
  color: var(--site-muted);
  font-weight: 400;
}

.form-note {
  font-size: 0.85rem;
  color: var(--site-muted);
  margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   15. Presupuesto: preview box & toolbar
   -------------------------------------------------------------------------- */
.builder-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

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

.builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

@media (max-width: 560px) {
  .builder-toolbar .btn { width: 100%; }
}

.status-line {
  min-height: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--site-success);
  margin: 6px 0 0;
}

.preview-box {
  margin: 0;
  padding: 20px;
  min-height: 320px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--site-text);
  background: var(--site-surface-2);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
}

.prefill-banner {
  display: none;
  padding: 12px 16px;
  border-radius: var(--site-radius);
  background: var(--site-surface-2);
  border: 1px solid var(--site-info);
  color: var(--site-text);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

@supports (background: color-mix(in srgb, red 10%, blue)) {
  .prefill-banner {
    background: color-mix(in srgb, var(--site-info) 12%, transparent);
  }
}

.prefill-banner.visible { display: block; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.3fr;
  gap: 32px;
  padding: 52px 0 36px;
}

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

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

.footer-col h3 {
  color: #ffffff;
  font-family: var(--site-font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

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

.footer-col li { margin-bottom: 4px; }

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--site-footer-muted);
  font-size: 0.93rem;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact {
  font-size: 0.93rem;
  color: var(--site-footer-muted);
}

.footer-contact .contact-line {
  border-bottom-color: var(--site-footer-border);
}

.footer-contact .contact-line:last-of-type { border-bottom: none; }

.footer-contact a {
  color: var(--site-footer-text);
  font-weight: 600;
}

.footer-contact a:hover { color: #ffffff; }

.footer-contact .icon-circle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--site-footer-text);
}

.footer-bottom {
  border-top: 1px solid var(--site-footer-border);
  padding: 18px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--site-footer-muted);
}

.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   17. Cookie banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 760px;
  margin-inline: auto;
  padding: 16px 20px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  box-shadow: 0 18px 44px rgba(8, 40, 35, 0.25);
}

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--site-text);
  flex: 1 1 320px;
}

.cookie-banner p a { font-weight: 600; }

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-actions .btn { min-height: 44px; padding: 8px 20px; }

/* --------------------------------------------------------------------------
   18. Reveal-on-scroll animation
   Applied only when JS is available (html.js), so content is never hidden
   for users without JavaScript. Disabled for reduced-motion users.
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .link-arrow svg {
    transition: none;
  }
}
