/*
 * FixLaw Brand Design System
 * Minden oldal betölti ezt a fájlt.
 * A geo landing oldalak (és jövőbeli oldalak) ezt használják a FixLaw asset-réteggel együtt.
 * A publikus design pixelpontos paritásra van hangolva a jelenlegi éles renderhez.
 */

/* ─── CSS változók ──────────────────────────────────────────────────────── */
:root {
  --fl-green-dark:    #1A3A26;
  --fl-green-mid:     #226337;
  --fl-green-cta:     #4CAF74;
  --fl-green-cta-h:   #3d9d63;
  --fl-green-light:   #f0f7f3;
  --fl-green-border:  #c8e0d0;
  --fl-bg:            #f7f9f7;
  --fl-text:          #1a1a1a;
  --fl-text-muted:    #555;
  --fl-text-subtle:   #888;
  --fl-white:         #ffffff;
  --fl-radius-sm:     8px;
  --fl-radius-md:     12px;
  --fl-radius-lg:     20px;
  --fl-shadow:        0 4px 24px rgba(0,0,0,0.08);
  --fl-font:          "Cabinet Grotesk", Cabinetgrotesk, Arial, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Base ──────────────────────────────────────────────────────────────── */
body {
  font-family: var(--fl-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fl-text);
  background: var(--fl-bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Gombok ────────────────────────────────────────────────────────────── */
.fl-btn {
  display: inline-block;
  font-family: var(--fl-font);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.1s;
  line-height: 1.2;
}
.fl-btn:active { transform: scale(0.98); }

.fl-btn-primary {
  background: var(--fl-green-cta);
  color: var(--fl-white);
  padding: 14px 36px;
  border-radius: var(--fl-radius-sm);
  font-size: 17px;
}
.fl-btn-primary:hover { background: var(--fl-green-cta-h); color: var(--fl-white); }

.fl-btn-secondary {
  background: transparent;
  color: var(--fl-green-dark);
  padding: 13px 32px;
  border-radius: var(--fl-radius-sm);
  border: 2px solid var(--fl-green-dark);
  font-size: 16px;
}
.fl-btn-secondary:hover { background: var(--fl-green-dark); color: var(--fl-white); }

.fl-btn-lg {
  padding: 16px 44px;
  font-size: 18px;
  border-radius: var(--fl-radius-sm);
}

/* ─── Navigáció ─────────────────────────────────────────────────────────── */
.fl-nav {
  background: var(--fl-green-dark);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fl-nav-logo {
  color: var(--fl-white);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.fl-nav-back {
  color: #a8d5b5;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.fl-nav-back:hover { color: var(--fl-white); }

/* ─── Hero szekció ──────────────────────────────────────────────────────── */
.fl-hero {
  background: var(--fl-green-dark);
  color: var(--fl-white);
  padding: 72px 40px 60px;
  text-align: center;
}
.fl-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.fl-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.fl-hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.fl-hero-sub {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.55;
  letter-spacing: 0.3px;
}

/* ─── Tartalom konténer ─────────────────────────────────────────────────── */
.fl-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px;
}

/* ─── Tipográfia ────────────────────────────────────────────────────────── */
.fl-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--fl-green-dark);
  margin: 48px 0 14px;
  letter-spacing: -0.3px;
}
.fl-content h2:first-child { margin-top: 0; }
.fl-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fl-green-dark);
  margin: 24px 0 8px;
}
.fl-content p {
  margin-bottom: 16px;
  color: var(--fl-text-muted);
  font-size: 16px;
}
.fl-note {
  font-size: 13px;
  color: var(--fl-text-subtle);
  margin-bottom: 12px;
}

/* ─── Kártya ────────────────────────────────────────────────────────────── */
.fl-card {
  background: var(--fl-white);
  border-radius: var(--fl-radius-md);
  box-shadow: var(--fl-shadow);
  padding: 28px 32px;
  margin-bottom: 20px;
}

/* ─── Ár táblázat ───────────────────────────────────────────────────────── */
.fl-price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-size: 15px;
  border-radius: var(--fl-radius-md);
  overflow: hidden;
  box-shadow: var(--fl-shadow);
}
.fl-price-table thead th {
  background: var(--fl-green-dark);
  color: var(--fl-white);
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.fl-price-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8f0eb;
  color: var(--fl-text-muted);
}
.fl-price-table tbody tr:last-child td { border-bottom: none; }
.fl-price-table tbody tr:nth-child(even) td { background: var(--fl-green-light); }
.fl-saving { color: var(--fl-green-mid); font-weight: 700; }

