/* ==========================================================================
   Sió-Generál Kft. — style.css
   Színpaletta: #044318 (sötétzöld), #077831 (zöld), antracit szürke, fekete, fehér
   A layout szélességét a header.jpg (900px) adja.
   ========================================================================== */

:root {
  --green-dark: #044318;
  --green: #077831;
  --green-light: #0e9a40;
  --anthracite: #2b2f2c;
  --anthracite-light: #3a3f3b;
  --grey: #5b615c;
  --grey-light: #f2f5f2;
  --grey-border: #dfe6e0;
  --black: #1a1a1a;
  --white: #ffffff;
  --max-width: 900px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
  color: var(--black);
  background: #e9ece9;
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
  min-height: 100vh;
  position: relative;
}

/* ---------- Info sáv (antracit) ---------- */
.info-bar {
  background: var(--anthracite);
  color: #d9dcd9;
  font-size: 13px;
}

.info-bar .info-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.info-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.info-bar a {
  color: #e9ece9;
}

.info-bar a:hover {
  color: var(--green-light);
  text-decoration: none;
}

.info-bar .info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.info-bar svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.info-bar-company {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #d9dcd9;
  white-space: nowrap;
}

/* ---------- Fejléc kép ---------- */
.site-header {
  width: 100%;
  line-height: 0;
}

.site-header img {
  width: 100%;
  height: auto;
}

/* ---------- Navigáció ---------- */
.main-nav {
  background: var(--green);
  position: relative;
}

.main-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-list li {
  flex: 1 1 auto;
}

.nav-list a {
  display: block;
  padding: 13px 10px;
  text-align: center;
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.nav-list li:last-child a {
  border-right: none;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--green-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: var(--green-dark);
  border: none;
  width: 44px;
  height: 44px;
  position: absolute;
  right: 8px;
  top: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
}

/* ---------- Tartalom elrendezés ---------- */
.content-layout {
  display: flex;
  gap: 26px;
  padding: 26px 20px;
  align-items: flex-start;
}

.content-main {
  flex: 1 1 62%;
  min-width: 0;
}

.content-sidebar {
  flex: 0 0 250px;
}

.page-title {
  color: var(--green-dark);
  font-size: 22px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green);
}

.article p {
  margin: 0 0 14px;
  color: #333;
}

.article ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article li {
  margin-bottom: 6px;
  color: #333;
}

.article .float-img {
  margin: 0 14px 8px 0;
  float: left;
  border-radius: var(--radius);
}

.article .phone-highlight {
  color: #d0021b;
  font-weight: 700;
}

.service-block-title {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 700;
}

/* ---------- Sidebar / Partnereink ---------- */
.side-block {
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.side-block-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.side-block-content {
  padding: 14px;
  text-align: center;
}

.side-block-content a {
  display: block;
  margin-bottom: 14px;
}

.side-block-content a:last-child {
  margin-bottom: 0;
}

.side-block-content img {
  margin: 0 auto;
  border-radius: 4px;
}

.side-block-content .partner-link {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--green-dark);
}

/* ---------- Lábléc ---------- */
.site-footer {
  background: var(--anthracite);
  color: #cfd3d0;
  padding: 18px 20px;
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #cfd3d0;
  margin-right: 4px;
}

.footer-links a:hover {
  color: var(--green-light);
}

.footer-sep {
  color: #6a6f6c;
  margin: 0 6px;
}

.footer-kex img {
  display: block;
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: #8b908c;
  padding-top: 10px;
  font-size: 12px;
}

/* ---------- Galéria (Referenciák) ---------- */
.gallery-grid {
  column-count: 2;
  column-gap: 10px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

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

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 11, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-figure {
  max-width: 92vw;
  max-height: 88vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #d9dcd9;
  margin-top: 10px;
  font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfd3d0;
  font-size: 13px;
}

/* ---------- Kapcsolat oldal ---------- */
.contact-call {
  text-align: center;
  margin-bottom: 6px;
}

.contact-call img {
  margin: 0 auto;
}

.contact-caption {
  text-align: center;
  color: var(--grey);
  margin-bottom: 8px;
}

.contact-heading {
  text-align: center;
  color: var(--green-dark);
  font-size: 17px;
  margin: 18px 0 6px;
}

.contact-phone {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #d0021b;
  margin-bottom: 6px;
}

.contact-email {
  text-align: center;
  margin-bottom: 20px;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-border);
  margin-top: 10px;
}

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

/* ---------- Mobil "Hívjon most" gomb ---------- */
.mobile-call-fab {
  display: none;
}

/* ==========================================================================
   Reszponzív – mobil (a header.jpg aránya megmarad, csak kicsinyedik)
   ========================================================================== */
@media (max-width: 720px) {
  .content-layout {
    flex-direction: column;
    padding: 18px 14px;
  }

  .content-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list.open {
    max-height: 500px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 16px;
  }

  .main-nav .nav-inner {
    padding-right: 54px;
  }

  .info-bar-inner {
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }

  .info-bar-company {
    display: none;
  }

  .gallery-grid {
    column-count: 2;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  /* Lebegő "Hívjon most" gomb minden oldalon mobilon */
  .mobile-call-fab {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    overflow: hidden;
  }

  .mobile-call-fab img {
    width: 100%;
    height: auto;
    display: block;
  }

  body {
    padding-bottom: 78px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    column-count: 1;
  }

  .article .float-img {
    float: none;
    margin: 0 auto 10px;
  }
}

/* Csak billentyűzet-fókusz jelzése (akadálymentesség) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}
