/* =========================================================================
   Zuglói szőnyegtisztító ház — styles.css
   Visual system: Minimalism & Swiss Style (primary) + Swiss Modernism 2.0
   grid (secondary) + restrained micro-interactions (accent).
   Strict 12-col grid, large type, exposed grid lines, one action accent.
   ========================================================================= */

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* Color — user-provided palette (overrides generic Swiss red).
     Brand blue = structure/identity; orange = the single ACTION accent,
     applied identically to every conversion CTA. Dark blue carries text. */
  --color-bg: #FFFFFF;
  --color-surface: #F6F1EA;        /* warm beige */
  --color-surface-2: #EAF6FB;      /* light airy blue */
  --color-surface-dark: #12384F;   /* deep blue panel */
  --color-text: #12384F;           /* dark blue, headings + body */
  --color-text-muted: #4A6577;     /* muted blue-grey, passes 4.5:1 on light */
  --color-text-invert: #FFFFFF;
  --color-text-invert-muted: #BFD7E4;
  --color-primary: #1E6F9F;        /* brand blue */
  --color-primary-hover: #155A82;
  --color-accent: #F59E0B;         /* CTA orange/gold — action only */
  --color-accent-hover: #D9890A;
  --color-on-accent: #12384F;      /* dark text on orange (contrast 5.6:1) */
  --color-border: #DCE3E8;
  --color-border-strong: #12384F;

  /* Type scale — modular ratio 1.333, base 16px */
  --text-sm: 0.75rem;
  --text-base: 1rem;
  --text-lg: 1.333rem;
  --text-xl: 1.777rem;
  --text-2xl: 2.369rem;
  --text-3xl: 3.157rem;
  --text-display: clamp(2.6rem, 6vw, 4.209rem);

  /* Spacing scale (4px base) */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px;  --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --space-section: clamp(48px, 6vw, 88px);

  /* Shape — Swiss: near-sharp corners */
  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --radius-pill: 999px;

  /* Fonts — single grotesque family with weight variation ("Minimal Swiss").
     No CDN: web-safe grotesque stack mirroring Inter/Helvetica character. */
  --font-heading: "Helvetica Neue", "Arial Nova", Arial, "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --z-header: 50;
  --z-mobilebar: 40;
  --z-menu: 60;
}

/* ----------------------------------------------------------------- RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* Focus — visible, style-consistent (square Swiss outline) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.section-cta :focus-visible,
.surface-dark :focus-visible { outline-color: var(--color-accent); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border: 3px solid var(--color-surface); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-hover); }
html { scrollbar-color: var(--color-primary) var(--color-surface); }

.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;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--color-text); color: #fff; padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----------------------------------------------------------------- LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.section { padding-block: var(--space-section); position: relative; }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: var(--text-display); max-width: none; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); max-width: none; }
h3 { font-size: var(--text-lg); letter-spacing: -0.01em; font-weight: 700; }
p { max-width: none; }

/* Eyebrow / section number — recurring Swiss motif */
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.eyebrow-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4em; padding: 2px 6px;
  background: var(--color-text); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.05em; border-radius: var(--radius-sm);
}
.eyebrow-light { color: var(--color-text-invert-muted); }
.eyebrow-light .eyebrow-num { background: var(--color-accent); color: var(--color-on-accent); }
.accent-text { color: var(--color-primary); }

.section-head { margin-bottom: var(--space-7); max-width: none; }
.section-intro, .section-head .section-intro { color: var(--color-text-muted); font-size: var(--text-lg); margin-top: var(--space-4); }

/* Exposed grid-line motif */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.grid-lines--dark { background-image: linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px); opacity: 1; }

/* ----------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color .2s ease-out, color .2s ease-out,
              border-color .2s ease-out, transform .2s ease-out;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn .ico { flex: 0 0 auto; }

/* The single action accent — every conversion CTA */
.btn-cta {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
.btn-cta:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); }

.btn-primary {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.btn-primary:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: var(--color-text-invert);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

.btn-lg { min-height: 56px; padding: 16px 30px; font-size: var(--text-lg); }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- HEADER */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text); min-height: 44px; padding-block: 4px; }
.brand:hover { color: var(--color-text); }
.brand-mark { color: var(--color-primary); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-heading); font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: var(--space-5); align-items: center; }
.nav-list a {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  color: var(--color-text); padding: 8px 2px; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease-out;
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }

