/* ==========================================================================
   ONYX Fodrászat — dizájnrendszer (megosztott alapok: minden oldal betölti)
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --charcoal: #1c1c1c;
  --gray-900: #232323;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #c9c9c9;
  --gray-100: #ececec;
  --white: #fafafa;
  --pure-white: #ffffff;

  --font-display: "Fraunces", "Playfair Display", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  --container: 1240px;
  --nav-h: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-500);
}

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

/* ==========================================================================
   Gombok
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--near-black);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}
.btn-light:hover {
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.06);
}

.btn-ghost.on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   Navbar — 100% szélesség, minden oldalon azonos
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), height 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 72px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 0 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.nav-logo span {
  font-weight: 300;
  opacity: 0.6;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-300);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover {
  color: var(--white);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-actions .btn {
  padding: 12px 26px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* aloldalakon (foglalás, admin) használt világos navbar-változat */
.navbar.light-nav .nav-logo,
.navbar.light-nav .nav-links a,
.navbar.light-nav .nav-toggle span {
  color: var(--black);
}
.navbar.light-nav .nav-links a {
  color: var(--gray-700);
}
.navbar.light-nav .nav-links a::after {
  background: var(--black);
}
.navbar.light-nav.scrolled {
  background: rgba(250, 250, 250, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Generikus űrlapmezők (foglalás + admin form is ezt használja)
   ========================================================================== */

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
}

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

.field-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 6px;
}

.form-msg {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  display: none;
}
.form-msg.show {
  display: block;
}
.form-msg.error {
  background: #fdecec;
  color: #a11414;
}
.form-msg.success {
  background: #e9f7ec;
  color: #1c7a34;
}

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

.footer {
  position: relative;
  z-index: 60;
  background: var(--black);
  color: var(--white);
  padding: 90px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand span {
  font-style: italic;
  font-weight: 300;
  opacity: 0.6;
}

.footer p {
  color: var(--gray-500);
  max-width: 34ch;
  font-size: 0.94rem;
}

.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: var(--gray-300);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}
.footer ul a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: var(--gray-500);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   Reveal-on-scroll segéd
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Toast értesítés (pl. "e-mail elküldve" demó visszajelzés)
   ========================================================================== */

.toast-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 340px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(12px);
  opacity: 0;
  animation: toastIn 0.4s var(--ease-out) forwards;
}
.toast.leaving {
  animation: toastOut 0.35s var(--ease-in) forwards;
}
.toast .toast-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.toast .toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.toast .toast-body {
  font-size: 0.82rem;
  color: var(--gray-300);
}

@keyframes toastIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   Reszponzív — megosztott elemek
   ========================================================================== */

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

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DWW demó CTA-k
   ========================================================================== */

.hero-word-plain {
  display: block;
  letter-spacing: -0.045em;
}

.admin-dww-cta {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dww-float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-100);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(0,0,0,0.22);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.dww-float-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,0.28); }

@media (max-width: 720px) {
  .dww-float-cta { display: none; }
}
