/*
Theme Name: EUMAX Onepage
Theme URI: https://openai.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Egy profi, testreszabható WordPress sablon társasházkezelő cégeknek, a jóváhagyott látványterv alapján.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: eumax-onepage
*/

:root {
  --thk-bg: #edf1f7;
  --thk-white: #ffffff;
  --thk-text: #273a55;
  --thk-muted: #64748b;
  --thk-blue: #173b62;
  --thk-blue-2: #214f7f;
  --thk-orange: #ef8b22;
  --thk-orange-2: #ff9e32;
  --thk-teal: #42bfd2;
  --thk-border: rgba(23, 59, 98, 0.09);
  --thk-shadow: 0 18px 45px rgba(23, 59, 98, 0.12);
  --thk-shadow-soft: 0 10px 28px rgba(23, 59, 98, 0.08);
  --thk-radius: 18px;
  --thk-radius-sm: 14px;
  --thk-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--thk-text);
  background: linear-gradient(180deg, #eceaf1 0%, #edf0f6 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.thk-page-wrap {
  max-width: calc(var(--thk-container) + 48px);
  margin: 30px auto;
  padding: 0 24px;
}

.thk-site-shell {
  background: rgba(255,255,255,0.72);
  border-radius: 0;
}

.thk-container {
  width: min(100%, var(--thk-container));
  margin: 0 auto;
}

.thk-section-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(246,249,253,0.98) 100%);
  box-shadow: var(--thk-shadow);
  border: 1px solid rgba(255,255,255,0.85);
  overflow: hidden;
}

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(23, 59, 98, 0.06);
}
.site-header .thk-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 26px;
}

.thk-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.thk-brand img {
  max-height: 58px;
  width: auto;
}
.thk-brand-logo {
  display: block;
  max-width: 158px;
  object-fit: contain;
}
.thk-brand-text {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--thk-blue);
  line-height: 1.1;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: flex-end;
}
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-navigation li { margin: 0; }
.main-navigation a {
  color: #4a566b;
  font-size: 0.98rem;
  font-weight: 600;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--thk-blue);
}

.thk-header-cta,
.thk-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.thk-header-cta,
.thk-button--primary {
  background: linear-gradient(180deg, var(--thk-orange-2) 0%, var(--thk-orange) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 139, 34, 0.26);
}
.thk-button--secondary {
  background: rgba(255,255,255,0.85);
  color: var(--thk-blue);
  border: 1px solid rgba(34, 111, 167, 0.28);
  box-shadow: var(--thk-shadow-soft);
}
.thk-header-cta:hover,
.thk-button:hover { transform: translateY(-2px); }

.thk-panel {
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after,
.top-services::before,
.top-services::after,
.why-section::before,
.why-section::after {
  display: none;
}

.about-section::before,
.about-section::after,
.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16px;
  width: 16%;
  height: calc(100% - 32px);
  pointer-events: none;
  z-index: 0;
}
.about-section::before,
.contact-section::before {
  background:
    linear-gradient(135deg,
      transparent 0 18%,
      rgba(255,164,63,.78) 18% 28%,
      transparent 28% 42%,
      rgba(66,191,210,.58) 42% 66%,
      transparent 66% 100%);
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 20% 100%, 60% 56%);
  opacity: .78;
}
.about-section::after,
.contact-section::after {
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.0) 0 24%,
      rgba(180,233,242,.38) 24% 52%,
      rgba(255,255,255,.0) 52% 72%,
      rgba(255,191,128,.18) 72% 100%);
  clip-path: polygon(54% 0, 100% 0, 100% 100%, 32% 100%, 66% 58%);
  opacity: .7;
}

