/* =========================
   DESIGN SYSTEM / VARIABLES
========================= */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;

  --primary: #0b3c6f;
  --secondary: #155fa0;

  --header-start: var(--primary);
  --header-end: var(--secondary);

  /* LUXUS ARANY */
  --accent-gold-start: #c9a227;
  --accent-gold-mid: #e6c45a;
  --accent-gold-end: #b8961e;
  --accent-gold-text: #111;

  --text: #1f2937;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --card: #ffffff;
  --brand: var(--primary);
  --accent: var(--accent-gold-mid);
}

/* =========================
   PAGE THEMES
========================= */

body.auto {
  --primary: #5a0000;
  --secondary: #b30000;

  --header-start: var(--primary);
  --header-end: var(--secondary);

  --brand: #8f0000;
}

body.ipari {
  --header-start: #1f2937;
  --header-end: #374151;
}

body.agm {
  --header-start: #111111;
  --header-end: #2a2a2a;
}

body.trakcios {
  --header-start: #0f3d5e;
  --header-end: #1c5d85;
}

body.szerviz {
  --header-start: #654321;  /* klasszikus sötétbarna */
  --header-end: #a1785c;  /* melegebb középbarna */
}

/* =========================
   GLOBAL / RESET
========================= */
*,
*::before,
*::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================
   ACCESSIBILITY / FOCUS
========================= */
:focus-visible { outline: 2px solid var(--accent-gold-mid); outline-offset: 3px; }

/* =========================
   SKIP LINK
========================= */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-mid), var(--accent-gold-end));
  color: var(--accent-gold-text);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 8px rgba(255,215,0,0.6);
  z-index: 1000;
  font-weight: 700;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(1rem);
  opacity: 1;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 12px rgba(255,215,0,0.8);
}
@media(max-width:600px){
  .skip-link { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
}

/* =========================
   HEADER / HERO
========================= */
header {
  background: linear-gradient(135deg, var(--header-start), var(--header-end));
  color: #fff;
}

.header-inner, .hero-inner {
  max-width: 1200px;
  margin: auto;
  padding: clamp(2rem,5vw,4rem) 1rem;
}
header h1 { margin:0 0 .6rem; font-size: clamp(1.9rem,4vw,2.7rem); }
header p { max-width:760px; margin:0 0 1.5rem; color:#f8fbff; }


/* =========================
   MOBILE MENU (JS NÉLKÜL)
========================= */
.menu-toggle-checkbox { display:none; }
.menu-toggle-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  z-index: 1001;
  cursor: pointer;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--primary);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: left 0.3s ease;
  z-index: 1000;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:hover { text-decoration: underline; }
.menu-toggle-checkbox:checked ~ .mobile-menu { left:0; }
.menu-toggle-checkbox:checked ~ .mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}
@media (min-width:769px) { .menu-toggle-btn, .mobile-menu { display:none; } }

/* =========================
   BADGES
========================= */
.badges span {
  display:inline-block;
  background:rgba(255,255,255,.15);
  padding:.4rem .7rem;
  border-radius:999px;
  margin:.2rem;
  font-size:.85rem;
}

/* =========================
   CTA BUTTONS
========================= */
.cta, .product .cta-button, .breadcrumb {
  background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-mid), var(--accent-gold-end));
  color: var(--accent-gold-text);
  padding:.8rem 1.6rem;
  border-radius:10px;
  font-weight:600;
  display:inline-block;
  text-decoration:none;
  box-shadow: 0 10px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta:hover, .product .cta-button:hover, .breadcrumb:hover,
.cta:focus-visible, .product .cta-button:focus-visible, .breadcrumb:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:0 14px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18);
}
.cta:active, .product .cta-button:active, .breadcrumb:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow:0 6px 14px rgba(0,0,0,.25), inset 0 2px 4px rgba(0,0,0,.25);
}

/* CTA VARIÁNSOK */
.cta.cta-exide-premium, .product .cta-button.cta-exide-premium,
.cta.cta-exide-agm, .product .cta-button.cta-exide-agm {
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color:#fff;
}
.cta.cta-exide-marine, .product .cta-button.cta-exide-marine {
  background: linear-gradient(135deg, #024059, #0384a5); color:#fff;
}
.cta.cta-sonnenschein, .product .cta-button.cta-sonnenschein {
  background: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-mid), var(--accent-gold-end)); color:#fff;
}

