/* ===========================
   Komló Futsal - Fő stíluslap
   =========================== */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #660000;
  --primary-dark: #490101;
  --primary-mid: #540202;
  --accent: #e98b50;
  --dark: #222222;
  --darker: #1b1b1b;
  --text-light: #888888;
  --white: #ffffff;
  --bg-light: #e7e7e7;
  --link: #660000;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 600; line-height: 1.3; }
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== TOP BAR ===== */
#sp-top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 0;
}

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

.sp-contact-info { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.sp-contact-info li { font-size: 14px; }
.sp-contact-info li a { color: var(--white); }
.sp-contact-info li a:hover { color: var(--accent); }
.sp-contact-info li i { margin-right: 5px; }

.social-icons { list-style: none; display: flex; gap: 10px; }
.social-icons li a {
  color: var(--white);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  font-size: 14px;
  transition: background 0.2s;
}
.social-icons li a:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ===== HEADER ===== */
#sp-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

#sp-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }

.logo img { height: 55px; width: auto; }
.logo-mobile { display: none; }

/* ===== NAVIGATION ===== */
.sp-megamenu-wrapper { display: flex; align-items: center; }

.sp-megamenu-parent {
  list-style: none;
  display: flex;
  gap: 5px;
}

.sp-megamenu-parent li a {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 3px;
  transition: all 0.2s;
  white-space: nowrap;
}

.sp-megamenu-parent li a:hover,
.sp-megamenu-parent li.active a,
.sp-megamenu-parent li.current-item a {
  color: var(--primary);
  background: rgba(102,0,0,0.07);
}

/* Mobile hamburger */
.btn-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}
.btn-menu span,
.btn-menu span::before,
.btn-menu span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-menu { position: relative; }
.btn-menu span { display: block; position: relative; }
.btn-menu span::before { content:''; position: absolute; top: -8px; }
.btn-menu span::after { content:''; position: absolute; top: 8px; }

/* Off-canvas menu */
.offcanvas-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}
.offcanvas-overlay.active { display: block; }

.offcanvas-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100vh;
  background: var(--darker);
  z-index: 1200;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}
.offcanvas-menu.active { right: 0; }
.offcanvas-menu .close-offcanvas {
  display: block; text-align: right; color: var(--white); font-size: 20px; margin-bottom: 20px;
}
.offcanvas-menu ul { list-style: none; }
.offcanvas-menu ul li a {
  display: block; color: var(--white); padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px;
}
.offcanvas-menu ul li a:hover,
.offcanvas-menu ul li.current a,
.offcanvas-menu ul li.active a { color: var(--accent); }

/* ===== PAGE TITLE / BREADCRUMB ===== */
.sp-page-title {
  background-color: var(--primary);
  padding: 30px 0;
  color: var(--white);
}
.sp-page-title h2 { font-size: 28px; margin-bottom: 10px; color: var(--white); }
.breadcrumb { list-style: none; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.breadcrumb li { color: rgba(255,255,255,0.7); }
.breadcrumb li a { color: rgba(255,255,255,0.9); }
.breadcrumb span { color: rgba(255,255,255,0.7); }
.breadcrumb li.active { color: var(--white); }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 500px;
  background: #1a1a1a;
}

