/*
Theme Name: Purhabszakértő
Theme URI: https://webtag.hu
Author: Webtag Online Kft.
Author URI: https://webtag.hu
Description: Purhabszakértő – purhab szigetelés sablon (Figma terv alapján). Customizerből szerkeszthető szekciók, Szolgáltatás és Vélemény bejegyzéstípusok, beépített ajánlatkérő űrlap.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: purhabguru
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Self-hosted fonts (Lora 600, Roboto 400/500/700 – latin + latin-ext for ő/ű) */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/lora-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/lora-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/roboto-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/roboto-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/roboto-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/roboto-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/roboto-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/roboto-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --white: #ffffff;
  --cream: #f5f2ec;
  --cream-light: #faf7f1;
  --band: #f7f4ee;
  --ink: #09263b;
  --teal: #1b666c;
  --body: #63718a;
  --muted: #8794a8;
  --line: #e9ebed;
  --line-soft: rgba(221, 225, 228, 0.6);
  --star: #ffad00;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Roboto', Arial, sans-serif;

  --container: 1366px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 16px 40px;
  width: 100%;
}
/* Figma frame is 1920 wide with the 1366px content column centered */
.site-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-width: 0;
}
.container { min-width: 0; }

.container {
  width: var(--container);
  max-width: 100%;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.overline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1.8px;
  color: var(--muted);
  white-space: nowrap;
}

.h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 80px;
  line-height: normal;
  color: var(--ink);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  line-height: normal;
  color: var(--ink);
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  line-height: normal;
  color: var(--ink);
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.section-title--tight { gap: 9px; }
.section-title--refs { gap: 7px; flex: 1 0 0; min-width: 1px; }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-serif);
  font-weight: 600;
  white-space: nowrap;
}
.wordmark--lg { font-size: 40px; height: auto; width: auto; line-height: 1.2; }
.wordmark--sm { font-size: 32px; }
.wordmark__a { color: var(--ink); }
.wordmark__b { color: var(--teal); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: normal;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn img { flex-shrink: 0; }

.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: #155257; }

.btn--cream { background: var(--cream); color: var(--teal); }
.btn--cream:hover { background: #ede8de; }

.btn--outline {
  background: var(--white);
  color: var(--teal);
  border: 0.5px solid var(--teal);
}
.btn--outline:hover { background: var(--cream); }

/* nav CTA: Figma uses a 13px line-height on the label */
.btn--tight span { line-height: 13px; }

.btn--submit {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  font-weight: 400;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Badges (round icon holders)
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  flex-shrink: 0;
}
.badge--48 { width: 48px; height: 48px; background: var(--cream); }
.badge--54 { width: 54px; height: 54px; background: var(--cream-light); }
.badge--60 { width: 60px; height: 60px; background: var(--cream); }

/* --------------------------------------------------------------------------
   01 / Navigation
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.menu {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  font-size: 16px;
  color: var(--body);
  white-space: nowrap;
}
.menu a { line-height: 11px; }
.menu a:last-child { line-height: normal; }
.menu a:hover { color: var(--teal); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* --------------------------------------------------------------------------
   02 / Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 760px;
  flex-shrink: 0;
}
.hero__content .h1 { width: 730px; }

.hero__lead {
  font-size: 24px;
  color: var(--body);
  width: 652px;
}

.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.hero__photo {
  flex: 1 0 0;
  min-width: 1px;
  aspect-ratio: 457 / 323;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   03 / Benefits
   -------------------------------------------------------------------------- */

.benefits-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

.benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}
.benefit__badge { flex-shrink: 0; }

.benefit__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 20px;
  white-space: nowrap;
}
.benefit__title { font-weight: 500; color: var(--ink); }
.benefit__desc { font-weight: 400; color: var(--body); }

.benefits__divider { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   04 / Szolgáltatások
   -------------------------------------------------------------------------- */

.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 23px;
}

.services__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.services__aside {
  display: flex;
  align-items: center;
  gap: 33px;
}

.services__lead {
  font-size: 20px;
  color: var(--body);
  width: 410px;
}

.cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.card {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 24px 1px rgba(221, 225, 228, 0.4);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  box-shadow: 0 8px 28px 2px rgba(221, 225, 228, 0.7);
  transform: translateY(-2px);
}

.card__photo {
  width: 100%;
  aspect-ratio: 188 / 107;
  background: var(--cream);
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 11px 14px 12px;
}

.card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  width: 100%;
}

.card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.card__row img { flex-shrink: 0; }

.card__desc {
  flex: 1 0 0;
  min-width: 1px;
  font-size: 18px;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   05 / Technológia összehasonlítás
   -------------------------------------------------------------------------- */

.tech {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tech__content {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.tech__lead {
  font-size: 18px;
  color: var(--body);
  width: 419px;
}

.cells {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}

.cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-shrink: 0;
}
.cell--open { width: 356px; }
.cell--closed { width: 350px; }

.cell__photo {
  width: 100%;
  aspect-ratio: 208 / 90;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream);
}
.cell__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  width: 100%;
}

.checklist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 16px;
  color: var(--body);
}
.checklist li img { flex-shrink: 0; }
.checklist li span { flex: 1 0 0; min-width: 1px; }

/* --------------------------------------------------------------------------
   06 / Folyamat
   -------------------------------------------------------------------------- */

.process {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
}

.process__head {
  display: flex;
  align-items: center;
  gap: 120px;
  width: 100%;
}

.process__lead {
  font-size: 18px;
  color: var(--body);
  width: 340px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 77px;
  width: 100%;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex-shrink: 0;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 99px;
  background: var(--cream);
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  color: var(--ink);
  flex-shrink: 0;
}

