/* Mádi Gumiszerviz, koncepció-oldal. Motívum: futófelület (abroncs-bordázat). */

@font-face {
  font-family: "Saira";
  src: url("assets/fonts/saira-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("assets/fonts/saira-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("assets/fonts/sairacond-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("assets/fonts/sairacond-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #141414;
  --ink-lift: #1c1c1c;
  --ink-deep: #0b0b0b;
  --yel: #f2b705;
  --wht: #ffffff;
  --dim: #b8b8b8;      /* fehér 70% az inken, kontraszt 9.29 */
  --dim-on-w: #4f4f4f; /* fehér háttéren, kontraszt 8.19 */
  --dim-on-y: #3f3f3f; /* sárga háttéren, kontraszt 5.79 */
  --disp: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Saira", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.15rem, 5vw, 3rem);
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--wht);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--disp); font-weight: 900; margin: 0; line-height: 0.94; letter-spacing: 0.005em; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

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

:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; }

.hl { color: var(--yel); }

/* ---------- demó-sáv ---------- */
.demobar {
  background: var(--yel);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem var(--pad);
  margin: 0;
}

/* ---------- fejléc ---------- */
.head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem var(--pad);
  background: rgba(20, 20, 20, 0.94);
  border-bottom: 1px solid #2e2e2e;
}
@supports (backdrop-filter: blur(6px)) {
  .head { backdrop-filter: blur(8px); }
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-mark { color: var(--yel); width: 26px; height: 26px; display: block; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-txt { font-family: var(--disp); line-height: 1; display: flex; flex-direction: column; }
.brand-txt b { font-weight: 900; font-size: 1.18rem; letter-spacing: 0.02em; }
.brand-txt i { font-style: normal; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.24em; color: var(--dim); }

.nav { display: none; gap: 1.6rem; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.nav a { text-decoration: none; color: var(--dim); padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color 0.18s, border-color 0.18s; }
.nav a:hover { color: var(--wht); border-bottom-color: var(--yel); }

.head-call {
  display: flex; flex-direction: column; align-items: flex-end;
  background: var(--yel); color: var(--ink);
  text-decoration: none; font-family: var(--disp); font-weight: 900;
  padding: 0.42rem 0.85rem; line-height: 1.05;
  clip-path: polygon(0.55rem 0, 100% 0, calc(100% - 0.55rem) 100%, 0 100%);
}
.head-call-lbl { font-size: 0.62rem; letter-spacing: 0.2em; font-weight: 700; }
.head-call-num { font-size: 1.02rem; letter-spacing: 0.01em; white-space: nowrap; }
.head-call:hover { background: var(--wht); }

/* ---------- futófelület-elválasztó ---------- */
.tread {
  height: 16px;
  background-color: var(--ink-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='16' viewBox='0 0 46 16'%3E%3Cpath d='M2 0h17l-8 16H-6z' fill='%23f2b705'/%3E%3Cpath d='M26 0h11l-8 16H18z' fill='%23f2b705' opacity='.45'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 7vw, 4.6rem) 0 clamp(2.6rem, 7vw, 4.4rem); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.hero-arc { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-arc svg { position: absolute; right: -18%; bottom: -6%; width: 118%; height: 118%; }
.arc-band { fill: var(--ink-deep); }
.arc-ribs path { fill: #2a2a2a; }
.arc-edge { fill: none; stroke: var(--yel); stroke-width: 5; }
.arc-edge-out { fill: none; stroke: #3a3a3a; stroke-width: 3; }
.arc { transform-origin: 0px 620px; }

.hero-kicker {
  font-family: var(--disp); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--yel);
  margin-bottom: 0.9rem;
}
.hero-h1 { font-size: clamp(3.1rem, 13vw, 6.4rem); }
.hero-lead { max-width: 30ch; color: var(--dim); margin-top: 1.15rem; }

.bigcall {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: 1.7rem;
  background: var(--yel); color: var(--ink);
  text-decoration: none; padding: 0.85rem 1.6rem 0.95rem;
  clip-path: polygon(1.1rem 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
  transition: transform 0.18s, background 0.18s;
}
.bigcall-top { font-family: var(--disp); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; }
.bigcall-num { font-family: var(--disp); font-weight: 900; font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.05; white-space: nowrap; }
.bigcall:hover { background: var(--wht); transform: translateY(-2px); }

.hero-hours { margin-top: 1.1rem; color: var(--dim); font-size: 0.94rem; }
.hero-hours b { font-family: var(--disp); font-weight: 700; letter-spacing: 0.12em; color: var(--wht); }
.hero-hours .sep { color: var(--yel); padding: 0 0.3rem; }

/* ---------- szekció-fejek ---------- */
.sec-h { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.sec-sub { color: var(--dim); margin-top: 0.75rem; max-width: 46ch; }

/* ---------- szolgáltatás-sávok ---------- */
.svc { padding: clamp(2.6rem, 7vw, 4.6rem) 0 clamp(2rem, 5vw, 3.4rem); }
.bands { margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.band {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 1.4rem var(--pad) 1.5rem;
}
/* a sávokat bordázat-csík választja el, nem vonal */
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='7' viewBox='0 0 34 7'%3E%3Cpath d='M2 0h9l-4 7H-2z' fill='%23494949'/%3E%3Cpath d='M18 0h7l-4 7h-7z' fill='%23f2b705' opacity='.34'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left center;
}
.band:first-child { border-top: 1px solid #2e2e2e; }
.band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 2;
  background: var(--yel); transition: width 0.22s ease;
}
.band:hover::before { width: 6px; }
.band-no {
  font-family: var(--disp); font-weight: 900; font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--yel); line-height: 1;
}
.band-body h3 { font-size: clamp(1.45rem, 5.2vw, 2rem); }
.band-body p { color: var(--dim); margin-top: 0.4rem; max-width: 52ch; }
.band-price {
  grid-column: 2; justify-self: start;
  font-family: var(--disp); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--yel); border: 1px dashed #6a5510; padding: 0.22rem 0.55rem;
  margin-top: 0.65rem;
}

/* ---------- bizonyíték-sáv ---------- */
.proof { background: var(--yel); color: var(--ink); padding: clamp(2.4rem, 6vw, 4rem) 0; }
.proof-in { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.proof-score { display: flex; flex-direction: column; align-items: flex-start; }
.proof-num { font-family: var(--disp); font-weight: 900; font-size: clamp(4.4rem, 20vw, 8rem); line-height: 0.82; }
.proof-stars { display: block; width: clamp(8rem, 34vw, 11rem); color: var(--ink); margin-top: 0.7rem; }
.proof-stars svg { display: block; width: 100%; height: auto; }
.proof-of { font-family: var(--disp); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; margin-top: 0.6rem; }
.proof-txt .sec-h { color: var(--ink); }
.proof-list { margin-top: 1.1rem; display: grid; gap: 0.55rem; }
.proof-list li {
  font-family: var(--disp); font-weight: 900; font-size: clamp(1.3rem, 5vw, 1.7rem);
  text-transform: uppercase; padding-left: 1.6rem; position: relative;
}
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: 0.34em;
  width: 0.85rem; height: 0.36rem; background: var(--ink);
  transform: skewX(-24deg);
}
.proof-note { margin-top: 1.1rem; color: var(--dim-on-y); font-size: 0.94rem; max-width: 60ch; }

/* ---------- BHPgumi ---------- */
.bhp { background: var(--wht); color: var(--ink); padding: clamp(2.4rem, 6vw, 4rem) 0; }
.bhp-in { max-width: 800px; }
.bhp-tag {
  display: inline-block; background: var(--ink); color: var(--yel);
  font-family: var(--disp); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 0.34rem 0.8rem;
}
.bhp-h { font-size: clamp(1.9rem, 6.4vw, 3.1rem); margin-top: 1rem; }
.bhp-p { margin-top: 0.9rem; color: var(--dim-on-w); max-width: 52ch; }
.btn-line {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--disp); font-weight: 900; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); border-bottom: 4px solid var(--yel); padding-bottom: 0.2rem;
  transition: border-color 0.18s;
}
.btn-line:hover { border-bottom-color: var(--ink); }

/* ---------- nyitvatartás ---------- */
.hours { padding: clamp(2.6rem, 7vw, 4.4rem) 0; }
.hours-in { display: grid; gap: clamp(1.6rem, 4vw, 2.8rem); }
.hours-claim { font-family: var(--disp); font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.3rem); text-transform: uppercase; margin-top: 1rem; line-height: 1.05; }
.hours-note { color: var(--dim); margin-top: 0.7rem; max-width: 42ch; }
.hours-tab { width: 100%; border-collapse: collapse; font-family: var(--disp); }
.hours-tab th, .hours-tab td { padding: 0.62rem 0; border-bottom: 1px solid #2e2e2e; font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; }
.hours-tab th { text-align: left; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.hours-tab td { text-align: right; color: var(--wht); }
.hours-tab tr:nth-child(-n+5) td { color: var(--yel); }
.hours-tab .todo { color: var(--yel); font-size: 0.8rem; letter-spacing: 0.14em; }

/* ---------- útvonal ---------- */
.route { padding: 0 0 clamp(2.6rem, 7vw, 4.4rem); }
.route-in { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.route-addr { margin-top: 1rem; font-family: var(--disp); font-weight: 900; font-size: clamp(1.35rem, 5vw, 1.85rem); text-transform: uppercase; line-height: 1.1; }
.route-addr a { text-decoration: none; display: inline-block; }
.route-addr a:hover { color: var(--yel); }
.route-map {
  display: block; font-size: 0.74rem; letter-spacing: 0.18em; font-weight: 700;
  color: var(--yel); margin-top: 0.45rem;
}
.route-p { color: var(--dim); margin-top: 0.9rem; max-width: 46ch; }
.route-todo {
  margin-top: 1rem; font-family: var(--disp); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--yel);
  border-left: 4px solid var(--yel); padding-left: 0.7rem;
}
.route-help { background: var(--ink-lift); padding: clamp(1.3rem, 4vw, 1.9rem); align-self: start; }
.route-help-h { font-family: var(--disp); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.route-help-p { color: var(--dim); margin-top: 0.5rem; }
.btn-solid {
  display: inline-block; margin-top: 1.1rem; background: var(--yel); color: var(--ink);
  font-family: var(--disp); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em;
  text-decoration: none; padding: 0.6rem 1.2rem; white-space: nowrap;
  clip-path: polygon(0.8rem 0, 100% 0, calc(100% - 0.8rem) 100%, 0 100%);
}
.btn-solid:hover { background: var(--wht); }

/* ---------- lábléc ---------- */
.foot { background: var(--ink-deep); padding: clamp(2.2rem, 6vw, 3.4rem) 0 1.6rem; border-top: 1px solid #2e2e2e; }
.foot-in { display: grid; gap: 1.6rem; }
.foot-brand { font-family: var(--disp); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.04em; }
.foot-line { color: var(--dim); font-size: 0.95rem; margin-top: 0.3rem; }
.foot-line b { font-family: var(--disp); letter-spacing: 0.1em; color: var(--wht); font-weight: 700; }
.foot-line a { text-decoration: none; border-bottom: 1px solid #6a5510; }
.foot-line a:hover { color: var(--yel); }
.foot-fb { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--wht); font-weight: 600; }
.foot-fb-i { width: 26px; height: 26px; display: grid; place-items: center; background: var(--yel); color: var(--ink); flex: none; }
.foot-fb-i svg { width: 20px; height: 20px; }
.foot-fb:hover { color: var(--yel); }
.foot-fine { margin-top: 2rem; border-top: 1px solid #2e2e2e; padding-top: 1.1rem; }
.foot-fine p { color: #8f8f8f; font-size: 0.8rem; line-height: 1.5; }
.foot-fine p + p { margin-top: 0.35rem; }

/* ---------- mobil hívás-sáv ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--yel); color: var(--ink); text-decoration: none;
  font-family: var(--disp); font-weight: 900; font-size: 1.28rem; letter-spacing: 0.02em;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.45);
}
.callbar-i { width: 22px; height: 22px; display: block; flex: none; }
.callbar-i svg { display: block; width: 100%; height: 100%; }

@media (max-width: 719px) {
  body { padding-bottom: 4.4rem; }
  .head-call-num { display: none; }
  .head-call-lbl { font-size: 0.86rem; font-weight: 900; letter-spacing: 0.1em; }
}

@media (min-width: 720px) {
  .callbar { display: none; }
  .nav { display: flex; }
  .band { grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: 0 1.4rem; padding-block: 1.7rem; }
  .band-price { grid-column: 3; margin-top: 0; justify-self: end; }
  .proof-in { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); align-items: start; gap: clamp(2rem, 6vw, 4rem); }
  .hours-in, .route-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4rem); }
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-arc svg { right: -14%; width: 88%; height: 132%; }
  .hero-h1 { font-size: clamp(3.4rem, 8vw, 5rem); }
  .hero-lead { max-width: 34ch; }
}

@media (min-width: 1024px) {
  .hero { padding-block: 5.4rem 5rem; }
  .hero-arc svg { right: 0; width: 62%; height: 132%; }
  .hero-h1 { font-size: clamp(4.6rem, 7.4vw, 6.6rem); }
}

/* ---------- mozgás ---------- */
.js-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-on .reveal.in { opacity: 1; transform: none; }

@keyframes arc-roll {
  from { transform: rotate(-8deg); }
  to { transform: rotate(0deg); }
}
.arc { animation: arc-roll 1.5s cubic-bezier(0.16, 0.84, 0.32, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc { animation: none; transform: none; }
  .js-on .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