.header-cta { padding: 10px 18px; min-height: 44px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 48px; height: 48px; background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--color-text); margin-inline: auto; transition: transform .2s ease-out, opacity .2s ease-out; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- HERO */
.hero { position: relative; padding-top: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(36px, 4.5vw, 64px); overflow: hidden; background: var(--color-bg); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-block: var(--space-2) var(--space-4); }
.hero-lead { font-size: 1rem; line-height: 1.6; color: var(--color-text-muted); margin-bottom: var(--space-5); }

.hero-points {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-5);
}
.hero-points li {
  position: relative; padding-left: 22px;
  font-weight: 600; font-size: 0.95rem; color: var(--color-text);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px; background: var(--color-primary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
/* Slimmer hero buttons so both fit side by side */
.hero .hero-cta-row .btn { padding-inline: 16px; font-size: 0.92rem; }
.hero-contact {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  padding-top: var(--space-4); border-top: 1px solid var(--color-border);
}
.hero-contact div { display: flex; flex-direction: column; gap: var(--space-1); }
.hero-contact dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.hero-contact dd { font-weight: 600; }
/* Keep a 44px tap area for the email link without enlarging the label↔value
   gap: pad the hit box, then pull the layout box back with negative margin so
   it lines up exactly like the plain-text address value above it. */
.hero-contact dd a { display: inline-flex; align-items: center; padding-block: 12px; margin-block: -12px; }

/* Hero visual / carousel */
.hero-visual { position: relative; }
.carousel {
  border: 2px solid var(--color-text);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.carousel-viewport { position: relative; }
.carousel-track { display: block; }
.slide { display: block; }
.slide[hidden] { display: none; }

.ba { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.ba-img {
  position: absolute; inset: 0; overflow: hidden;
}
.ba-after { z-index: 1; }
.ba-before { z-index: 2; width: 50%; border-right: 3px solid #fff; }

/* CSS-built carpet placeholder patterns (no external images) */
.ba-img[data-pattern]::after {
  content: ""; position: absolute; inset: 0;
  background-blend-mode: multiply;
}
.ba-img { background-color: #cdd6cf; }
.ba-after[data-pattern="rich"]   { background:
  repeating-linear-gradient(45deg, #1E6F9F 0 14px, #2A82B6 14px 28px),
  radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 60%); }
.ba-before[data-pattern="dirty"] { background:
  repeating-linear-gradient(45deg, #6f7163 0 14px, #5c5e52 14px 28px); filter: saturate(.5) brightness(.85); }

.ba-after[data-pattern="light"]  { background:
  repeating-linear-gradient(90deg, #EAF6FB 0 16px, #d4ebf5 16px 32px); }
.ba-before[data-pattern="stain"] { background:
  repeating-linear-gradient(90deg, #b9b2a3 0 16px, #a59d8c 16px 32px); }

.ba-after[data-pattern="large"]  { background:
  repeating-linear-gradient(0deg, #1E6F9F 0 18px, #185f88 18px 36px); }
.ba-before[data-pattern="grey"]  { background:
  repeating-linear-gradient(0deg, #8c8c86 0 18px, #777771 18px 36px); }

.ba-after[data-pattern="delicate"] { background:
  repeating-linear-gradient(135deg, #F6F1EA 0 12px, #e8ddca 12px 24px),
  radial-gradient(circle at 70% 40%, rgba(30,111,159,.18), transparent 55%); }
.ba-before[data-pattern="worn"]    { background:
  repeating-linear-gradient(135deg, #b0a895 0 12px, #968f7e 12px 24px); filter: brightness(.88); }

.ba-tag {
  position: absolute; top: 12px; z-index: 3;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-sm);
}
.ba-tag-before { left: 12px; background: var(--color-text); color: #fff; }
.ba-tag-after  { right: 12px; background: var(--color-accent); color: var(--color-on-accent); }

.ba-range {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; background: #fff; border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 4px rgba(18,56,79,.12);
}
.ba-handle::before, .ba-handle::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba-handle::before { left: 7px; border-right: 7px solid var(--color-text); transform: translateY(-50%); }
.ba-handle::after  { right: 7px; border-left: 7px solid var(--color-text); transform: translateY(-50%); }

.ba figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: var(--space-3) var(--space-4);
  font-size: 0.82rem; color: var(--color-text);
  background: rgba(246, 241, 234, 0.94);
  border-top: 1px solid var(--color-border);
}
.ph-note { display: inline-block; color: var(--color-text-muted); font-style: italic; font-size: 0.78rem; }

.carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border); background: #fff;
}
.carousel-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-bg); color: var(--color-text);
  border: 2px solid var(--color-text); border-radius: var(--radius-md);
  transition: background-color .2s ease-out, color .2s ease-out;
}
.carousel-btn:hover { background: var(--color-text); color: #fff; }
.carousel-dots { display: flex; gap: var(--space-2); }
.carousel-dots button {
  width: 44px; height: 44px; padding: 0; background: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.carousel-dots button::before {
  content: ""; width: 22px; height: 3px; background: var(--color-border); transition: background-color .2s ease-out;
}
.carousel-dots button[aria-current="true"]::before { background: var(--color-primary); }

.proof-placeholder {
  margin-top: var(--space-4);
  font-size: 0.82rem; color: var(--color-text-muted);
  border: 1px dashed var(--color-border); border-left: 3px solid var(--color-accent);
  padding: var(--space-3) var(--space-4); background: var(--color-surface);
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------- SURFACES */
.surface-beige { background: var(--color-surface); }
.surface-blue { background: var(--color-surface-2); }
.surface-dark { background: var(--color-surface-dark); color: var(--color-text-invert); }
.surface-dark h2, .surface-dark h3 { color: var(--color-text-invert); }

/* Full-width content layout: the section label sits above the content, which
   then uses the full container width (no narrow side rail / half columns). */
.split { display: block; }
.split-aside { position: static; margin-bottom: var(--space-4); }
.split-aside .eyebrow { flex-direction: row; align-items: center; gap: var(--space-3); margin-bottom: 0; }
.split-main { max-width: none; }
.split-main h2 { margin-bottom: var(--space-5); }
.split-main p + p, .split-main ol + p, .split-main ul + p, .split-main p + ul { margin-top: var(--space-4); }

.prose p { color: var(--color-text); }
.lead-muted { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.list-label { font-weight: 700; margin-bottom: var(--space-3); }

.pull-quote {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25;
  letter-spacing: -0.01em; color: var(--color-text);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  margin-block: var(--space-6);
}
.pull-quote--price { border-left-color: var(--color-accent); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.35; }

.callout {
  margin-top: var(--space-5);
  background: var(--color-surface-2);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
}
.callout--inline { background: var(--color-surface); }
.cta-row-spaced { margin-top: var(--space-5); }

/* ----------------------------------------------------------------- BENEFIT GRID */
.benefit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--color-text);
  border-left: 1px solid var(--color-border);
}
.benefit-card {
  position: relative; padding: var(--space-6) var(--space-5) var(--space-7);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: background-color .2s ease-out;
}
.benefit-card:hover { background: var(--color-surface-2); }
.benefit-num {
  position: absolute; top: var(--space-4); right: var(--space-4);
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
  color: var(--color-text-muted); letter-spacing: 0.05em;
}
.ico-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--space-4);
  color: var(--color-primary);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.benefit-card h3 { margin-bottom: var(--space-3); }
.benefit-card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* ----------------------------------------------------------------- TICK GRID */
.tick-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-1); margin-block: var(--space-4);
}
.tick-grid li { position: relative; padding-left: 28px; padding-block: var(--space-2); }
.tick-grid li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 14px; height: 8px; border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary); transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- PROCESS */
.process-timeline {
  display: grid; grid-template-columns: repeat(5, 1fr);
  counter-reset: step; gap: 0;
  border-top: 2px solid var(--color-text);
}
.process-step {
  position: relative; padding: var(--space-6) var(--space-4) var(--space-5);
  border-right: 1px solid var(--color-border);
  counter-increment: step; overflow: hidden;
}
/* Oversized ghost numeral — editorial depth, purely decorative */
.process-step > .step-no { position: relative; z-index: 1; }
.process-step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; right: -6px; bottom: -22px; z-index: 0;
  font-family: var(--font-heading); font-weight: 800; font-size: 6.5rem;
  line-height: 1; letter-spacing: -0.04em;
  color: var(--color-primary); opacity: 0.07; pointer-events: none;
}
.process-step:last-child { border-right: 0; }
.process-step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 4px;
  background: var(--color-primary); transition: width .3s ease-out;
}
.process-step:hover::before { width: 100%; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: var(--space-4);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
  color: #fff; background: var(--color-primary); border-radius: var(--radius-md);
}
.process-step h3 { position: relative; z-index: 1; margin-bottom: var(--space-2); font-size: var(--text-base); }
.process-step p { position: relative; z-index: 1; font-size: 0.9rem; color: var(--color-text-muted); }

/* ----------------------------------------------------------------- SERVICES */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.service-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  transition: transform .2s ease-out, border-color .2s ease-out;
}
.service-card:hover { transform: translateY(-4px); border-top-color: var(--color-accent); }
.service-card h3 { margin-bottom: var(--space-3); }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.service-card--wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; }
.service-card--wide .ico-box { margin-bottom: 0; }
.service-card--wide .service-card-body h3 { margin-bottom: var(--space-3); }

/* ----------------------------------------------------------------- FEATURE LIST (dark) */
.feature-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.feature-list li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-5); background: var(--color-surface-dark);
}
.fl-mark { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 6px; background: var(--color-accent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.feature-list strong { display: block; color: #fff; font-family: var(--font-heading); margin-bottom: 2px; }
.feature-list span { color: var(--color-text-invert-muted); font-size: 0.92rem; }

/* ----------------------------------------------------------------- MINI STEPS */
.mini-steps-title { font-size: var(--text-base); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.mini-steps { display: grid; gap: var(--space-2); margin-block: var(--space-3) var(--space-4); }
.mini-steps li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.mini-steps span {
  flex: 0 0 auto; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  background: var(--color-surface-2); color: var(--color-primary); border-radius: var(--radius-md);
}
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  margin-top: var(--space-6); padding: var(--space-5);
  background: var(--color-surface); border-left: 4px solid var(--color-accent); border-radius: var(--radius-sm);
}
.inline-cta p { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); margin: 0; flex: 1 1 240px; }

/* ----------------------------------------------------------------- VALUE TABLE */
.value-table-wrap { overflow-x: auto; border: 2px solid var(--color-text); border-radius: var(--radius-md); }
.value-table { width: 100%; border-collapse: collapse; min-width: 460px; background: var(--color-bg); }
.value-table th, .value-table td { text-align: left; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.value-table thead th { background: var(--color-text); color: #fff; font-family: var(--font-heading); letter-spacing: 0.02em; }
.value-table tbody th { font-family: var(--font-heading); font-weight: 700; color: var(--color-text); width: 42%; }
.value-table tbody td { color: var(--color-text-muted); }
.value-table tbody tr:nth-child(even) { background: var(--color-surface); }
.value-table tbody tr:hover { background: var(--color-surface-2); }
.value-table tr:last-child th, .value-table tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------------- GUARANTEE */
.guarantee-panel {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px);
  align-items: start;
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 56px);
}
.guarantee-icon {
  width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-bg); color: var(--color-primary);
  border: 2px solid var(--color-text); border-radius: var(--radius-md);
}
.guarantee-body h2 { margin-bottom: var(--space-4); }

/* ----------------------------------------------------------------- CTA + FORM */
.section-cta { background: var(--color-surface-dark); color: var(--color-text-invert); overflow: hidden; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta-copy h2 { color: #fff; margin-block: var(--space-3) var(--space-5); }
.cta-lead { font-size: var(--text-lg); color: var(--color-text-invert-muted); margin-bottom: var(--space-6); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.contact-block { font-style: normal; display: grid; gap: var(--space-2); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.18); }
.contact-block strong { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; }
.contact-block span, .contact-block a { color: var(--color-text-invert-muted); }
.contact-block a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }
.contact-block a:hover { color: #fff; }

.cta-form-wrap { background: var(--color-bg); color: var(--color-text); border-radius: var(--radius-md); border: 2px solid var(--color-text); }
.contact-form { padding: clamp(24px, 3vw, 36px); display: grid; gap: var(--space-4); }
.form-title { font-size: var(--text-xl); }
.form-sub { color: var(--color-text-muted); font-size: 0.92rem; margin-top: calc(-1 * var(--space-2)); }
.field { display: grid; gap: var(--space-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.req { color: #8A5300; }
.field input, .field textarea {
  font: inherit; width: 100%; padding: 12px 14px;
  background: var(--color-surface); color: var(--color-text);
  border: 2px solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color .2s ease-out, background-color .2s ease-out;
}
.field input:hover, .field textarea:hover { border-color: var(--color-text-muted); }
.field input:focus-visible, .field textarea:focus-visible { background: #fff; border-color: var(--color-primary); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 88px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C0392B; background: #fdecea; }
.field-error { color: #C0392B; font-size: 0.82rem; font-weight: 600; }
.form-note { font-size: 0.78rem; color: var(--color-text-muted); }
.form-demo-note {
  font-size: 0.82rem; color: var(--color-text);
  background: var(--color-surface-2); border-left: 3px solid var(--color-accent);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.form-success {
  background: var(--color-surface-2); border-left: 4px solid var(--color-primary);
  padding: var(--space-3) var(--space-4); font-weight: 600; border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------- FAQ */
.faq { display: grid; gap: var(--space-3); max-width: none; }
.faq-item {
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md); background: var(--color-bg);
  transition: border-color .2s ease-out;
}
.faq-item[open] { border-left-color: var(--color-accent); background: var(--color-surface); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-base);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--color-primary);
  transition: transform .2s ease-out, opacity .2s ease-out;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-body { padding: 0 var(--space-5) var(--space-5); }
.faq-body p { color: var(--color-text-muted); }

/* ----------------------------------------------------------------- FOOTER */
.site-footer { background: var(--color-surface-dark); color: var(--color-text-invert-muted); padding-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-7); padding-bottom: var(--space-7); }
.footer-brand { display: grid; gap: var(--space-3); }
.footer-brand .brand-mark { color: var(--color-accent); }
.footer-brand strong { color: #fff; font-family: var(--font-heading); }
/* "Készítette" credit — colours adapted for the dark footer (the supplied
   #284b63 would be unreadable here) so it stays legible and accessible. */
.footer-credit { margin-top: var(--space-3); }
.footer-credit-label { color: #fff; font-weight: 700; margin-bottom: 6px; font-size: 0.85rem; }
.footer-credit-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--color-text-invert-muted); text-decoration: none; font-weight: 600;
}
.footer-credit-link:hover { color: #fff; }
.footer-credit-link img { width: 30px; height: auto; margin-right: 10px; border-radius: 2px; }
.footer-col h2, .footer-col h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-4); font-weight: 700; }
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a, .footer-col address { color: var(--color-text-invert-muted); font-style: normal; }
.footer-col address { display: grid; gap: var(--space-2); }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-4); border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.82rem;
}
.footer-bottom p { display: inline-flex; align-items: center; }
.footer-bottom a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--color-text-invert-muted); text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: #fff; }

/* ----------------------------------------------------------------- MOBILE CALL BAR */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; padding: 12px;
  background: var(--color-accent); color: var(--color-on-accent);
  font-family: var(--font-heading); font-weight: 800;
  box-shadow: 0 -2px 0 rgba(18,56,79,0.15);
}
.mobile-call-bar:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

/* ----------------------------------------------------------------- ENTRANCE
   One quiet load-time fade on the hero copy. Uses an animation with
   fill-mode "both" so the element always settles fully visible — content is
   never left hidden, and there is no scroll-triggered choreography. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy { animation: fade-up .55s ease-out both; }
.hero-visual { animation: fade-up .55s ease-out .08s both; }

/* Anchor offset for the sticky header */
:target { scroll-margin-top: 88px; }
section[id], [id] { scroll-margin-top: 88px; }

/* =========================================================================
   POLISH / SIGNATURE DETAILS
   Restrained Swiss flourishes: a reading-progress rule, crosshair grid marks,
   ghost numerals, an oversized footer wordmark, an editorial drop cap and a
   vertical edge label. All decorative pieces are aria-hidden and degrade to
   nothing on narrow screens / reduced motion.
   ========================================================================= */

/* Scroll progress — a single hairline of the action accent */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-header) + 1);
  background: transparent; pointer-events: none;
}
.scroll-progress-bar {
  display: block; height: 100%; width: 100%;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .1s linear;
}

/* Crosshair "+" marks at opposite corners — recurring Swiss-grid signature */
.crosshairs { position: relative; }
.crosshairs::before, .crosshairs::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--color-primary), var(--color-primary)) center / 2px 100% no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) center / 100% 2px no-repeat;
}
.crosshairs::before { top: -9px; left: -9px; }
.crosshairs::after  { bottom: -9px; right: -9px; }

/* Editorial vertical edge label running up the hero's left margin */
.edge-label {
  position: absolute; left: 18px; top: 50%; z-index: 1;
  transform: rotate(180deg) translateY(50%); writing-mode: vertical-rl;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-text-muted);
  opacity: 0.7; white-space: nowrap; pointer-events: none;
}
.edge-label::after {
  content: ""; position: absolute; left: 50%; bottom: -28px; width: 1px; height: 20px;
  background: var(--color-border); transform: translateX(-50%);
}