.step__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  white-space: nowrap;
}
.step__content--fixed { width: 150px; white-space: normal; }

.step__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.step__desc {
  font-size: 16px;
  color: var(--body);
}

/* 70px vertical line in Figma, rotated 90° → horizontal connector */
.steps__sep {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 0;
  flex-shrink: 0;
}
.steps__sep img {
  flex: none;
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   07 / Referenciák
   -------------------------------------------------------------------------- */

.refs-spacer { height: 1px; }

.refs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.refs__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 33px;
  width: 100%;
}

.refs__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.refs__arrow { width: 60px; height: 60px; border-radius: 50%; }
.refs__arrow:hover { opacity: .8; }

.refs__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 672px;
  height: 247px;
  flex-shrink: 0;
}

.gallery__compare {
  display: flex;
  align-items: center;
  width: 100%;
  height: 223px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.gallery__before {
  flex: 1 0 0;
  min-width: 1px;
  aspect-ratio: 294 / 209;
}
.gallery__after {
  flex: 1 0 0;
  min-width: 1px;
  height: 100%;
}
.gallery__before img,
.gallery__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__dots { flex-shrink: 0; }

.reviews {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  align-self: stretch;
}

.review {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 11px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.review__quote {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 24px;
  color: var(--teal);
  width: 148px;
}

.review__text {
  font-size: 16px;
  color: var(--body);
  width: 100%;
}

.review__author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.review__name {
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}
.review__place {
  font-size: 16px;
  color: var(--muted);
}

.review__stars {
  font-size: 24px;
  color: var(--star);
  width: 148px;
}

/* --------------------------------------------------------------------------
   08 / Ajánlatkérés
   -------------------------------------------------------------------------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 24px 40px;
  background: var(--cream-light);
  border-radius: 17px;
}

.cta__content {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cta__content .h3 { white-space: nowrap; }

.cta__lead {
  font-size: 16px;
  color: var(--body);
}

.cta__perks {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.perks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  font-size: 16px;
  color: var(--body);
  white-space: nowrap;
}
.perks li img { flex-shrink: 0; }

/* Form */
.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 486px;
  padding: 8px 15px 8px 18px;
  background: var(--white);
  border-radius: 13px;
  flex-shrink: 0;
}

.form__row {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  width: 100%;
}

.field {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}
.form > .field { flex: none; }

.field__label {
  font-size: 16px;
  color: var(--body);
}

.field__input {
  width: 100%;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.field__input:focus { border-color: var(--teal); }

.field__select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--muted);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5L6 7.5L9 4.5' stroke='%238794a8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
.field__select:valid { color: var(--ink); }
.field__select option { color: var(--ink); }

.field__textarea {
  height: 59px;
  padding: 6px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   09 / Footer
   -------------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px clamp(32px, 11vw, 209px);
}

.footer__left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  white-space: nowrap;
}

.footer__links {
  display: flex;
  align-items: flex-start;
  gap: 23px;
  font-size: 16px;
  color: var(--body);
}
.footer__links a:hover { color: var(--teal); }

.footer__right {
  display: flex;
  align-items: center;
  gap: 32px;
  border-radius: 100px;
}

.footer__social { flex-shrink: 0; }

/* ==========================================================================
   WordPress-specifikus kiegészítések
   ========================================================================== */

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; left: 16px; top: 16px; z-index: 100000;
  padding: 12px 20px; background: var(--teal); color: #fff; border-radius: 100px; text-decoration: none;
}

/* Menus rendered by wp_nav_menu */
.menu li { list-style: none; }
.menu .current-menu-item > a,
.menu .current_page_item > a { color: var(--teal); }
.nav__menu { display: contents; }
.footer__links .menu { display: flex; align-items: flex-start; gap: 23px; }

/* Inline SVG icons keep their Figma root size */
.btn svg, .badge svg, .checklist svg, .perks svg, .card__row svg, .refs__arrow svg, .benefit__badge, .gallery__dots { flex-shrink: 0; display: block; }
.steps__sep svg { flex: none; transform: rotate(90deg); display: block; }
.badge--54 svg.badge { display: inline-flex; }
.benefits__divider { width: 1px; height: 26px; background: #dde1e4; flex-shrink: 0; }
.wordmark--logo img { max-height: 52px; width: auto; display: block; }

/* Hamburger (hidden on desktop) */
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Steps list reset */
.steps { padding: 0; margin: 0; list-style: none; }

/* Reviews slider (2 visible on desktop, arrows scroll the track) */
.reviews { overflow: hidden; display: block; }
.reviews__track { display: flex; gap: 16px; width: 100%; height: 100%; min-width: 0; transition: transform .35s ease; will-change: transform; }
.reviews__track .review__text { min-width: 0; }
.reviews__track .review { flex: 0 0 calc(50% - 8px); min-width: 0; }
.refs__arrow[disabled] { opacity: .35; cursor: default; }

/* Before / after labels for custom uploads */
.gallery__before, .gallery__after { position: relative; }
.gallery__compare--labels .gallery__before::after,
.gallery__compare--labels .gallery__after::after {
  content: attr(data-label); position: absolute; top: 14px; padding: 6px 14px; border-radius: 100px;
  background: var(--cream); color: var(--ink); font: 500 12px/1 var(--font-sans); letter-spacing: 1px;
}
.gallery__compare--labels .gallery__before::after { left: 14px; }
.gallery__compare--labels .gallery__after::after { right: 14px; }

/* Form extras */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__notice { width: 100%; margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 15px; line-height: 1.4; }
.form__notice--ok { background: #e6f1ef; color: var(--teal); }
.form__notice--error { background: #fdecec; color: #a33; }
.field__input[aria-invalid="true"] { border-color: #d55; }

/* Legal line under footer */
.footer__legal { padding-top: 8px; }
.footer__legal p { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Inner pages (archive, single, page, 404) */
.inner { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.inner__head { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.inner__lead { font-size: 20px; color: var(--body); }
.inner__empty { font-size: 18px; color: var(--body); }
.inner__photo { border-radius: 18px; overflow: hidden; aspect-ratio: 457 / 323; max-width: 900px; background: var(--cream); }
.inner__photo img { width: 100%; height: 100%; object-fit: cover; }
.inner__content { max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--body); }
.inner__content h2, .inner__content h3, .inner__content h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); margin: 1.4em 0 .5em; line-height: 1.2; }
.inner__content h2 { font-size: 36px; } .inner__content h3 { font-size: 28px; } .inner__content h4 { font-size: 22px; }
.inner__content p, .inner__content ul, .inner__content ol { margin: 0 0 1em; }
.inner__content ul, .inner__content ol { padding-left: 1.3em; }
.inner__content ul li { list-style: disc; }
.inner__content a { color: var(--teal); text-decoration: underline; }
.inner__content img { max-width: 100%; height: auto; border-radius: 12px; }
.inner__content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); font-style: italic; }
.cards--wrap { flex-wrap: wrap; justify-content: flex-start; }
.cards--wrap .card { flex: 0 0 calc(25% - 12px); }
.pagination { display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--body); }
.pagination .page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }
.wp-block-image img, .alignwide, .alignfull { max-width: 100%; height: auto; }