@media (min-width: 768px) { .hero-slider { height: 550px; } }
@media (min-width: 1024px) { .hero-slider { height: 620px; } }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-slide-1 { background-image: url('../images/slider-k1.jpg'); background-color: #1a1a1a; }
.hero-slide-2 { background-image: url('../images/slider-k2.jpg'); background-color: #1a1a1a; }
.hero-slide-3 { background-image: url('../images/slider-k1.jpg'); background-color: #1a1a1a; }

.hero-caption {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 20px; max-width: 900px;
}
.hero-caption h1, .hero-caption h2 {
  font-size: clamp(22px, 4vw, 52px);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; border: none;
  transition: background 0.3s;
}
.hero-dot.active { background: var(--white); }

/* ===== MAIN CONTENT SECTIONS ===== */
#sp-main-body { padding: 0; }

/* Welcome section */
.section-welcome { padding: 50px 0; }
.section-welcome h2 { text-align: center; font-size: 24px; color: var(--accent); margin-bottom: 20px; }
.section-welcome p { text-align: justify; line-height: 1.8; margin-bottom: 15px; }
.section-welcome a { color: var(--primary); font-weight: 600; }

/* Fun facts bar */
.flat-fun-fact { padding: 0; }
.flat-fun-fact .container { padding: 0; max-width: 100%; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); }

.iteam-fact {
  background-color: var(--primary);
  color: var(--white);
  display: flex; align-items: center;
  padding: 25px 30px; gap: 15px;
}
.iteam-fact.v2 { background-color: var(--primary-mid); }
.iteam-fact.v3 { background-color: var(--primary-dark); }

.num-fact { font-size: 40px; font-weight: 700; color: var(--white); opacity: 0.6; line-height: 1; }
.text-fact h4 { font-size: 15px; color: var(--white); letter-spacing: 1px; line-height: 1.3; }

/* Cards section */
.section-cards { padding: 40px 0 30px; }
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card-item { }
.card-thumb { position: relative; overflow: hidden; border-radius: 4px; }
.card-thumb img { width: 100%; transition: transform 0.4s; }
.card-thumb:hover img { transform: scale(1.04); }
.card-thumb .overlay { position: absolute; inset: 0; background: rgba(102,0,0,0.2); opacity: 0; transition: opacity 0.3s; }
.card-thumb:hover .overlay { opacity: 1; }

.card-icon { color: var(--primary); font-size: 38px; margin: 12px 0 8px; }
.card-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 8px; line-height: 1.4; }
.card-text { font-size: 14px; color: #555; line-height: 1.7; }
.card-text a { color: var(--primary); font-weight: 600; }

/* Partners carousel */
.section-partners { background: var(--bg-light); padding: 30px 0; }
.partners-track {
  display: flex; gap: 30px; overflow: hidden; position: relative;
}
.partners-inner {
  display: flex; gap: 30px; animation: partnerScroll 20s linear infinite;
}
.partner-item { flex-shrink: 0; }
.partner-item img { height: 60px; width: auto; object-fit: contain; filter: grayscale(20%); transition: filter 0.3s; }
.partner-item img:hover { filter: grayscale(0%); }

@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RÓLUNK/TAO PAGE ===== */
.tao-section { padding: 50px 0; }
.tao-title { font-size: 24px; color: var(--primary); margin-bottom: 25px; }
.tao-subtitle { text-align: center; font-size: 24px; color: var(--primary); margin: 40px 0 20px; }

.pdf-row {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 15px; padding: 10px 0;
}
.pdf-row img { width: 40px; flex-shrink: 0; transition: transform 0.2s; }
.pdf-row img:hover { transform: scale(1.1); }
.pdf-row a { color: #333; font-weight: 600; font-size: 15px; }
.pdf-row a:hover { color: var(--primary); }

.tao-divider { border: none; border-top: 1px solid rgba(0,0,0,0.2); margin: 25px 0; }

.bemutatkozas-text { text-align: justify; line-height: 1.9; color: #444; }

/* ===== KÉPGALÉRIA ===== */
.gallery-section { padding: 50px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.gallery-item { position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(102,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 30px; }

/* Lightbox */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 2000;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 15px; right: 25px;
  color: white; font-size: 32px; cursor: pointer; background: none; border: none; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: white; font-size: 36px; cursor: pointer; background: none; border: none;
  padding: 10px;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ===== KAPCSOLAT ===== */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }

.contact-address h2 { font-size: 22px; margin-bottom: 10px; }
.contact-address > p { color: #555; margin-bottom: 25px; font-size: 15px; }

.address-item {
  display: flex; gap: 0; margin-bottom: 20px;
}
.address-item .icon {
  background: var(--primary);
  color: white;
  width: 64px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.address-item.second .icon { background: var(--accent); }
.address-info { padding: 5px 15px; }
.address-info h4 { font-size: 14px; margin-bottom: 3px; }
.address-info p { font-size: 14px; color: #555; }
.address-info a { color: var(--primary); }

/* Contact form */
.contact-form-wrap {}
.contact-form input,
.contact-form textarea {
  width: 100%; display: block;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 3px; font-size: 15px; font-family: inherit;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form button {
  background: var(--primary); color: white;
  border: none; padding: 13px 30px;
  font-size: 15px; font-family: inherit; font-weight: 600;
  cursor: pointer; border-radius: 3px;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--primary-mid); }

.tarhelyszolgaltato { color: #666; font-size: 14px; margin-bottom: 20px; }
.tarhelyszolgaltato a { color: var(--primary); }

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

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

#sp-bottom .container > .row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px;
}

.footer-logo img { max-width: 180px; height: auto; }

.sp-module-title {
  font-size: 16px; color: var(--white); margin-bottom: 20px;
  border-bottom: 2px solid var(--primary); padding-bottom: 10px;
}

.our_services { list-style: none; }
.our_services li { margin-bottom: 10px; }
.our_services li a {
  color: rgba(255,255,255,0.75); font-size: 14px; padding: 2px 0;
  display: flex; align-items: center; gap: 8px;
}
.our_services li a:hover { color: var(--accent); }
.our_services li a::before {
  font-family: 'Font Awesome 5 Free', FontAwesome;
  font-weight: 900; font-size: 11px; color: var(--accent);
}
.our_services li.facebook a::before { content: '\f054'; }
.our_services li.google a::before { content: '\f054'; }
.our_services li.linkedIn a::before { content: '\f054'; }
.our_services li.youtube a::before { content: '\f054'; }
.our_services li.twitch a::before { content: '\f054'; }

.im-map h5 { color: var(--white); margin-bottom: 10px; font-size: 15px; }
.im-map p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 15px; line-height: 1.6; }
.im-map .map a { color: var(--accent); font-size: 14px; font-weight: 600; }
.im-map .map a i { margin-right: 6px; }

/* Footer credit line */
#sp-footer {
  background-color: var(--darker);
  color: var(--text-light);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom-inner { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.sp-copyright { font-size: 13px; }
.footer-dev-links { font-size: 11px; color: #555; }
.footer-dev-links a { color: #666; font-size: 11px; }
.footer-dev-links a:hover { color: #888; }
.footer-dev-sep { margin: 0 6px; color: #444; }

/* ===== SCROLL TO TOP ===== */
.scrollup {
  position: fixed; bottom: 25px; right: 25px;
  width: 40px; height: 40px;
  background: var(--primary); color: white;
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.scrollup.visible { opacity: 1; pointer-events: all; }
.scrollup:hover { background: var(--primary-mid); color: white; }
.scrollup::after { content: '\f077'; font-family: FontAwesome; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: 1fr; }
  .iteam-fact { padding: 18px 20px; }
  #sp-bottom .container > .row { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .sp-megamenu-parent { display: none; }
  .btn-menu { display: block; }
  .logo img.logo-desktop { display: none; }
  .logo img.logo-mobile { display: block; }
  .hero-slider { height: 300px; }
  .hero-caption h1, .hero-caption h2 { font-size: 20px; }
  .cards-row { grid-template-columns: 1fr; }
  .facts-row { display: none; }
  #sp-bottom .container > .row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 150px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-welcome h2 { font-size: 20px; }
  .sp-contact-info { gap: 10px; }
}

@media (max-width: 480px) {
  #sp-bottom .container > .row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #sp-top-bar .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .social-icons { margin-left: auto; }
}

/* Visually hidden (accessibility) */
.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;
}
