/*
Theme Name: Kegiom (WPFlow)
Theme URI: https://kegiom.hu
Description: kegiom.hu (HU) / kegiom.ro (RO) – the look of the old Kegiom site: navy top bar with the red call box, white menu box over the banner, dark title band, striped spec tables. Catalogue models, slideshow, pages and the Facebook link come from WPFlow (WPFlow Sync 1.2.1+). Child theme of WPFlow Base.
Author: Working Platform WP
Template: wpflow-base
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: wpflow-kegiom
*/

/* Colours of the old site: #1b263c navy, #353d50 dark band, #dc1212 red, #333 text, #888 / #666 grey, #ddd lines, #eee / #f2f2f2 light */
:root {
  --navy: #1b263c;
  --band: #353d50;
  --red: #dc1212;
  --red-d: #b30e0e;
  --text: #333;
  --muted: #666;
  --line: #ddd;
  --light: #eee;
  --field: #f2f2f2;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 14px/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; font-weight: normal; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.noimg { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--light); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 22px; border: 0; font: bold 14px/1.2 Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover, .btn-red:focus-visible { background: var(--red-d); color: #fff; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy); color: #fff; }
.topbar-in { display: flex; justify-content: space-between; align-items: stretch; min-height: 40px; }
.topbar-l { display: flex; align-items: center; gap: 16px; }
.tb-fb { color: #fff; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.tb-fb:hover { background: #3b5998; color: #fff; }
.langs { display: flex; gap: 8px; }
.langs a { color: rgba(255,255,255,.75); font-size: 12px; font-weight: bold; text-transform: uppercase; }
.langs a.on, .langs a:hover { color: #fff; }
.callbox { display: flex; align-items: center; gap: 12px; background: var(--red); color: #fff; padding: 6px 20px; font-size: 14px; }
.callbox:hover { color: #fff; background: var(--red-d); }
.callbox img { display: block; }

.site-header { background: #fff; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 20px 50px; }
.brand { flex: 0 0 auto; display: block; }
.brand .logo { display: block; width: 244px; }
.hinfo { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.hinfo li { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.hinfo li img { flex: 0 0 45px; display: block; }
.hinfo strong { display: block; font-size: 15px; font-weight: normal; color: var(--navy); }
.hinfo a { color: var(--muted); }
.hinfo a:hover { color: var(--red); }
.nav-toggle { display: none; }

/* ---------- menu box over the banner / title band ---------- */
.menu-row { position: relative; z-index: 40; margin-top: -20px; height: 0; text-align: center; padding: 0 20px; }
.menubox { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: 1060px; padding: 18px 25px; background: #fff; border: 1px solid var(--line); box-shadow: 0 0 10px rgba(0,0,0,.2); text-align: left; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav .menu li { margin: 0; }
.nav .menu a { display: block; font-size: 14px; font-weight: bold; text-transform: uppercase; color: var(--navy); padding: 2px 20px; border-right: 1px solid var(--line); line-height: 1.4; }
.nav .menu li:first-child a { padding-left: 0; }
.nav .menu li:last-child a { border-right: 0; }
.nav .menu a:hover, .nav .menu .current-menu-item > a, .nav .menu a[aria-current] { color: var(--red); }
.hsearch { display: flex; align-items: center; gap: 0; flex: 0 1 230px; }
.hsearch img { padding-right: 14px; margin-right: 12px; border-right: 1px solid var(--line); box-sizing: content-box; }
.hsearch input { flex: 1 1 auto; min-width: 0; border: 0; padding: 4px 0; font: 17px Arial, sans-serif; color: var(--text); background: transparent; }
.hsearch input::placeholder { color: #888; }
.hsearch input:focus { outline: 0; }
.hsearch:focus-within { box-shadow: 0 2px 0 var(--red); }
.hsearch button { border: 0; background: none; color: var(--navy); padding: 6px; cursor: pointer; }

/* ---------- home ---------- */
.hero { position: relative; background: #888; min-height: 120px; }
.hero-empty { height: 420px; background: var(--band); }
.kgm-slides { --wpf-slide-accent: var(--red); background: #888; }
.kgm-slides .wpf-slide img { max-height: none; width: 100%; object-fit: cover; }
.intro { padding: 50px 0 10px; }
.intro-in { display: grid; gap: 40px; }
.intro-in.has-map { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.intro-map img { display: block; width: 100%; }
.red-h { color: var(--red); font-size: 24px; margin: 0 0 16px; }
.prose { color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.boxes { padding: 40px 0 60px; }
.boxes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hbox { border: 1px solid var(--line); text-align: center; padding: 10px 14px 0; display: flex; flex-direction: column; align-items: center; }
.hbox-img { display: block; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 28px; }
.hbox-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hbox:hover .hbox-img img { transform: scale(1.08); }
.hbox h2 { font-size: 18px; text-transform: uppercase; color: var(--navy); margin-bottom: 22px; }
.hbox h2 a { color: inherit; }
.hbox p { font-size: 12px; color: var(--muted); flex: 1 1 auto; }
.hbox-go { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; margin: 6px 0 14px; padding-left: 3px; }
.hbox-go:hover { background: var(--navy); color: #fff; }

/* ---------- recommendation band + offer band (every page) ---------- */
.rec { background: var(--band); color: #fff; padding: 50px 0 40px; }
.rec-h { text-align: center; text-transform: uppercase; font-size: 24px; color: #fff; margin-bottom: 40px; }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; }
.rec-img { display: block; overflow: hidden; aspect-ratio: 575 / 300; background: #2a3142; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rec-item:hover .rec-img img { transform: scale(1.06); }
.rec-item h3 { font-size: 22px; margin: 12px 0 8px; }
.rec-item h3 a { color: #fff; }
.rec-item h3 a:hover { text-decoration: underline; color: #fff; }
.rec-item p { color: rgba(255,255,255,.5); font-size: 13px; margin: 0; }
.cta { background: var(--light); padding: 40px 0; }
.cta-in { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.cta-h { color: var(--red); font-size: 22px; font-weight: bold; text-align: center; }
.cta-txt { font-size: 13px; color: #444; }
.cta-btn { min-width: 210px; justify-content: center; }
.cta-btn img { background: #fff; padding: 2px; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 50px; padding-top: 50px; padding-bottom: 50px; }
.foot-about img { display: block; width: 245px; margin-bottom: 18px; }
.foot-about p { font-size: 12px; color: #444; margin: 0; }
.foot-menu h2 { color: var(--band); text-transform: uppercase; font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.foot-menu ul { list-style: none; margin: 0; padding: 0; }
.foot-menu a { display: block; padding: 10px 0; border-bottom: 1px dotted #ccc; font-size: 13px; font-weight: bold; text-transform: uppercase; color: var(--navy); }
.foot-menu a:hover { text-decoration: underline; }
.foot-menu a.on { color: var(--red); }
.fb-link { display: inline-flex; align-items: center; gap: 12px; font-weight: bold; color: var(--navy); }
.fb-ico { width: 44px; height: 44px; border-radius: 50%; background: #3b5998; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fb-link:hover .fb-ico { background: var(--navy); }
.foot-bottom { background: var(--navy); color: #fff; padding: 20px 0; font-size: 13px; }

/* ---------- inner pages ---------- */
.band { background: var(--band); color: #fff; padding: 92px 0 46px; text-align: center; }
.band-h { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.page-body { padding-top: 34px; padding-bottom: 60px; }
.page-h, .prod-h { color: var(--navy); font-size: 24px; margin: 0 0 24px; }
.page-dealers .page-h, .page-plain .page-h { font-size: 18px; font-weight: bold; text-transform: uppercase; }
.page-cols { display: grid; gap: 40px; }
.page-cols.has-ph { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.page-ph img { display: block; width: 100%; }
.dealers h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; color: var(--text); }
.dealers p { font-size: 13px; padding-bottom: 12px; border-bottom: 1px dotted #aaa; max-width: 570px; }
.dealers h3 + p strong { font-weight: normal; }
.empty { color: var(--muted); }

/* ---------- catalogue cards ---------- */
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pcard { border: 1px solid var(--line); padding: 10px 10px 0; text-align: center; display: flex; flex-direction: column; }
.pcard-img { display: block; overflow: hidden; aspect-ratio: 248 / 180; background: var(--light); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pcard:hover .pcard-img img { transform: scale(1.09); }
.pcard-h { font-size: 15px; margin: 10px 0 8px; color: var(--navy); }
.pcard-h a { color: var(--navy); }
.pcard-txt { color: var(--muted); font-size: 12.5px; flex: 1 1 auto; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-go { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); margin: 4px auto -17px; position: relative; display: block; border: 2px solid #fff; }
.pcard-go::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pcard:hover .pcard-go { background-color: var(--red); }
.pcards { padding-bottom: 20px; }
.pcard-page .pcard-h { margin-top: 16px; }
.pager { display: flex; gap: 6px; margin-top: 40px; padding: 16px 0; border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); }
.pager .page-numbers { font-size: 16px; font-weight: bold; color: var(--text); padding: 0 6px; }
.pager .current, .pager a:hover { color: var(--red); }

/* ---------- product page ---------- */
.prod { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr); gap: 30px; align-items: start; }
.gallery-main { border: 2px solid #fff; transition: border-color .4s; }
.gallery-main:hover { border-color: #00467a; }
.gallery-big { display: block; width: 100%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 8px; }
.thumb { padding: 0; border: 2px solid #fff; background: var(--light); cursor: pointer; aspect-ratio: 149 / 105; overflow: hidden; transition: border-color .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover, .thumb.on { border-color: var(--navy); }
.kg-spec, .prod-desc table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 0 0 24px; }
.kg-spec th, .kg-spec td, .prod-desc th, .prod-desc td { text-align: left; font-weight: normal; padding: 5px 6px; vertical-align: top; }
.kg-spec th, .prod-desc th { width: 62%; }
.kg-spec tr:nth-child(odd), .prod-desc tr:nth-child(odd) { background: #ddd; }
.kg-spec tr:nth-child(even), .prod-desc tr:nth-child(even) { background: #fff; }
.files { margin: 6px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.pdf-badge { background: #fff; color: var(--red); font-size: 11px; font-weight: bold; padding: 3px 5px; border-radius: 2px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 24px; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; background: rgba(27,38,60,.35); color: #fff; font: bold 15px Arial, sans-serif; cursor: pointer; }
.video-play:hover { background: rgba(27,38,60,.15); }
.play-ico { width: 58px; height: 58px; border-radius: 50%; background: var(--red); position: relative; }
.play-ico::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pgrid-a { display: block; overflow: hidden; border-radius: 5px; aspect-ratio: 230 / 200; }
.pgrid-a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pgrid-a:hover img { transform: scale(1.1); }

/* ---------- offer / contact form (WPFlow Sync) ---------- */
.offer { margin-top: 10px; }
.offer-h { color: var(--navy); font-size: 18px; text-transform: uppercase; margin-bottom: 14px; }
.wpf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.wpf-form .wpf-f { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wpf-form .wpf-wide { grid-column: 1 / -1; }
.wpf-form label { font-size: 13px; color: var(--muted); }
.wpf-form .inp { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); background: var(--field); font: inherit; color: var(--text); border-radius: 5px; }
.wpf-form textarea.inp { min-height: 120px; resize: vertical; background: #f4f4f4; }
.wpf-form .inp:focus { border-color: var(--band); outline: 2px solid rgba(53,61,80,.25); outline-offset: 0; background: #fff; }
.wpf-form .wpf-submit { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wpf-form .wpf-submit .btn, .wpf-form button[type=submit] { background: var(--band); color: #fff; border: 0; padding: 10px 22px; min-height: 40px; font: bold 14px Arial, sans-serif; cursor: pointer; border-radius: 0; }
.wpf-form .wpf-submit .btn:hover, .wpf-form button[type=submit]:hover { background: var(--navy); }
.wpf-hp { position: absolute; left: -9999px; }
.wpf-form-msg { padding: 10px 14px; margin: 0 0 12px; font-weight: bold; }
.wpf-ok { background: #e8f6e8; color: #1f6b1f; }
.wpf-err { background: #fdeaea; color: #9a1c1c; }

/* ---------- narrower screens (the old site was a fixed 1200 px) ---------- */
@media (max-width: 1100px) {
  .hinfo { gap: 18px; }
  .hinfo-addr { display: none !important; }
  .nav .menu a { padding: 2px 12px; font-size: 13px; }
  .hsearch { flex-basis: 160px; }
  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-in { padding: 18px 20px 34px; }
  .hinfo { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .menubox { display: none; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  .menubox.open { display: flex; }
  .menu-row { height: auto; margin-top: -20px; margin-bottom: 0; position: relative; }
  .menubox.open { position: absolute; left: 20px; right: 20px; width: auto; }
  .nav .menu { flex-direction: column; }
  .nav .menu a, .nav .menu li:first-child a { border-right: 0; border-bottom: 1px dotted #ccc; padding: 12px 0; font-size: 14px; }
  .hsearch { flex-basis: auto; padding-top: 10px; }
  .intro-in.has-map, .page-cols.has-ph { grid-template-columns: minmax(0, 1fr); }
  .intro-map { max-width: 300px; }
  .boxes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-grid { gap: 24px; }
  .cta-in { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
  .foot-about { grid-column: 1 / -1; }
  .prod { grid-template-columns: minmax(0, 1fr); }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding: 40px 0 26px; }
}
@media (max-width: 560px) {
  .topbar-in { padding: 0; }
  .topbar-l { padding-left: 16px; }
  .callbox { font-size: 12px; padding: 6px 12px; gap: 8px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-in { padding-top: 14px; padding-bottom: 30px; }
  .intro-map { max-width: 220px; }
  .brand .logo { width: 180px; }
  .boxes-grid, .rec-grid, .pcards, .vgrid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .wpf-form { grid-template-columns: minmax(0, 1fr); }
  .kg-spec th, .prod-desc th { width: 55%; }
  .red-h { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.page-contact .offer { margin-top: 34px; }

/* privacy notice link in the footer (WPFlow page "privacy") */
.foot-bottom .privacy-link { color: inherit; text-decoration: underline; }