/* ==========================================================================
   Reszponzív réteg (a Figma csak desktopot tartalmaz – ez a sablon saját
   kiegészítése, hogy tablet/mobil nézetben is használható legyen az oldal)
   ========================================================================== */

@media (max-width: 1399px) {
  .page { padding-left: 24px; padding-right: 24px; }
  .h1 { font-size: 64px; }
  .hero__content { width: 56%; flex-shrink: 1; }
  .hero__content .h1, .hero__lead { width: auto; max-width: 100%; }
  .benefits { gap: 48px; }
  .services__lead { width: 320px; }
  .tech__lead { width: auto; }
  .cta__content .h3 { white-space: normal; }
  .steps { gap: 32px; }
  .steps__sep { width: 40px; }
  .footer { gap: 60px; }
  .gallery { width: 48%; flex-shrink: 1; }
}

@media (max-width: 1099px) {
  .h1 { font-size: 52px; }
  .h2 { font-size: 42px; }
  .h3 { font-size: 36px; }
  .hero { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero__content { width: 100%; }
  .hero__photo { flex: none; width: 100%; }
  .benefits { flex-wrap: wrap; gap: 24px 40px; }
  .benefits__divider { display: none; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services__aside { flex-wrap: wrap; }
  .services__lead { width: auto; max-width: 560px; }
  .process__lead { width: auto; }
  .cards { flex-wrap: wrap; }
  .cards .card, .cards--wrap .card { flex: 1 1 calc(50% - 8px); min-width: 260px; }
  .tech { flex-direction: column; align-items: stretch; gap: 24px; }
  .cells { width: 100%; flex-shrink: 1; }
  .cell--open, .cell--closed { width: auto; flex: 1 1 0; min-width: 0; }
  .process__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .steps { flex-direction: column; align-items: flex-start; gap: 20px; }
  .steps__sep { display: none; }
  .refs__body { flex-direction: column; align-items: stretch; }
  .gallery { width: 100%; height: auto; }
  .gallery__compare { height: auto; aspect-ratio: 672 / 223; }
  .reviews { align-self: auto; flex: none; width: 100%; }
  .reviews__track { height: auto; align-items: stretch; }
  .hero__lead br, .process__lead br, .cta__lead br { display: none; }
  .cta { flex-direction: column; align-items: stretch; padding: 24px; }
  .cta__content .h3 { white-space: normal; }
  .cta__perks { align-items: center; }
  .form { width: 100%; }
  .footer { flex-direction: column; gap: 20px; }
  .footer__left { flex-direction: column; gap: 12px; }
}

/* Header collapses to a hamburger below 1200px (wordmark + menu + CTA = 1172px) */
@media (max-width: 1199px) {
  .nav { flex-wrap: wrap; position: relative; }
  .nav__toggle { display: inline-flex; }
  .wordmark--lg { font-size: 36px; height: auto; width: auto; }
  .nav__menu { display: none; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; padding: 16px 0 8px; }
  .nav__menu.is-open { display: flex; }
  .nav__menu .menu { flex-direction: column; gap: 14px; font-size: 18px; }
  .nav__menu .menu a { line-height: normal !important; }
  .nav__actions { flex-wrap: wrap; }
}

@media (max-width: 899px) {
  .page { gap: 28px; }
  .site-main { gap: 28px; }
  .reviews__track .review { flex-basis: 100%; }
}

@media (max-width: 599px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 30px; }
  .hero__lead { font-size: 20px; }
  .hero__actions, .nav__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { width: 100%; }
  .btn--tight { width: 100%; }
  .cards .card, .cards--wrap .card { flex-basis: 100%; min-width: 0; }
  .cells { flex-direction: column; }
  .cta__perks { flex-direction: column; align-items: flex-start; }
  .form { padding: 12px; }
  .form__row { flex-direction: column; gap: 10px; }
  .footer__links .menu { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
  .footer__right { flex-direction: column; gap: 16px; width: 100%; }
  .gallery__compare { aspect-ratio: 672 / 300; }
  .benefit { width: 100%; justify-content: flex-start; }
  .benefit__text { white-space: normal; }
}

/* Footer social icons (Figma: 32px icons, 13px apart) */
.footer__social { display: flex; align-items: center; gap: 13px; }
.footer__social-link { display: block; line-height: 0; transition: opacity .15s ease; }
.footer__social-link:hover { opacity: .75; }
.footer__social-link svg { display: block; }

/* ==========================================================================
   Szolgáltatás aloldal (Figma: Családi ház szigetelés • Desktop)
   A terv saját, kissé eltérő tokenjei: ink2, muted2, soft, line2, teal2
   ========================================================================== */

:root {
  --ink2: #071d40;
  --muted2: #7182a1;
  --soft: #f5f3ee;
  --line2: #e5eaf0;
  --teal2: #096570;
  --green: #36a08d;
  --amber: #ffae14;
  --red: #e94750;
}

.overline--sp { color: var(--muted2); }
.sp-h1 { font-family: var(--font-serif); font-weight: 600; font-size: 66px; line-height: normal; color: var(--ink2); }
.sp-h2 { font-family: var(--font-serif); font-weight: 600; font-size: 52px; line-height: normal; color: var(--ink2); width: 100%; }
.sp-h2-44 { font-family: var(--font-serif); font-weight: 600; font-size: 44px; line-height: normal; color: var(--ink2); }

.btn--teal2 { background: var(--teal2); color: var(--white); }
.btn--teal2:hover { background: #074f58; }
.btn--outline2 { background: var(--white); color: var(--teal2); border: 0.7px solid var(--teal2); padding: 14px 24px; }
.btn--outline2:hover { background: var(--soft); }

/* 02 / Hero */
.sp-hero { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; }
.sp-hero__text { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 18px; }
.sp-hero__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.sp-breadcrumb { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 16px; color: var(--muted2); white-space: nowrap; }
.sp-breadcrumb a:hover { color: var(--teal2); }
.sp-hero__lead { font-size: 24px; color: var(--muted2); width: 586px; max-width: 100%; }
.sp-hero__actions { display: flex; align-items: flex-start; gap: 13px; width: 100%; }
.sp-hero__photo { flex: 1 0 0; min-width: 1px; aspect-ratio: 456 / 278; border-radius: 15px; overflow: hidden; background: var(--cream); }
.sp-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero__inset {
  position: absolute; right: 0; top: 137px; width: 318px; height: 280px;
  border: 3px solid var(--white); border-radius: 14px; overflow: hidden; background: var(--cream);
}
.sp-hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero__caption {
  position: absolute; right: 0; top: 303px; width: 292px;
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  background: var(--soft); border-radius: 20px 0 0 20px;
}
.sp-hero__caption svg { flex-shrink: 0; }
.sp-hero__caption p { flex: 1 0 0; min-width: 1px; font-size: 20px; line-height: 1.27; color: var(--ink2); }
.sp-hero__caption strong { font-weight: 700; }

/* 03 / Benefits (sub-page variant) */
.benefits-wrap--sp { padding: 40px 10px; }
.benefits--sp .benefit__title--serif { font-family: var(--font-serif); font-weight: 600; font-size: 24px; }
.benefits--sp .benefit__desc { font-size: 20px; }
.benefits--sp .benefit__text { white-space: normal; max-width: 246px; }
.benefits--sp .benefit__badge { flex-shrink: 0; }

/* 04 / Összefoglaló */
.sp-summary { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 32px; }
.sp-summary .overline { width: 100%; }
.sp-summary__intro { display: flex; align-items: center; gap: 32px; width: 100%; padding-bottom: 20px; }
.sp-summary__intro .sp-h2-44 { width: 717px; max-width: 100%; }
.sp-summary__lead { font-size: 20px; color: var(--muted2); width: 473px; max-width: 100%; }
.sp-summary__cards { display: flex; align-items: center; justify-content: center; gap: 13px; width: 100%; }
.sp-feat {
  flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 10px 13px; background: var(--white); border: 0.7px solid var(--line2); border-radius: 8px;
}
.sp-feat__head { display: flex; align-items: center; gap: 9px; width: 100%; }
.sp-feat__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 100px; background: var(--soft); flex-shrink: 0; }
.sp-feat__title { flex: 1 0 0; min-width: 1px; font-family: var(--font-serif); font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); color: var(--ink2); overflow-wrap: break-word; hyphens: auto; }
.sp-feat__text { font-size: 18px; color: var(--muted2); width: 100%; }

/* 05 / Miért a purhab? */
.sp-why { display: flex; align-items: stretch; justify-content: center; gap: 16px; padding-bottom: 32px; }
.sp-why__intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; width: 573px; flex-shrink: 0; }
.sp-why__lead { font-size: 18px; color: var(--muted2); width: 542px; max-width: 100%; }
.sp-why__card { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; background: var(--white); border: 0.7px solid var(--line2); border-radius: 6px; overflow: hidden; }
.sp-why__photo { width: 100%; aspect-ratio: 154 / 82; border-radius: 6px; overflow: hidden; background: var(--cream); flex-shrink: 0; }
.sp-why__photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-why__body { display: flex; flex-direction: column; gap: 7px; padding: 10px; flex: 1 0 0; }
.sp-why__title { font-family: var(--font-sans); font-weight: 500; font-size: 20px; color: var(--ink2); }
.sp-why__text { font-size: 16px; color: var(--muted2); }

