/* ============================================================
   main.css — Variables, resets, typography, nav, footer,
              buttons, cards, shared sections
   ============================================================ */


/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Open+Sans:wght@400;500&display=swap');


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colours */
  --color-primary:       #3A8B7D;
  --color-primary-dark:  #2d6e63;
  --color-primary-light: #4aab9b;
  --color-dark:          #4C4C4C;
  --color-darker:        #1a1a1a;
  --color-bg:            #FFFFFF;
  --color-light:         #F5F6F6;
  --color-muted:         #7a7a7a;
  --color-border:        #e4e4e4;
  --color-body:          #555;

  /* Typography */
  --font-body:    'Open Sans', Arial, sans-serif;
  --font-heading: 'Poppins', Helvetica, Arial, sans-serif;

  /* Layout */
  --nav-height:    80px;
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.14);
  --shadow-card: 0 4px 20px rgba(58,139,125,.13);

  /* Transitions */
  --t-fast: .18s ease;
  --t-base: .28s ease;
  --t-slow: .45s ease;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body  { font-family: var(--font-body); color: var(--color-body); background: var(--color-bg); line-height: 1.7; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container      { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section        { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--light { background: var(--color-light); }


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-darker);
  line-height: 1.18;
  font-weight: 700;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-darker);
  margin-bottom: 1.125rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 52ch;
  line-height: 1.8;
}

.accent-line {
  display: block;
  width: 44px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .9rem 2.1rem;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition:
    background  var(--t-base),
    color       var(--t-base),
    border-color var(--t-base),
    transform   var(--t-fast),
    box-shadow  var(--t-base);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary        { background: var(--color-primary); color: #fff; box-shadow: 0 4px 16px rgba(58,139,125,.35); }
.btn--primary:hover  { background: var(--color-primary-dark); box-shadow: 0 8px 28px rgba(58,139,125,.45); }

.btn--outline-white       { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn--outline-white:hover { background: #fff; color: var(--color-primary); border-color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.btn--outline-primary       { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--outline-primary:hover { background: var(--color-primary); color: #fff; box-shadow: 0 8px 24px rgba(58,139,125,.35); }

.btn--white       { background: #fff; color: var(--color-primary); }
.btn--white:hover { background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* Ripple span — injected by JS */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transform: scale(0);
  animation: rippleAnim .55s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,32,26,.6);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition:
    background    var(--t-base),
    box-shadow    var(--t-base),
    height        var(--t-base);
}
.nav.nav--scrolled {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
  height: 68px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--container-pad);
}

/* Brand */
.nav__brand { display: flex; align-items: center; gap: .875rem; flex-shrink: 0; }

.nav__logo,
.nav__logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--t-base), height var(--t-base);
  display: block;
}
.nav--scrolled .nav__logo,
.nav--scrolled .nav__logo img { filter: none; height: 40px; }

/* Desktop menu */
.nav__menu > ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-base);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 3px; left: .8rem; right: .8rem;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover { color: #fff; }
.nav--scrolled .nav__link        { color: var(--color-darker); }
.nav--scrolled .nav__link:hover  { color: var(--color-primary); }
.nav--scrolled .nav__link::after { background: var(--color-primary); }

.nav__item.active .nav__link { color: var(--color-primary-light); }
.nav--scrolled .nav__item.active .nav__link { color: var(--color-primary); }

/* Chevron */
.chevron { width: 11px; height: 11px; transition: transform var(--t-fast); opacity: .6; }
.nav__item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  border-top: 3px solid var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity .22s ease, transform .28s cubic-bezier(0.16,1,0.3,1), visibility .22s ease;
  display: flex;
  flex-direction: column;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Staggered item slide-in */
.nav__dropdown li {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .15s ease, transform .15s ease;
}
.nav__item:hover .nav__dropdown li,
.nav__item:focus-within .nav__dropdown li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .26s cubic-bezier(0.16,1,0.3,1);
}
.nav__item:hover .nav__dropdown li:nth-child(1),.nav__item:focus-within .nav__dropdown li:nth-child(1) { transition-delay:.06s; }
.nav__item:hover .nav__dropdown li:nth-child(2),.nav__item:focus-within .nav__dropdown li:nth-child(2) { transition-delay:.10s; }
.nav__item:hover .nav__dropdown li:nth-child(3),.nav__item:focus-within .nav__dropdown li:nth-child(3) { transition-delay:.14s; }
.nav__item:hover .nav__dropdown li:nth-child(4),.nav__item:focus-within .nav__dropdown li:nth-child(4) { transition-delay:.18s; }
.nav__item:hover .nav__dropdown li:nth-child(5),.nav__item:focus-within .nav__dropdown li:nth-child(5) { transition-delay:.22s; }
.nav__item:hover .nav__dropdown li:nth-child(6),.nav__item:focus-within .nav__dropdown li:nth-child(6) { transition-delay:.26s; }

