/* =========================
   Fonts: Amsi Pro Condensed
========================= */

@font-face {
  font-family: "Amsi Pro Cond";
  src: url("./fonts/AmsiPro1/AmsiProCond-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Cond";
  src: url("./fonts/AmsiPro1/AmsiProCond-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Cond";
  src: url("./fonts/AmsiPro1/AmsiProCond-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Cond";
  src: url("./fonts/AmsiPro1/AmsiProCond-Black.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Cond";
  src: url("./fonts/AmsiPro1/AmsiProCond-Ultra.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-amsi-cond: "Amsi Pro Cond", Arial, Helvetica, sans-serif;
}

.font-regular {
  font-family: var(--font-amsi-cond);
  font-weight: 400;
}

.font-semibold {
  font-family: var(--font-amsi-cond);
  font-weight: 600;
}

.font-bold {
  font-family: var(--font-amsi-cond);
  font-weight: 700;
}

.font-bolder {
  font-family: var(--font-amsi-cond);
  font-weight: 800;
}

.font-ultra {
  font-family: var(--font-amsi-cond);
  font-weight: 900;
}

/* =========================
   Base / Reset
========================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-amsi-cond);
  font-weight: 400;
  color: #111827;
  background: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* SemiBold automat pentru titluri și butoane (restul rămâne Regular). */
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
button {
  font-family: var(--font-amsi-cond);
  font-weight: 600;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Variables
========================= */

:root {
  --container-width: 1180px;
  --container-padding: 20px;
  --color-red: #de364e;
  --color-yellow: #ffe03c;
  --color-yellow-light: #fbe985;
  --color-blue: #233269;
  --color-primary: #111827;
  --color-secondary: #6b7280;
  --color-border: #d1d5db;
  --color-light: #f9fafb;
  --color-white: #ffffff;
  --color-danger: #b91c1c;
  --color-success: #166534;
  --color-success-bg: #dcfce7;
  --color-success-border: #86efac;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* =========================
   Containers
========================= */

.container {
  width: min(100% - calc(var(--container-padding) * 2), var(--container-width));
  margin-left: auto;
  margin-right: auto;
}
.container-sm {
  width: min(100% - calc(var(--container-padding) * 2), 760px);
  margin-left: auto;
  margin-right: auto;
}
.container-md {
  width: min(100% - calc(var(--container-padding) * 2), 960px);
  margin-left: auto;
  margin-right: auto;
}
.container-lg {
  width: min(100% - calc(var(--container-padding) * 2), 1140px);
  margin-left: auto;
  margin-right: auto;
}
.container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

#inscriere {
  position: relative;
  min-height: 1700px;
  background-image: url("./images/desktop/inscriere_bg.jpg");
  background-image: url("./images/desktop/webp/inscriere_bg.webp");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

#inscriere .card {
  color: var(--color-blue);
}

#inscriere .form-group input::placeholder, #inscriere .form-group select::placeholder, #inscriere .form-group span::placeholder {
  color: var(--color-blue);
}

#inscriere .form-group input,
#inscriere .form-group select,
#inscriere .form-group span:not(.form-error) {
  color: var(--color-blue);
}

#inscriere .container-md {
  position: relative;
}

#inscriere .container-md .card {
  background: #A7CB3A;
  background: linear-gradient(25deg, rgba(167, 203, 58, 1) 0%, rgba(255, 224, 60, 1) 60%);
  position: relative;
  z-index: 1;
}

#entryForm > .form-group {
  max-width: 400px;
  margin: auto;
}

#entryForm .container-formParagraphs {
  max-width: 800px;
  margin: auto;
}

/* fructe formular */
.inscriere-deco {
  position: absolute;
  width: clamp(90px, 13vw, 190px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.inscriere-deco--tr {
  top: 0;
  right: 0;
  transform: translate(28%, calc(-38% + var(--deco-shift-tr, 0px)));
  will-change: transform;
}
.inscriere-deco--bl {
  bottom: 0;
  left: 0;
  transform: translate(-28%, calc(18% + var(--deco-shift-bl, 0px)));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .inscriere-deco--tr,
  .inscriere-deco--bl {
    --deco-shift-tr: 0px !important;
    --deco-shift-bl: 0px !important;
  }
}

#submitBtn {
  padding: 20px 96px;
  display: block;
  margin: 20px auto;
}

#inscriere .container-disclaimer {
  position: absolute;
  bottom: 0;
  transform: translate(-50%, 0);
  left: 50%;
}