/* Carousel meta bar: leading-zero counter + drag hint */
.carousel-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border); background: #fff;
}
.carousel-count {
  font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.06em; color: var(--color-text);
}
.carousel-count b { color: var(--color-primary); }
.carousel-hint {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.carousel-hint::before {
  content: ""; width: 22px; height: 2px; background: var(--color-primary);
  position: relative;
}

/* Editorial drop cap on the intro paragraph */
.has-dropcap::first-letter {
  float: left; font-family: var(--font-heading); font-weight: 800;
  font-size: 2.8em; line-height: 0.82; padding: 4px 10px 0 0;
  color: var(--color-primary);
}

/* Oversized footer wordmark — print-poster scale, clipped to the band */
.footer-wordmark {
  overflow: hidden; line-height: 0; margin-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-wordmark span {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(5rem, 22vw, 18rem); letter-spacing: -0.03em;
  line-height: 0.9; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.16);
  text-stroke: 1px rgba(255,255,255,0.16);
  padding-top: 0.12em;
  -webkit-user-select: none; user-select: none;
}

/* Back-to-top */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-header);
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-text); color: #fff;
  border: 2px solid var(--color-text); border-radius: var(--radius-md);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease-out, transform .2s ease-out, background-color .2s ease-out;
}
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--color-primary); border-color: var(--color-primary); }
.back-to-top[hidden] { display: none; }