/* Right-align dropdown for items near the right edge */
.nav__item:last-child .nav__dropdown { left: auto; right: 0; }

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.nav__dropdown-link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.nav__dropdown-link:hover { background: var(--color-light); color: var(--color-primary); padding-left: 1.5rem; }
.nav__dropdown-link:hover::before { opacity: 1; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1100;
  flex-shrink: 0;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast), background var(--t-base);
}
.nav--scrolled .nav__hamburger span { background: var(--color-darker); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  pointer-events: none;
}
.nav__mobile-overlay.open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Slide-in panel */
.nav__mobile-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 100vw);
  height: 100%;
  background: var(--color-darker);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + 1rem) 1.75rem 2rem;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,.35);
}

/* Close button */
.nav__mobile-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  /* Override toggle base */
  width: 40px !important;
  border-bottom: none !important;
  padding: 0 !important;
}
.nav__mobile-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__mobile-close svg { width: 20px; height: 20px; }

/* Nav list */
.nav__mobile-list { display: flex; flex-direction: column; }
.nav__mobile-list > li { border-bottom: 1px solid rgba(255,255,255,.07); }
.nav__mobile-list > li:last-child { border-bottom: none; }
.nav__mobile-list > li > a {
  display: block;
  padding: .875rem 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.88);
  transition: color var(--t-fast);
}
.nav__mobile-list > li > a:hover { color: var(--color-primary-light); }