/* ─── Lépések ───────────────────────────────────────────────────────────── */
.fl-steps {
  list-style: none;
  counter-reset: fl-steps;
  margin: 20px 0;
}
.fl-steps li {
  counter-increment: fl-steps;
  padding: 14px 0 14px 56px;
  position: relative;
  border-bottom: 1px solid #e8f0eb;
  color: var(--fl-text-muted);
}
.fl-steps li:last-child { border-bottom: none; }
.fl-steps li::before {
  content: counter(fl-steps);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  background: var(--fl-green-dark);
  color: var(--fl-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.fl-steps li strong {
  display: block;
  color: var(--fl-text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ─── FAQ elem ──────────────────────────────────────────────────────────── */
.fl-faq-item {
  border-bottom: 1px solid #dde8e1;
  padding: 18px 0;
}
.fl-faq-item:last-child { border-bottom: none; }
.fl-faq-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--fl-green-dark);
  margin-bottom: 8px;
}
.fl-faq-item p { margin-bottom: 0; }

/* ─── CTA doboz ─────────────────────────────────────────────────────────── */
.fl-cta-box {
  background: var(--fl-green-dark);
  color: var(--fl-white);
  border-radius: var(--fl-radius-lg);
  padding: 48px 36px;
  text-align: center;
  margin: 56px 0 0;
}
.fl-cta-box h2 {
  color: var(--fl-white) !important;
  margin: 0 0 12px !important;
}
.fl-cta-box p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  font-size: 17px;
}

/* ─── Város chip linkek ─────────────────────────────────────────────────── */
.fl-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px 16px 8px;
}
.fl-city-chip {
  display: inline-block;
  padding: 8px 18px;
  background: var(--fl-green-light);
  color: var(--fl-green-dark);
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--fl-green-border);
  transition: background 0.15s, color 0.15s;
}
.fl-city-chip:hover {
  background: var(--fl-green-dark);
  color: var(--fl-white);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.fl-footer {
  background: var(--fl-green-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
  line-height: 2;
}
.fl-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.15s;
}
.fl-footer a:hover { color: var(--fl-white); }

/* ─── Mobil ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .fl-nav { padding: 0 18px; }
  .fl-hero { padding: 48px 20px 40px; }
  .fl-hero p { font-size: 16px; }
  .fl-btn-lg { padding: 14px 28px; font-size: 16px; }
  .fl-content { padding: 36px 18px; }
  .fl-card { padding: 20px; }
  .fl-cta-box { padding: 32px 20px; }
  .fl-price-table { font-size: 13px; }
  .fl-price-table thead th,
  .fl-price-table tbody td { padding: 9px 10px; }
}

/* ─── Kalkulátor ────────────────────────────────────────────────────────── */
.fl-calculator {
  background-color: #f9fbfa;
  padding: 24px;
  border-radius: 16px;
  font-family: var(--fl-font);
  max-width: 480px;
  box-sizing: border-box;
  color: var(--fl-green-dark);
  margin: 0 auto;
}
.fl-calculator * { box-sizing: border-box; }
.fl-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.fl-label { font-size: 14px; font-weight: 500; line-height: 1.3; }
.fl-input {
  background-color: #f1f1f1;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fl-green-dark);
  text-align: right;
  width: 190px;
  outline: none;
  transition: box-shadow 0.2s;
}
.fl-input:focus { box-shadow: 0 0 0 2px #2F5336; }
.fl-slider-container { margin-top: 24px; }
input[type=range].fl-slider {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 0;
}
input[type=range].fl-slider:focus { outline: none; }
input[type=range].fl-slider::-webkit-slider-runnable-track {
  width: 100%; height: 6px; cursor: pointer;
  background: #f1f1f1; border-radius: 3px;
}
input[type=range].fl-slider::-webkit-slider-thumb {
  height: 20px; width: 20px; border-radius: 50%;
  background: var(--fl-green-dark); cursor: pointer;
  -webkit-appearance: none; margin-top: -7px;
}
input[type=range].fl-slider::-moz-range-track {
  width: 100%; height: 6px; cursor: pointer;
  background: #f1f1f1; border-radius: 3px;
}
input[type=range].fl-slider::-moz-range-thumb {
  height: 20px; width: 20px; border-radius: 50%;
  background: var(--fl-green-dark); cursor: pointer; border: none;
}
@media (max-width: 768px) {
  input[type=range].fl-slider::-webkit-slider-thumb { height: 44px; width: 44px; margin-top: -19px; }
  input[type=range].fl-slider::-moz-range-thumb { height: 44px; width: 44px; }
}
.fl-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 500; margin-top: 8px;
}
.fl-slider-help { font-size: 12px; font-weight: 500; margin-top: 8px; margin-bottom: 24px; }
.fl-result-box {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-radius: 12px; margin-bottom: 12px;
  font-size: 15px; font-weight: 700;
}
.fl-box-white { background-color: #fff; color: var(--fl-green-dark); }
.fl-box-green { background-color: #2F5336; color: #fff; }
.fl-divider { border: none; border-top: 2px solid #f1f1f1; margin: 16px 0; }
.fl-savings-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700; color: var(--fl-green-dark);
}
.fl-calc-wrap {
  background: var(--fl-white);
  border-radius: var(--fl-radius-lg);
  box-shadow: var(--fl-shadow);
  padding: 32px;
  margin: 24px 0;
}
.fl-calc-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fl-green-dark);
  margin-bottom: 20px;
  text-align: center;
}
.fl-calc-note {
  font-size: 12px;
  color: var(--fl-text-subtle);
  margin-top: 16px;
  line-height: 1.5;
}

/* ─── Accordion FAQ ─────────────────────────────────────────────────────── */
.fl-accordion { margin: 8px 0; }
.fl-accordion-item {
  border-bottom: 1px solid #dde8e1;
}
.fl-accordion-item:first-child { border-top: 1px solid #dde8e1; }
.fl-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--fl-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--fl-green-dark);
  gap: 12px;
}
.fl-accordion-btn:hover { color: var(--fl-green-mid); }
.fl-accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fl-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s;
  font-size: 18px;
  font-weight: 300;
  color: var(--fl-green-dark);
  line-height: 1;
}
.fl-accordion-item.open .fl-accordion-icon {
  background: var(--fl-green-dark);
  color: #fff;
  transform: rotate(45deg);
}
.fl-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 4px;
}
.fl-accordion-item.open .fl-accordion-body {
  max-height: 400px;
  padding-bottom: 16px;
}
.fl-accordion-body p {
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* City page parity with the shared homepage shell. */
/* Hamburger icon fallback (font nelkul is latszik) */
.w-icon-nav-menu {
  display: block;
  width: 22px;
  height: 16px;
  background: linear-gradient(
    to bottom,
    #1a3a26 0, #1a3a26 2px,
    transparent 2px, transparent 7px,
    #1a3a26 7px, #1a3a26 9px,
    transparent 9px, transparent 14px,
    #1a3a26 14px, #1a3a26 16px
  );
  font-size: 0;
}

@keyframes fl-city-fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fl-city-page {
  overflow-x: clip;
}

.fl-city-page .navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(34, 99, 55, 0.12);
}

