/* =============================================
   FETROMEX KFT. - Közös stílusok
   Szín paletta: #2bb0ef (kék), #424242 (sötétszürke), #1b1b1b (fekete), #ffffff
   ============================================= */

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

:root {
  --blue: #2bb0ef;
  --dark: #424242;
  --black: #1b1b1b;
  --gray-bg: #eeeeee;
  --white: #ffffff;
  --footer-dark: #222222;
  --footer-darker: #1b1b1b;
  --text: #333333;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

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

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; }
.col-xs-12 { width: 100%; }
.col-sm-3 { width: 25%; }
.col-sm-4 { width: 33.333%; }
.col-sm-6 { width: 50%; }
.col-sm-8 { width: 66.666%; }
.col-sm-9 { width: 75%; }
.col-sm-12 { width: 100%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-9 { width: 75%; }
.col-md-12 { width: 100%; }
.col-lg-4 { width: 33.333%; }
.col-lg-6 { width: 50%; }
.col-lg-8 { width: 66.666%; }
.col-lg-12 { width: 100%; }

/* ===== TOP BAR ===== */
#sp-top-bar {
  background-color: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}
#sp-top-bar .top-left { display: flex; align-items: center; }
#sp-top-bar .top-right { display: flex; align-items: center; justify-content: flex-end; }
.sp-contact-info { display: flex; gap: 20px; flex-wrap: wrap; }
.sp-contact-info li a { color: var(--white); transition: color 0.2s; }
.sp-contact-info li a:hover { color: var(--blue); }
.sp-contact-info li { display: flex; align-items: center; gap: 6px; }
.sp-contact-info .fa { color: var(--blue); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  color: var(--white);
  font-size: 16px;
  transition: color 0.2s;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
}
.social-icons a:hover { color: var(--blue); }

