/* ───────────────────────────────────────────────────────────────
   Program Ambasadorski Motyl·PRO — base styles
   Palette grounded in brand: warm orange banner + red from logo.
   ─────────────────────────────────────────────────────────────── */

:root {
  /* palette: orange brand (default) */
  --orange:        #E8A268;   /* exact banner hue */
  --orange-deep:   #CE7A37;
  --orange-soft:   #F5D3B2;
  --red:           #E1141E;
  --red-deep:      #B00C14;
  --cream:         #FAF5EE;
  --cream-warm:    #F1E5D2;
  --cream-deep:    #E8D9C0;
  --ink:           #1F1814;
  --ink-soft:      #4A3F36;
  --muted:         #8B7B6E;
  --line:          rgba(31,24,20,0.10);
  --line-strong:   rgba(31,24,20,0.22);
  --shadow-sm:     0 1px 2px rgba(31,24,20,0.06);
  --shadow-card:   0 1px 2px rgba(31,24,20,0.04), 0 18px 40px -22px rgba(31,24,20,0.22);
  --shadow-lift:   0 4px 8px rgba(31,24,20,0.06), 0 32px 60px -28px rgba(31,24,20,0.35);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --pad-section: 120px;
  --pad-inner:   clamp(20px, 4vw, 56px);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-script:  "Caveat", "Brush Script MT", cursive;
}

/* density variants (driven by Tweaks) */
[data-density="cozy"]    { --pad-section: 72px; }
[data-density="comfy"]   { --pad-section: 120px; }
[data-density="airy"]    { --pad-section: 160px; }

/* palette variants (driven by Tweaks) */
[data-palette="red"] {
  --orange:      #C7212C;
  --orange-deep: #8E0D15;
  --orange-soft: #F2C2C5;
  --cream:       #FAF4EE;
  --cream-warm:  #F1E5D2;
  --cream-deep:  #E6D2B8;
}
[data-palette="peach"] {
  --orange:      #EFB48E;
  --orange-deep: #C97A4C;
  --orange-soft: #FADFCA;
  --cream:       #FCF8F2;
  --cream-warm:  #F6EBDB;
  --cream-deep:  #ECDCC4;
}

/* script-font alt */
[data-script="playfair"]  { --font-script: "Playfair Display", serif; }
[data-script="off"]       { --font-script: var(--font-display); }

/* ─────────────────────────────  base  ───────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection { background: var(--orange); color: var(--ink); }

/* fancy script tag — used inline */
.script {
  font-family: var(--font-script);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.005em;
  color: var(--orange-deep);
}
[data-script="playfair"] .script { font-style: italic; }

/* ─────────────────────────────  layout helpers  ───────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--pad-inner);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5.6vw, 76px); font-weight: 600; }
h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 600; }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0; }

/* ─────────────────────────────  TOP BANNER  ───────────────────────────── */

.top-banner {
  position: relative;
  width: 100%;
  background-image: url("images/banner-top.jpg");
  background-size: cover;
  background-position: center 30%;
  aspect-ratio: 32 / 7;
    min-height: 280px;
    max-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.top-banner__text {
  max-width: 720px;
  padding: 0 8% 0 8%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #1F1814;
}
.top-banner__text .script {
  display: block;
  font-size: 1.35em;
  margin-top: 6px;
  color: #B00C14;
  font-weight: 500;
}

/* ─────────────────────────────  NAV  ───────────────────────────── */

/* nav sits BELOW the top banner and becomes sticky once it reaches the top */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 240ms ease;
}
.nav.is-scrolled { box-shadow: 0 10px 32px -20px rgba(31,24,20,0.25); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 180ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--orange-deep);
  transition: right 260ms cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after { right: 0; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav {
    position: static !important;
    top: auto !important;
  }
}

/* ─────────────────────────────  BUTTON (custom class to avoid Bootstrap .btn conflicts)  ───────────────────────────── */

.amb-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
  box-shadow: 0 1px 2px rgba(31,24,20,0.2), 0 14px 28px -14px rgba(31,24,20,0.5);
}
.amb-button::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--orange) 0%, var(--red) 100%);
  transform: translateX(-101%);
  transition: transform 460ms cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.amb-button:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31,24,20,0.2), 0 24px 40px -18px rgba(176,12,20,0.5); }
