:root{
  /* Light, white+red first (minimal grey) */
  --bg:#ffffff;
  --surface:#ffffff;
  --card:#ffffff;
  --card2:#ffffff;
  --text:rgba(17,24,39,0.98);
  --muted:rgba(55,65,81,0.86);
  --line:rgba(17,24,39,0.12);
  --shadow:0 18px 55px rgba(17,24,39,.12);
  --radius:18px;
  --max:1150px;
  --red:#c51d26;
  --red2:#ff3b47;
  --ring:rgba(197,29,38,.14);
  --focus:rgba(255,59,71,.45);
  --font:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto}
.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Header */
header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,.68));
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(12px);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width:220px;
}
.brand img{width:46px; height:46px; border-radius:14px; background:#fff}
.brand .title{line-height:1.05}
.brand .title strong{display:block; font-size:16px}
.brand .title span{display:block; font-size:12px; color:var(--muted)}

.navlinks{display:flex; align-items:center; gap:4px}
.navlinks a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
.navlinks a:hover{background:rgba(197,29,38,0.08); color:var(--text)}

.ctas{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.88);
  color:var(--text);
  font-weight:800;
  box-shadow:0 12px 30px rgba(17,24,39,.10);
}
.btn:hover{background:#fff}
.btn.primary{
  border:1px solid rgba(255,59,71,.35);
  background:linear-gradient(135deg, var(--red), var(--red2));
  box-shadow:0 18px 45px rgba(197,29,38,.35);
}
.btn.primary:hover{filter:brightness(1.03)}

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.88);
}
.hamburger:focus{outline:3px solid var(--focus); outline-offset:2px}

/* Hero */
.hero{
  padding:44px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:center;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  color:var(--muted);
  font-weight:700;
}
.kicker .dot{width:10px;height:10px;border-radius:999px;background:var(--red2); box-shadow:0 0 0 6px var(--ring)}

h1{
  margin:14px 0 10px;
  font-size:46px;
  line-height:1.05;
  letter-spacing:-.8px;
}
.lead{color:var(--muted); font-size:18px; line-height:1.6; max-width:56ch}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.hero-card{
  position:relative;
  border-radius:24px;
  border:1px solid var(--line);
  background:
    radial-gradient(560px 320px at 16% 18%, rgba(255,59,71,.18), transparent 60%),
    radial-gradient(520px 260px at 78% 78%, rgba(197,29,38,.10), transparent 62%),
    #fff;
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height:360px;
}
.hero-card .ring{
  position:absolute; inset:auto -40px -120px auto;
  width:420px; height:420px;
  border-radius:999px;
  border:22px solid rgba(197,29,38,.35);
  filter: blur(.2px);
}
.hero-card .ring::after{
  content:"";
  position:absolute; inset:24px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
}
.hero-card .car{
  position:absolute; inset:auto 18px 18px 18px;
  display:grid; place-items:center;
}
.hero-card .badge{
  position:absolute; top:16px; right:16px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  color:var(--muted);
  font-weight:800;
}

/* Sections */
section{padding:54px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px}
.section-head h2{margin:0; font-size:28px; letter-spacing:-.4px}
.section-head p{margin:0; color:var(--muted); max-width:70ch}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:20px;
  padding:18px;
  box-shadow:0 16px 45px rgba(17,24,39,.10);
}
.card h3{margin:10px 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.6}
.icon{
  width:44px; height:44px;
  border-radius:16px;
  display:grid; place-items:center;
  background:rgba(197,29,38,.10);
  border:1px solid rgba(197,29,38,.18);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}