.fl-city-page .space-xl-large {
  height: 48px;
}

.fl-city-page .fl-hero {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(34, 99, 55, 0.12);
  border-radius: 24px;
  overflow: hidden;
  padding: 84px 40px 72px;
  background:
    radial-gradient(circle at 76% 18%, rgba(76, 175, 116, 0.17), transparent 44%),
    radial-gradient(circle at 20% 86%, rgba(34, 99, 55, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
  color: var(--primary-text);
  position: relative;
  animation: fl-city-fade-up 0.62s ease both;
}

.fl-city-page .fl-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -130px;
  width: 430px;
  height: 430px;
  background: url("../images/identity-element-2.svg") center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

.fl-city-page .fl-hero-tag {
  background: #e7f5eb;
  color: var(--primary-text);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: 0;
}

.fl-city-page .fl-hero h1 {
  color: var(--primary-text);
  font-size: clamp(36px, 5.1vw, 58px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.fl-city-page .fl-hero p {
  color: #4d4d4d;
  margin-bottom: 32px;
  font-size: 18px;
}

.fl-city-page .fl-hero-sub {
  color: #5e7266;
  opacity: 1;
}

.fl-city-page .fl-content {
  max-width: 1200px;
  margin: -72px auto 0;
  padding: 0 24px 64px;
  position: relative;
  z-index: 2;
  animation: fl-city-fade-up 0.7s ease both;
  animation-delay: 0.06s;
}

.fl-city-page .fl-content > h2:first-child,
.fl-city-page .fl-content > p:first-of-type {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fl-city-page .fl-content > h2:first-child {
  font-size: 40px;
  line-height: 1.12;
  margin-top: 0;
}

.fl-city-page .fl-content > p:first-of-type {
  margin-top: 10px;
  margin-bottom: 22px;
}

.fl-city-page .fl-calc-wrap,
.fl-city-page .fl-cta-box {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(34, 99, 55, 0.14);
}

.fl-city-page .fl-calc-wrap {
  border-radius: 20px;
}

.fl-city-page .fl-calc-intro {
  max-width: 820px;
  margin: 0 auto 18px;
  text-align: center;
  color: #4d4d4d;
}

.fl-city-page .fl-steps,
.fl-city-page .fl-accordion {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(34, 99, 55, 0.12);
  padding: 8px 24px;
}

.fl-city-page .fl-cta-box {
  margin-top: 48px;
  background: linear-gradient(145deg, #0b3318 0%, #154325 54%, #226337 100%);
}

.fl-city-page .footer {
  margin-top: 28px;
}

@media (max-width: 991px) {
  .fl-city-page .space-xl-large {
    height: 24px;
  }
}

@media (max-width: 767px) {
  .fl-city-page .fl-hero {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 52px 20px 48px;
  }

  .fl-city-page .fl-hero::after {
    width: 260px;
    height: 260px;
    right: -72px;
    top: -70px;
  }

  .fl-city-page .fl-content {
    margin-top: -34px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 44px;
  }

  .fl-city-page .fl-content > h2:first-child {
    font-size: 30px;
  }

  .fl-city-page .fl-steps,
  .fl-city-page .fl-accordion {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ─── Homepage Sticky Navbar parity (fixlaw.hu) ─────────────────────────── */
.body:not(.fl-city-page) .navbar {
  position: sticky;
  top: 0;
  z-index: 99999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  background-color: rgba(249, 251, 250, 0.72);
  box-shadow: 0 10px 28px rgba(0, 50, 16, 0.08);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .body:not(.fl-city-page) .navbar {
    background-color: rgba(249, 251, 250, 0.94);
  }
}

/* ─── City process + FAQ: homepage visual parity ────────────────────────── */
.fl-city-page .fl-city-process {
  width: 100%;
  max-width: 100%;
  margin: 70px 0 20px;
  padding: 90px 16px 40px;
  background-color: var(--primary-drak-green);
}

.fl-city-page .fl-city-process-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #b0cbb914;
  border: 1px solid #ffffff3d;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 2px 16px #0000000a;
}

.fl-city-page .fl-city-process .div-block-3 {
  border-radius: 16px;
  padding: 32px;
}

.fl-city-page .fl-city-process .step-wrapper {
  min-height: 244px;
}

.fl-city-page .fl-city-faq {
  width: 100%;
  max-width: 100%;
  margin: 56px auto 10px;
  padding: 0;
}

.fl-city-page .fl-city-faq .faq-content-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.fl-city-page .fl-city-faq .left-faq-wrapper {
  top: 92px;
}

.fl-city-page .fl-city-faq .faq-div {
  cursor: pointer;
}

.fl-city-page .fl-city-faq .answer-div {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
  transition: max-height 0.35s ease, padding-top 0.25s ease, opacity 0.25s ease;
}

.fl-city-page .fl-city-faq .faq-div.is-open .answer-div,
.fl-city-page .fl-city-faq .faq-div.faq-is-open .answer-div {
  padding-top: 16px;
  opacity: 1;
}

.fl-city-page .fl-city-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--grey-1);
  color: var(--primary-drak-green);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: transform 0.28s ease, background-color 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}

.fl-city-page .fl-city-faq .faq-div.is-open .fl-city-faq-icon,
.fl-city-page .fl-city-faq .faq-div.faq-is-open .fl-city-faq-icon {
  transform: rotate(45deg);
  background-color: var(--primary-green);
  color: var(--white);
}

@media screen and (max-width: 991px) {
  .fl-city-page .fl-city-process {
    margin-top: 44px;
    padding-top: 44px;
  }

  .fl-city-page .fl-city-faq {
    margin-top: 40px;
    padding: 0;
  }

  .fl-city-page .fl-city-faq .left-faq-wrapper {
    top: 0;
  }
}

@media screen and (max-width: 479px) {
  .fl-city-page .fl-city-process {
    margin-top: 36px;
    padding: 36px 10px;
  }

  .fl-city-page .fl-city-process .div-block-3 {
    padding: 16px;
  }

  .fl-city-page .fl-city-process .step-wrapper {
    min-height: 0;
  }

  .fl-city-page .fl-city-faq {
    margin-top: 28px;
    padding: 0;
  }
}
