/* ================================================================
   GépOutlet Nagysáp — EXPERIMENT v3
   Fresh emerald on white · v1 layout · showroom motion
   ================================================================ */

:root {
  /* Palette (OKLCH) */
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.008 165);
  --ink: oklch(0.21 0.02 170);
  --muted: oklch(0.42 0.02 170);
  --primary: oklch(0.52 0.13 160);
  --primary-deep: oklch(0.43 0.12 162);
  --band: oklch(0.2 0.045 170);
  --band-2: oklch(0.25 0.05 170);
  --band-line: oklch(0.35 0.05 170);
  --spring: oklch(0.78 0.17 150);
  --on-dark: oklch(0.97 0.006 165);
  --on-dark-muted: oklch(0.78 0.03 165);
  --line: oklch(0.9 0.008 165);

  /* Type */
  --font: "Archivo", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --reveal-duration: 0.9s;

  /* Z-scale */
  --z-header: 100;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
svg { display: block; }

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

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

::selection {
  background: var(--primary);
  color: oklch(1 0 0);
}

/* ================= Buttons ================= */

.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--primary);
  color: oklch(1 0 0);
  box-shadow: 0 10px 24px -10px oklch(0.52 0.13 160 / 0.55);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px oklch(0.52 0.13 160 / 0.65);
}

.btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  background: oklch(1 0 0);
  color: var(--primary-deep);
  box-shadow: 0 14px 28px -12px oklch(0.15 0.04 170 / 0.5);
}

.btn-light:hover {
  background: oklch(0.94 0.01 165);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.15rem 2.3rem;
  font-size: 1.1rem;
}

/* ================= Header ================= */

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: var(--z-header);
  padding-inline: 1.25rem;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  background: oklch(0.2 0.045 170 / 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 999px;
  pointer-events: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.nav-brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: var(--primary);
  color: oklch(1 0 0);
  font-weight: 900;
  font-size: 1.15rem;
}

.nav-brand-name {
  color: var(--on-dark);
}

.nav-brand-name em {
  font-style: normal;
  color: var(--spring);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--on-dark);
  background: oklch(1 0 0 / 0.09);
}

.nav-link-cta {
  background: var(--primary);
  color: oklch(1 0 0);
}

.nav-link-cta:hover {
  background: var(--primary-deep);
  color: oklch(1 0 0);
}

.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: oklch(1 0 0);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 6px 18px -6px oklch(0.52 0.13 160 / 0.5);
}

.nav-cta:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px oklch(0.52 0.13 160 / 0.6);
}