/* 06 / Összehasonlítás */
.sp-compare { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 32px; }
.sp-compare .overline { width: 100%; }
.sp-table-scroll { width: 100%; overflow-x: auto; }
.sp-table { display: flex; align-items: flex-start; gap: 2px; width: 100%; min-width: 900px; }
.sp-table__col { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; }
.sp-table__col--hero { border: 1px solid var(--teal2); border-radius: 6px; }
.sp-table__head {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 40px; padding: 4px; border-radius: 5px; background: var(--soft);
  font-family: var(--font-sans); font-weight: 500; font-size: 18px; color: var(--ink2); white-space: nowrap;
}
.sp-table__head--empty { background: var(--soft); }
.sp-table__col--hero .sp-table__head { height: auto; min-height: 40px; background: var(--teal2); color: var(--white); }
.sp-table__badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 100px; background: var(--soft); font-weight: 400; font-size: 16px; color: var(--ink2); }
.sp-table__cell { display: flex; align-items: center; gap: 10px; height: 28px; padding-left: 12px; border: 0.4px solid var(--line2); font-size: 16px; color: var(--muted2); white-space: nowrap; }
.sp-table__col--hero .sp-table__cell { color: var(--teal2); }
.sp-table__cell svg { flex-shrink: 0; }
.sp-table__noicon { width: 13px; flex-shrink: 0; }
.sp-table__dash { color: var(--line2); }
.sp-rate { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 7px; font-weight: 700; font-size: 10px; line-height: 1; color: var(--white); flex-shrink: 0; }
.sp-rate--green { background: var(--green); }
.sp-rate--amber { background: var(--amber); }
.sp-rate--red { background: var(--red); }

