/* ======================================
   Gemini-General / Sió-Atti Kft. CSS
   ====================================== */

:root {
  --primary:   #e98b50;
  --primary-dark: #e36d23;
  --dark-bg:   #1a1a1a;
  --topbar-bg: #3a526a;
  --header-bg: #ffffff;
  --text:      #555;
  --footer-text: #888;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

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

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

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
}

/* -------- TOP BAR -------- */
#sp-top-bar {
  background: var(--topbar-bg);
  padding: 8px 0;
  color: #fff;
  font-size: 13px;
}

#sp-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-contact-info {
  list-style: none;
  display: flex;
  gap: 20px;
}

.sp-contact-info li a {
  color: #fff;
  font-size: 13px;
}

.sp-contact-info li a:hover { color: var(--primary); }

.sp-contact-info i,
.social-icons i {
  margin-right: 5px;
}

.social-icons {
  list-style: none;
  display: flex;
  gap: 10px;
}

.social-icons li a {
  color: #fff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  transition: all .2s;
}

.social-icons li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* -------- HEADER -------- */
#sp-header {
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  display: flex;
  align-items: center;
}

#sp-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.logo img {
  height: 60px;
  width: auto;
}

/* -------- SZÉCHENYI LOGO (fixed top right) -------- */
#szechenyi-logo {
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 9999;
  width: 300px;
}

#szechenyi-logo img {
  width: 300px;
  height: auto;
  display: block;
}

/* -------- NAVIGATION -------- */
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav.main-nav ul li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: color .2s;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li.active a {
  color: var(--primary);
}

/* Hamburger */
.btn-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.btn-menu span,
.btn-menu span::before,
.btn-menu span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all .3s;
}

.btn-menu span { position: relative; }
.btn-menu span::before,
.btn-menu span::after {
  content: '';
  position: absolute;
}
.btn-menu span::before { top: -7px; }
.btn-menu span::after  { top: 7px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a:hover { color: var(--primary); background: #fafafa; }

/* -------- PAGE TITLE -------- */
.page-title {
  background: linear-gradient(135deg, #3a526a 0%, #2a3d52 100%);
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.page-title h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }

/* -------- SLIDESHOW -------- */
.slideshow {
  position: relative;
  overflow: hidden;
  height: 500px;
  background: #222;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide-caption {
  color: #fff;
  padding: 20px;
}

.slide-caption h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.slide-caption p {
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin-bottom: 20px;
}

.slide-caption .btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 3px;
  transition: background .2s;
}

.slide-caption .btn:hover { background: var(--primary-dark); }

.slide-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  border: none;
}

.slide-dot.active,
.slide-dot:hover { background: var(--primary); }

.slide-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 10;
  pointer-events: none;
}

.slide-arrow {
  pointer-events: all;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s;
}

.slide-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* -------- SECTIONS -------- */
section.section {
  padding: 60px 0;
}

section.section-dark {
  background: #f8f8f8;
}

section.section h2.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
  position: relative;
}

section.section h2.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
}

/* -------- ICON BOXES -------- */
.icon-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.icon-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 30px 25px;
  transition: box-shadow .3s;
}

.icon-box:hover {
  box-shadow: 0 5px 25px rgba(0,0,0,.1);
}

.icon-box .box-icon {
  color: var(--primary);
  font-size: 45px;
  margin-bottom: 15px;
}

.icon-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
}

.icon-box p { color: #777; line-height: 1.7; }
.icon-box a { color: var(--primary); font-weight: 600; }
.icon-box a:hover { color: var(--primary-dark); }

/* -------- STATS -------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--topbar-bg);
  color: #fff;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .85;
  line-height: 1.4;
}

/* -------- PARTNER LOGOS -------- */
.partners {
  padding: 50px 0;
  background: #f8f8f8;
}

.partners h2.section-title { margin-bottom: 30px; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.partners-grid img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .6;
  transition: all .3s;
}

.partners-grid img:hover { filter: none; opacity: 1; }

/* -------- ABOUT IMAGE -------- */
.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 4px;
}

.about-text { padding: 20px 0 20px 30px; }

.about-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.about-text p { line-height: 1.8; color: #666; margin-bottom: 15px; }

/* -------- PAGE CONTENT -------- */
.page-content {
  padding: 60px 0;
}

.page-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.page-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 25px 0 12px;
}