.nav-cta-li { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: oklch(1 0 0 / 0.08);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ================= Hero ================= */

.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: oklch(0.52 0.13 160 / 0.12);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-title span, .hero-title strong { display: block; }

.hero-title strong {
  color: var(--primary);
  font-weight: 900;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Hero illustration */

.hero-visual { min-width: 0; }

.hero-svg { width: 100%; height: auto; }

.ap-body {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3;
}

.ap-line, .ap-drum-outer, .ap-drum-inner, .ap-window {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.ap-window { fill: var(--band-2); }
.ap-handle, .ap-handle-h, .ap-knob, .ap-panel { fill: var(--ink); }

.tag-body {
  fill: var(--primary);
  filter: drop-shadow(0 14px 24px oklch(0.52 0.13 160 / 0.45));
}

.tag-from {
  fill: oklch(1 0 0 / 0.92);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tag-price {
  fill: oklch(1 0 0);
  font-family: var(--font);
  font-size: 27px;
  font-weight: 800;
}

.hero-appliance { animation: float 7s ease-in-out infinite; }
.hero-washer { animation-delay: -2.5s; }
.hero-oven { animation-delay: -4.5s; }

.hero-tag {
  animation: float 6s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Page-load intro choreography */

.js .intro-line {
  animation: intro-rise 1.1s var(--ease-out) both;
}

.js .hero-badge { animation-delay: 0.05s; }
.js .hero-title .intro-line:nth-child(1) { animation-delay: 0.15s; }
.js .hero-title .intro-line:nth-child(2) { animation-delay: 0.28s; }
.js .hero-sub { animation-delay: 0.45s; }
.js .hero-actions { animation-delay: 0.58s; }
.js .hero-note { animation-delay: 0.68s; }
.js .hero-visual { animation-delay: 0.4s; }

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ================= Marquee ================= */

.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  overflow: hidden;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-group {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 0.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= Price band ================= */

.price-band {
  background: var(--band);
  color: var(--on-dark);
  padding-block: var(--space-section);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.price-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.price-title span { color: var(--spring); }

.price-sub {
  margin-top: 1.2rem;
  max-width: 30rem;
  color: var(--on-dark-muted);
  line-height: 1.7;
}

.price-figures {
  display: grid;
  gap: 1rem;
}

.price-figure {
  padding: 1.6rem 2rem;
  border-radius: var(--radius);
  background: var(--band-2);
}

.price-figure-hero {
  background: var(--primary);
  box-shadow: 0 24px 48px -16px oklch(0.52 0.13 160 / 0.5);
}

.price-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: oklch(1 0 0 / 0.85);
  margin-bottom: 0.3rem;
}

.price-value {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  font-stretch: 105%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: oklch(1 0 0);
  font-variant-numeric: tabular-nums;
}

.price-value small {
  font-size: 0.45em;
  font-weight: 700;
  color: oklch(1 0 0 / 0.85);
}

/* ================= Sections shared ================= */

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-lead {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-lead strong { color: var(--primary-deep); }

/* ================= Categories ================= */

.categories { padding-block: var(--space-section); }

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.category-item {
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.category-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px oklch(0.21 0.02 170 / 0.3);
}

.category-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--primary);
}

.category-name {
  margin-top: 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.category-desc {
  margin-top: 0.4rem;
  font-size: 0.97rem;
  color: var(--muted);
}

.category-brands {
  margin-top: 2.5rem;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.category-brands strong { color: var(--ink); }

/* ================= Why us ================= */

.why {
  background: var(--surface);
  padding-block: var(--space-section);
}

.why-head {
  max-width: 44rem;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.why-card {
  padding: 1.9rem 1.7rem;
  background: var(--bg);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px oklch(0.21 0.02 170 / 0.3);
}

.why-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.why-card-title {
  margin-top: 1.1rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.why-card-desc {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ================= Visit ================= */

.visit { padding-block: var(--space-section); }

.visit-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 24px;
  background: var(--primary);
  color: oklch(1 0 0);
  box-shadow: 0 30px 60px -24px oklch(0.52 0.13 160 / 0.55);
}

.visit-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.visit-lead {
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 1.12rem;
  color: oklch(1 0 0 / 0.9);
  max-width: 28rem;
}

.visit-details {
  display: grid;
  gap: 0.85rem;
}

.visit-detail {
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: oklch(1 0 0 / 0.14);
}

.visit-detail dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: oklch(1 0 0 / 0.9);
  margin-bottom: 0.15rem;
}

.visit-detail dd {
  font-size: 1.08rem;
  font-weight: 700;
}

.visit-link {
  color: inherit;
  text-underline-offset: 3px;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin-top: 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ================= Footer ================= */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 0.5rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand em {
  font-style: normal;
  color: var(--primary);
}

.footer-note, .footer-legal {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ================= Scroll reveal (enhancement only) ================= */

.js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out),
    filter var(--reveal-duration) var(--ease-out);
}

.js .reveal:not(.reveal-in) {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
}

/* ================= Responsive ================= */

@media (max-width: 900px) {
  .hero-grid, .price-grid, .visit-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 24rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-li { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem 1.25rem 1.4rem;
    background: var(--band);
    border-bottom: 1px solid var(--band-line);
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    text-align: center;
  }

  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ================= Reduced motion ================= */

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

  .hero-appliance, .hero-tag { animation: none; }

  .js .intro-line { animation: none; }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
  }

  .js .reveal,
  .js .reveal:not(.reveal-in) {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .btn, .category-item, .why-card, .nav-toggle-bar {
    transition: none;
  }
}