/* =========================
   Display
========================= */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

/* =========================
   Flex
========================= */
.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

/* =========================
   Grid
========================= */
.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* =========================
   Gap
========================= */
.gap-0 {
  gap: 0;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-5 {
  gap: 24px;
}

.gap-6 {
  gap: 32px;
}

.gap-7 {
  gap: 48px;
}

.gap-8 {
  gap: 64px;
}

/* =========================
   Spacing - Margin
========================= */
.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 4px !important;
}

.mt-2 {
  margin-top: 8px !important;
}

.mt-3 {
  margin-top: 12px !important;
}

.mt-4 {
  margin-top: 16px !important;
}

.mt-5 {
  margin-top: 24px !important;
}

.mt-6 {
  margin-top: 32px !important;
}

.mt-7 {
  margin-top: 48px !important;
}

.mt-8 {
  margin-top: 64px !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 4px !important;
}

.mb-2 {
  margin-bottom: 8px !important;
}

.mb-3 {
  margin-bottom: 12px !important;
}

.mb-4 {
  margin-bottom: 16px !important;
}

.mb-5 {
  margin-bottom: 24px !important;
}

.mb-6 {
  margin-bottom: 32px !important;
}

.mb-7 {
  margin-bottom: 48px !important;
}

.mb-8 {
  margin-bottom: 64px !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================
   Spacing - Padding
========================= */
.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 4px !important;
}

.p-2 {
  padding: 8px !important;
}

.p-3 {
  padding: 12px !important;
}

.p-4 {
  padding: 16px !important;
}

.p-5 {
  padding: 24px !important;
}

.p-6 {
  padding: 32px !important;
}

.p-7 {
  padding: 48px !important;
}

.p-8 {
  padding: 64px !important;
}