.panel{
  border-radius:24px;
  border:1px solid var(--line);
  background:
    radial-gradient(820px 400px at 10% 0%, rgba(255,59,71,.12), transparent 60%),
    #fff;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel .content{padding:22px}
.panel .content h3{margin:0 0 10px; font-size:22px}
.panel .content p{margin:0; color:var(--muted); line-height:1.7}
.panel .content ul{margin:14px 0 0; padding:0 0 0 18px; color:var(--muted); line-height:1.8}
.panel .image{
  min-height:260px;
  background-size:contain;
  background-repeat:no-repeat;
  background-color:#fff;
  background-position:center;
}

/* Prices */
.prices-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:14px;
}
.price-card{
  border-radius:22px;
  border:1px solid var(--line);
  background:#fff;
  padding:18px;
  box-shadow:0 18px 45px rgba(17,24,39,.10);
}
.price-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px}
.price-head h3{margin:0; font-size:18px}
.muted{color:var(--muted)}
.pill{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(197,29,38,.18);
  border:1px solid rgba(255,59,71,.25);
  font-weight:900;
}
.price-list{margin:0; padding:0 0 0 18px; color:var(--muted); line-height:1.75}
.price-list li{margin:4px 0}
.note{
  margin-top:16px;
  border:1px dashed var(--line);
  background:#fff;
  border-radius:18px;
  padding:14px;
  color:var(--muted);
}

/* Hours & Contact */
.hours{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--line);
}
.table th,.table td{padding:12px 14px; text-align:left}
.table th{color:var(--muted); font-weight:800; border-bottom:1px solid var(--line)}
.table tr+tr td{border-top:1px solid var(--line)}

.contact-grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px; align-items:stretch}
.kv{display:grid; gap:8px; color:var(--muted)}
.kv strong{color:var(--text)}
.map{border-radius:22px; overflow:hidden; border:1px solid var(--line); display:flex; min-height:520px; box-shadow: var(--shadow)}
.map iframe{width:100%; height:100%; border:0; flex:1; display:block}

/* Footer */
footer{padding:36px 0 70px; border-top:1px solid var(--line); color:var(--muted)}
.footer-grid{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap}
.small{font-size:13px; line-height:1.6}
.footer-links{display:flex; gap:10px; flex-wrap:wrap}
.footer-links a{padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:#fff}
.footer-links a:hover{background:rgba(197,29,38,0.06)}

/* Floating buttons */
.floatbar{
  position:fixed;
  right:16px;
  bottom:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:60;
}
.floatbar a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-weight:900;
}
.floatbar a.primary{background:linear-gradient(135deg,var(--red),var(--red2)); border:1px solid rgba(255,59,71,.35)}
.floatbar span{font-size:14px}

