/*
 * Alfa Core 0.34.0-A2.56 - central Master Bottom CTA visual contract.
 * Golden Master: Kezdőlap V2 (13154).
 *
 * Markup/layout ownership lives here. Canonical button paint states remain in
 * master-cta.css and global button geometry remains in master-controls.css.
 */

body.alfa-master-bottom-cta-active {
  --alfa-bottom-cta-bg: #0F281D;
  --alfa-bottom-cta-bg-deep: #092018;
  --alfa-bottom-cta-lime: #9FCB47;
  --alfa-bottom-cta-text: #FFFFFF;
  --alfa-bottom-cta-muted: rgba(255,255,255,.82);
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 20px 0 !important;
  box-sizing: border-box;
  color: var(--alfa-bottom-cta-text);
  background:
    radial-gradient(circle at 88% 18%, rgba(159,203,71,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 18%, transparent 0 72px, rgba(159,203,71,.16) 73px 74px, transparent 75px),
    linear-gradient(120deg, var(--alfa-bottom-cta-bg-deep) 0%, var(--alfa-bottom-cta-bg) 56%, #143A29 100%);
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta::before,
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(159,203,71,.14);
  border-radius: 999px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta::before {
  width: 170px;
  height: 170px;
  right: 10%;
  top: -94px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta::after {
  width: 96px;
  height: 96px;
  right: 6%;
  bottom: -64px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-shell.alfa-cta-shell {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100% - 64px)) !important;
  max-width: 1500px !important;
  margin: 0 auto;
  padding: 0;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(300px, 360px) !important;
  align-items: center;
  gap: clamp(16px, 1.75vw, 28px) !important;
  min-height: 88px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-copy {
  min-width: 0;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-copy h2 {
  max-width: 420px !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--alfa-bottom-cta-text) !important;
  font-family: var(--alfa-type-font, Manrope, sans-serif) !important;
  font-size: 26px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  text-wrap: balance;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-copy p {
  margin: 0 !important;
  color: var(--alfa-bottom-cta-muted) !important;
  font-family: var(--alfa-type-font, Manrope, sans-serif) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-actions .alfa-btn {
  white-space: nowrap;
  padding-left: 18px;
  padding-right: 18px;
  gap: 8px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-offer {
  min-width: 168px;
  font-size: 14px;
  font-weight: 800;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone {
  min-width: 204px;
  gap: 9px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone-copy strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone-copy small {
  display: block;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0;
  opacity: .8;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  gap: 9px;
  min-width: 0;
  color: var(--alfa-bottom-cta-lime);
  transform: rotate(-4deg);
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-leaf {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-leaf svg {
  width: 100%;
  height: 100%;
  fill: rgba(159,203,71,.12);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-handwritten {
  display: block;
  max-width: none !important;
  white-space: nowrap !important;
  color: var(--alfa-bottom-cta-lime) !important;
  font-family: "Segoe Print", "Bradley Hand", cursive !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  text-align: center;
}

/* The canonical lower CTA touches the Master Footer with no white gap. */
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta + .alfa-v2.alfa-master-shell[data-alfa-module="global_footer"],
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta + .alfa-master-shell[data-alfa-module="global_footer"] {
  margin-top: 0 !important;
}

@media (max-width: 1180px) {
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-layout {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-brand {
    display: none;
  }
}

@media (max-width: 860px) {
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-shell.alfa-cta-shell {
    width: min(100% - 40px, 1500px);
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-layout {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta {
    padding: 28px 0 !important;
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-shell.alfa-cta-shell {
    width: min(100% - 28px, 1500px);
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-copy h2 {
    font-size: 26px;
    line-height: 1.18;
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-copy p {
    font-size: 16px;
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-actions .alfa-btn,
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-offer,
  body.alfa-master-bottom-cta-active .alfa-master-bottom-cta .alfa-cta-phone {
    width: 100%;
    min-width: 0;
  }
}

/* A2.56: approved GYIK lime palette. This is the SAME Master CTA module.
 * Variant colors are scoped to its root: no page-id CSS, no duplicated HTML.
 * Button hover/focus and 50px geometry remain owned by master-cta.css. */
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta--lime {
  --alfa-bottom-cta-text: #0F281D;
  --alfa-bottom-cta-muted: #274232;
  --alfa-bottom-cta-lime: #0F281D;
  --alfa-cta-lime: #0F281D;
  --alfa-cta-dark: #FFFFFF;
  --alfa-cta-white: #0F281D;
}
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta--lime .alfa-cta {
  background: #9FCB47 !important;
}
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta--lime .alfa-cta::before,
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta--lime .alfa-cta::after {
  border-color: rgba(15, 40, 29, .16);
}
body.alfa-master-bottom-cta-active .alfa-master-bottom-cta--lime .alfa-cta-leaf svg {
  fill: rgba(15, 40, 29, .12);
}