.py-1 {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.py-2 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.py-3 {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.py-4 {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.py-5 {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.py-6 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.py-7 {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.py-8 {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.px-1 {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.px-2 {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.px-3 {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.px-4 {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.px-5 {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.px-6 {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* =========================
   Width / Height
========================= */
.w-100 {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

.max-w-sm {
  max-width: 480px;
}

.max-w-md {
  max-width: 640px;
}

.max-w-lg {
  max-width: 800px;
}

.max-w-xl {
  max-width: 960px;
}

.min-h-screen {
  min-height: 100vh;
}

/* =========================
   Text
========================= */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-danger {
  color: var(--color-danger);
}

.text-success {
  color: var(--color-success);
}

.text-sm {
  font-size: 14px;
}

.text-md {
  font-size: 16px;
}

.text-lg {
  font-size: 20px;
}

.text-xl {
  font-size: 28px;
}

.text-2xl {
  font-size: 40px;
}

.text-3xl {
  font-size: clamp(40px, 7vw, 72px);
}

.font-normal {
  font-weight: 400;
}

.font-bold {
  font-weight: 700;
}

.leading-tight {
  line-height: 1.15;
}

.leading-normal {
  line-height: 1.5;
}

/* =========================
   Backgrounds / Borders
========================= */
.bg-white {
  background: var(--color-white);
}

.bg-light {
  background: var(--color-light);
}

.bg-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.border {
  border: 1px solid var(--color-border);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 600;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 22px;
  text-transform: uppercase;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-block {
  width: 100%;
}

/* =========================
   Forms
========================= */

.form-group {
  margin-bottom: 20px;
}

.form-group .form-control {
  text-align: center;
  font-family: var(--font-amsi-cond);
  font-weight: 600;
  font-size: 20px;
}

.form-group select.form-control {
  text-align: center;
  text-align-last: center;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 14px;
  padding-right: 44px;
  cursor: pointer;
  color: var(--color-blue);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%2320235b'/><path d='M7 10l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px 22px;
}

.form-group select.form-control option {
  direction: ltr;
  text-align: center;
  font-family: var(--font-amsi-cond);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-blue);
  background-color: var(--color-yellow-light);
}

/* custom dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding-left: 14px;
  padding-right: 44px;
  color: var(--color-blue);
}

.custom-select__trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%2320235b'/><path d='M7 10l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.custom-select.is-open .custom-select__trigger {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 2px var(--color-blue);
}

.custom-select__label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__label.is-placeholder {
  color: var(--color-blue);
}

.custom-select__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--color-blue);
  border-radius: var(--radius-sm);
  background: var(--color-yellow-light);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
}

.custom-select__option {
  padding: 12px 14px;
  text-align: center;
  font-family: var(--font-amsi-cond);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-blue);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.custom-select__option:hover,
.custom-select__option:focus {
  background-color: var(--color-blue);
  color: var(--color-yellow);
  outline: none;
}

.custom-select__option.is-selected {
  background-color: rgba(35, 50, 105, 0.12);
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-control.file-control {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--color-yellow-light);
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  padding-left: 44px;
  padding-right: 44px;
  background-color: var(--color-yellow-light);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2320235b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V4'/><path d='M7 9l5-5 5 5'/><path d='M5 20h14'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px 22px;
}

.file-input-native:focus + .file-control,
.file-input-native:focus-visible + .file-control {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-blue);
}

#terms {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  border: none;
  border-radius: 9px;
  background-color: var(--color-blue);
  color: var(--color-yellow);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 66% 66%;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#terms:checked {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe03c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>");
}

#terms:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 35, 91, 0.35);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-yellow-light);
  border-radius: var(--radius-sm);
  background: var(--color-yellow-light);
  color: var(--color-primary);
  font-size: 16px;
  outline: none;
  box-shadow: 0 0 0 2px transparent;
}

.form-control:focus,
.form-control:focus-visible {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-blue);
}

.form-control[type="date"] {
  min-height: 48px;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
}

#inscriere .form-control.is-valid {
  background-color: var(--color-success-bg);
  border-color: var(--color-success-border);
}

#inscriere .form-control.is-valid:focus,
#inscriere .form-control.is-valid:focus-visible {
  border-color: var(--color-success);
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.35);
}

#inscriere .form-control.is-valid:-webkit-autofill,
#inscriere .form-control.is-valid:-webkit-autofill:hover,
#inscriere .form-control.is-valid:-webkit-autofill:focus,
#inscriere .form-control.is-valid:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--color-success-bg) inset;
  box-shadow: 0 0 0 1000px var(--color-success-bg) inset;
  -webkit-text-fill-color: var(--color-blue);
  caret-color: var(--color-blue);
}

.form-help {
  display: block;
  margin-top: 6px;
  color: var(--color-secondary);
  font-size: 14px;
}

.form-error {
  display: block;
  margin-top: 6px;
  color: var(--color-danger);
  font-size: 14px;
  line-height: 1.25;
  min-height: calc(14px * 1.25);
}

.form-error[data-error-for="terms"] {
  text-align: center;
}

.form-message {
  display: none;
  width: 70%;
  max-width: 70%;
  margin: 20px auto 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.form-message:not(:empty) {
  display: block;
}

.form-message--success {
  background: #dcfce7;
  color: #166534;
}

.form-message--error {
  background: #fee2e2;
  color: #991b1b;
}

.form-message--info {
  background: #dbeafe;
  color: #1e40af;
}

/* =========================
   Sections / Cards
========================= */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.card {
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.hero-image {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.hero-image > picture,
.hero-stage__left > picture,
.hero-stage__right .mt-4 > picture,
.container-pasi > div > picture,
#inscriere .container-md > picture,
.site-footer > picture {
  display: contents;
}

.hero-fruit {
  position: absolute;
  width: clamp(70px, 13vw, 150px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero-fruit--left {
  left: 0;
  top: 25%;
  margin-left: -19%;
  animation: hero-float 4s ease-in-out infinite;
}

.hero-fruit--right {
  right: 0;
  top: 15%;
  margin-right: -19%;
  animation: hero-float 4.8s ease-in-out infinite;
  animation-delay: -1.6s;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fruit {
    animation: none;
  }
}

/* =========================
   Footer
========================= */

.site-footer {
  position: relative;
  padding: 30px 0 28px;
  background: #a6c83a;
  color: var(--color-blue, #20235b);
  text-align: center;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
}

.footer-social img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 100px;
  margin-bottom: 24px;
  padding: 20px 0;
}

.footer-links a {
  color: var(--color-blue, #20235b);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: var(--color-blue, #20235b);
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-leaf {
  position: absolute;
  top: 0;
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  will-change: transform, opacity;
}

.footer-leaf--left {
  left: -150px;
  transform: translate(-90px, -70%);
  width: clamp(200px, 27vw, 350px);
}

.footer-leaf--right {
  right: -140px;
  transform: translate(90px, -35%);
  width: clamp(120px, 17vw, 230px);
}

@keyframes footer-leaf-in-left {
  0% {
    opacity: 0;
    transform: translate(-90px, -70%);
  }
  100% {
    opacity: 1;
    transform: translate(0, -70%);
  }
}

@keyframes footer-leaf-in-right {
  0% {
    opacity: 0;
    transform: translate(90px, -35%);
  }
  100% {
    opacity: 1;
    transform: translate(0, -35%);
  }
}

.site-footer.is-visible .footer-leaf--left {
  animation: footer-leaf-in-left 0.75s cubic-bezier(0.34, 1.25, 0.64, 1) forwards;
}

.site-footer.is-visible .footer-leaf--right {
  animation: footer-leaf-in-right 0.75s cubic-bezier(0.34, 1.25, 0.64, 1) 0.12s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .footer-leaf--left,
  .footer-leaf--right {
    opacity: 1;
    transform: translate(0, -70%);
  }

  .footer-leaf--right {
    transform: translate(0, -35%);
  }

  .site-footer.is-visible .footer-leaf--left,
  .site-footer.is-visible .footer-leaf--right {
    animation: none;
  }
}

@media (max-width: 640px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

.hero-responsible {
  display: block;
  margin: 0;
  max-width: 100px;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

/* =========================
   Hero stage proportions
========================= */
.first-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  background-color: var(--color-yellow);
  background-image: url("./images/desktop/BG.png");
  background-image: url("./images/desktop/webp/BG.webp");
  background-size: cover;
  background-position: center 33%;
  background-repeat: no-repeat;
}

.first-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.10) 22%,
    rgba(255, 255, 255, 0) 55%
  );
}

.first-section .container-lg,
.first-section .container-md {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero-responsible {
    max-width: 100px;
  }
}

.hero-stage {
  width: 100%;
  --hero-doze-delay: 0.15s;
  --hero-drone-delay: 0.6s;
  --hero-car-delay: 0.95s;
  --hero-pop-duration: 0.62s;
}

@keyframes hero-pop {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-stage .hero-pop {
  opacity: 0;
  transform: scale(0.88);
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.hero-stage.is-visible .hero-pop {
  animation: hero-pop var(--hero-pop-duration) cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.hero-stage.is-visible .hero-stage__doze {
  animation-delay: var(--hero-doze-delay);
}

.hero-stage.is-visible .hero-stage__drone {
  animation-delay: var(--hero-drone-delay);
}

.hero-stage.is-visible .hero-stage__car {
  animation-delay: var(--hero-car-delay);
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage .hero-pop {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.hero-stage__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.hero-stage__left,
.hero-stage__right {
  min-width: 0;
  max-width: 100%;
}

.hero-stage__left img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-stage__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
}

.hero-stage__right .mt-4 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.hero-stage__rightRow {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
}

.hero-stage__rightRow > picture {
  display: block;
  min-width: 0;
}

.hero-stage__rightRow > picture:first-of-type {
  flex: 2 1 0;
}

.hero-stage__rightRow > picture:last-of-type {
  flex: 3 1 0;
}

.hero-stage__rightRow .hero-stage__drone,
.hero-stage__rightRow .hero-stage__car {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-stage__right .btn {
  padding: 24px 90px;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.container {
  max-width: 1000px;
}

.card-mecanism {
  background-color: var(--color-yellow-light);
}

.container-mecanism .card-mecanism p{
  color: var(--color-blue);
}

.container-mecanism h3 {
  color: var(--color-red);
}

.container-pasi > div {
  background-color: var(--color-red);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-content: stretch;
  gap: 12px;
  height: 100%;
  min-height: 220px;
}

.container-pasi > div img {
  grid-row: 1;
  align-self: center;
  width: 60%;
  height: auto;
  object-fit: contain;
}

.steps-sequence {
  --step-delay-1: 0.3s;
  --step-delay-2: 1s;
  --step-delay-3: 1.85s;
  --step-duration: 0.55s;
  --step-pop-duration: 0.7s;
  --step-card-duration: 0.6s;
  --step-inner-icon-offset: 0.15s;
  --step-inner-text-offset: 0.28s;
}

@keyframes step-card-pop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes step-icon-pop {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  55% {
    opacity: 1;
    transform: scale(1.1);
  }
  75% {
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes step-text-pop {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-pasi .step-card-pop {
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  will-change: transform, opacity;
}

.container-pasi .step-icon-pop {
  opacity: 0;
  transform: scale(0.35);
  will-change: transform, opacity;
}

.container-pasi .step-text-pop {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}

.steps-sequence.is-visible .step-card-pop {
  animation: step-card-pop var(--step-card-duration) ease-out forwards;
}

.steps-sequence.is-visible .step-icon-pop {
  animation: step-icon-pop var(--step-pop-duration) cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.steps-sequence.is-visible .step-text-pop {
  animation: step-text-pop var(--step-duration) ease forwards;
}

.steps-sequence.is-visible .container-pasi > div:nth-child(1).step-card-pop {
  animation-delay: var(--step-delay-1);
}

.steps-sequence.is-visible .container-pasi > div:nth-child(1) .step-icon-pop {
  animation-delay: calc(var(--step-delay-1) + var(--step-inner-icon-offset));
}

.steps-sequence.is-visible .container-pasi > div:nth-child(1) .step-text-pop {
  animation-delay: calc(var(--step-delay-1) + var(--step-inner-text-offset));
}

.steps-sequence.is-visible .container-pasi > div:nth-child(2).step-card-pop {
  animation-delay: var(--step-delay-2);
}

.steps-sequence.is-visible .container-pasi > div:nth-child(2) .step-icon-pop {
  animation-delay: calc(var(--step-delay-2) + var(--step-inner-icon-offset));
}

.steps-sequence.is-visible .container-pasi > div:nth-child(2) .step-text-pop {
  animation-delay: calc(var(--step-delay-2) + var(--step-inner-text-offset));
}

.steps-sequence.is-visible .container-pasi > div:nth-child(3).step-card-pop {
  animation-delay: var(--step-delay-3);
}

.steps-sequence.is-visible .container-pasi > div:nth-child(3) .step-icon-pop {
  animation-delay: calc(var(--step-delay-3) + var(--step-inner-icon-offset));
}

.steps-sequence.is-visible .container-pasi > div:nth-child(3) .step-text-pop {
  animation-delay: calc(var(--step-delay-3) + var(--step-inner-text-offset));
}

@media (prefers-reduced-motion: reduce) {
  .container-pasi .step-card-pop,
  .container-pasi .step-icon-pop,
  .container-pasi .step-text-pop {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.container-pasi > div > p {
  grid-row: 2;
  align-self: end;
  width: 100%;
  margin: 0 !important;
  color: var(--color-white);
}

.steps-section {
  padding: 80px 0;
  background: #ffe83b;
}

.steps-progress {
  position: relative;
  width: min(100% - 40px, 1700px);
  height: 110px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 6px;
  background: transparent;
  transform: translateY(-50%);
  overflow: hidden;

  --gap: 32px;
  -webkit-mask:
    radial-gradient(circle var(--gap) at 6.8% 50%, transparent 99%, #000 100%),
    radial-gradient(circle var(--gap) at 50% 50%, transparent 99%, #000 100%),
    radial-gradient(circle var(--gap) at 93.2% 50%, transparent 99%, #000 100%);
  -webkit-mask-composite: source-in, source-in;
  mask:
    radial-gradient(circle var(--gap) at 6.8% 50%, transparent 99%, #000 100%),
    radial-gradient(circle var(--gap) at 50% 50%, transparent 99%, #000 100%),
    radial-gradient(circle var(--gap) at 93.2% 50%, transparent 99%, #000 100%);
  mask-composite: intersect;
}

.steps-line-fill {
  width: 0;
  height: 100%;
  background: #e62d54;
  transition: width 2.5s ease;
  transition-delay: 0s;
}

.steps-sequence.is-visible .steps-line-fill {
  width: 100%;
  transition-delay: var(--step-delay-1);
}

.step {
  position: absolute;
  left: var(--step-position);
  top: 50%;
  width: 64px;
  height: 64px;
  border: 6px solid transparent;
  background-clip: padding-box;
  border-radius: 50%;
  background-color: #e62d54;
  color: #ffe83b;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition:
    opacity var(--step-duration) ease,
    transform var(--step-duration) ease;
  transition-delay: 0s;
  z-index: 2;
}

.step span {
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
}

.steps-sequence.is-visible .step {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.steps-sequence.is-visible .step:nth-of-type(2) {
  transition-delay: var(--step-delay-1);
}

.steps-sequence.is-visible .step:nth-of-type(3) {
  transition-delay: var(--step-delay-2);
}

.steps-sequence.is-visible .step:nth-of-type(4) {
  transition-delay: var(--step-delay-3);
}

@media (max-width: 768px) {

  .hero-image {
    max-width: 300px;
  }

  .hero-fruit--left {
    margin-left: -15%;
    max-width: 50px;
  }

  .hero-fruit--right {
    margin-right: -15%;
    max-width: 50px;
  }

  .hero-stage__right .btn {
    padding: 20px 70px;
  }

  .container-pasi > div {
    min-height: 350px;
  }

  .steps-progress {
    width: min(100% - 24px, 520px);
    height: 90px;
  }

  .steps-line {
    left: 10%;
    right: 10%;
    height: 4px;
  }

  .step {
    width: 64px;
    height: 64px;
    border-width: 4px;
  }

  .step span {
    font-size: 28px;
  }

  .container-pasi > div img { 
    width: 50%;
  }

  #inscriere {
    min-height: 2000px;
    --inscriere-bg-size: auto 115%;
    --inscriere-bg-x: 40%;
    --inscriere-bg-y: 5%;
    background-size: var(--inscriere-bg-size);
    background-position: var(--inscriere-bg-x) var(--inscriere-bg-y);
  }

  .inscriere-deco--tr {
    transform: translate(10%, calc(-38% + var(--deco-shift-tr, 0px)));
  }

  .inscriere-deco--bl {
    transform: translate(-15%, calc(20% + var(--deco-shift-bl, 0px)));
  }

  #submitBtn {
    padding: 16px 70px;
    margin: 10px auto;
  }

  .footer-leaf {
    display: none;
  }
}

@media (max-width: 640px) {
  .steps-sequence {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    column-gap: 8px;
    row-gap: 14px;
    align-items: stretch;
  }

  .steps-sequence .steps-grid.container-pasi {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    height: 100%;
    align-self: stretch;
  }

  .steps-sequence .steps-grid__third {
    max-width: none;
    width: 100%;
  }

  .steps-sequence .container-pasi > div {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;        
    min-height: 280px;
    height: auto;
  }

  .steps-sequence .steps-progress {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 44px;
    max-width: 44px;
    height: 100%;
    min-height: 100%;
    margin: 0;
    align-self: stretch;
  }

  .steps-sequence .steps-line {
    left: 50%;
    right: auto;
    top: 6%;
    bottom: 6%;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
    --gap: 20px;
    -webkit-mask-composite: source-in, source-in;
    mask-composite: intersect;
  }

  .steps-sequence .steps-line-fill {
    width: 100%;
    height: 0;
    transition: height 2s ease;
  }

  .steps-sequence.is-visible .steps-line-fill {
    width: 100%;
    height: 100%;
  }

  .steps-sequence .step {
    left: 50%;
    width: 40px;
    height: 40px;
    border-width: 3px;
    transform: translate(-50%, -50%) scale(0.8);
  }

  .steps-sequence .step:nth-of-type(2) {
    top: 16.67%;
  }

  .steps-sequence .step:nth-of-type(3) {
    top: 50%;
  }

  .steps-sequence .step:nth-of-type(4) {
    top: 83.33%;
  }

  .steps-sequence.is-visible .step {
    transform: translate(-50%, -50%) scale(1);
  }

  .steps-sequence .step span {
    font-size: 18px;
  }

  .steps-sequence .steps-line {
    -webkit-mask:
      radial-gradient(circle var(--gap) at 50% 16.67%, transparent 99%, #000 100%),
      radial-gradient(circle var(--gap) at 50% 50%, transparent 99%, #000 100%),
      radial-gradient(circle var(--gap) at 50% 83.33%, transparent 99%, #000 100%);
    mask:
      radial-gradient(circle var(--gap) at 50% 16.67%, transparent 99%, #000 100%),
      radial-gradient(circle var(--gap) at 50% 50%, transparent 99%, #000 100%),
      radial-gradient(circle var(--gap) at 50% 83.33%, transparent 99%, #000 100%);
  }
  .hero-stage__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-stage__left {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-stage__doze {
    width: 100%;
    max-width: 65%;
    height: auto;
  }
  .hero-stage__right {
    justify-content: center;
  }
  .hero-stage__rightRow {
    justify-content: center;
  }
  .hero-stage__right .mt-4 {
    flex-direction: column;
    gap: 12px;
  }
  .hero-stage__rightRow > picture:first-of-type {
    flex: 44 1 0;
  }

  .hero-stage__rightRow > picture:last-of-type {
    flex: 56 1 0;
  }
}

/* =========================
   Responsive Utilities
   sm: max 640px
   md: min 768px
   lg: min 1024px
========================= */

@media (max-width: 640px) {
  :root {
    --container-padding: 16px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .card {
    padding: 22px;
  }

  .sm-d-none {
    display: none !important;
  }

  .sm-d-block {
    display: block !important;
  }

  .sm-d-flex {
    display: flex !important;
  }

  .sm-flex-column {
    flex-direction: column !important;
  }

  .sm-flex-row {
    flex-direction: row !important;
  }

  .sm-grid-1 {
    grid-template-columns: 1fr !important;
  }

  .sm-text-left {
    text-align: left !important;
  }

  .sm-text-center {
    text-align: center !important;
  }

  .sm-w-100 {
    width: 100% !important;
  }

  .sm-p-4 {
    padding: 16px !important;
  }

  .sm-py-5 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .sm-gap-4 {
    gap: 16px !important;
  }
}

@media (min-width: 768px) {
  .md-d-none {
    display: none !important;
  }

  .md-d-block {
    display: block !important;
  }

  .md-d-flex {
    display: flex !important;
  }

  .md-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .md-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .md-flex-row {
    flex-direction: row !important;
  }

  .md-flex-column {
    flex-direction: column !important;
  }

  .md-text-left {
    text-align: left !important;
  }

  .md-text-center {
    text-align: center !important;
  }
}

@media (min-width: 1024px) {
  .lg-d-none {
    display: none !important;
  }

  .lg-d-block {
    display: block !important;
  }

  .lg-d-flex {
    display: flex !important;
  }

  .lg-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .lg-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .lg-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .lg-text-left {
    text-align: left !important;
  }

  .lg-text-center {
    text-align: center !important;
  }
}

@media (min-width: 1600px) {
  #inscriere {
    background-position: center;
  }
}