/* CTA MAIN */
.cta-main, .related { display:inline-block; background:var(--accent); color:#000; padding:.9rem 1.4rem; border-radius:10px; font-weight:700; text-decoration:none; margin-top:1rem; }
.cta-main:hover, .related a:hover { opacity:.9; text-decoration:none; }

/* =========================
   LAYOUT / SECTIONS / CARD
========================= */
main { max-width:1200px; margin:-3rem auto 4rem; padding:0 1rem; }
section { background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(1.5rem,3vw,2.5rem); margin-bottom:2.5rem; }
section h2 { margin-top:0; font-size:clamp(1.4rem,3vw,1.8rem); }
.card { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:1.5rem; }

/* =========================
   MAP / GOOGLE MAPS
========================= */
.map-container { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* =========================
   PRODUCTS GRID
========================= */
.products { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1.5rem; }
.product { border:1px solid var(--border); border-radius:var(--radius); padding:1.4rem; display:flex; flex-direction:column; background:var(--surface); transition:transform .2s ease, box-shadow .2s ease; }
.product:hover { transform:translateY(-4px); box-shadow:0 12px 25px rgba(0,0,0,.12); }
.product img { width:100%; height:auto; object-fit:contain; display:block; aspect-ratio:1/1; }
.product h3 { margin:0 0 .5rem; font-size:1.1rem; }
.product dl { display:grid; grid-template-columns:max-content 1fr; gap:.35rem .9rem; font-size:.95rem; margin:0 0 1.2rem; }
.product dt { color:var(--muted); }
.product .cta-button { margin-top:auto; text-align:center; }

/* PRODUCT PAGE GRID */
.product-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:2rem; }
.product-image img { width:100%; max-width:640px; height:auto; border-radius:var(--radius); border:1px solid var(--border); }

/* PRICE / SPECS */
.price-box { background:#eef4ff; border-left:6px solid var(--primary); padding:1.2rem 1.5rem; margin:1.5rem 0; }
.price { font-size:1.4rem; font-weight:700; }
.specs { display:grid; grid-template-columns:max-content 1fr; gap:.4rem 1rem; font-size:.95rem; }
.specs dt { color:var(--muted); }
.spec-grid { display:grid; gap:1rem; margin-bottom:1.5rem; }
@media(min-width:601px){ .spec-grid { grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); } }
@media(max-width:600px){ .spec-grid { grid-template-columns:repeat(2,1fr); } }
.spec { background:#f1f4f8; border-radius:10px; padding:.9rem; text-align:center; }
.spec strong { display:block; color:var(--brand); }
.spec progress[value] { width:100%; height:8px; border-radius:4px; appearance:none; background:#ddd; }
.spec progress[value]::-webkit-progress-bar { background:#ddd; border-radius:4px; }
.spec progress[value]::-webkit-progress-value { background:linear-gradient(90deg,#0b3c6f,#145ea8); border-radius:4px; }
.spec.gold progress[value]::-webkit-progress-value { background:linear-gradient(90deg,var(--accent-gold-start),var(--accent-gold-end)); border-radius:4px; }
.spec.gold progress[value]::-moz-progress-bar { background:linear-gradient(90deg,var(--accent-gold-start),var(--accent-gold-end)); }
.spec progress[value]::-moz-progress-bar { background:linear-gradient(90deg,#0b3c6f,#145ea8); }
.spec-value { display:block; margin-top:.35rem; font-weight:600; font-size:.95rem; }

/* FEATURES / ICON LIST */
.features { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.5rem; }
.feature { border-left:4px solid var(--primary); padding-left:1rem; }
.feature h3 { margin-top:0; font-size:1.05rem; }
.icon-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.icon-item { background:#fff; border-radius:12px; padding:1.2rem; box-shadow:0 6px 20px rgba(0,0,0,.06); }

/* FOOTER */
footer { text-align:center; padding:2.5rem 1rem; color:var(--muted-strong); font-size:.9rem; }

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){ .hero-inner { grid-template-columns:1fr; text-align:center; } }
@media(max-width:900px){ .product-grid { grid-template-columns:1fr; } }
@media(max-width:600px){ .product .cta-button { width:100%; } }
@media(max-width:480px){ .spec-grid { grid-template-columns:repeat(2,1fr); } }

/* =========================
   PREFERS-REDUCED-MOTION
========================= */
@media(prefers-reduced-motion:reduce){
  * { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

/* Screen reader only / visually hidden element */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
