    html { scroll-behavior: smooth; }

    :root {
      --bg: #f8f3eb;
      --brand: #4b3b30;
      --accent1: #e8c690;
      --accent2: #a6bba3;
      --accent3: #dfc7a5;
      --muted: #6e635b;
  
/* spacing scale (8–16–24–32) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;

/* typography */
--lh-tight: 1.2;
--lh-body: 1.6;

--fs-body: 16px;
--fs-h1: 34px;
--fs-h2: 28px;
--fs-h3: 18px;
    }

    body {
      font-family: 'Georgia', serif;
      margin: 0;
      background-color: var(--bg);
      color: var(--brand);
    }

    /* === HEADER === */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 24px;
      background-color: var(--bg);
      border-bottom: 1px solid #ddd;
      position: sticky;
      top: 0;
      z-index: 100;
      gap: 16px;
      flex-wrap: wrap;
    }

    header .branding {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    header img {
      height: 48px;
      filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
    }

    header h1 {
      font-size: 22px;
      margin: 0;
      font-weight: 700;
      color: var(--brand);
    }

    /* === NAVIGATION === */
    nav { display: flex; gap: 24px; }

    nav a {
      text-decoration: none;
      color: var(--brand);
      font-weight: 500;
      transition: color 0.2s ease;
    }

    nav a:hover { color: var(--accent2); }

    /* === TEXT LINK STYLE === */
    .text-link {
      color: var(--brand);
      text-decoration: none;
      font-weight: 500;
    }
    .text-link:hover { color: var(--accent2); }

    /* === HAMBURGER MENU === */
    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
      width: 28px;
      height: 24px;
      justify-content: center;
      align-items: center;
      position: relative;
      z-index: 110;
    }

    .menu-toggle span {
      background: var(--brand);
      height: 3px;
      width: 100%;
      position: absolute;
      transition: 0.3s ease;
      border-radius: 2px;
    }

    .menu-toggle span:nth-child(1) { top: 4px; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 16px; }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

    /* === OVERLAY BACKGROUND === */
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(3px);
      z-index: 90;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0s 0.3s;
    }

    .overlay.active {
      opacity: 1;
      visibility: visible;
      transition-delay: 0s;
    }

    /* === MOBILE NAV === */
    .mobile-nav {
      display: none;
      flex-direction: column;
      background: var(--bg);
      width: 100%;
      padding: 12px 0;
      border-top: 1px solid #ddd;
      animation: slideFadeIn 0.4s ease forwards;
      position: fixed;
      top: 64px;
      left: 0;
      z-index: 105;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .mobile-nav a {
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--brand);
  font-weight: 500;
  opacity: 1;          /* mindig látszódjon */
  animation: none;     /* ne trükközzön */
}
    .mobile-nav a:hover { background: var(--accent3); }

    @keyframes slideFadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn { to { opacity: 1; } }

    /* === HERO SECTION === */
    .hero {
      background: linear-gradient(to right, rgba(223, 199, 165, 0.85), rgba(248, 243, 235, 0.85)),
                  url("/images/rendelo.jpg") center/cover no-repeat;
      padding: 64px 32px;
      text-align: left;
      color: var(--brand);
    }

    .hero h1 { font-size: 34px; max-width: 700px; }
    .hero p  { max-width: 600px; font-size: 18px; }

    /* === CARDS === */
    .services {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 32px;
    }

    .card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      padding: 20px;
      flex: 1 1 220px;
    }

    /* === BUTTONS === */
    button {
      background-color: var(--accent1);
      color: var(--brand);
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      font-weight: 600;
      cursor: pointer;
    }

    button:hover { background-color: var(--accent2); color: #fff; }

    /* === GENERAL SECTIONS === */
    section { padding: 48px 32px; }
    h2 {
      font-size: 28px;
      border-bottom: 2px solid var(--accent2);
      display: inline-block;
      padding-bottom: 8px;
      margin-bottom: 16px;
    }

    /* === FOOTER === */
    footer {
      background-color: var(--accent3);
      text-align: center;
      padding: 24px;
      font-size: 14px;
      color: var(--brand);
    }

    input, textarea {
      width: 100%;
      margin-bottom: 8px;
      padding: 8px;
      border-radius: 6px;
      border: 1px solid #ccc;
      font-family: inherit;
      box-sizing: border-box;
    }
footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 4px;
}
footer a:hover {
  text-decoration: underline;
}

.legal-page {
  padding: 48px 20px;
}

.legal-page .container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 24px;
}

