:root {
  --bg: #ffd442;
  --bg-soft: #ffffff;
  --bg-soft-alt: #f3f4f6;

  --text: #111827;
  --muted: #25282c;

  --border-subtle: #e5e7eb;

  --accent: #000000;
  --accent-soft: rgba(37, 99, 235, 0.08);

  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --nav-height: 64px;
  --transition-fast: 160ms ease-out;

  --container: 1100px;
  --container-narrow: 720px;

  --section-pad-y: 4rem;
  --section-pad-x: 1.5rem;

  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Playfair Display", serif;

  /* Gomb méretek */
  --btn-font-size: 1.05rem;
  --btn-padding-y: 0.8rem;
  --btn-padding-x: 1.8rem;

  /* Globális szöveg méret (nálad nagyobb lett) */
  --body-font: 1.22rem;
  
}

/* ===== Reset / alapok ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}


@supports (overflow: clip) {
  body { overflow-x: clip; }
}

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

/* ===== Tipográfia ===== */
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.12;
  margin: 0 0 0.6rem;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
}

p { font-size: var(--body-font); }

/* ===== Tartalmi szöveg (Playfair), kivéve: eyebrow + űrlap ===== */
main :where(p, li) {
  font-family: var(--font-brand);
}

/* Kapcsolat (telefon/e-mail sorok) – ezek div/p/a vegyesen vannak nálad */
.footer__contact,
.footer__contact a,
.site-footer p,
.site-footer a {
  font-family: var(--font-brand);
}

/* Kivételek: maradjon UI */
.eyebrow {
  font-family: var(--font-ui);
}

/* Az űrlap és mindene maradjon UI (label, input, helper, gombok, stb.) */
.form,
.form * {
  font-family: var(--font-ui) !important;
}


/* ===== Szekciók / konténerek ===== */
.section { padding: var(--section-pad-y) var(--section-pad-x); }
.section--soft { background: var(--bg-soft-alt); }

section { scroll-margin-top: calc(var(--nav-height) + 24px); }

.container {
  max-width: var(--container);
  margin: 0 auto;
}

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

/* ===== NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255, 255, 255, 1);
  border-bottom: 2.5px solid var(--bg);
  backdrop-filter: blur(10px);
}

.navbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.4rem 2.2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.navbar__logo {
  height: 80px;     /* <- nagyobb */
  width: auto;
  max-width: 260px; /* <- kicsit nagyobb, hogy ne törje le */
  object-fit: contain;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  height: var(--nav-height);
}

/* Menü */
.navbar__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.navbar__menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.1rem;
  transition: color var(--transition-fast);
}

.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--bg);
  transition: width var(--transition-fast);
}

.navbar__menu a:hover { color: #111827; }
.navbar__menu a:hover::after { width: 100%; }

/* Mobil toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.navbar__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
  display: block;
}

/* Csak mobilon */
.mobile-only { display: none !important; }
.mobile-only-flex { display: none !important; }

/* ===== HERO ===== */
#hero { background: var(--bg-soft); }

#hero .container--narrow { text-align: center; }

@media (min-width: 900px) {
  #hero .container--narrow { max-width: var(--container); }
}

#hero h1 {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.9);
  max-width: 100%;
  margin: 0.6rem auto 1.4rem;

  font-size: clamp(2rem, 4vw, 2.6rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: var(--body-font);
  color: var(--muted);
  margin: 0 auto 1.8rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ===== Bevezetők / listák ===== */
.section__intro {
  margin: 0 auto 1.8rem;
  font-size: var(--body-font);
  color: var(--muted);
  text-align: center;
  max-width: 40rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-size: var(--body-font);
}

.list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  color: var(--accent);
}

.about-logo {
  display: block;
  margin: 0.8rem auto 1.6rem;
  height: 300px;         /* desktop méret */
  width: auto;
  max-width: min(420px, 90%);
  object-fit: contain;
}

@media (max-width: 768px) {
  .about-logo {
    height: 200px;       /* mobilon kicsit kisebb */
    margin: 0.6rem auto 1.2rem;
  }
}
/* ===== Rólunk ===== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.about-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
}

.about-card p {
  margin: 0;
  font-size: var(--body-font);
  color: var(--muted);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* ===== Referenciák ===== */
.ref-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.ref-item { text-align: center; }

.ref-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
}

/* Stabil, középre igazított keret (mobilon is) */
.ref-item__image {
  width: 100%;
  max-width: 500px;
  height: 300px;

  margin: 0 auto 0.7rem;
  background: #ffffff;

  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);

  object-fit: contain;
  object-position: center;
}

