/* Mediazen – statikus oldal stílusai (a korábbi zerif-lite téma kinézete alapján) */

:root {
  --green: #5f8d3d;
  --dark: #423e3e;
  --text: #404040;
  --muted: #8f8f8f;
  --footer: #272727;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: Lato, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #ddd url("/kepek/iStock_000007042359Large-zen-curved-rocks.jpg") left top repeat;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
h2, h3 { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* --- Csapat rész ki/be kapcsolása (lásd az index.html tetején) --- */
.csapat-rejtve #team,
.csapat-rejtve .nav-csapat { display: none; }

/* --- Fejléc --- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; flex-wrap: wrap;
}
.brand img { display: block; height: 37px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a {
  text-decoration: none; text-transform: uppercase;
  color: var(--text); font-size: 15px;
}
.main-nav a:hover, .main-nav a:focus { color: var(--green); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  display: block; width: 24px; height: 3px; margin: 4px 0;
  background: #666; border-radius: 2px;
}

/* --- Nyitókép --- */
.hero {
  height: clamp(220px, 33vw, 480px);
  background: url("/kepek/mz_banner.jpg") center / cover no-repeat;
}

/* --- Közös szekció-címek --- */
.section-title {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  margin-bottom: 60px;
}
.section-title.light { color: #fff; }

/* --- Amiben hiszünk --- */
.believe {
  background: rgba(255, 255, 255, .9);
  padding: 40px 15% 50px;
  text-align: center;
  color: var(--dark);
  line-height: 1.75;
}
.believe h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 35px; text-transform: uppercase;
  padding-bottom: 20px;
}
.believe p { margin: 0 0 1.2em; }

/* --- Amivel foglalkozunk --- */
.about-us { background: var(--dark); padding: 100px 0 60px; }
.about-us .container { max-width: none; }
.skills {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 2%;
}
.skill-head { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.skill-circle {
  flex: 0 0 60px; width: 60px; height: 60px;
  border: 5px solid; border-radius: 50%;
}
.skill h3 {
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  color: #fff; line-height: 1.5;
}
.skill p { margin: 0; padding-left: 80px; font-size: 14px; line-height: 20px; color: var(--muted); }

/* --- Csapat --- */
.our-team { background: #fff; padding: 100px 0 80px; }
.team {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 50px;
  text-align: center;
}
.team li { width: 170px; }
.team img {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 50%; display: block; margin: 0 auto 25px;
}
.team h3 {
  position: relative;
  font-size: 17px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 18px;
}
.team h3::after {
  content: ""; position: absolute; left: 12.5%; bottom: -9px;
  width: 75%; height: 2px; background: var(--green);
}
.team li:nth-child(4n+2) h3::after { background: #34d293; }
.team li:nth-child(4n+3) h3::after { background: #3ab0e2; }
.team li:nth-child(4n+4) h3::after { background: #f7d861; }
.team p { margin: 0; font-size: 13px; }

/* --- Ügyfeleink --- */
.clients { background: var(--green); padding: 70px 0; }
.clients .section-title { margin-bottom: 30px; }
.logos {
  max-width: 750px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
}
.logos img {
  height: 35px; width: auto; margin: 10px 20px;
  filter: grayscale(100%);
}

/* --- Kapcsolat --- */
.contact-us { background: #7f7f7f; padding: 100px 0 95px; }
.contact-us .section-title { margin-bottom: 10px; }
.section-legend { text-align: center; color: #fff; margin: 0 0 60px; }
.contact-form {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 30px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 15px;
  border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  font: inherit; font-size: 14px; color: #555;
}
.contact-form textarea { grid-column: 1 / -1; resize: vertical; min-height: 200px; }
.btn {
  grid-column: 3; justify-self: end;
  background: var(--green); color: #fff;
  border: 0; border-radius: 4px; padding: 12px 34px;
  font: inherit; font-size: 13px; text-transform: uppercase; cursor: pointer;
}
.btn:hover, .btn:focus { background: #4c7231; }

/* --- Lábléc --- */
.footer { background: var(--footer); color: #939393; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.company-details { padding: 60px 10px 30px; font-size: 14px; }
.company-details img { display: block; margin: 0 auto 10px; }
.company-details a { color: #939393; text-decoration: none; }
.company-details a:hover { color: var(--green); }

/* --- Vissza a tetejére --- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .6);
}
.to-top::before {
  content: ""; position: absolute; left: 14px; top: 16px;
  width: 10px; height: 10px;
  border-left: 3px solid #fff; border-top: 3px solid #fff;
  transform: rotate(45deg);
}

/* --- Mobil / tablet --- */
@media (max-width: 992px) {
  .skills { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; padding-bottom: 12px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 10px 0; border-top: 1px solid #eee; }

  .section-title, .believe h2 { font-size: 26px; margin-bottom: 40px; }
  .believe { padding: 30px 16px 40px; }
  .believe br { display: none; }
  .about-us, .our-team, .contact-us { padding-top: 60px; }
  .skill p { padding-left: 80px; }
  .team { gap: 30px 16px; }
  .team li { width: calc(50% - 8px); }
  .team h3 { font-size: 15px; }

  .contact-form { grid-template-columns: 1fr; }
  .btn { grid-column: 1; justify-self: stretch; }

  .footer-inner { grid-template-columns: 1fr; }
  .company-details { padding: 30px 10px 10px; }
  .company-details:last-child { padding-bottom: 40px; }
}
