/* ==========================================================
   Old Boys Autószervíz – stíluslap
   Sötét szén háttér, narancs akcentus.
   A színek és méretek az :root részben egy helyen módosíthatók.
   ========================================================== */

:root {
  --bg: #121212;            /* fő háttér */
  --bg-alt: #181818;        /* váltakozó szekció háttér */
  --panel: #1e1e1e;         /* kártyák */
  --line: #2e2e2e;          /* vékony elválasztók */
  --text: #f1eee8;          /* fő szöveg */
  --muted: #a8a39a;         /* halványabb szöveg */
  --accent: #ff6a13;        /* narancs: gombok, keretek */
  --accent-hover: #ff8238;
  --accent-text: #ff6a13;   /* kisebb szövegekhez (most ugyanaz, mint az akcentus) */
  --accent-ink: #1a0b00;    /* sötét szöveg a narancs gombon */

  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;

  --wrap: 1120px;
  --header-h: 68px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.muted { color: var(--muted); }

/* Hiányzó adatok jelzése – a végleges oldalon NEM maradhat ilyen */
.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  color: var(--accent-text);
  font-size: 0.9em;
  background: rgba(255, 106, 19, 0.06);
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(241, 238, 232, 0.4); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }

.btn-label { font-size: 0.8rem; letter-spacing: 0.14em; opacity: 0.85; }
.btn-number { font-size: 1.35rem; letter-spacing: 0.04em; line-height: 1.1; }

.btn-small { min-height: 42px; padding: 8px 20px; font-size: 0.95rem; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: linear-gradient(to bottom, rgba(18,18,18,.85), rgba(18,18,18,0));
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-solid {
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-main {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.brand-sub {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--accent-text);
  margin-top: 3px;
}

.main-nav { display: none; gap: 30px; margin-left: auto; margin-right: 8px; }
.main-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover { color: var(--accent-text); border-color: var(--accent); }

/* ---------- Nyitó rész ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 72px;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,.82) 30%, rgba(18,18,18,.35) 65%, rgba(18,18,18,.55) 100%),
    linear-gradient(to right, rgba(18,18,18,.7), rgba(18,18,18,0) 70%);
}
.hero-content { position: relative; }
.hero h1 {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-lead {
  max-width: 34rem;
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: #e4e0d8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Szekciók ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 18px; }
.section-lead { max-width: 38rem; color: var(--muted); margin: 0 0 44px; }
.section-lead-tight { margin-bottom: 0; }

/* Szolgáltatás kártyák */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.service {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.service-num {
  display: block;
  font-family: var(--font-display);
  color: var(--accent-text);
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.service h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); }
.service-note { background: rgba(255, 106, 19, 0.07); border-color: var(--accent); }

/* Nyitvatartás a nyitó részben */
.hero-hours { margin: 26px 0 0; color: #e4e0d8; font-size: 1rem; }
.hero-hours strong { color: var(--accent-text); font-weight: 600; }

/* Rólunk */
.about-text { color: var(--text); margin-bottom: 52px; }
.team-title { font-size: 1.1rem; color: var(--accent-text); letter-spacing: 0.14em; margin-bottom: 18px; }
.team { display: grid; gap: 16px; grid-template-columns: 1fr; }
.team-member {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.team-role { color: var(--muted); }

/* Galéria */
.gallery { margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Elérhetőség */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px; }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.contact-card h3 { font-size: 1.1rem; color: var(--accent-text); letter-spacing: 0.14em; }
.contact-card p { margin: 0; }
.contact-card address { font-style: normal; line-height: 1.7; }
.contact-card .btn { margin-top: auto; }
.contact-card-main { border-color: var(--accent); }
.contact-big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: 0.03em;
}
.contact-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
  margin-bottom: -6px;
}
.hours { display: flex; flex-direction: column; gap: 6px; }
.hours-days { color: var(--muted); }
.hours-time {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.contact-big a { text-decoration: none; }
.contact-big a:hover { color: var(--accent-text); }

/* ---------- Lábléc ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }
.footer-links { margin-top: 12px !important; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Lenyíló szolgáltatás-kártyák ---------- */
.service { transition: border-color .2s, background-color .2s, box-shadow .2s; }
.service:has(details[open]) {
  border-color: var(--accent);
  background: #232323;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.service summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.service summary::-webkit-details-marker { display: none; }
.service-head { display: flex; flex-direction: column; }
.service-head .service-num { margin-bottom: 10px; }
.service-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: 1.35rem;
}
.service-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  transition: background-color .2s, transform .25s;
}
.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: var(--accent-text);
  transform: translate(-50%, -50%);
  transition: transform .25s, background-color .2s;
}
.service-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service summary:hover .service-toggle { background: rgba(255, 106, 19, 0.15); }
details[open] .service-toggle { background: var(--accent); }
details[open] .service-toggle::before,
details[open] .service-toggle::after { background: var(--accent-ink); }
details[open] .service-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.service-desc {
  margin: 20px 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #e0dbd2;
  font-size: 1.08rem;
  line-height: 1.65;
  animation: reveal .3s ease;
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Kiemelt hívógomb a nyitó részen ---------- */
.btn-call {
  flex-direction: row;
  gap: 16px;
  min-height: 70px;
  padding: 14px 34px 14px 26px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(255, 106, 19, 0.28);
  animation: callpulse 2.6s ease-out infinite;
}
.btn-call .btn-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn-call .btn-label { font-size: 0.85rem; letter-spacing: 0.16em; opacity: 0.9; }
.btn-call .btn-number { font-size: 1.8rem; letter-spacing: 0.03em; line-height: 1.05; }
.btn-icon { width: 32px; height: 32px; flex: none; fill: currentColor; }
@keyframes callpulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 106, 19, .55), 0 10px 30px rgba(255, 106, 19, .28); }
  70%  { box-shadow: 0 0 0 20px rgba(255, 106, 19, 0), 0 10px 30px rgba(255, 106, 19, .28); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0), 0 10px 30px rgba(255, 106, 19, .28); }
}
@media (max-width: 719px) {
  .hero-actions .btn-call { width: 100%; justify-content: center; }
}