.amb-button:hover::before { transform: translateX(0); }
.amb-button:hover { color: #fff; }

.amb-button__arrow {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  align-items: center; justify-content: center;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), background 240ms ease;
}
.amb-button:hover .amb-button__arrow { transform: translateX(4px) rotate(-12deg); background: rgba(255,255,255,0.28); }
.amb-button__arrow svg { width: 12px; height: 12px; stroke: currentColor; }

.amb-button--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.amb-button--ghost::before { display: none; }
.amb-button--ghost:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }

.amb-button--xl { padding: 22px 36px; font-size: 18px; }

/* ─────────────────────────────  HERO  ───────────────────────────── */

.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 clamp(80px, 11vw, 160px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: 64px;
  align-items: end;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.hero__title { margin-top: 24px; }
.hero__title .script { display: inline-block; font-size: 1em; line-height: 0.9; transform: translateY(0.08em); }

.hero__lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 12px;
}

.hero__stat {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--cream-warm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero__stat:nth-child(2) { background: var(--ink); color: var(--cream); border-color: transparent; }
.hero__stat:nth-child(2) .hero__stat-label { color: rgba(250,245,238,0.62); }
.hero__stat:nth-child(2) .hero__stat-num    { color: var(--orange); }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.hero__stat-label {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.hero__subtitle {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
}
.hero__subtitle .accent { color: var(--red); }

/* (decorative butterfly watermark removed per request) */
.hero__mark { display: none; }

/* ─────────────────────────────  SECTION SCAFFOLD  ───────────────────────────── */

section.s {
  padding: var(--pad-section) 0;
  position: relative;
}
.s--cream    { background: var(--cream); }
.s--warm     { background: var(--cream-warm); }
.s--ink      { background: var(--ink); color: var(--cream); }
.s--ink h2   { color: var(--cream); }
.s--ink .eyebrow { color: var(--orange); }

.s__head {
  max-width: 880px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.s__head h2 { margin-top: 18px; }
.s__head p {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 700px;
}
.s--ink .s__head p { color: rgba(250,245,238,0.72); }

/* ─────────────────────────────  WHY YOU section  ───────────────────────────── */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

.why__title h2 {
  font-size: clamp(36px, 4.8vw, 64px);
}
.why__title .script { display: block; line-height: 1; margin-bottom: 4px; }

.why__body p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.why__body p + p { margin-top: 18px; }
.why__body strong { color: var(--ink); font-weight: 600; }

.why__card {
  margin-top: 36px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
}
.why__card-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange-deep);
}
.why__card-label {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.why__card-label b { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; font-size: 15px; }

/* ─────────────────────────────  BENEFITS section  ───────────────────────────── */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .benefits { grid-template-columns: 1fr; } }

.benefit {
  position: relative;
  padding: 0;
  border-radius: var(--radius);          /* reduced from --radius-lg (28px) to --radius (16px) */
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1), box-shadow 360ms ease, border-color 240ms ease;
  overflow: hidden;
}

/* Inner wrapper — isolated padding that cannot be overridden by Bootstrap */
.benefit-content {
  padding: 28px !important;
  position: relative;
}
.benefit::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms cubic-bezier(.2,.7,.2,1);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.benefit:hover::before { transform: scaleX(1); }

.benefit__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--cream-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--orange-deep);
  transition: background 280ms ease, transform 360ms cubic-bezier(.2,.7,.2,1);
}
.benefit:hover .benefit__icon { background: var(--ink); color: var(--orange); transform: rotate(-6deg) scale(1.04); }

.benefit__icon svg { width: 26px; height: 26px; stroke-width: 1.6; }
.benefit h3 { letter-spacing: -0.018em; }
.benefit p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.benefit__pill {
position: absolute;
    top: 10px;
    right: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.benefit__pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}

/* ─────────────────────────────  PROCESS section (timeline)  ───────────────────────────── */

.process {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
}
@media (max-width: 760px) { .process { grid-template-columns: 56px 1fr; } }

.process__rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.process__rail::before {
  content: "";
  position: absolute;
  top: 28px; bottom: 28px;
  width: 2px;
  background: rgba(250,245,238,0.18);
  border-radius: 2px;
}
.process__rail-fill {
  position: absolute;
  top: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--red));
  height: var(--fill, 0%);
  transition: height 200ms linear;
  border-radius: 2px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  padding: 32px 0 56px;
  gap: 0;
  position: relative;
}
.step:last-child { padding-bottom: 16px; }