/* Accordion toggle button */
.nav__mobile-toggle {
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 0;
  border-bottom: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.nav__mobile-toggle:hover { color: var(--color-primary-light); }

/* Submenu — slide-down animation */
.nav__mobile-submenu {
  display: flex;
  flex-direction: column;
  padding: 0 0 0 1rem;
  gap: .1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .32s cubic-bezier(0.16,1,0.3,1), opacity .22s ease, padding .28s ease;
}
.nav__mobile-submenu.open {
  max-height: 400px;
  opacity: 1;
  padding: .25rem 0 .75rem 1rem;
}
.nav__mobile-submenu li a {
  display: block;
  padding: .45rem 0;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  transition: color var(--t-fast);
}
.nav__mobile-submenu li a:hover { color: var(--color-primary-light); }

.mobile-chevron { width: 16px; height: 16px; transition: transform var(--t-fast); opacity: .55; flex-shrink: 0; }
.mobile-chevron.open { transform: rotate(180deg); }


/* ============================================================
   HERO — split layout: text left, image right
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(8,28,22,.97) 0%, rgba(8,28,22,.80) 50%, rgba(8,28,22,.35) 100%),
    url('https://tiszaujvarostransz.hu/wp-content/uploads/2022/10/section-bg-01-scaled.jpg');
  background-size: cover;
  background-position: center 35%;
}
.hero__bg.loaded { }
.hero__particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__split {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) var(--container-pad) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__image  { display: none; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-heading);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  margin-bottom: 1.25rem;
}
.hero__eyebrow-line { display: inline-block; width: 30px; height: 2px; background: var(--color-primary-light); border-radius: 1px; flex-shrink: 0; }

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 14ch;
  letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__title em { font-style: italic; color: #fff; }

.hero__subtitle {
  font-size: clamp(.9375rem, 1.8vw, 1.125rem);
  color: rgba(255,255,255,.72);
  max-width: 48ch;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
.hero__image img { width: 100%; height: 480px; object-fit: cover; display: block; }
.hero__image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,28,22,.25) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem; right: var(--container-pad);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.38);
  font-size: .625rem;
  font-family: var(--font-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__scroll-indicator svg { animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }


/* ============================================================
   EU / SZÉCHENYI BANNER
   ============================================================ */
.eu-banner {
  background: #fff;
  border-top: 4px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
}
.eu-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.eu-banner__caption {
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eu-banner__img-link { display: block; transition: opacity var(--t-fast); }
.eu-banner__img-link:hover { opacity: .85; }
.eu-banner__img-link img { height: 80px; width: auto; max-width: 600px; object-fit: contain; }


/* ============================================================
   ABOUT — two-column split
   ============================================================ */
.about { background: var(--color-bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.about__text  { order: 1; }
.about__image { order: 2; }
.about__body  { font-size: 1.0625rem; color: var(--color-dark); line-height: 1.82; margin-bottom: 2rem; max-width: 52ch; }

.about__stats { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.about__stat  { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.about__stat-num {
  font-family: var(--font-heading);
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.about__stat-num sup { font-size: 1rem; }
.about__stat-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  white-space: nowrap;
}

.about__image-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__image-wrap img { width: 100%; height: 500px; object-fit: cover; transition: transform .6s ease; }
.about__image-wrap:hover img { transform: scale(1.03); }


/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { background: var(--color-light); }
.services__header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.services__header .section-desc { margin: 0 auto; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.25rem 1.875rem;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(58,139,125,.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-card), 0 14px 40px rgba(58,139,125,.14); border-bottom-color: var(--color-primary); }
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 76px; height: 76px;
  background: rgba(58,139,125,.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--t-base), background var(--t-base);
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-2deg); background: rgba(58,139,125,.14); }
.service-card__icon img { width: 44px; height: 44px; object-fit: contain; }
/* Legacy SVG icon support */
.service-card__icon svg { width: 40px; height: 40px; color: var(--color-primary); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.service-card__title { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; color: var(--color-darker); margin-bottom: .75rem; line-height: 1.3; letter-spacing: -.01em; }
.service-card__desc  { font-size: .9375rem; color: var(--color-muted); line-height: 1.72; margin-bottom: 1.5rem; }
.service-card__link  { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-heading); font-size: .75rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .07em; transition: gap var(--t-fast); }
.service-card__link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.service-card:hover .service-card__link { gap: .65rem; }
.service-card:hover .service-card__link svg { transform: translateX(3px); }
/* Make entire card tappable — stretched link covers the whole card */
.service-card__link::after { content: ''; position: absolute; inset: 0; }


/* ============================================================
   REFERENCES BANNER — teal dark bg + partner logos
   ============================================================ */
.references-banner {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
  overflow: hidden;
}
.references-banner__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(18,58,48,.93) 0%, rgba(42,105,88,.88) 100%),
    url('https://tiszaujvarostransz.hu/wp-content/uploads/2022/10/section-bg-01-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.references-banner__inner { position: relative; z-index: 1; }

.references-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -.025em;
}
.references-banner__sub {
  font-size: clamp(.9375rem, 1.8vw, 1.125rem);
  color: rgba(255,255,255,.72);
  max-width: 52ch;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

/* Partner logos row */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 0;
  min-width: 80px;
  opacity: .72;
  transition: opacity var(--t-base), transform var(--t-base);
}
.partner-logo:hover { opacity: 1; transform: scale(1.06); }
.partner-logo img { height: 100px; width: auto; object-fit: contain; max-width: 220px; }
.partner-logo--featured img { height: 150px; }


/* ============================================================
   VIDEO EMBED — 16:9 responsive iframe
   ============================================================ */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; display: block;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }


/* ============================================================
   PAGE CTA — reusable dark section, all inner pages
   ============================================================ */
.page-cta {
  position: relative;
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  text-align: center;
  overflow: hidden;
}
.page-cta__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(18,58,48,.95) 0%, rgba(42,105,88,.90) 100%),
    url('https://tiszaujvarostransz.hu/wp-content/uploads/2022/10/section-bg-01-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.page-cta__inner { position: relative; z-index: 1; }
.page-cta__label {
  display: inline-block;
  font-family: var(--font-heading); font-size: .6875rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 1.25rem;
}
.page-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; color: #fff;
  line-height: 1.1; margin-bottom: 1rem;
  letter-spacing: -.025em;
}
.page-cta__sub {
  font-size: clamp(.9375rem, 1.8vw, 1.075rem);
  color: rgba(255,255,255,.68);
  max-width: 46ch; margin: 0 auto 2.75rem; line-height: 1.75;
}
.page-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-darker);
  color: rgba(255,255,255,.65);
  padding: 4.5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Brand col */