/* Mobile */
@media (max-width: 860px){
  h1{font-size:40px}
  .hero-grid{grid-template-columns:1fr;}
  .hero-card{min-height:320px}
  .split{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .prices-grid{grid-template-columns:1fr}
  .hours{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .navlinks{display:none}
  .hamburger{display:inline-flex; align-items:center; justify-content:center}
}

/* Mobile menu drawer */
.drawer{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  z-index:80;
}
.drawer.open{display:block}
.drawer-panel{
  position:absolute; right:0; top:0; height:100%; width:min(360px, 92vw);
  background:rgba(255,255,255,.98);
  border-left:1px solid var(--line);
  padding:16px;
}
.drawer-panel .top{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
.drawer-panel a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  margin:10px 0;
  color:var(--text);
  font-weight:800;
}
.drawer-panel a:hover{background:rgba(197,29,38,0.06)}

:focus{outline:3px solid rgba(255,59,71,.45); outline-offset:2px}
/* ===== Kategória kártyák (főoldal + kategoriak.html) ===== */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.cat-card{
  display:block;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover{
  transform: translateY(-3px);
  box-shadow:0 24px 70px rgba(17,24,39,.16);
}
.cat-card .thumb{
  height:150px;
  background-size:contain;
  background-repeat:no-repeat;
  background-color:#fff;
  background-position:center;
}
.cat-card .cat-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
}
.cat-card .cat-meta strong{font-size:16px}
.cat-card .cat-meta span{color:var(--muted); font-weight:800}

/* ===== Hero kép ===== */
.hero-photo{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  overflow:hidden;
  background:#fff;
}
.hero-photo img{
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:contain;
  display:block;
}

/* ===== Kapcsolat szekció (fehér alap, piros cím) ===== */
.contact-section{
  margin-top:36px;
  padding:56px 0;
  background: transparent;
}
.contact-section .section-head{margin-top:0}
.contact-section .section-head h2{color:var(--red)}
.contact-section .section-head p{color:var(--muted)}

/* ===== Morzsák (aloldalak) ===== */
.crumbs{display:flex; gap:10px; align-items:center; color:var(--muted); font-weight:800; font-size:13px}
.crumbs a{color:rgba(17,24,39,0.78)}
.crumbs span{opacity:.6}

/* ===== Oldal konténer ===== */
main.page{padding-top:18px}

@media (max-width: 860px){
  .cat-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width: 640px){
  .cat-grid{grid-template-columns:1fr}
  .hero-photo img{min-height:220px}
}


/* Részletek buborék (kattinthatóság jelzése) */
.cat-card .cat-meta span{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(197,29,38,.22);
  background:rgba(197,29,38,.06);
  color:rgba(55,65,81,0.92);
  font-weight:800;
}
.cat-card:hover .cat-meta span{background:rgba(197,29,38,.10)}

/* Vissza gomb sor */
.back-row{display:flex; justify-content:flex-start; margin:12px 0 0}


/* Árlista (kategória oldalak) */
.price-list{margin:10px 0 0; padding-left:18px}
.price-list li{margin:6px 0}
.price-list li.muted{color:var(--muted); font-weight:700}

/* „Részletek” jelölés a kártyákon – kattinthatóság */
.cat-meta span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(197,29,38,.16);
  border:1px solid rgba(255,59,71,.25);
  font-weight:900;
}

/* Menü + footer kicsit nagyobb (Email/Hívás marad) */
.navlinks a{font-size:1.03rem; padding:10px 10px}
.brand strong{font-size:1.05rem}
.footer{font-size:1.02rem}
.footer a.btn, .footer a.pill{font-size:1.0rem}

.poem{font-style:italic; font-weight:800;}


@media (max-width: 768px) {
  .hide-sm { display: none; }
}

:focus-visible { outline: 3px solid #000; outline-offset: 2px; }

/* ===== Desktop comfortable scaling ===== */
@media (min-width: 1024px) {
  html { font-size: 18px; }
  .container, .wrapper, .content {
    max-width: 1200px;
  }
}

/* ===== Hero image gap fix ===== */
.hero,
.hero img,
.hero-image {
  overflow: hidden;
}

.hero img,
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Kapcsolat title color fix ===== */
#kapcsolat h2,
.kapcsolat h2,
.section-kapcsolat h2 {
  color: #000;
}

/* ===== HERO IMAGE CLEAN EDGE FIX ===== */
.hero,
.hero-card,
.hero-image,
.hero img,
.hero-image img {
  background: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

.hero,
.hero-card,
.hero-image {
  overflow: hidden;
}

/* ===== One-line hero phrase (desktop) ===== */
@media (min-width: 1024px) {
  .nowrap-phrase { white-space: nowrap; }
}

/* ===== Category page header: keep title + back button one line on desktop ===== */
@media (min-width: 1024px) {
  main h1 { 
    white-space: nowrap;
    font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  }
  .back, .back-btn, .btn-back, a.back {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}

/* ===== Active nav link ===== */
.navlinks a.active {
  color: var(--accent);
  font-weight: 700;
}
.navlinks a.active::after{
  content:"";
  display:block;
  height:2px;
  margin-top:6px;
  background: currentColor;
  border-radius: 999px;
}

/* Prevent background scroll when drawer open */
.no-scroll { overflow: hidden; }

/* Mobile header cleanup */
@media (max-width: 860px){
  header .ctas a.btn{display:none}
  header .brand .title span{display:none}
}

@media (max-width:860px){
  header .hamburger{position:relative}
  header .hamburger span{
    position:absolute;
    width:22px;height:2px;
    background:currentColor;
    transition:.25s;
  }
  header .hamburger span:nth-child(1){transform:translateY(-6px)}
  header .hamburger span:nth-child(2){transform:translateY(0)}
  header .hamburger span:nth-child(3){transform:translateY(6px)}

  header .hamburger.active span:nth-child(1){
    transform:rotate(45deg);
  }
  header .hamburger.active span:nth-child(2){
    opacity:0;
  }
  header .hamburger.active span:nth-child(3){
    transform:rotate(-45deg);
  }
}