/* ---------- Jogi oldalak (impresszum, adatkezelés) ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.25rem; color: var(--accent-text); letter-spacing: 0.08em; margin: 40px 0 12px; }
.legal p, .legal li { max-width: 46rem; color: #ddd8cf; }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-text); }
.legal-meta { color: var(--muted); margin-bottom: 32px !important; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 6px; }

/* Békéltető testületek (panaszkezelés oldal) */
.board-main {
  max-width: 46rem;
  margin: 18px 0 20px;
  padding: 6px 20px 16px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.legal details.boards {
  max-width: 46rem;
  margin: 18px 0 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal details.boards summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal details.boards[open] summary { border-bottom: 1px solid var(--line); }
.board { padding: 4px 20px 12px; border-bottom: 1px solid var(--line); }
.board:last-child { border-bottom: 0; }
.board .legal-list { max-width: none; }
@media (min-width: 720px) {
  .board .legal-list, .board-main .legal-list { grid-template-columns: 11rem 1fr; }
}
.legal-list { margin: 0; max-width: 46rem; }
.legal-list dt { color: var(--muted); padding-top: 14px; font-size: 0.95rem; }
.legal-list dd { margin: 0; padding: 2px 0 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .legal-list { display: grid; grid-template-columns: 16rem 1fr; }
  .legal-list dt, .legal-list dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal-list dd { padding-top: 14px; }
}

/* ---------- Mobil hívósáv ---------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
}
.callbar-label { font-size: 0.85rem; letter-spacing: 0.1em; }
.callbar-number { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; }
body { padding-bottom: 64px; }  /* hogy a sáv ne takarjon el semmit */

/* ---------- Nagyobb képernyők ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

@media (min-width: 1000px) {
  .section { padding: 112px 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-bottom: 96px; }
}

/* Aki csökkentett mozgást kért, annak nincs animáció */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn-call, .service-desc { animation: none !important; }
}