.page-content p { line-height: 1.8; color: #666; margin-bottom: 15px; }

.page-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.page-content ul li {
  line-height: 1.8;
  color: #666;
  margin-bottom: 4px;
}

/* -------- KIVITELEZÉS STEPS -------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: box-shadow .3s;
}

.step-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,.08); }

.step-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.step-card p { color: #777; line-height: 1.7; font-size: 13px; }

/* -------- GALLERY -------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233,139,80,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i {
  color: #fff;
  font-size: 32px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--primary); border-color: var(--primary); }

/* -------- KAPCSOLAT -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.contact-info .subtitle {
  color: #888;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-detail .ci-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail .ci-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #222;
  margin-bottom: 3px;
}

.contact-detail .ci-text a,
.contact-detail .ci-text span { color: #666; font-size: 14px; }
.contact-detail .ci-text a:hover { color: var(--primary); }

.contact-form-wrap { }

.contact-form h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  display: inline-block;
  padding: 12px 35px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-submit:hover { background: var(--primary-dark); }

.map-container {
  margin-top: 40px;
  border-radius: 6px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 15px 20px;
  margin-top: 15px;
}

/* -------- PÁLYÁZAT -------- */
.palyazat-box {
  background: #f8f8f8;
  border-left: 4px solid var(--primary);
  padding: 30px 25px;
  margin-bottom: 30px;
  border-radius: 0 4px 4px 0;
}

.palyazat-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.palyazat-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.palyazat-row .label {
  font-weight: 600;
  color: #444;
}

.palyazat-row .value { color: #666; }

.szechenyi-img {
  text-align: center;
  margin-bottom: 30px;
}

.szechenyi-img img {
  max-width: 350px;
}

/* -------- BOTTOM / FOOTER -------- */
#sp-bottom {
  background: var(--dark-bg);
  color: #aaa;
  padding: 50px 0 30px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
  gap: 40px;
}

.bottom-section .sp-module-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-logo img {
  height: auto;
  max-height: 70px;
  width: auto;
  display: block;
}

.our-services {
  list-style: none;
}

.our-services li {
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.our-services li a {
  display: block;
  padding: 6px 0;
  color: #aaa;
  font-size: 13px;
  transition: color .2s, padding-left .2s;
}

.our-services li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.our-services li a::before {
  content: '›';
  margin-right: 6px;
  color: var(--primary);
}

.bottom-contact h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #ddd;
  margin-bottom: 12px;
}

.bottom-contact p {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
  margin-bottom: 12px;
}

.bottom-contact .map-link {
  color: #aaa;
  font-size: 13px;
}

.bottom-contact .map-link:hover { color: var(--primary); }

#sp-footer {
  background: #111;
  color: var(--footer-text);
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
}

/* -------- COOKIE BANNER -------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9997;
  flex-wrap: wrap;
}

.cookie-banner p { font-size: 13px; line-height: 1.5; flex: 1; }
.cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}

.cookie-btn.allow { background: var(--primary); color: #fff; }
.cookie-btn.deny { background: #555; color: #fff; }

/* -------- RESPONSIVE -------- */
@media (max-width: 991px) {
  .icon-boxes { grid-template-columns: 1fr 1fr; }
  .steps-grid  { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .bottom-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-text { padding: 20px 0; }
  .palyazat-row { grid-template-columns: 1fr; }
  #szechenyi-logo { width: 180px; }
  #szechenyi-logo img { width: 180px; }
}

@media (max-width: 767px) {
  .icon-boxes { grid-template-columns: 1fr; }
  .steps-grid  { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .row { display: block; }
  nav.main-nav { display: none; }
  .btn-menu { display: flex; }
  #sp-header { height: 70px; }
  .slideshow { height: 280px; }
  .slide-caption h2 { font-size: 22px; }
  .slide-caption p { display: none; }
  .sp-contact-info { display: none; }
  #szechenyi-logo { width: 120px; top: 75px; right: 10px; }
  #szechenyi-logo img { width: 120px; }
  .logo img { height: 45px; }
  .page-title h1 { font-size: 20px; }
  .stat-number { font-size: 36px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .slide-caption .btn { display: none; }
}

/* Tooltip for mobile that szechenyi might overlap nav */
@media (max-width: 767px) {
  #sp-header .container { position: relative; }
}
