/* Márkaszínek – a logó sötétzöldje alapján */
:root {
  --brand: #004225;
  --brand-hover: #00321c;
  --brand-light: #4cc38a;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --line: #d2d2d7;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* Felső menü – a birdiecar.hu fejlécének mintájára */
:root { --nav-h: 76px; }
.globalnav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.globalnav-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px;
}
.globalnav-logo { justify-self: start; }
.globalnav-logo img { height: 44px; width: auto; }
.globalnav-links { display: flex; align-items: center; gap: 44px; }
.globalnav-links a, .globalnav-flyout-btn {
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer;
  transition: color .2s;
}
.globalnav-links a:hover, .globalnav-flyout-btn:hover, .globalnav-flyout-btn[aria-expanded="true"] { color: var(--brand); }
.globalnav-cta {
  justify-self: end; padding: 12px 24px; border-radius: 980px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background .2s;
}
.globalnav-cta:hover { background: var(--brand-hover); }

/* Modellek lenyíló menü */
.flyout {
  position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(250, 250, 252, .97);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  animation: flyout-in .22s ease-out;
}
@keyframes flyout-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flyout-inner { max-width: 1024px; margin: 0 auto; padding: 28px 22px 40px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.flyout-tabs { display: flex; flex-direction: column; gap: 2px; }
.flyout-tab {
  font: inherit; text-align: left; background: none; border: 0; border-radius: 10px;
  padding: 10px 12px; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.flyout-tab span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.flyout-tab:hover { background: rgba(0, 0, 0, .04); }
.flyout-tab.is-active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.flyout-all { margin-top: 14px; padding: 0 12px; font-size: 13px; color: var(--brand); text-decoration: none; }
.flyout-all:hover { text-decoration: underline; }
.flyout-panel { display: none; }
.flyout-panel.is-active { display: block; }
.flyout-panel-title { display: none; }
.flyout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flyout-model {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 10px 16px; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: background .2s;
}
.flyout-model:hover { background: #fff; }
.flyout-model img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 450 / 197; object-fit: contain; }
.flyout-model strong { font-size: 14px; font-weight: 600; margin-top: 8px; }
.flyout-model span { font-size: 12px; color: var(--brand); margin-top: 2px; }
.flyout-backdrop {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
  background: rgba(232, 232, 237, .4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* Szalag */
.ribbon { background: var(--bg-gray); text-align: center; padding: 14px 22px; font-size: 14px; color: var(--ink); }
.ribbon a { color: var(--brand); text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }

/* Csempék */
.tile { position: relative; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.tile-light { background: var(--bg); color: var(--ink); }
.tile-gray { background: var(--bg-gray); color: var(--ink); }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-green { background: var(--brand); color: #fff; }

.tile-copy { padding: 52px 22px 0; max-width: 980px; margin: 0 auto; }
.tile h1, .tile h2 {
  font-size: 56px; line-height: 1.07; font-weight: 600; letter-spacing: -.005em;
}
.tile-sub { font-size: 28px; line-height: 1.14; font-weight: 400; letter-spacing: .007em; margin-top: 6px; }
.tile-text { font-size: 17px; color: var(--muted); max-width: 560px; margin: 14px auto 0; }
.tile-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

.pill {
  display: inline-block; min-width: 28px; padding: 11px 21px;
  border-radius: 980px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff;
  font-size: 17px; line-height: 1.18; font-weight: 400; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
button.pill { font-family: inherit; cursor: pointer; }
.pill:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.pill-outline { background: transparent; color: var(--brand); }
.pill-outline:hover { background: var(--brand); color: #fff; }

.tile-dark .pill { background: var(--brand-light); border-color: var(--brand-light); color: #000; }
.tile-dark .pill:hover { background: #6fd3a2; border-color: #6fd3a2; }
.tile-dark .pill-outline { background: transparent; color: var(--brand-light); }
.tile-dark .pill-outline:hover { background: var(--brand-light); color: #000; }

.pill-white, .tile-green .pill { background: #fff; border-color: #fff; color: var(--brand); }
.tile-green .pill:hover { background: transparent; color: #fff; }

.tile-media { margin-top: 36px; flex: 1; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }

/* Kivágott (átlátszó hátterű) termékfotók */
.tile .tile-media.cutout { display: flex; justify-content: center; align-items: flex-end; margin-top: 32px; padding: 0 22px 48px; }
.tile .tile-media.cutout img { flex: none; width: 100%; max-width: 920px; height: auto; min-height: 0; object-fit: contain; }
.tile .cutout-hero img { max-width: 1120px; }

/* Teljes képes csempe – képen mindig fehér szöveg, sötét átmenettel */
.tile-photo { min-height: max(600px, 42vw); background: #000; color: #fff; }
.tile-photo .tile-copy { position: relative; z-index: 2; text-shadow: 0 1px 14px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.25); }
.tile-photo .pill { text-shadow: none; }
.tile-photo .pill { background: #fff; border-color: #fff; color: var(--brand); }
.tile-photo .pill:hover { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); }
.tile-photo .pill-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile-photo .pill-outline:hover { background: #fff; color: var(--brand); }
.tile-photo-media { position: absolute; inset: 0; }
.tile-photo-media picture { display: block; width: 100%; height: 100%; }
.tile-photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.tile-photo-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 22%, rgba(0,0,0,0) 45%);
}
.tile-half.tile-photo { min-height: 600px; }
.tile-half.tile-photo .tile-photo-media img { object-position: 55% 100%; }
.tile-photo-light .tile-photo-media img { object-position: 30% 100%; }
.tile-photo-light { background: #0171bb; }
.tile-photo-light .tile-photo-media { top: 16%; }
.tile-photo-light .tile-photo-media::after { background: linear-gradient(180deg, #0171bb 0%, rgba(1,113,187,.6) 10%, rgba(1,113,187,0) 30%); }
.tile-half .tile-media.cutout { margin-top: 24px; padding-bottom: 32px; }
.tile-half .tile-media.cutout img { max-width: 600px; max-height: 360px; width: auto; }
.tile-contact { padding-bottom: 72px; }

.tile-hero .tile-text { margin-top: 12px; }

/* Szöveg a képen, sötét átmenettel */
.tile-overlay { min-height: 560px; }
.tile-overlay .tile-copy { position: relative; z-index: 2; }
.tile.tile-overlay .tile-overlay-media { position: absolute; inset: 22% 0 0 0; margin: 0; display: block; }
.tile.tile-overlay .tile-overlay-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 50%; }
.tile-overlay-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 14%, rgba(0,0,0,.45) 34%, rgba(0,0,0,0) 58%);
}

/* 2×2 rács */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.tile-half h2 { font-size: 40px; line-height: 1.1; }
.tile-half .tile-sub { font-size: 21px; line-height: 1.19; }
.tile-half .tile-copy { padding-top: 48px; }
.tile-half .tile-media { margin-top: 28px; display: flex; }
.tile-half .tile-media img { flex: 1; height: auto; min-height: 340px; }

.tile-contact .tile-text { margin-top: 24px; }

/* Kapcsolati űrlap */
.contact-form {
  width: 100%; max-width: 720px; margin: 40px auto 0; padding: 0 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-gray);
  border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #d70015; background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand); }
.consent.is-invalid span { color: #d70015; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; }
.contact-form button[disabled] { opacity: .6; cursor: default; }
.form-status { font-size: 15px; text-align: center; min-height: 1.4em; }
.form-status.is-ok { color: var(--brand); font-weight: 600; }
.form-status.is-error { color: #d70015; }

/* Lábléc */
.footer { background: var(--bg-gray); color: var(--muted); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 32px 22px 22px; }
.footer-directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { text-decoration: underline; color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; }

/* Tablet */
@media (max-width: 1068px) {
  .globalnav-inner { gap: 28px; padding: 0 22px; }
  .globalnav-links { gap: 26px; }
  .globalnav-links a, .globalnav-flyout-btn, .globalnav-cta { font-size: 15px; }
  .tile h1, .tile h2 { font-size: 48px; }
  .tile-sub { font-size: 24px; }
  .tile-half h2 { font-size: 32px; }
  .tile-half .tile-sub { font-size: 19px; }
}

/* Mobil */
@media (max-width: 734px) {
  .globalnav-links { flex: 0 1 auto; margin-left: auto; }
  .globalnav-links li:not(.has-flyout) { display: none; }
  :root { --nav-h: 60px; }
  .globalnav-inner { padding: 0 16px; gap: 16px; grid-template-columns: auto 1fr auto; }
  .globalnav-links { justify-self: end; }
  .globalnav-logo img { height: 34px; }
  .globalnav-links a, .globalnav-flyout-btn { font-size: 15px; }
  .globalnav-cta { padding: 9px 16px; font-size: 14px; }
  .flyout { height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); max-height: none; }
  .flyout-inner { grid-template-columns: 1fr; gap: 0; padding: 8px 16px 40px; }
  .flyout-tabs { display: none; }
  .flyout-panel, .flyout-panel.is-active { display: block; padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
  .flyout-panel-title { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
  .flyout-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .flyout-model { padding: 10px 6px 12px; }
  .flyout-model strong { font-size: 13px; }
  .ribbon { font-size: 12px; padding: 12px 16px; }
  .tile-copy { padding: 44px 16px 0; }
  .tile h1, .tile h2 { font-size: 40px; line-height: 1.1; }
  .tile-sub { font-size: 21px; line-height: 1.19; }
  .tile-text { font-size: 15px; }
  .pill { font-size: 15px; padding: 9px 18px; }
  .tile .tile-media.cutout { padding: 0 8px 16px; }
  .tile-photo { min-height: 600px; }
  .tile-half.tile-photo { min-height: 520px; }
  .tile-photo-light .tile-photo-media { top: 24%; }
  .tile-photo-media img { object-position: 18% 60%; }
  #ertekesites .tile-photo-media img { object-position: 50% 50%; }
  .tile-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .tile-half h2 { font-size: 32px; }
  .tile-half .tile-media img { min-height: 260px; }
  .tile-overlay { min-height: 460px; }
  .footer-directory { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 0 16px; }
  .footer-legal { flex-direction: column; }
}
