/* =========================================================================
   Fodor Cukrászat — közös dizájnrendszer
   A fodorcukraszat weboldal (angelina-paris projekt) színeire, betűire és
   formanyelvére épül: krém háttér, pezsgő (champagne) fejléc/lábléc,
   Cormorant Garamond címek, Montserrat szövegek, vékony arany vonalak.
   ========================================================================= */

:root {
  --cream: #FAF7F2;
  --cream-2: #F2ECE4;
  --cream-3: #FAF6F0;
  --champagne: #CFBCAB;
  --champagne-light: #DFCFC0;
  --champagne-border: #BFA997;
  --line: #DECDBA;
  --line-soft: #E8DFC2;
  --dark: #18130F;
  --ink: #231812;
  --cacao: #382E25;
  --muted: #5C5248;
  --muted-2: #7A6E63;
  --muted-3: #8C827A;
  --gold: #A68A68;
  --gold-dark: #8C6F3D;
  --white: #FFFFFF;
  --danger: #9B3D2F;
  --ok: #4F6B52;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(35, 24, 18, 0.05);
  --shadow-md: 0 16px 36px -8px rgba(35, 24, 18, 0.14);
  --shadow-lg: 0 30px 70px -20px rgba(35, 24, 18, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--champagne); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream-3); }
::-webkit-scrollbar-thumb { background: var(--champagne); border-radius: 3px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Tipográfia ---------- */

.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}
.kicker-line { display: inline-flex; align-items: center; gap: 12px; }
.kicker-line::before { content: ""; width: 28px; height: 1.5px; background: var(--champagne); }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}
.h1 { font-size: clamp(40px, 5.4vw, 72px); }
.h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.12; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.italic { font-style: italic; }

.rule { width: 56px; height: 1.5px; background: var(--champagne); border: 0; margin: 22px 0; }
.rule.center { margin-left: auto; margin-right: auto; }
.rule.sm { width: 40px; height: 1px; background: rgba(207, 188, 171, 0.6); margin: 14px 0 16px; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .lede { font-size: 18px; }

/* ---------- Gombok, linkek ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--dark);
  background: var(--dark); color: #fff;
  transition: background .3s var(--ease), border-color .3s, color .3s, transform .3s var(--ease);
  border-radius: 1px;
  white-space: nowrap;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--dark); }
.btn-ghost:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-light { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.8); color: #fff; backdrop-filter: blur(6px); }
.btn-light:hover { background: var(--champagne); border-color: var(--champagne); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  padding-bottom: 6px; border-bottom: 1px solid var(--dark);
  transition: color .3s, border-color .3s;
  background: none; border-top: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0;
}
.text-link .arrow { transition: transform .3s var(--ease); }
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link:hover .arrow { transform: translateX(6px); }

/* ---------- Fejléc (a weboldal "görgetett" pezsgő állapota) ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 80px;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease, color .35s;
  border-bottom: 1px solid transparent;
}
.site-header .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo img { height: 54px; width: auto; transition: filter .35s, transform .3s; }
.site-header .logo:hover img { transform: scale(1.04); }
.site-header nav { display: flex; gap: 28px; font-size: 12.5px; letter-spacing: 0.14em; font-weight: 500; }
.site-header nav a { transition: color .25s; white-space: nowrap; }
.site-header nav a.active { border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.site-header .tools { display: flex; align-items: center; gap: 20px; font-size: 12px; letter-spacing: .14em; font-weight: 600; }

.site-header.is-solid {
  background: rgba(207, 188, 171, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--champagne-border);
  box-shadow: 0 4px 20px -2px rgba(35, 24, 18, 0.10);
  color: var(--dark);
}
.site-header.is-solid nav a:hover { color: #fff; }

.menu-toggle { display: none; background: none; border: 0; padding: 4px; }
.mobile-menu { display: none; }

@media (max-width: 1023px) {
  .site-header nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.open {
    display: block; background: var(--champagne); border-bottom: 1px solid var(--champagne-border);
    padding: 16px 24px 24px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
  }
  .mobile-menu a { display: block; padding: 10px 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
}

/* ---------- Háttér minta (a katalógus borítójának arany mintája) ---------- */

.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/img/fodor_pdf_cover.jpg") center / cover no-repeat;
  opacity: .30; mix-blend-mode: multiply;
}
.pattern-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(250, 247, 242, .62); }
.pattern-bg.on-cream2::after { background: rgba(242, 236, 228, .6); }

/* ---------- Kártyák ---------- */

.card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(222, 205, 186, .85);
  border-radius: 2px;
  transition: border-color .5s var(--ease), background-color .5s, box-shadow .5s var(--ease), transform .5s var(--ease);
}
.card:hover { border-color: var(--champagne); background: #fff; box-shadow: var(--shadow-md); }

.img-zoom { overflow: hidden; background: #EFE8DF; }
.img-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .img-zoom img, .img-zoom:hover img { transform: scale(1.045); }

/* ---------- Űrlap elemek ---------- */

.field { display: block; margin-bottom: 16px; }
.field > span, .label {
  display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--muted-2); margin-bottom: 8px;
}
.input, .textarea, .select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 13px 14px;
  font-size: 14.5px;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166, 138, 104, .15); }
.input::placeholder, .textarea::placeholder { color: #B3A79C; }
.input.invalid { border-color: var(--danger); }

/* ---------- Lábléc ---------- */

.site-footer { background: var(--champagne); color: var(--dark); border-top: 1px solid var(--champagne-border); padding: 80px 0 44px; }
.site-footer .grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 56px; padding-bottom: 60px; border-bottom: 1px solid rgba(191,169,151,.8); }
.site-footer h4 { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; font-weight: 300; color: #3D332B; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.site-footer .brand img { height: 48px; width: auto; filter: brightness(0); opacity: .9; }
.site-footer .brand span { font-family: var(--serif); font-size: 26px; letter-spacing: .24em; font-weight: 700; }
.site-footer .tag { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: #5A4E44; margin: 0 0 20px; }
.site-footer .about { font-size: 14px; font-weight: 300; color: #3D332B; max-width: 360px; line-height: 1.7; }
.site-footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 30px; font-size: 12px; color: #4A3E34; font-weight: 300; flex-wrap: wrap; }
.site-footer .bottom .links { display: flex; gap: 24px; flex-wrap: wrap; }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(24,19,15,.25); display: grid; place-items: center; transition: all .2s; }
.social a:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.social svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* ---------- Segédek ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90;
  background: var(--dark); color: #fff; padding: 14px 22px; font-size: 13px; letter-spacing: .04em;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .35s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