/* Active nav (scrollspy) — persistent underline on the current section link */
.nav-list a[aria-current="true"] { color: var(--color-primary); }
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }

/* Imprint (impresszum) page */
.imprint { display: grid; gap: 0; margin-top: var(--space-6); max-width: 680px; border-top: 2px solid var(--color-text); }
.imprint div { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.imprint dt { font-family: var(--font-heading); font-weight: 700; color: var(--color-text); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.imprint dd { color: var(--color-text); font-weight: 600; }
.imprint dd a { display: inline-flex; align-items: center; min-height: 44px; }
.imprint-back { margin-top: var(--space-7); }
@media (max-width: 520px) {
  .imprint div { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ----------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1200px) {
  .edge-label { display: none; } /* no clear margin to run the rail in */
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; max-width: 560px; }
  .cta-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { position: static; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 2px solid var(--color-text);
    padding: var(--space-2) clamp(20px, 5vw, 48px) var(--space-4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
  }
  .nav-list.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list a { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .nav-list a::after { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-aside { position: static; }
  .split-aside .eyebrow { flex-direction: row; }
  .guarantee-panel { grid-template-columns: 1fr; }
  .tick-grid { grid-template-columns: 1fr; }
  .mobile-call-bar { display: flex; }
  main { /* room for fixed bar */ }
  .site-footer { padding-bottom: 72px; }
  .back-to-top { bottom: 72px; right: 16px; } /* clear the sticky call bar */
}

@media (max-width: 520px) {
  .carousel-hint { display: none; } /* keep the counter, drop the longer hint */
  .carousel-top { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr; border-left: 0; }
  .benefit-card { border-left: 1px solid var(--color-border); }
  .process-timeline { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .process-step::before { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: auto; grid-template-columns: 1fr; gap: var(--space-3); }
  .feature-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-cta-row .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

/* ----------------------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