.step__num {
  position: relative;
  width: 80px;
  display: flex;
  justify-content: center;
}
.step__num span {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(250,245,238,0.18);
  transition: all 360ms cubic-bezier(.2,.7,.2,1);
  position: relative;
  z-index: 2;
}
.step.is-active .step__num span {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(232,162,104,0.18);
}

.step__body { padding-left: 28px; }
.step__body h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--cream);
  letter-spacing: -0.018em;
}
.step__body p {
  margin-top: 10px;
  color: rgba(250,245,238,0.7);
  font-size: 16.5px;
  max-width: 560px;
  line-height: 1.6;
}
.step__tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--orange);
}
[data-script="off"] .step__tag { font-family: var(--font-display); font-style: italic; font-size: 17px; }

/* the second column wrapper holding all steps */
.process__steps { padding-left: 0; }
@media (max-width: 760px) {
  .step { grid-template-columns: 56px 1fr; }
  .step__num { width: 56px; }
  .step__num span { width: 44px; height: 44px; font-size: 18px; }
  .step__body { padding-left: 18px; }
}

/* ─────────────────────────────  FOR WHOM section  ───────────────────────────── */

.forwhom {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.forwhom__item {
  position: relative;
  padding: 24px 24px 24px 64px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  transition: transform 280ms ease, box-shadow 280ms ease, background 240ms ease;
}
/* 7-item bento: row 1 spans full, then 3+3 / 2+2+2 below */
.forwhom__item:nth-child(1) { grid-column: span 6; }
.forwhom__item:nth-child(2) { grid-column: span 3; }
.forwhom__item:nth-child(3) { grid-column: span 3; }
.forwhom__item:nth-child(4) { grid-column: span 2; }
.forwhom__item:nth-child(5) { grid-column: span 2; }
.forwhom__item:nth-child(6) { grid-column: span 2; }
.forwhom__item:nth-child(7) { grid-column: span 6; }

@media (max-width: 900px) {
  .forwhom { grid-template-columns: repeat(2, 1fr); }
  .forwhom__item, .forwhom__item:nth-child(n) { grid-column: span 2; }
  .forwhom__item:nth-child(4), .forwhom__item:nth-child(5), .forwhom__item:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 600px) {
  .forwhom { grid-template-columns: 1fr; }
  .forwhom__item, .forwhom__item:nth-child(n) { grid-column: span 1; }
}

.forwhom__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.forwhom__check {
  position: absolute;
  left: 22px; top: 22px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), background 240ms ease;
}
.forwhom__item:hover .forwhom__check { background: var(--red); color: var(--cream); transform: rotate(-12deg) scale(1.06); }
.forwhom__check svg { width: 14px; height: 14px; stroke-width: 2.6; }

.forwhom__item b { font-weight: 600; }

/* ─────────────────────────────  FINAL CTA  ───────────────────────────── */

.final {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--ink);
}
[data-palette="red"] .final { background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%); color: var(--cream); }

.final__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.final h2 { color: var(--ink); font-size: clamp(44px, 6vw, 84px); }
[data-palette="red"] .final h2 { color: var(--cream); }
.final h2 .script { font-size: 1.05em; display: inline-block; line-height: 0.9; color: var(--red-deep); }
[data-palette="red"] .final h2 .script { color: var(--cream); }

.final__lead {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(31,24,20,0.78);
}
[data-palette="red"] .final__lead { color: rgba(250,245,238,0.82); }

.final__cta { margin-top: 44px; display: inline-flex; gap: 14px; }
.final__cta .amb-button { background: var(--ink); color: var(--cream); }

.final__mark, .final__mark--2 { display: none; }

/* ─────────────────────────────  FOOTER  ───────────────────────────── */

.footer {
  background: var(--ink);
  color: rgba(250,245,238,0.65);
  padding: 56px 0 36px;
  font-size: 14px;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
/* .footer__logo removed — logo no longer displayed */

/* ─────────────────────────────  SCROLL REVEAL  ───────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* progress bar at top of nav */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--orange), var(--red));
  z-index: 100;
  transition: width 90ms linear;
}

/* sticky-CTA: small floating pill on scroll (also uses .amb-button) */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  transform: translateY(120%);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.sticky-cta.is-shown { transform: translateY(0); }

/* visually-hidden anchor offset for sticky nav */
.anchor { position: relative; top: -68px; visibility: hidden; }