/* ===== HEADER / NAV ===== */
#sp-header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#sp-logo img { height: 60px; width: auto; max-width: 100%; object-fit: contain; }
#sp-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.sp-megamenu-parent {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.sp-megamenu-parent li a {
  padding: 8px 12px;
  color: var(--dark);
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
  border-radius: 3px;
}
.sp-megamenu-parent li a:hover,
.sp-megamenu-parent li.active a {
  color: var(--blue);
}
.sp-megamenu-parent li.active a {
  border-bottom: 2px solid var(--blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px; height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menü */
.mobile-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1998;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100vh;
  background: var(--black);
  z-index: 1999;
  transition: right 0.3s ease;
  padding: 60px 30px 30px;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu ul li a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: color 0.2s;
}
.mobile-menu ul li a:hover { color: var(--blue); }
.close-mobile-menu {
  position: absolute; top: 15px; right: 20px;
  background: none; border: none;
  color: var(--white); font-size: 22px;
  cursor: pointer;
}

/* ===== PAGE SECTIONS ===== */
#sp-main-body { padding: 50px 0; }

.page-title-bar {
  background: var(--blue);
  color: var(--white);
  padding: 40px 0;
  margin-bottom: 50px;
}
.page-title-bar h1 {
  color: var(--white);
  font-size: 28px;
  margin: 0;
}
.page-title-bar .breadcrumb {
  display: flex; gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.page-title-bar .breadcrumb a { color: var(--white); text-decoration: underline; }
.page-title-bar .breadcrumb span { color: rgba(255,255,255,0.85); }

/* Section intro text */
.section-intro-title {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}
.section-body { line-height: 1.8; color: #444; }
.section-body p { margin-bottom: 15px; }
.section-body ul { padding-left: 20px; list-style: disc; margin-bottom: 15px; }
.section-body ul li { margin-bottom: 8px; }

/* Service boxes on nyitólap */
.service-boxes { padding: 0 0 60px; }
.service-box {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--blue);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
  overflow: hidden;
}
.service-box:hover {
  box-shadow: 0 8px 24px rgba(43,176,239,0.18);
  transform: translateY(-4px);
}
.service-box .service-img {
  width: 100%;
  height: auto;
  display: block;
}
.service-box .service-box-body {
  padding: 22px 20px 24px;
}
.service-box h3 { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
.service-box p { font-size: 14px; color: #666; line-height: 1.6; }
.service-box a.btn-more {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.service-box a.btn-more:hover { background: #1a9bd4; }

/* About section on nyitólap */
.about-section { background: var(--gray-bg); padding: 60px 0; }
.about-section h2 { color: var(--blue); text-transform: uppercase; font-size: 22px; margin-bottom: 20px; }
.about-section p { line-height: 1.8; margin-bottom: 15px; color: #444; }

/* Partner logos */
#partner-logos {
  background: var(--white);
  padding: 40px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}
.partner-slider { overflow: hidden; position: relative; }
.partner-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scrollPartners 20s linear infinite;
  width: max-content;
}
.partner-track img {
  height: auto;
  width: 250px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
}
.partner-track img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== KONTENER TABLE ===== */
.kontener-table-wrap { overflow-x: auto; margin: 30px 0; }
.kontener-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kontener-table th {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 13px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--dark);
}
.kontener-table td {
  background: var(--white);
  border: 1px solid #ccc;
  padding: 13px 20px;
  color: #333;
}
.kontener-table td:first-child { font-weight: 600; }
.kontener-table td:not(:first-child) { text-align: center; }
.kontener-table tr:hover td { background: #f9f9f9; }
.kontener-felár {
  margin-top: 20px;
  padding: 15px 20px;
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  font-size: 14px;
  color: #555;
  font-weight: 600;
}

/* ===== VÁLLALÁSI SZABÁLYZAT ===== */
.vallas-section { margin-top: 40px; }
.vallas-section h2 { color: var(--blue); text-transform: uppercase; font-size: 20px; margin-bottom: 25px; }
.vallas-item { margin-bottom: 25px; }
.vallas-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.vallas-item p { font-size: 14px; color: #555; line-height: 1.7; }

/* ===== KAPCSOLAT ===== */
.kapcsolat-info h2 { color: var(--blue); text-transform: uppercase; font-size: 20px; margin-bottom: 20px; }
.kapcsolat-info .ceg-nev { font-weight: 700; font-size: 17px; margin-bottom: 15px; color: var(--dark); }
.kapcsolat-info .ceg-adatok { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.8; }
.kapcsolat-info .ceg-adatok strong { color: var(--dark); }
.address-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.address-item .addr-icon {
  width: 50px; height: 50px; min-width: 50px;
  background: var(--dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border-radius: 3px;
}
.address-item .addr-icon.blue { background: var(--blue); }
.address-item .addr-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.address-item .addr-text p, .address-item .addr-text a { font-size: 14px; color: #555; }
.address-item .addr-text a:hover { color: var(--blue); }

/* Contact form */
.contact-form { }
.contact-form .form-group {
  margin-bottom: 18px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 5px;
}
.contact-form button:hover { background: #1a9bd4; }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 15px;
  border-radius: 3px;
  margin-top: 15px;
  font-size: 14px;
}
.google-map { margin-top: 40px; border-radius: 4px; overflow: hidden; }

/* ===== FOOTER BOTTOM ===== */
#sp-bottom {
  background-color: var(--footer-dark);
  color: var(--white);
  padding: 50px 0 30px;
}
.footer-logo-col {
  display: flex;
  align-items: flex-start;
  padding-top: 5px;
}
.footer-logo-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 130px;
  object-fit: contain;
}
.footer-col { margin-bottom: 30px; }
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.footer-menu li, .footer-links li { margin-bottom: 8px; }
.footer-menu a, .footer-links a {
  color: #aaa;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-menu a:hover, .footer-links a:hover { color: var(--blue); }
#sp-bottom p { font-size: 14px; color: #aaa; margin-bottom: 8px; line-height: 1.7; }
#sp-bottom p a { color: #aaa; transition: color 0.2s; }
#sp-bottom p a:hover { color: var(--blue); }
#sp-bottom .fa { color: var(--blue); margin-right: 6px; }

#sp-footer {
  background-color: var(--footer-darker);
  color: #888;
  padding: 18px 0;
  text-align: center;
}
#sp-footer p {
  margin: 0;
  font-size: 15px;
  color: #888;
}

/* services-repeated section (aloldalak) */
.services-repeated {
  padding: 60px 0 30px;
  background: #f9f9f9;
}

/* Scroll to top */
.scrollup {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 42px; height: 42px;
  background: var(--blue);
  color: var(--white);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}
.scrollup.visible { opacity: 1; pointer-events: all; }
.scrollup:hover { background: #1a9bd4; }

/* ===== NYITÓLAP SLIDESHOW ===== */
.slideshow-wrapper { position: relative; overflow: hidden; }
.slideshow { position: relative; width: 100%; height: 550px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }
.slide-nav {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.slide-dot.active { background: var(--white); }
.slide-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: var(--white);
  border: none;
  font-size: 24px;
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.slide-arrow:hover { background: rgba(43,176,239,0.7); }
.slide-arrow.prev { left: 20px; }
.slide-arrow.next { right: 20px; }

/* ===== SERVICE CARDS (4 column) ===== */
.cards-row { display: flex; flex-wrap: wrap; gap: 0; margin: 0 -15px; }
.card-col { padding: 0 15px 30px; }
.card-col-4 { width: 25%; }
.card-col-6 { width: 50%; }

/* ===== UJRAHASZNOSITAS LIST ===== */
.ujra-list { counter-reset: ujra; }
.ujra-list li {
  counter-increment: ujra;
  padding: 10px 0 10px 40px;
  position: relative;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #444;
}
.ujra-list li::before {
  content: counter(ujra) ".";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.333%; }
  .col-sm-6 { width: 50%; }
  .col-sm-9 { width: 75%; }
  .slideshow { height: 400px; }
  .card-col-4 { width: 50%; }
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
  #main-menu { display: none; }
  #sp-logo { width: 66.666%; }
  #sp-menu { width: 33.333%; }
  [class*="col-sm-"] { width: 100%; }
  [class*="col-md-"] { width: 100%; }
  [class*="col-lg-"] { width: 100%; }
  .col-xs-12 { width: 100%; }
  .slideshow { height: 260px; }
  .card-col-4 { width: 100%; }
  .card-col-6 { width: 100%; }
  .sp-contact-info { flex-direction: column; gap: 5px; }
  .footer-logo-col { justify-content: flex-start; }
  .page-title-bar h1 { font-size: 22px; }
  #sp-main-body { padding: 30px 0; }
  .google-map iframe { height: 300px !important; }
  .section-intro-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .slideshow { height: 200px; }
  .slide-arrow { width: 34px; height: 34px; font-size: 18px; }
}
