/*
  ============================================================
  NÍVÓ BÚTOR — DESIGN SYSTEM
  ============================================================
  v1 (2026-05-23) — Initial release. Klasszikus elegáns vonal:
                    serif heading (Cormorant) + sans body (Inter),
                    fehér + grafit + mély zöld accent.
  ============================================================
*/

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Színek */
  --color-bg:            #FFFFFF;
  --color-bg-sub:        #FAFAF8;
  --color-text:          #333333;
  --color-text-strong:   #1A1A1A;
  --color-text-muted:    #888888;
  --color-accent:        #2C3E2D;
  --color-accent-hover:  #1F2D1F;
  --color-border:        #E5E5E0;
  --color-overlay:       rgba(26, 26, 26, 0.35);
  --color-overlay-hero:  linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.35) 100%);

  /* Tipográfia — családok */
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tipográfia — méretek (desktop default) */
  --fs-hero:      4.5rem;   /* 72px */
  --fs-h1:        3.5rem;   /* 56px */
  --fs-h2:        2.5rem;   /* 40px */
  --fs-h3:        1.75rem;  /* 28px */
  --fs-body-lg:   1.25rem;  /* 20px */
  --fs-body:      1.0625rem; /* 17px */
  --fs-body-sm:   0.9375rem; /* 15px */
  --fs-eyebrow:   0.8125rem; /* 13px */
  --fs-button:    0.9375rem; /* 15px */

  /* Spacing (4px grid) */
  --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-11: 160px;
  --space-12: 200px;

  /* Container szélességek */
  --container-wide: 1280px;
  --container:      1080px;
  --container-narrow: 720px;

  /* Section paddingek */
  --section-py:        128px;
  --section-py-mobile: 64px;

  /* Animáció */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 0.3s;
  --dur-medium: 0.6s;
  --dur-slow: 0.8s;

  /* Border radius (klasszikus = éles) */
  --radius: 0;
  --radius-sm: 2px;

  /* Z-index */
  --z-nav: 100;
  --z-loader: 1000;
  --z-lightbox: 2000;
}

/* Mobile font-size override */
@media (max-width: 768px) {
  :root {
    --fs-hero:    2.5rem;     /* 40px */
    --fs-h1:      2rem;       /* 32px */
    --fs-h2:      1.75rem;    /* 28px */
    --fs-h3:      1.375rem;   /* 22px */
    --fs-body-lg: 1.125rem;   /* 18px */
    --fs-body:    1rem;       /* 16px */
    --fs-body-sm: 0.875rem;   /* 14px */
    --fs-eyebrow: 0.75rem;    /* 12px */
    --section-py: var(--section-py-mobile);
  }
}

/* ============================================================
   2. Reset + Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. Tipográfia
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6,
.h-hero, .h1, .h2, .h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text-strong);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h-hero {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h1, h1 {
  font-size: var(--fs-h1);
}

.h2, h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
}

.h3, h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
}

.italic {
  font-style: italic;
}

p {
  font-size: var(--fs-body);
  line-height: 1.65;
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
}

.muted {
  color: var(--color-text-muted);
}

/* ============================================================
   4. Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

@media (max-width: 768px) {
  .container,
  .container-wide,
  .container-narrow {
    padding: 0 var(--space-5);
  }
}

section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

section.no-pad-top { padding-top: 0; }
section.no-pad-bot { padding-bottom: 0; }

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--fs-button);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--dur-medium) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-strong);
  border: 1px solid var(--color-text-strong);
}

.btn--ghost:hover {
  background: var(--color-text-strong);
  color: #FFFFFF;
}

.btn--ghost-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.btn--ghost-light:hover {
  background: #FFFFFF;
  color: var(--color-text-strong);
}

/* ============================================================
   6. Link with underline-animation
   ============================================================ */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur-medium) var(--ease-out);
}

.link-underline:hover {
  background-size: 100% 1px;
}

/* ============================================================
   7. Scroll-reveal alap-állapot
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-medium) var(--ease-out),
    transform var(--dur-medium) var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   8. Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s var(--ease-out);
}

.loader.is-hidden {
  opacity: 0;
}

.loader__logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-strong);
  letter-spacing: 0.15em;
  animation: loaderFade 1.2s var(--ease-out) infinite alternate;
}

@keyframes loaderFade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* ============================================================
   9. Utility
   ============================================================ */
.text-center { text-align: center; }
.text-light { color: #FFFFFF; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

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