.footer__logo img {
  height: 34px; width: auto;
  filter: brightness(0) invert(1);
  opacity: .88;
  margin-bottom: 1.25rem;
}
.footer__tagline {
  font-size: .9375rem;
  color: rgba(255,255,255,.46);
  max-width: 30ch;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Social icons */
.footer__social { display: flex; gap: .625rem; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }

/* Nav col */
.footer__heading {
  font-family: var(--font-heading); font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.25rem; padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__nav-links { display: flex; flex-direction: column; gap: .45rem; }
.footer__nav-links a {
  font-size: .875rem; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: .4rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__nav-links a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary); flex-shrink: 0; opacity: 0;
  transition: opacity var(--t-fast);
}
.footer__nav-links a:hover { color: #fff; padding-left: .3rem; }
.footer__nav-links a:hover::before { opacity: 1; }

/* Contact col */
.footer__contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer__contact-item { display: flex; gap: .875rem; align-items: flex-start; }
.footer__contact-item svg { width: 17px; height: 17px; color: var(--color-primary-light); flex-shrink: 0; margin-top: .15rem; }
.footer__contact-item span { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.footer__contact-item a { color: rgba(255,255,255,.5); transition: color var(--t-fast); }
.footer__contact-item a:hover { color: var(--color-primary-light); }

/* Bottom bar */
.footer__bottom {
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer__copyright { font-size: .8125rem; color: rgba(255,255,255,.26); }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: .8125rem; color: rgba(255,255,255,.26); transition: color var(--t-fast); }
.footer__bottom-links a:hover { color: rgba(255,255,255,.6); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__image { order: 1; }
  .about__text  { order: 2; }
  .about__image-wrap img { height: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .nav__menu      { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .partner-logos  { gap: 1.5rem 2rem; }
}

@media (max-width: 560px) {
  .footer__grid   { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions  { flex-direction: column; align-items: flex-start; }
  .about__stats   { gap: 1.25rem; }
}


/* ============================================================
   IMAGE FIT HELPERS
   ============================================================ */

/* Global safe default — no image stretches outside its box */
img { max-width: 100%; height: auto; }

/* Reference & generic card images */
.ref-card__img,
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Service icon images — preserve aspect ratio, never crop */
.service-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  height: auto;           /* override any inherited height */
}

/* Company / location photos — face/subject is typically upper half */
.location-card__img {
  object-position: center 30%;
}

.about__image-wrap img,
.intro__image img {
  object-position: center 30%;
}

/* ── Hero size overrides for subpages ──────────────────── */
.page-hero {
  min-height: 50vh;
  padding: 5rem 0 2.5rem;
}

/* ── Nav CTA highlight (Kapcsolat) ─────────────────────── */
.nav__link--cta {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.45rem 1.1rem !important;
  font-weight: 700;
  transition: background var(--transition);
}
.nav__link--cta:hover {
  background: var(--color-primary-dark);
}

/* ── Partner logos ─────────────────────────────────────── */
.partners__logo img {
  max-height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.partners__logo--text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

/* ── Service icon SVGs ─────────────────────────────────── */
.service-card__icon svg {
  width: 56px;
  height: 56px;
  display: block;
}

/* ── Button enhancements ───────────────────────────────── */
.btn--lg {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  letter-spacing: 0.03em;
}
.btn--primary {
  box-shadow: 0 4px 18px rgba(30, 120, 90, 0.28);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(30, 120, 90, 0.38);
  transform: translateY(-2px);
}

/* ── Reviews / Vélemények ──────────────────────────────── */
.reviews {
  padding: var(--section-gap) 0;
  background: #f8f9fa;
}
.reviews__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.reviews__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  display: block;
  margin-bottom: .5rem;
}
.reviews__stars-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
  font-size: .9rem;
  color: #555;
}
.stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.review-card__meta {
  flex: 1;
  min-width: 0;
}
.review-card__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--clr-heading);
  line-height: 1.2;
}
.review-card__date {
  font-size: .75rem;
  color: #999;
  margin-top: 2px;
}
.review-card__stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.review-card__text {
  font-size: .9rem;
  color: #444;
  line-height: 1.65;
  flex: 1;
}
.review-card__source {
  font-size: .72rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.reviews__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Reference card image height ──────────────────────── */
.ref-card__img {
  height: 210px;
  object-fit: cover;
  object-position: center center;
  width: 100%;
  display: block;
}

/* ── Location card text contrast fix ──────────────────── */
.location-card {
  color: #fff;
}
.location-card__title,
.location-card__address,
.location-card__meta {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

/* ── ISO footer badge ──────────────────────────────────── */
.footer__iso {
  margin-top: .75rem;
}
.footer__iso img {
  height: 80px;
}

/* ── Sticky filter bar override (non-sticky) ───────────── */
.filter-bar--sticky,
.filter-bar[style*="position: sticky"],
.filter-bar[style*="position:sticky"] {
  position: static !important;
  top: auto !important;
}

/* ── CTA section partner logos grid ───────────────────── */
.cta-partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
  justify-items: center;
}


/* ============================================================
   RESPONSIVE — EXTENDED MOBILE & TABLET
   ============================================================ */

/* ── Tablet/mobile: kill background-attachment:fixed (broken on iOS/Android) */
@media (max-width: 1080px) {
  .references-banner__bg,
  .page-cta__bg { background-attachment: scroll; }
}

/* ── Large tablet (≤ 1024px) ───────────────────────────── */
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet (≤ 900px) ──────────────────────────────────── */
@media (max-width: 900px) {
  .partner-logo img { max-height: 80px !important; height: auto !important; }
  .partner-logos    { justify-content: center; gap: 1.5rem; }
}

/* ── Tablet (≤ 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Services: remove artificial max-width cap on tablet */
  .services__grid { max-width: 100%; }

  /* Service card: reduce padding */
  .service-card { padding: 1.75rem 1.375rem; }

  /* Subpage heroes */
  .page-hero__inner     { padding: 6rem 0 2.5rem !important; }
  .page-hero__title     { font-size: clamp(1.6rem, 6vw, 2.8rem) !important; }
  .page-hero__sub       { font-size: .9rem !important; max-width: 100% !important; }
  .page-hero__breadcrumb { margin-top: 1.5rem !important; }

  /* Hero Széchenyi logo — reposition to bottom of hero on tablet/phone */
  .hero > a[href*="palyazat"] {
    top: auto !important;
    bottom: 2rem;
    right: var(--container-pad);
  }
  .hero > a[href*="palyazat"] img { width: clamp(140px, 28vw, 200px) !important; }

  /* About image height: less tall on tablet */
  .about__image-wrap img { height: 380px; }

  /* Partner logos padding */
  .partner-logos { padding: 2rem 0; }
}

/* ── Large phone (≤ 640px) ─────────────────────────────── */
@media (max-width: 640px) {
  /* Partner logos: 2-per-row grid, bigger */
  .partner-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
    justify-items: center;
    padding: 2rem 1rem;
  }
  .partner-logo { width: 100%; justify-content: center; }
  .partner-logo img { max-height: 80px !important; max-width: 160px; width: auto; }
  .partner-logo--featured img { max-height: 100px !important; }

  /* Service card: compact */
  .service-card { padding: 1.5rem 1.25rem; }
  .service-card__icon { width: 60px; height: 60px; margin-bottom: 1rem; }

  /* Reviews: single column */
  .reviews-grid { grid-template-columns: 1fr; }

  /* About image */
  .about__image-wrap img { height: 300px; }

  /* Ref card image */
  .ref-card__img { height: 180px; }

  /* Subpage hero */
  .page-hero { min-height: 38vh !important; }
  .page-hero__inner { padding: 5rem 0 2rem !important; }
}

/* ── Mobile (≤ 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  /* Hero */
  .hero__split { padding-top: calc(var(--nav-height) + 1.5rem) !important; }
  .hero__subtitle { font-size: .9rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  /* Section titles */
  .section-title { font-size: clamp(1.4rem, 7vw, 2rem); }

  /* Service card */
  .service-card { padding: 1.25rem 1rem; }
  .service-card__title { font-size: .9375rem; }
  .service-card__desc  { font-size: .875rem; }

  /* About stats: 2-up grid */
  .about__stats { gap: 1rem 1.5rem; }
  .about__stat  { flex: 0 0 calc(50% - .75rem); }
  .about__stat-num { font-size: 1.75rem; }

  /* About image */
  .about__image-wrap img { height: 260px; }

  /* Subpage hero */
  .page-hero { min-height: 32vh !important; }
  .page-hero__inner { padding: 4.5rem 0 1.75rem !important; }

  /* Partner logos: keep 2-per-row, slightly tighter gap */
  .partner-logos    { gap: 1.5rem 1rem; padding: 1.75rem .75rem; }
  .partner-logo img { max-height: 72px !important; }

  /* Ref card */
  .ref-card__img  { height: 160px; }
  .ref-card__body { padding: 1rem; }

  /* Reviews */
  .review-card { padding: 1.25rem; }
}

/* ── Small mobile (≤ 375px) ────────────────────────────── */
@media (max-width: 375px) {
  /* Nav */
  :root { --nav-height: 64px; }

  /* Tighter sections */
  .section { padding: clamp(2rem, 8vw, 3.5rem) 0; }

  /* Hero */
  .hero__eyebrow { font-size: .5625rem; }

  /* Partner logos */
  .partner-logos     { gap: 1.25rem .75rem; padding: 1.5rem .5rem; }
  .partner-logo img  { max-height: 64px !important; }

  /* About stats single col on tiny screens */
  .about__stats  { flex-direction: column; gap: .75rem; }
  .about__stat   { flex: none; }
  .about__stat-num { font-size: 1.5rem; }

  /* About image */
  .about__image-wrap img { height: 220px; }

  /* Service card */
  .service-card { padding: 1rem .875rem; }
  .service-card__icon { width: 52px; height: 52px; }

  /* Section title */
  .section-title { font-size: clamp(1.25rem, 7vw, 1.75rem); }

  /* Footer */
  .footer__logo img { height: 28px; }
}