/* 07 / Alkalmazási területek */
.sp-apps { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sp-apps__cards { display: flex; align-items: stretch; gap: 12px; width: 100%; margin-top: 6px; }
.sp-app { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; background: var(--white); border: 0.7px solid var(--line2); border-radius: 7px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.sp-app:hover { box-shadow: 0 8px 28px 2px rgba(221, 225, 228, 0.7); transform: translateY(-2px); }
.sp-app__photo { position: relative; width: 100%; aspect-ratio: 191.25 / 86; border-radius: 6px; overflow: hidden; background: var(--cream); }
.sp-app__photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-app__more { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 12px; background: #f5f2ed; }
.sp-app__body { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.sp-app__title { font-family: var(--font-serif); font-weight: 600; font-size: 24px; color: var(--ink2); }
/* A tervben 10px – olvashatóság miatt 12px, igény szerint állítható */
.sp-app__text { font-size: 12px; line-height: 1.27; color: var(--muted2); }

/* Reszponzív */
@media (max-width: 1399px) {
  .sp-h1 { font-size: 56px; }
  .sp-hero__inset { width: 260px; height: 228px; top: auto; bottom: 60px; }
  .sp-hero__caption { top: auto; bottom: 0; width: 260px; }
  .sp-hero__caption p { font-size: 17px; }
  .sp-why__intro { width: 44%; }
  .sp-why__lead { width: auto; }
}
@media (max-width: 1099px) {
  .sp-h1 { font-size: 48px; }
  .sp-h2 { font-size: 42px; }
  .sp-h2-44 { font-size: 38px; }
  .sp-hero { flex-direction: column; align-items: stretch; }
  .sp-hero__photo { flex: none; width: 100%; }
  .sp-hero__inset { display: none; }
  .sp-hero__caption { position: static; width: auto; border-radius: 12px; }
  .benefits--sp .benefit__text { max-width: none; }
  .sp-summary__intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sp-summary__cards { flex-wrap: wrap; }
  .sp-feat { flex: 1 1 calc(50% - 7px); min-width: 260px; }
  .sp-why { flex-direction: column; }
  .sp-why__intro { width: 100%; }
  .sp-why__card { flex: none; }
  .sp-apps__cards { flex-wrap: wrap; }
  .sp-app { flex: 1 1 calc(50% - 6px); min-width: 240px; }
}
@media (max-width: 599px) {
  .sp-h1 { font-size: 38px; }
  .sp-h2 { font-size: 32px; }
  .sp-h2-44 { font-size: 30px; }
  .sp-hero__lead { font-size: 20px; }
  .sp-hero__actions { flex-direction: column; align-items: stretch; }
  .sp-breadcrumb { white-space: normal; }
  .sp-feat, .sp-app { flex-basis: 100%; min-width: 0; }
  .sp-app__text { font-size: 14px; }
}

/* Finomítások: aloldal előnyök sáv tördelése a terv szerint, hosszabb CTA cím */
.benefits--sp .benefit__title--serif { white-space: nowrap; }
.benefits--sp .benefit:first-child .benefit__title--serif { white-space: normal; max-width: 246px; }
.benefits--sp .benefit:nth-child(3) .benefit__desc { max-width: 230px; }
.cta--override .cta__content .h3 { font-size: 34px; white-space: normal; }
@media (max-width: 1099px) {
  .benefits--sp .benefit__title--serif { white-space: normal; }
}
@media (max-width: 899px) {
  .sp-why__lead br, .sp-summary__lead br, .sp-feat__text br { display: none; }
}

/* ==========================================================================
   Előtte / utána csúszka (Referenciák)
   ========================================================================== */

@property --p { syntax: '<number>'; inherits: true; initial-value: 50; }

.gallery { width: 672px; height: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.gallery__slides { position: relative; width: 100%; height: 223px; }
.gallery__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden; transform: scale(.985);
  transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
}
.gallery__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease, visibility 0s; }

.ba {
  --p: 50;
  position: relative; width: 100%; height: 100%;
  border-radius: 9px; overflow: hidden; background: var(--cream);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 1%);
  width: 2px; margin-left: -1px; background: #fff; pointer-events: none;
  box-shadow: 0 0 6px rgba(9, 38, 59, .18);
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 38px; height: 38px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(9, 38, 59, .22);
  transition: transform .2s ease;
}
.ba:hover .ba__knob, .ba.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__label {
  position: absolute; top: 14px; padding: 6px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font: 500 12px/1 var(--font-sans); letter-spacing: 1px; pointer-events: none;
  box-shadow: 0 1px 6px rgba(9, 38, 59, .12);
}
.ba__label--before { left: 14px; opacity: clamp(0, (var(--p) - 14) / 10, 1); }
.ba__label--after { right: 14px; opacity: clamp(0, (86 - var(--p)) / 10, 1); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 3px solid var(--teal); outline-offset: 2px; }

.gallery__caption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 100px;
  background: rgba(9, 38, 59, .72); color: #fff; font-size: 13px; line-height: 1.2; pointer-events: none;
}

.gallery__dots { display: flex; justify-content: center; align-items: center; }
.gallery__dot {
  width: 12px; height: 18px; padding: 6px 3px; border: 0; margin: 0;
  background: var(--line); background-clip: content-box; border-radius: 50%;
  cursor: pointer; transition: background-color .2s ease;
}
.gallery__dot.is-active { background-color: var(--teal); }
.gallery__dot--deco { cursor: default; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .gallery__slide, .ba__knob { transition: none; }
}
@media (max-width: 1399px) {
  .gallery { width: 48%; flex-shrink: 1; }
}
@media (max-width: 1099px) {
  .gallery { width: 100%; }
  .gallery__slides { height: auto; aspect-ratio: 672 / 260; }
}
@media (max-width: 599px) {
  .gallery__slides { aspect-ratio: 4 / 3; }
}
blockquote.review__text { margin: 0; padding: 0; border: 0; font-style: normal; }
blockquote.review__text p { margin: 0; }

/* ==========================================================================
   Gravity Forms – a terv űrlapstílusára hangolva (GF 2.5+ "gravity-theme" markup)
   ========================================================================== */

.form--gf { display: block; padding: 14px 15px 14px 18px; }
.pg-gf { width: 100%; }
.pg-gf .gform_wrapper.gravity-theme { margin: 0; }
.pg-gf .gform_wrapper.gravity-theme .gform_fields { grid-column-gap: 19px; grid-row-gap: 12px; }
.pg-gf .gform_wrapper.gravity-theme .gfield_label,
.pg-gf .gform_wrapper.gravity-theme .gfield_label.gform-field-label {
  font-family: var(--font-sans); font-size: 16px; font-weight: 400; color: var(--body); margin-bottom: 8px; padding: 0;
}
.pg-gf .gform_wrapper.gravity-theme .gfield_required { color: var(--body); margin-left: 2px; }
.pg-gf .gform_wrapper.gravity-theme .gfield_required .gfield_required_text { font-style: normal; font-size: 13px; color: var(--muted); }
.pg-gf .gform_wrapper.gravity-theme input[type=text],
.pg-gf .gform_wrapper.gravity-theme input[type=email],
.pg-gf .gform_wrapper.gravity-theme input[type=tel],
.pg-gf .gform_wrapper.gravity-theme input[type=number],
.pg-gf .gform_wrapper.gravity-theme input[type=url],
.pg-gf .gform_wrapper.gravity-theme select,
.pg-gf .gform_wrapper.gravity-theme textarea {
  width: 100%; min-height: 38px; padding: 7px 10px; margin: 0;
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.4; color: var(--ink);
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.pg-gf .gform_wrapper.gravity-theme textarea { min-height: 70px; height: 70px; resize: vertical; }
.pg-gf .gform_wrapper.gravity-theme textarea.medium { height: 120px; }
.pg-gf .gform_wrapper.gravity-theme select {
  appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5L6 7.5L9 4.5' stroke='%238794a8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.pg-gf .gform_wrapper.gravity-theme select:has(option[value=""]:checked) { color: var(--muted); }
.pg-gf .gform_wrapper.gravity-theme input:focus,
.pg-gf .gform_wrapper.gravity-theme select:focus,
.pg-gf .gform_wrapper.gravity-theme textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 102, 108, .14); }

/* Consent */
.pg-gf .gform_wrapper.gravity-theme .gfield--type-consent .gfield_label { display: none; }
.pg-gf .gform_wrapper.gravity-theme .ginput_container_consent { display: flex; align-items: flex-start; gap: 8px; }
.pg-gf .gform_wrapper.gravity-theme .ginput_container_consent input[type=checkbox] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); flex-shrink: 0; }
.pg-gf .gform_wrapper.gravity-theme .gfield_consent_label { font-size: 14px; line-height: 1.4; color: var(--body); }
.pg-gf .gform_wrapper.gravity-theme .gfield_consent_description,
.pg-gf .gform_wrapper.gravity-theme .gfield_description { font-size: 13px; line-height: 1.4; color: var(--muted); padding-top: 4px; border: 0; max-height: none; overflow: visible; }
.pg-gf .gform_wrapper.gravity-theme .gfield_description a { color: var(--teal); text-decoration: underline; }