.hero-section {
  min-height: 430px;
  padding: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center -38px;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(247,250,253,.94) 0%, rgba(247,250,253,.88) 38%, rgba(247,250,253,.42) 62%, rgba(247,250,253,.10) 100%);
}
.hero-section .thk-container {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: 20px;
  padding: 74px 56px 58px;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.hero-title {
  margin: 0 0 20px;
  color: var(--thk-blue);
  font-size: clamp(2.6rem, 4.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.4rem;
  color: rgba(39,58,85,.85);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-visual {
  min-height: 320px;
}

.top-services {
  margin-top: 0;
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,251,254,.98) 100%);
  border-top: 1px solid rgba(23,59,98,.06);
  border-bottom: 1px solid rgba(23,59,98,.06);
}
.top-services .thk-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
}
.top-service-item {
  display:block;
  padding: 42px 28px 34px;
  text-align: center;
  border-right: 1px solid rgba(23,59,98,.08);
}
.top-service-item:last-child { border-right: 0; }
.top-service-icon,
.thk-icon-box-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(66,191,210,.10) 0%, rgba(239,139,34,.08) 100%);
  color: var(--thk-blue);
  font-size: 38px;
}
.top-service-icon {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.top-service-icon img {
  max-width: 76px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.top-service-title {
  margin: 0 0 10px;
  font-size: 1.7rem;
  color: var(--thk-blue);
}
.top-service-text {
  margin: 0;
  color: var(--thk-muted);
  line-height: 1.65;
}

.about-section .thk-container {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: 42px;
  padding: 60px 56px 24px;
  position: relative;
  z-index: 1;
}
.about-content {
  padding-bottom: 40px;
  max-width: 500px;
  position: relative;
  z-index: 2;
}
.thk-section-title {
  margin: 0 0 18px;
  color: var(--thk-blue);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.1;
  position: relative;
}
.thk-section-title.thk-underlined::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--thk-teal), var(--thk-orange));
  border-radius: 3px;
  margin-top: 14px;
}
.about-heading {
  font-size: 1.9rem;
  color: var(--thk-blue);
  line-height: 1.35;
  margin: 0 0 16px;
}
.about-text,
.thk-card-text,
.thk-contact-info p {
  color: var(--thk-muted);
  line-height: 1.72;
  margin: 0 0 26px;
}
.about-image-wrap {
  align-self: end;
  position: relative;
  z-index: 2;
  padding: 10px 38px 0 0;
}
.about-image-wrap::before {
  content: "";
  position: absolute;
  inset: 18px 18px 0 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(224,232,242,.56));
  box-shadow: 0 18px 40px rgba(23, 59, 98, 0.08);
}
.about-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 74px;
  height: 74px;
  border-radius: 0 20px 0 24px;
  background: linear-gradient(135deg, rgba(66,191,210,.12), rgba(239,139,34,.22));
}
.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 46px rgba(23, 59, 98, 0.14);
}

.why-section {
  padding: 52px 0 22px;
}
.section-center-heading {
  text-align: center;
  padding: 0 24px;
}
.section-center-heading h2 {
  margin: 0;
  color: var(--thk-blue);
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
}
.section-center-heading p {
  margin: 12px 0 0;
  color: var(--thk-muted);
  font-size: 1.25rem;
}
.why-grid {
  padding: 30px 56px 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.thk-icon-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 154px;
  padding: 22px 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--thk-border);
  border-radius: 10px;
  box-shadow: var(--thk-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.thk-icon-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 59, 98, 0.12);
}
.thk-icon-box-icon {
  margin: 0;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.thk-icon-box-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}
.thk-card-title {
  margin: 0 0 10px;
  color: var(--thk-blue);
  font-size: 1.35rem;
  line-height: 1.25;
}
.thk-card-text {
  margin-bottom: 0;
  font-size: 1rem;
}
.thk-icon-box-link {
  display: block;
  height: 100%;
}

.contact-section {
  padding: 26px 0 0;
}
.contact-grid {
  padding: 0 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-left {
  min-height: 100%;
  position: relative;
  z-index: 2;
}
.contact-left .thk-section-title { margin-bottom: 24px; }
.contact-service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.thk-image-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--thk-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--thk-shadow-soft);
}
.thk-image-card img {
  width: 100%;
  height: 156px;
  object-fit: cover;
}
.thk-image-card-title {
  padding: 18px 18px 22px;
  text-align: center;
  color: var(--thk-blue);
  font-size: 1.5rem;
  font-weight: 700;
}
.contact-form-card {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  background: linear-gradient(180deg, #1d5986 0%, #164468 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(12, 44, 71, 0.22);
  padding: 30px;
  overflow: hidden;
}
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,.12), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 42%);
  pointer-events: none;
}
.contact-form-card h3 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.1;
}
.contact-form-card label {
  display: block;
  font-size: .92rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-form-card .field-wrap { margin-bottom: 16px; }
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255,255,255,.96);
  color: var(--thk-blue);
}
.contact-form-card textarea {
  min-height: 118px;
  resize: vertical;
}
.contact-form-card .wpcf7-form-control.wpcf7-submit,
.contact-form-card button[type="submit"] {
  width: 100%;
  border: 0;
}

.thk-contact-band {
  background: linear-gradient(180deg, #18496f 0%, #153d5f 100%);
  color: #f6fbff;
  margin-top: 0;
}
.thk-contact-band .thk-container {
  padding: 22px 56px 18px;
}
.thk-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}
.thk-contact-item {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.96);
  font-size: 1.08rem;
}
.thk-contact-item .dashicons {
  color: #fff;
  font-size: 22px;
  width: 22px;
  height: 22px;
}
.site-footer {
  background: #153651;
  color: rgba(255,255,255,.86);
}
.site-footer .thk-container {
  padding: 16px 56px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .95rem;
}
.site-footer a:hover { color: #fff; }

.thk-mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--thk-blue);
  padding: 8px;
}

.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hero-section .thk-container,
  .about-section .thk-container,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-section .thk-container { min-height: auto; }
  .hero-visual { display: none; }
  .about-image-wrap img { min-height: 280px; }
}

