/*
  -=====================================================¬
  ¦  Készítette: KexDesign – www.kexdesign.hu           ¦
  ¦  Weboldal készítés és szerver szolgáltatás, Siófok  ¦
  ¦                                                     ¦
  ¦  © 2026 KexDesign. Minden jog fenntartva.           ¦
  ¦  E forráskód szerzői jogi védelem alatt áll.        ¦
  ¦  Másolása, módosítása, újrafelhasználása kizárólag  ¦
  ¦  a KexDesign írásos engedélyével lehetséges.        ¦
  L=====================================================-
*/

/* =========================================
   Betűtípusok
   ========================================= */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/roboto-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/roboto-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* =========================================
   Alap és változók
   ========================================= */
:root {
  --primary: #032058;
  --primary-dark: #021540;
  --accent: #e18503;
  --dark: #2c2c2c;
  --gray: #6c757d;
  --light: #f8f8f8;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 8px;
  --font-main: 'Roboto', Arial, sans-serif;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --header-h: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   Ragadós fejlécblokk
   ========================================= */
.site-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ---- Felső infosáv ---- */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd; }
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar i { font-size: 13px; }

/* ---- Fejléc, középre igazított logóval ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  position: relative;
  z-index: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}
.site-logo img {
  height: 58px;
  width: auto;
}

/* =========================================
   Oldal fejléc (kék sáv)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 56px 0 46px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(26px, 5vw, 42px);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 17px;
  opacity: .88;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================
   Szekciók
   ========================================= */
.section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2 {
  font-size: clamp(22px, 4vw, 34px);
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--gray);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Narancssárga sáv ---- */
.info-banner {
  background: var(--accent);
  color: #fff;
  padding: 26px 0;
  text-align: center;
}
.info-banner p {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 600;
}

/* ---- Szövegblokk ---- */
.text-block {
  max-width: 820px;
  margin: 0 auto;
}
.text-block p {
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.8;
}

/* ---- Kiemelt doboz ---- */
.kiemelt {
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 760px;
  margin: 34px auto 0;
}
.kiemelt p { color: var(--dark); font-size: 15px; }

/* =========================================
   Urnatípus kártyák
   ========================================= */
.tipus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.tipus-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s;
}
.tipus-card:hover { transform: translateY(-5px); }
.tipus-card .tipus-ikon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 14px;
}
.tipus-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
}
.tipus-card p { color: var(--gray); font-size: 15px; }

/* =========================================
   Urna galéria
   ========================================= */
.urna-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.urna-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: zoom-in;
}
.urna-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.18);
}
.urna-card .thumb-wrap {
  position: relative;
  overflow: hidden;
}
.urna-card .thumb-wrap::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(3,32,88,0.0);
  transition: background .2s;
}
.urna-card:hover .thumb-wrap::after { background: rgba(3,32,88,0.45); }
.urna-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.urna-card:hover img { transform: scale(1.05); }
.urna-card .urna-caption {
  padding: 9px 8px 11px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}
.urna-type-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 5px;
}
.badge-1 { background: #e8eef7; color: #032058; }
.badge-2 { background: #e8f4fd; color: #1a5276; }
.badge-3 { background: #e8fde8; color: #1e8449; }
.badge-4 { background: #fdf5e8; color: #d35400; }

/* =========================================
   Lightbox
   ========================================= */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }
#lightbox .lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
  display: block;
  user-select: none;
}
#lightbox .lb-caption {
  color: #ddd;
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}
#lightbox .lb-counter {
  color: #999;
  font-size: 13px;
  margin-top: 4px;
}
#lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background .2s;
  z-index: 9001;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-close:hover { background: rgba(255,255,255,0.3); }
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  z-index: 9001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,0.28); }
#lb-prev { left: 14px; }
#lb-next { right: 14px; }

/* =========================================
   Lebegő gomb – ugrás az oldal tetejére
   ========================================= */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--primary-dark); }
.scroll-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-top { transition: none; }
}

/* =========================================
   Lábléc – középre igazítva
   ========================================= */
.site-footer {
  background: #1e1e1e;
  color: #bbb;
  padding: 54px 0 0;
  text-align: center;
}
.footer-brand img {
  height: 54px;
  width: auto;
  margin: 0 auto 16px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* =========================================
   Reszponzív
   ========================================= */
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title { margin-bottom: 34px; }
  .topbar .container { justify-content: center; text-align: center; }
  .urna-grid-full { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .page-hero { padding: 42px 0 36px; }
}

@media (max-width: 560px) {
  /* az infosáv két külön sorba kerül, hogy ne préselődjön össze */
  .topbar .container { flex-direction: column; gap: 3px; }
  .topbar { font-size: 13px; padding: 7px 0; }
  .tipus-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tipus-card { padding: 22px 14px; }
  .tipus-card .tipus-ikon { font-size: 30px; }
  .tipus-card h3 { font-size: 16px; }
  .tipus-card p { font-size: 14px; }
}

@media (max-width: 480px) {
  :root { --header-h: 108px; }
  .site-logo img { height: 46px; }
  .header-inner { padding: 10px 0; }
  .urna-grid-full { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .urna-card .urna-caption { font-size: 11px; padding: 7px 5px 9px; }
  .kiemelt { padding: 14px 16px; }
  #lb-prev { left: 6px; }
  #lb-next { right: 6px; }
  .lb-nav { width: 38px; height: 38px; font-size: 20px; }
  .scroll-top { right: 14px; bottom: 14px; }
}