/* Footer / submit */
.pg-gf .gform_wrapper.gravity-theme .gform_footer { margin: 14px 0 0; padding: 0; }
.pg-gf .gform_wrapper.gravity-theme .gform_footer .btn--submit,
.pg-gf .gform_wrapper.gravity-theme .gform_footer button.gform_button {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border: 0; border-radius: 100px; background: var(--teal); color: #fff;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.pg-gf .gform_wrapper.gravity-theme .gform_footer button.gform_button:hover { background: #155257; }
.pg-gf .gform_wrapper.gravity-theme .gform_ajax_spinner { margin-left: 8px; }

/* Validation */
.pg-gf .gform_wrapper.gravity-theme .gform_validation_errors {
  margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: #fdecec; box-shadow: none;
}
.pg-gf .gform_wrapper.gravity-theme .gform_validation_errors > h2 { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: #a33; margin: 0; }
.pg-gf .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon { display: none; }
.pg-gf .gform_wrapper.gravity-theme .gfield_error input,
.pg-gf .gform_wrapper.gravity-theme .gfield_error select,
.pg-gf .gform_wrapper.gravity-theme .gfield_error textarea { border-color: #d55; }
.pg-gf .gform_wrapper.gravity-theme .gfield_validation_message,
.pg-gf .gform_wrapper.gravity-theme .validation_message { margin-top: 4px; padding: 0; border: 0; background: none; font-size: 13px; color: #c0392b; }
.pg-gf .gform_wrapper.gravity-theme .gfield_error .gfield_label { color: var(--body); }

/* Confirmation */
.pg-gf .gform_confirmation_message,
.pg-gf .gform_confirmation_wrapper {
  padding: 18px 16px; border-radius: 10px; background: #e6f1ef; color: var(--teal);
  font-size: 17px; line-height: 1.45;
}
.pg-gf-thanks { margin: 0; }

@media (max-width: 599px) {
  .form--gf { padding: 12px; }
  .pg-gf .gform_wrapper.gravity-theme .gfield--width-half { grid-column: 1 / -1; }
}

/* ==========================================================================
   Főoldali hero – szerkeszthető képfelirat (saját képen)
   ========================================================================== */
.hero__photo { position: relative; }
.hero__caption {
  position: absolute; right: 0; top: 71.5%; bottom: 2.2%; width: 40%; min-width: 210px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 20px; background: var(--soft, #f5f3ee); border-radius: 24px 0 0 24px;
}
.hero__caption svg { flex-shrink: 0; width: 26px; height: 26px; }
.hero__caption p { font-size: clamp(13px, 1vw, 15px); line-height: 1.3; color: var(--ink2, #071d40); }
.hero__caption strong { font-weight: 700; }

/* ==========================================================================
   Belső oldalfej (GYIK, Kapcsolat)
   ========================================================================== */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 18px; }
.pg-head__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 820px; }
.pg-head__title { font-size: 60px; }
.pg-head__lead { font-size: 22px; line-height: 1.35; color: var(--muted2); max-width: 680px; }
.pg-aside {
  flex: 0 0 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px; background: var(--cream-light); border-radius: 17px;
}
.pg-aside__title { font-family: var(--font-serif); font-weight: 600; font-size: 26px; color: var(--ink); }
.pg-aside__text { font-size: 17px; line-height: 1.4; color: var(--body); }
.pg-aside__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn--white { background: var(--white); }
.btn--white:hover { background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }

/* ==========================================================================
   GYIK oldal + harmonika
   ========================================================================== */
.faq-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; }
.faq-nav { position: sticky; top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.faq-nav__title { font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.faq-nav ul { display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 17px; color: var(--ink); }
.faq-nav a:hover { background: var(--cream); color: var(--teal); }
.faq-nav small { min-width: 26px; padding: 2px 8px; border-radius: 100px; background: var(--cream); font-size: 13px; color: var(--body); text-align: center; }
.faq-page__groups { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.faq-page:not(:has(.faq-nav)) { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.faq-group { scroll-margin-top: 24px; }
.faq-group__title { font-family: var(--font-serif); font-weight: 600; font-size: 34px; color: var(--ink); margin-bottom: 8px; }
.faq-group__desc { font-size: 17px; color: var(--body); margin-bottom: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 4px; cursor: pointer; list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ''; }
.faq-item__title { font-family: var(--font-sans); font-weight: 500; font-size: 20px; line-height: 1.35; color: var(--ink); }
.faq-item__q:hover .faq-item__title { color: var(--teal); }
.faq-item__q:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.faq-item__icon { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); transition: background-color .2s ease; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; margin: -0.9px 0 0 -7px;
  background: var(--teal); border-radius: 2px; transition: transform .25s ease;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--teal); }
.faq-item[open] .faq-item__icon::before, .faq-item[open] .faq-item__icon::after { background: #fff; }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__a { padding: 0 60px 22px 4px; font-size: 18px; line-height: 1.6; color: var(--body); }
.faq-item__a p { margin: 0 0 .8em; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__a a { color: var(--teal); text-decoration: underline; }
.faq-item__a ul, .faq-item__a ol { margin: 0 0 .8em; padding-left: 1.3em; }
.faq-item__a ul li { list-style: disc; }
.faq-item[open] .faq-item__a { animation: pg-faq-in .25s ease; }
@keyframes pg-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-page__content { margin-top: 8px; }

/* Szolgáltatás-aloldal GYIK blokk */
.sp-faq { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 32px; }
.sp-faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; position: sticky; top: 24px; }
.sp-faq__list { min-width: 0; }

/* ==========================================================================
   Kapcsolat oldal
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 40px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.contact-card .badge { flex-shrink: 0; }
.contact-card__label { font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card__value { font-family: var(--font-serif); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--ink); word-break: break-word; }
a.contact-card__value:hover { color: var(--teal); }
.contact-card__value--text { font-family: var(--font-sans); font-weight: 500; font-size: 18px; }
.contact-card__note { margin-top: 4px; font-size: 15px; color: var(--body); }
.contact__map { border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact__form {
  padding: 28px; border-radius: 17px; background: var(--cream-light);
  scroll-margin-top: 24px;
}
.contact__form-title { font-family: var(--font-serif); font-weight: 600; font-size: 34px; color: var(--ink); margin-bottom: 6px; }
.contact__form-text { font-size: 16px; color: var(--body); margin-bottom: 18px; }
.contact__form .pg-gf, .contact__form .form { background: var(--white); border-radius: 13px; padding: 18px; }
.contact__form .form { width: 100%; }

/* Lábléc jogi sor linkjei */
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: var(--teal); }

@media (max-width: 1199px) {
  .pg-head { flex-direction: column; align-items: stretch; }
  .pg-aside { flex: none; }
  .faq-page { grid-template-columns: 1fr; gap: 24px; }
  .faq-nav { position: static; }
  .faq-nav ul { flex-direction: row; flex-wrap: wrap; }
  .sp-faq { grid-template-columns: 1fr; gap: 20px; }
  .sp-faq__intro { position: static; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .pg-head__title { font-size: 44px; }
  .pg-head__lead { font-size: 19px; }
  .contact-cards { grid-template-columns: 1fr; }
  .faq-item__a { padding-right: 4px; }
  .hero__caption { top: auto; bottom: 10px; width: auto; max-width: 62%; padding: 10px 14px 10px 16px; border-radius: 18px 0 0 18px; }
  .hero__caption svg { width: 24px; height: 24px; }
  .hero__caption p { font-size: 14px; }
}
@media (max-width: 599px) {
  .pg-head__title { font-size: 34px; }
  .faq-group__title { font-size: 26px; }
  .faq-item__title { font-size: 18px; }
  .contact__form { padding: 18px 14px; }
  .contact__form-title { font-size: 28px; }
  .pg-aside__actions { flex-direction: column; width: 100%; }
}

.contact__visual { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--cream); }
.contact__visual img { object-position: center 35%; }
.contact__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact__perks {
  position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .94);
}
.contact__perks li { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink); }
.contact__perks svg { flex-shrink: 0; }
@media (max-width: 599px) { .contact__perks { position: static; border-radius: 0; } .contact__visual { aspect-ratio: auto; } .contact__visual img { aspect-ratio: 16 / 10; height: auto; } }

/* GF 3: consent text wrapper resets */
.pg-gf .gform_wrapper.gravity-theme .gfield_consent_description_text,
.pg-gf .gform_wrapper .gfield_consent_description_text {
  border: 0; padding: 0; margin: 0; max-height: none; overflow: visible; background: none;
  font-size: 13px; line-height: 1.4; color: var(--muted);
}
.pg-gf .gform_wrapper .gfield_consent_description_text a { color: var(--teal); text-decoration: underline; }
/* Logged-in admin bar: keep sticky boxes below it */
.admin-bar .faq-nav, .admin-bar .sp-faq__intro { top: 56px; }

/* Szolgáltatás-archívum */
.services-archive { gap: 40px; }
.services-archive__group { display: flex; flex-direction: column; gap: 16px; }
.services-archive__title { font-family: var(--font-serif); font-weight: 600; font-size: 36px; color: var(--ink); }
.services-archive__desc { font-size: 18px; color: var(--body); max-width: 760px; }
.services-archive .cards--wrap { gap: 16px; }
.services-archive .cards--wrap .card { flex: 0 0 calc(25% - 12px); }
@media (max-width: 1099px) { .services-archive .cards--wrap .card { flex: 1 1 calc(50% - 8px); } }
@media (max-width: 599px) { .services-archive .cards--wrap .card { flex-basis: 100%; } .services-archive__title { font-size: 28px; } }

/* ==========================================================================
   Hátteres sávok – minden második szekció halvány, teljes képernyő-széles háttérrel
   (a tartalom marad a 1366 px-es oszlopban; a háttér box-shadow + clip-path-szal fut ki
   a monitor széléig, így nem okoz vízszintes görgetést)
   ========================================================================== */
.band,
.pg-front .benefits-wrap,
.pg-front .tech,
.pg-front .refs,
.pg-sp .benefits-wrap--sp,
.pg-sp .sp-why,
.pg-sp .sp-apps,
.pg-sp .process,
.pg-head,
.services-archive__group:nth-child(even),
.page-template-template-contact .benefits-wrap {
  position: relative;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.band,
.pg-front .tech,
.pg-front .refs,
.pg-sp .sp-why,
.pg-sp .sp-apps,
.pg-sp .process,
.services-archive__group:nth-child(even) { padding-top: 56px; padding-bottom: 56px; }
.pg-front .benefits-wrap,
.pg-sp .benefits-wrap--sp,
.page-template-template-contact .benefits-wrap { padding-top: 28px; padding-bottom: 28px; }
.pg-head { padding-top: 36px; padding-bottom: 40px; }

/* Ami eddig krém volt, a sávon fehér legyen, hogy kiemelkedjen. */
.pg-front .benefits-wrap .badge,
.pg-sp .benefits-wrap--sp .badge,
.page-template-template-contact .benefits-wrap .badge,
.pg-sp .process .badge,
.pg-sp .process .step__num,
.band .badge { background: var(--white); }
.pg-front .benefits-wrap svg rect[fill="#F5F2EC"],
.pg-sp .benefits-wrap--sp svg rect[fill="#F5F2EC"],
.page-template-template-contact .benefits-wrap svg rect[fill="#F5F2EC"],
.band svg rect[fill="#F5F2EC"] { fill: var(--white); }
.pg-front .tech .cell,
.pg-front .refs .review { background: var(--white); }

@media (max-width: 899px) {
  .band,
  .pg-front .tech,
  .pg-front .refs,
  .pg-sp .sp-why,
  .pg-sp .sp-apps,
  .pg-sp .process,
  .services-archive__group:nth-child(even) { padding-top: 36px; padding-bottom: 36px; }
  .pg-head { padding-top: 24px; padding-bottom: 28px; }
}