.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page ul {
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 20px;
}

    /* === RESPONSIVE RULES === */
    @media (max-width: 768px) {
  nav { display: none; }
  .menu-toggle { display: flex; }

  .hero { text-align: center; padding: 48px 20px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; margin: 0 auto; }

  .services { flex-direction: column; }
  .services .card { flex: 1 1 100%; } /* csak a services kártyákra */
}

    @media (max-width: 480px) {
      header img { height: 40px; }
      header h1 { font-size: 20px; }
      button { width: 100%; }
    }

    /* === CSAPAT GRID === */
    .team-grid{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
      justify-content:center;
      align-items:stretch;
      margin-top:12px;
    }

    .team .card{
      flex:1 1 260px;
      max-width:300px;
      text-align:center;
      cursor:pointer;
    }

    .team img{
      width:100%;
      height:auto;
      border-radius:12px;
      display:block;
      margin-bottom:8px;
    }

    /* === CSAPAT MODÁL === */
    .bio-modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.4);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding: 16px;
      box-sizing: border-box;
    }

    .bio-modal.active { display: flex; animation: fadeIn 0.3s ease; }

    .bio-content {
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  padding: 28px;
  line-height: 1.7;
  font-size: 16px;
  color: var(--brand);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  box-sizing: border-box;

  /* ✅ mobilon a modál belseje scrollozható */
  max-height: 85vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

    .bio-modal.active .bio-content { animation: slideUp 0.4s ease forwards; }

    .bio-content h3 { margin-top: 0; font-size: 22px; margin-bottom: 12px; }
    .bio-content p { margin-top: 12px; color: var(--muted); text-align: justify; }

    .close-btn {
      position: absolute;
      right: 12px;
      top: 10px;
      font-size: 26px;
      cursor: pointer;
      color: var(--brand);
      line-height: 1;
      transition: transform 0.2s ease, color 0.2s ease;
      padding: 6px;
      border-radius: 50%;
    }

    .close-btn:hover {
      color: var(--accent2);
      background-color: rgba(166, 187, 163, 0.1);
      transform: rotate(90deg);
    }

    @keyframes slideUp { to { transform: translateY(0); opacity: 1; } }

    /* Központi konténer minden szekció tartalmához */
    .container { max-width: 1100px; margin: 0 auto; padding-inline: 16px; }

    /* === KAPCSOLAT FORM === */
    .contact form { display: flex; flex-direction: column; gap: 14px; }
    .contact .card strong { display: block; margin-bottom: 16px; font-size: 18px; letter-spacing: 0.3px; }
    .contact input, .contact textarea { padding: 10px 12px; font-size: 15px; color: var(--brand); }
    .contact input:focus, .contact textarea:focus {
      outline: none;
      border-color: var(--accent2);
      box-shadow: 0 0 0 2px rgba(166, 187, 163, 0.2);
    }
    .contact button { align-self: flex-start; margin-top: 8px; }

    .lang-switch {
      cursor: pointer;
      font-weight: 600;
      background: var(--accent1);
      color: var(--brand);
      border-radius: 6px;
      padding: 6px 10px;
      margin-left: 16px;
      transition: background 0.3s ease;
      user-select: none;
    }
    .lang-switch:hover { background: var(--accent2); color: #fff; }
/* Alap: háttér scroll tiltás (nem ugrál) */
html.modal-open,
body.modal-open {
  overflow: hidden;
}

/* iOS-en kell a fix pozíció a háttér “gumis” scroll ellen */
html.ios body.modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
/* === CONTACT: equal-height cards (desktop) === */
.contact-grid {
  align-items: stretch; /* start helyett: így lesznek egyforma magasak */
}

.contact-grid > .card {
  display: flex;
  flex-direction: column;       /* belül oszlopos elrendezés */
}

/* a form-kártyában a form töltse ki a maradék helyet */
.contact-grid > .card form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* a gomb legyen alul (szebb) */
.contact-grid > .card form button {
  margin-top: auto;
}
/* ===== CONTACT mobile spacing ===== */
@media (max-width: 900px) {
  .contact-grid {
    gap: 24px;   /* nagyobb rés a két kártya között */
  }
}
/* ===== CONTACT GRID: final, reliable ===== */

/* Desktop / tablet: két oszlop */
.contact-grid{
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Kártyák nyújtása (azonos magasság desktopon) */
.contact-grid > .card{
  display: flex;
  flex-direction: column;
}

/* Form gomb alul maradjon */
.contact-grid > .card form{
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-grid > .card form button{
  margin-top: auto;
}

/* Mobil: NEM grid, hanem flex oszlop + biztos margin */
@media (max-width: 900px){
  .contact-grid{
    display: flex;
    flex-direction: column;
  }

  /* ez garantáltan ad rést két kártya között minden mobilon */
  .contact-grid > .card + .card{
    margin-top: 24px;
  }
}
/* (opcionális, de szebb) contact form mezők ne kapjanak extra margin-bottomot,
   mert már van gap a formban */
.contact input, .contact textarea{ margin-bottom: 0;
}
/* ===== Section titles alignment fix (mobile) ===== */
  @media (max-width: 768px) {
  h2 {
    display: block;
    width: fit-content;   /* csak a szöveg szélessége */
    margin-left: 0;
  }
}
/* ===== Spacing rhythm (8–16–24–32) ===== */

/* oldal alap ritmus */
section { padding: var(--s-4) var(--s-3); }           /* 32 / 24 */
.container { padding-inline: var(--s-2); }            /* 16 */

/* címsorok */
h2 { margin: 0 0 var(--s-2); }                        /* 16 alá */
.contact .card strong { margin-bottom: var(--s-2); }  /* 16 */

/* kártyák */
.card { padding: var(--s-3); }                        /* 24 */
.services { gap: var(--s-2); margin-top: var(--s-4); }/* 16 + 32 */

/* űrlapmezők */
.contact form { gap: var(--s-2); }                    /* 16 */
.contact input, .contact textarea { padding: 12px; }  /* optikailag jó, nem muszáj 16 */
.contact button { margin-top: var(--s-1); }           /* 8 */

/* contact grid ritmus */
.contact-grid { gap: var(--s-2); }                    /* 16 */
@media (max-width: 900px){
  .contact-grid > .card + .card { margin-top: var(--s-3); } /* 24 mobilon */
}

/* mobilon kicsit kompaktabb section padding */
@media (max-width: 768px){
  section { padding: var(--s-4) var(--s-2); }         /* 32 / 16 */
  .hero { padding: var(--s-4) var(--s-2); }
}
/* ===== Anchor offset for sticky header ===== */
:root { --header-offset: 72px; } /* állítsd, ha kell (pl. 72–110px) */

section { scroll-margin-top: var(--header-offset); }

/* ===== Typography system ===== */
body{
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

h1, h2, h3{
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-2);
}

.hero h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); margin: var(--s-1) 0 0; }

p{
  margin: 0 0 var(--s-2);
  color: var(--muted);
}

/* ===== Card typography refinement ===== */
.card strong{
  display:block;
  letter-spacing: 0.2px;
  margin-bottom: var(--s-1);
}

.card h3{
  margin: 0;
  font-weight: 600;
}
@media (max-width: 768px){
  :root{
    --fs-h1: 26px;
    --fs-h2: 24px;
  }
}
/* ===== Button system ===== */

/* alap gomb */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* primary (a mostani stílusodhoz illeszkedve) */
button, .btn-primary {
  background-color: var(--accent1);
  color: var(--brand);
}

/* hover/active */
button:hover, .btn-primary:hover {
  background-color: var(--accent2);
  color: #fff;
}
button:active, .btn-primary:active {
  transform: translateY(1px);
}

/* fókusz (billentyűzettel nagyon fontos!) */
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(166, 187, 163, 0.35);
  border-radius: 10px;
}

/* link gomb jelleg (ha később kell) */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(75, 59, 48, 0.25);
  color: var(--brand);
}
.btn-ghost:hover {
  background: rgba(166, 187, 163, 0.15);
  color: var(--brand);
}

/* mobilon teljes szélesség csak ott, ahol akarod */
@media (max-width: 480px) {
  .btn-full { width: 100%; }
}
/* ===== HERO polish ===== */
.hero{
  padding: var(--s-4) 0;              /* a section oldalsó padding helyett */
}

.hero .container{
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: var(--s-2);
}

.hero h1{
  max-width: 720px;
  margin-bottom: var(--s-2);
}

.hero p{
  max-width: 620px;
  margin-bottom: var(--s-3);
}

/* CTA sor */
.hero .hero-cta{
  display: flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0;
}

/* mobil: középre */
@media (max-width: 768px){
  .hero{ text-align: center; }
  .hero .hero-cta{ justify-content: center; }
  .hero h1, .hero p{ margin-left: auto; margin-right: auto; }
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
input, textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  box-sizing: border-box;
}

/* === BOOKING LEGAL TEXT === */
.booking-legal {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
}

.booking-legal a {
  color: inherit;
  text-decoration: underline;
}