@media (max-width: 960px) {
  .thk-page-wrap { padding: 0 14px; }
  .site-header .thk-container,
  .hero-section .thk-container,
  .about-section .thk-container,
  .why-grid,
  .contact-grid,
  .thk-contact-band .thk-container,
  .site-footer .thk-container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .main-navigation {
    position: absolute;
    top: 84px;
    left: 14px;
    right: 14px;
    background: rgba(255,255,255,.98);
    border-radius: 14px;
    box-shadow: var(--thk-shadow);
    padding: 16px;
    display: none;
    z-index: 90;
  }
  .main-navigation.open { display: flex; }
  .main-navigation ul {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .thk-mobile-toggle { display: inline-flex; }
  .top-services .thk-container,
  .why-grid,
  .contact-service-cards {
    grid-template-columns: 1fr;
  }
  .top-service-item { border-right: 0; border-bottom: 1px solid rgba(23,59,98,.08); }
  .top-service-item:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.08rem; }
  .thk-section-title,
  .section-center-heading h2,
  .contact-form-card h3 { font-size: 1.9rem; }
  .about-heading,
  .top-service-title,
  .thk-image-card-title { font-size: 1.35rem; }
  .hero-actions,
  .thk-contact-info,
  .site-footer .thk-container { flex-direction: column; align-items: flex-start; }
  .thk-header-cta, .thk-button { width: 100%; }
}


.site-header, .hero-section, .top-services, .about-section, .why-section, .contact-section, .thk-contact-band, .site-footer {
  position: relative;
  z-index: 1;
}

.why-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(248,250,253,.96) 0%, rgba(243,246,251,.96) 100%);
}

.contact-section {
  background: linear-gradient(180deg, rgba(240,245,250,.96) 0%, rgba(237,242,248,.98) 100%);
}

.contact-left {
  padding-bottom: 18px;
}


/* === Visual overlap fixes v1.0.1 === */
.about-section,
.contact-section {
  isolation: isolate;
}

.about-section::before,
.about-section::after,
.contact-section::before,
.contact-section::after {
  right: -2%;
  width: 18%;
  z-index: 0;
  opacity: .62;
}

.about-section .thk-container,
.contact-grid {
  position: relative;
  z-index: 2;
}

.about-content,
.contact-left,
.contact-form-card,
.about-image-wrap {
  position: relative;
  z-index: 2;
}

.about-image-wrap {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--thk-shadow-soft);
}

.about-image-wrap img {
  border-radius: 12px;
}

.contact-form-card {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .about-section::before,
  .about-section::after,
  .contact-section::before,
  .contact-section::after {
    width: 14%;
    opacity: .45;
  }
}

@media (max-width: 860px) {
  .about-section::before,
  .about-section::after,
  .contact-section::before,
  .contact-section::after {
    display: none;
  }
}


/* === v1.0.2: requested fixes === */
/* A "Miért válasszon minket?" ikonok pontosan háttér nélkül jelenjenek meg. */
.why-grid .thk-icon-box-icon {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 12px 0 0;
  width: 52px;
  height: 52px;
}
.why-grid .thk-icon-box-icon img {
  width: 42px;
  height: 42px;
}
/* A fejlécben a logó mellett ismét jelenjen meg az EUMAX weboldalnév. */
.thk-brand-text {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .thk-brand-text { font-size: 1.15rem; }
  .thk-brand img { max-height: 46px; }
}

/* === v6 final: csak a "Miért válasszon minket?" ikonblokkok rendezése === */
#miert-valasszon-minket.why-section {
  padding: 46px 0 44px;
  background: #f6f8fb;
}

#miert-valasszon-minket .section-center-heading {
  padding: 0 24px;
}

#miert-valasszon-minket .section-center-heading h2 {
  margin: 0;
}

#miert-valasszon-minket .section-center-heading p {
  margin: 7px 0 0;
}

#miert-valasszon-minket .why-grid {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 32px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

#miert-valasszon-minket .thk-icon-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

#miert-valasszon-minket .thk-icon-box {
  min-height: 84px;
  height: 84px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 58, 94, 0.07);
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(23, 59, 98, 0.07);
  overflow: hidden;
  transform: none;
}

#miert-valasszon-minket .thk-icon-box:hover {
  transform: none;
  box-shadow: 0 5px 14px rgba(23, 59, 98, 0.09);
}

#miert-valasszon-minket .thk-icon-box-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#miert-valasszon-minket .thk-icon-box-icon img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain;
  display: block;
}

#miert-valasszon-minket .thk-icon-box > div {
  min-width: 0;
  overflow: hidden;
}

#miert-valasszon-minket .thk-card-title {
  margin: 0 0 4px;
  color: #07172b;
  font-size: 1.18rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#miert-valasszon-minket .thk-card-text {
  margin: 0;
  color: #34465c;
  font-size: 0.78rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  #miert-valasszon-minket .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  #miert-valasszon-minket .why-grid {
    grid-template-columns: 1fr;
  }
  #miert-valasszon-minket .thk-icon-box {
    height: auto;
    min-height: 82px;
  }
}