/* Brancs: cover + tényleges középvágás (ne “jobbra” legyen a fókusz) */
.ref-item__image--brancs {
  object-fit: cover;
  object-position: center;
}

/* Linkek */
.ref-item a { text-decoration: none; }

.ref-btn {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  padding: 0.5rem 1.3rem;
}

/* ===== Pricing ===== */
.pricing-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pricing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.pricing-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-item h3 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.pricing-item__tagline {
  font-size: var(--body-font);
  color: var(--muted);
  margin-bottom: 1rem;
}

.pricing-item ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.pricing-item ul li {
  margin-bottom: 0.35rem;
  font-size: var(--body-font);
}

.pricing-price {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== Form ===== */
.form {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.86rem;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder, textarea::placeholder { color: #9ca3af; }

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: #ffffff;
}

.helper-text { font-size: 0.9rem; color: var(--muted); }
.helper-text--bottom { margin-top: 0.4rem; }

/* ===== Gombok ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  border-radius: var(--radius-pill);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 500;

  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;

  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    transform 120ms ease-out;
}

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

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(155, 157, 161, 0.45);
}

.btn--ghost {
  border-color: var(--border-subtle);
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  color: #111827;
  border-color: #cbd5f5;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn--full { width: 100%; }

/* Kapcsolat / hívás */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.btn--call { text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  background: #000000;
  color: #f9fafb;
  border-top: 1px solid #111827;
  padding: 1.75rem 1.5rem 2rem;
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

.site-footer a {
  color: #f9fafb;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.footer__contact {
  text-align: center;
  font-size: var(--body-font);
  margin: 0;
}

.footer__contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer__contact a:hover { text-decoration: underline; }

.footer__small { margin-top: 0.2rem; opacity: 0.8; }

/* ===== Back to top ===== */
#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.7rem;
  width: 2.6rem;
  height: 2.6rem;

  border-radius: 999px;
  border: 0.1px solid var(--border-subtle);
  background: #000000;
  color: #fefefe;

  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);

  font-size: 1.4rem;
  font-weight: 700;
  text-shadow:
    -0.6px 0 0 currentColor,
     0.6px 0 0 currentColor,
     0 -0.6px 0 currentColor,
     0  0.6px 0 currentColor;

  z-index: 60;
  transition: transform 120ms ease-out, box-shadow var(--transition-fast),
    opacity var(--transition-fast), background var(--transition-fast);
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; transform: none; opacity: 1; }
  .about-card, .pricing-item, .btn { transition: none; }
}

/* ===== Oldalsó háttér díszítés (desktop) ===== */
@keyframes sideFloat {
  0%   { transform: translateY(-10px); }
  50%  { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 220px;
  pointer-events: none;

  background-repeat: no-repeat;
  background-size: auto 100%;
  z-index: -1;

  animation: sideFloat 18s ease-in-out infinite;
}

body::before {
  left: 0;
  background-image: url("img/side-left.png");
  background-position: left center;
}

body::after {
  right: 0;
  background-image: url("img/side-right.png");
  background-position: right center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  /* mobilon drága hatások off */
  .site-header { backdrop-filter: none; }
  body::before, body::after { display: none; }
}

@media (max-width: 900px) {
  .pricing-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-only { display: block !important; }
  .mobile-only-flex { display: inline-flex !important; }

  .navbar {
    position: relative;
    padding-inline: 1.1rem;
  }

  .navbar__logo {
    height: 60px;
    max-width: 220px;
  }

  .navbar__toggle { display: flex; }

  .navbar__menu {
    position: absolute;
    right: 1.1rem;
    top: calc(var(--nav-height) - 0.3rem);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;

    margin: 0;
    padding: 0.6rem 0.9rem;

    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);

    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;

    z-index: 60;
    transition: opacity 140ms ease-out, transform 140ms ease-out;
  }

  .navbar__menu.navbar__menu--open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .navbar__menu li { width: 100%; }

  .navbar__menu a {
    display: block;
    width: 100%;
    padding: 0.4rem 0.2rem;
    font-size: 1.05rem;
  }

  .about-grid { grid-template-columns: 1fr; }
  .ref-list { grid-template-columns: 1fr; }

  #back-to-top {
    right: 1rem;
    bottom: 1.1rem;
  }
}

@media (max-width: 640px) {
  .pricing-list { grid-template-columns: 1fr; }
}

/* Adatkezelési hozzájárulás (checkbox) – ajánlatkérés űrlap */
.field--consent {
  margin-top: 0.25rem;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  line-height: 1.35;
  font-size: 0.95rem;
  color: inherit;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
