/*
  Altstart — Premium UI Kit (style.css)
  Author: Altstart Studio
  Notes:
    - Quiet luxury aesthetic: solid petrol background accents, crisp type, subtle motion.
    - Accessibility-first: high contrast, :focus-visible rings, reduced-motion support.
    - No soft glow. No neon. Calm elevation.
*/

/* --------------------------------------------------
   Design Tokens
-------------------------------------------------- */
:root {
  /* Brand */
  --color-petrol: #264653; /* core */
  --color-yellow: #FFC000; /* accent */
  --color-light-petrol: #9DBDBF;
  --color-warm-grey: #F6F3EE;
  --color-light-grey: #F5F5F5;
  --color-dark-grey: #DADADA;
  --color-teal: #2A9D8F;
  --color-ink: #0f172a; /* deep text on light */
  --color-white: #ffffff;

  /* Surface */
  --surface-0: #ffffff;
  --surface-1: #fbfbfb;
  --surface-2: #f3f3f4;
  --surface-inset: #f7f7f7;

  /* Text */
  --text-strong: #0b1320;
  --text-default: #1f2937;
  --text-muted: #5b677a;
  --text-on-petrol: #eaf1f2;
  --text-on-yellow: #1d2a33;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(2, 8, 20, 0.06);
  --shadow-sm: 0 1px 3px rgba(2, 8, 20, 0.08), 0 1px 2px rgba(2, 8, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(2, 8, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(2, 8, 20, 0.10);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;

  /* Typography */
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Aptos", "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 36px;
  --fs-4xl: clamp(40px, 6vw, 56px);
  --fs-5xl: clamp(52px, 8vw, 72px);

  /* Motion */
  --ease: cubic-bezier(.2, .65, .3, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;
  --dur-slow: 360ms;
  
  
  --header-h: 60px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-med: 0ms; --dur-slow: 0ms; }
  * { animation-duration: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; }
}

/* --------------------------------------------------
   Base
-------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text-default);
  background: var(--color-light-grey);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;/* Removed vendor-specific font smoothing for linter compliance */
}
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Focus rings (accessible, no glow) */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Typography */
.h1 { font-size: var(--fs-4xl); line-height: 1.1; letter-spacing: -0.02em; font-weight: 900; color: var(--text-strong); }
.kicker { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.lead { font-size: var(--fs-lg); color: var(--text-default); max-width: 62ch; }

/* Utilities */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: var(--space-9) 0; }
.section--alt { background: var(--color-warm-grey); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-7); }
.mb-3 { margin-bottom: var(--space-6); }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Grid */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* ==================================================================
   HEADER 
================================================================== */
:root{ --header-h: 60px; }

/* 1) Sticky header container (light surface; keeps yellow accents visible) */
header.site{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-warm-grey, #F6F3EE);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  backdrop-filter: blur(6px);
}

/* push the page content down so it is not hidden under the fixed header */
html:has(header.site) body{
  padding-top: var(--header-h);
  scroll-padding-top: var(--header-h);
}

/* 2) Single‑row header bar aligned to page container */
header.site .site-bar{
  width: min(1180px, 92vw);       /* FUNCTION: align with .container width */
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 0 clamp(14px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between; /* FUNCTION: brand left, controls right */
  gap: 16px;
  flex-wrap: nowrap;              /* FUNCTION: prevent two-row wrapping */
}

/* 3) Brand block (logo + wordmark) */
header.site .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;                   /* FUNCTION: allow text truncation */
  color: var(--color-petrol, #264653);
  font-weight: 900;
  letter-spacing: -0.02em;
}
header.site .brand img{ height: 28px; width: auto; }
header.site .brand span{
  white-space: nowrap;            /* FUNCTION: keep name on one line */
  overflow: hidden; text-overflow: ellipsis;
  max-width: 60vw;                /* FUNCTION: avoid collision with actions */
}

/* 4) Ultra‑small screens: hide wordmark if space is tight */
@media (max-width: 360px){
  header.site .brand span{ display:none; }
}

/* 5) Comfortable in‑page anchor jumps with a sticky header */
html:has(header.site) body{ scroll-padding-top: var(--header-h); }

/* 6) Desktop height & spacing refinements */
@media (min-width: 901px){
  :root{ --header-h: 72px; }
  header.site .site-bar{ padding: 0 clamp(20px, 3vw, 48px); gap: 18px; }
  header.site .brand img{ height: 32px; }
}


/* ==================================================================
   NAV 
================================================================== */

/* 1) Hamburger button (hidden on desktop; visible on mobile) */
.menu-toggle{
  display: none;                  /* FUNCTION: default hidden on desktop */
  border: 0; background: transparent; padding: 8px;
  border-radius: 8px; cursor: pointer;
  color: var(--color-petrol, #264653);
  
}

/* 2) Desktop nav — inline list to the right of brand */
.site-nav{ display: none; }       /* FUNCTION: start hidden for mobile‑first */
.site-nav ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 16px;       /* FUNCTION: horizontal spacing */
}
.site-nav a{
  display: inline-block;
  font-weight: 700;
  color: var(--color-petrol, #264653);
  text-decoration: none;
  padding: 6px 2px;               /* FUNCTION: hit‑area without layout shift */
}
.site-nav a:hover{ color: var(--color-petrol, #264653); opacity: .95; }

/* 3) Mobile: show hamburger, convert nav into a right‑side drawer */
@media (max-width: 900px){
  .menu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav{
    position: fixed;
    right: 0;
    top: var(--header-h);
    width: 72vw;
    max-width: 340px;
    height: calc(100vh - var(--header-h));
    background: var(--color-warm-grey, #F6F3EE);
    border-left: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 18px 48px rgba(2,6,23,0.16);
    padding: 12px;
    z-index: 1001;

    /* keep it inside viewport, but hidden */
    transform: translateX(8px);
    opacity: 0;
    pointer-events: none;

    transition:
      transform .30s var(--ease, cubic-bezier(.2,.65,.3,1)),
      opacity  .20s var(--ease, cubic-bezier(.2,.65,.3,1));

    display: block;
  }

  .site-nav ul{
    display: block;
  }

  .site-nav li + li{
    margin-top: 6px;
  }

  .site-nav a{
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
  }

  /* open state - small slide in, no overflow outside viewport */
  .site-nav.nav-active{
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}


/* 4) Desktop only: show inline nav, hide hamburger */
@media (min-width: 901px){
  .site-nav{ display: block; }
  .menu-toggle{ display: none; }
}

/* ---------------------------------------------
   NAV LINKS — match hero typography
   - Petrol blue color
   - Same font as hero big text
   - Keep responsive behavior
---------------------------------------------- */

.nav-links a,
.site-nav a {
  font-family: inherit;                /* ensures hero font applies */
  font-weight: 700;                    /* similar to hero bold weight */
  font-size: clamp(1rem, 0.9rem + 0.35vw, 0.8rem); /* balanced size */
  color: var(--color-petrol, #264653); /* petrol blue text */
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.site-nav a:hover {
  color: var(--color-petrol, #264653); /* keep petrol blue */
  opacity: 0.95;                       /* slight feedback on hover */
}

/* optional: ensure mobile drawer uses same color */
@media (max-width: 900px){
  .site-nav a{ color: var(--color-petrol, #264653); }
  .site-nav a:hover{ color: var(--color-petrol, #264653); }
}
/* --------------------------------------------------
   Hero (clean, light, premium — no gradients)
-------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-1, #f6f3ee); /* light wall */
  color: inherit;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: var(--space-8, 32px);
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* Type inside hero on light bg */
.hero .h1  { color: var(--text-strong, #0b1320); }
.hero .lead{ color: var(--text-default, #1f2937); }

.hero-toggle{
  position:absolute;right:12px;bottom:12px;z-index:4;
  background:rgba(255,255,255,.9);border:1px solid rgba(0,0,0,.1);
  border-radius:50%;width:36px;height:36px;
  display:grid;place-items:center;cursor:pointer;opacity:.6;
  transition:opacity .2s ease;
}
.hero-toggle:hover{opacity:1;}
.hero-toggle .icon-play{display:none;}
.hero-toggle[aria-pressed="true"] .icon-pause{display:none;}
.hero-toggle[aria-pressed="true"] .icon-play{display:block;}


.hero.section{
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vh, 24px) 0;
}
.hero-carousel{ height: 100%; }
.hero-slides{ height: 100%; }
.hero-slide{
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
}
/* HERO desktop - cardul mare nu iese dintr-un viewport */
@media (min-width: 992px) {

  /* secțiunea hero ocupă înălțimea viewportului minus header */
  .section.hero,
  .hero.section {
    min-height: calc(100dvh - var(--header-h));
    display: flex;          /* ca să putem centra vertical cardul */
    align-items: center;
  }

  /* anulăm stretch-ul pe înălțime al slidurilor */
  #hero .hero-slides,
  #hero .hero-slide {
    height: auto !important;
    min-height: 0 !important;
  }

  /* cardul mare - limită clară de înălțime, fără efecte de flex pe interior */

#hero .hero-carousel {
    height: auto !important;
    max-height: none !important;   /* no more clamp to viewport */
    overflow: hidden;              /* hides the other slides again */
    margin-left: auto;
    margin-right: auto;
    display: block;
}


  #hero .hero-carousel {
    height: auto !important;                                      /* nu mai preia 100% */
    max-height: calc(100dvh - var(--header-h) - 96px) !important; /* card + buline + săgeată */
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    display: block;                                               /* nu îl mai facem flex */
  }

}
@media (min-width: 992px) {
  .hero-carousel {
    padding-top: px !important;
    padding-bottom: 32px !important; /* sau cât vrei tu */
  }
}

@media (min-width: 992px) {
  .hero-slide {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }
}


/* ---------------------------------------------
   NAV LINKS — yellow underline effect
   - centered under each word (~70% width)
   - animates on hover/focus
---------------------------------------------- */

.nav-links a,
.site-nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 6px; /* space for underline */
}

.nav-links a::after,
.site-nav a::after {
  content: "";
  position: absolute;
  left: 15%;
  width: 70%;
  bottom: 0;
  height: 3px;
  background: var(--color-yellow, #FFC000);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.site-nav a:hover::after,
.nav-links a:focus-visible::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1); /* reveal underline */
}

/* optional: keep underline visible for active page */
.nav-links a[aria-current="page"]::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ============================================================
   Scroll hint arrow — subtle cue that content continues below
============================================================ */
.scroll-hint{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-yellow, #FFC000);
  opacity: 0.8;
  text-decoration: none;
  animation: scroll-bounce 2.4s infinite ease-in-out;
  transition: opacity .3s ease;
}
.scroll-hint:hover{ opacity: 1; }

@keyframes scroll-bounce{
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* show only on desktop / hide on mobile (avoid clutter) */
@media (max-width: 768px){
  .scroll-hint{ display: none; }
}

/* --------------------------------------------------
   Buttons (unchanged behavior, kept as-is)
-------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--radius-lg, 20px);
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--dur-fast, .15s) var(--ease, cubic-bezier(.2,.7,.1,1)),
    background-color var(--dur-fast, .15s) var(--ease, cubic-bezier(.2,.7,.1,1)),
    border-color var(--dur-fast, .15s) var(--ease, cubic-bezier(.2,.7,.1,1)),
    color var(--dur-fast, .15s) var(--ease, cubic-bezier(.2,.7,.1,1)),
    box-shadow var(--dur-fast, .15s) var(--ease, cubic-bezier(.2,.7,.1,1));
}
.button + .button,
.btn + .btn {
  margin-left: 8px; /* default horizontal gap on desktop */
}

/* On small screens, stack buttons with spacing */
@media (max-width: 560px){
  .button + .button,
  .btn + .btn {
    margin-left: 0;         /* no horizontal gap */
    margin-top: 10px;       /* vertical breathing room */
  }
  /* If buttons are inside flex containers */
  .cta-group,
  .actions,
  .button-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;              /* consistent vertical space */
  }
}
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .5; cursor: not-allowed; }

/* Primary */
.button--primary {
  background: var(--color-yellow, #FFC000);
  color: var(--text-on-yellow, #1d2a33);
  border-color: #e4ad00;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.08);
}
.button--primary:hover {
  background: #ffcf40; /* slightly deeper */
  color: var(--text-on-yellow, #1d2a33);
  border-color: #d39b00;
  box-shadow: 0 6px 18px rgba(38,70,83,0.15);
  transform: translateY(-1px);
}

/* Secondary */
.button--secondary {
  background: var(--color-petrol, #264653);
  color: var(--text-on-petrol, #ffffff);
  border-color: var(--color-petrol, #264653);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.08);
}
.button--secondary:hover {
  background: #2b515e; /* refined petrol */
  color: var(--text-on-petrol, #ffffff);
  border-color: var(--color-yellow, #FFC000);
  box-shadow: 0 6px 18px rgba(38,70,83,0.18);
  transform: translateY(-1px);
}

/* Outline */
.button--outline {
  background: transparent;
  color: var(--color-petrol, #264653);
  border: 1px solid var(--color-petrol, #264653);
}
.button--outline:hover {
  background-color: rgba(38,70,83,0.06);
  color: var(--color-petrol, #264653);
  border-color: var(--color-petrol, #264653);
  transform: translateY(-1px);
}

/* Aux (NEW): dotted, squared — matches regular button geometry */
.button--aux {
  background: transparent;
  color: var(--color-petrol, #264653);
  border: 2px dotted var(--color-petrol, #264653);
  border-radius: var(--radius-lg, 20px); /* square-ish to match .button */
  box-shadow: none;
}
.button--aux:hover {
  background: rgba(38,70,83,.06);
  color: var(--color-petrol, #264653);
  border-color: var(--color-yellow, #FFC000);
  transform: translateY(-1px);
}
/* Fix mobile spacing between hero buttons */
@media (max-width: 560px){
  .hero .cta-group{
    flex-direction: column;        /* stack neatly */
    gap: 12px;                     /* breathing room */
    align-items: stretch;          /* same width */
  }
  .hero .cta-group > .button{
    width: 100%;                   /* optional: full width looks cleaner */
    margin: 0;                     /* avoid margin-collapse surprises */
  }
}

/* --------------------------------------------------
   Hero Carousel (multi-page) — no gradients/overlays
-------------------------------------------------- */
.hero-carousel {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-xl, 28px);
  background: var(--surface-0, #ffffff);        /* white card */
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0,0,0,.22));
  padding: clamp(16px, 2vw, 20px);
  overflow: hidden;
}

.hero-slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform var(--dur-slow, .10s) var(--ease, cubic-bezier(.2,.7,.1,1));
  
}

.hero-slide {
  min-height: 0;  /* now controlled by the new block above */
  height: 100%;
  display: grid; place-items: center;
  color: inherit;                 /* readable on light */
  position: relative;
  padding: clamp(24px, 6vw, 80px);
  background: transparent;        /* no slide background */
}

.hero-slide::after { content: none !important; } /* remove blob overlays */

.hero-slide__inner { max-width: 980px; margin-inline: auto; text-align: left; }
@media (max-width: 980px){ .hero-slide__inner { text-align: left; } }

/* Dots / Arrows for light hero */
.hero-dots {
  position: absolute; inset: auto 0 14px 0;
  display: flex; justify-content: center; gap: 10px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(15,23,42,.28); border: 0; padding: 0; cursor: pointer;
}
.hero-dot[aria-current="true"] { background: var(--color-yellow, #FFC000); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(38, 70, 83, 0.04);     /* much more transparent petrol tone */
  color: var(--color-yellow, #FFC000);    /* bold yellow arrows */
  border: 0;
  width: 52px;                            /* slightly larger circle */
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 34px;                        /* bigger arrow glyph */
  font-weight: 900;                       /* bolder arrow */
  line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(38, 70, 83, 0.03);      /* very transparent petrol tint */
  color: var(--color-yellow, #FFC000);     /* Altstart yellow arrows */
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;                           /* ensures perfect centering */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 30px;                         /* slightly smaller and thinner arrow */
  font-weight: 700;                        /* refined weight for balance */
  line-height: 0;                          /* exact vertical centering */
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(38, 70, 83, 0.10);      /* subtle petrol tint on hover */
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow--prev {
  left: 16px;
}

.hero-arrow--next {
  right: 16px;
}
@media (max-width: 768px) {
  .hero-arrow--prev {
    left: 4px;        /* sits right at the edge */
  }
  .hero-arrow--next {
    right: 4px;       /* sits right at the edge */
  }
  .hero-arrow {
    width: 46px;      /* slightly smaller for mobile */
    height: 46px;
    font-size: 28px;  /* scaled for circle size */
  }
}
.hero .actions,
.hero .cta-group { gap: 12px; flex-wrap: wrap; }           /* default breathing room */

@media (max-width: 560px){
  .hero .actions,
  .hero .cta-group{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero .actions > a,
  .hero .cta-group > a,
  .hero .cta-group > .button,
  .hero .cta-group > .btn{
    width: 100%;                                           /* full-width looks cleaner */
    margin: 0;                                             /* kill accidental overlaps */
  }
}

/* If any legacy spacing remains, ensure no negative collapse */
.hero .actions .button + .button,
.hero .actions .btn + .btn{ margin-left: 0; }

/* Shorter hero button text for mobile screens */
@media (max-width: 600px) {
  /* Hide long text version */
  .button[data-short]::before {
    content: attr(data-short);
  }
  .button[data-short] {
    white-space: nowrap;
  }
  .button[data-short] span {
    display: none;
  }
}
/* Fit hero to viewport and center vertically */

/* HERO - ajustări pentru mobile ca să încapă cardul într-un ecran */
@media (max-width: 768px) {

  /* secțiunea hero: ocupă aproape tot ecranul, cu loc pentru header + săgeată */
  .hero {
    min-height: calc(100vh - 72px);  /* 72 = aprox. înălțimea header-ului, ajustează dacă e altă valoare */
    padding-top: 72px;
    padding-bottom: 96px;            /* lasă loc pentru săgeata de scroll */
  }

  /* cardul mare din hero (caruselul) - mai puțin padding jos */
  .hero-carousel .hero-slide {
    padding-top: 32px;
    padding-bottom: 56px;            /* ca să nu coboare peste buline */
  }

  /* titlu și lead un pic mai compacte pe ecrane mici */
  .hero .h1 {
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.12;
  }
  .hero .lead {
    font-size: 15px;
  }

  /* bulinele caruselului - ridicate un pic mai sus de marginea cardului */
  .hero-dots {
    inset: auto 0 64px 0;           /* în loc de 14px, le urci deasupra zonei săgeții */
    
  }
@media (max-width: 768px) {
  .hero-dots {
    bottom: 32px !important;   /* coboară bulinele */
  }
}

  /* săgeata de scroll rămâne jos în secțiune, nu peste card */
  .scroll-hint {
    bottom: 24px;                   /* între buline (64px în sus) și marginea ecranului */
  }
}

/* ===========================================
   Button hover refinements (calmer aesthetic)
   – no drastic color flips, maintain contrast
=========================================== */
/* Primary */
.button--primary,
.btn--primary {
  background: var(--color-yellow);
  color: var(--text-on-yellow);
  border-color: #e4ad00;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.06);
}
.button--primary:hover,
.btn--primary:hover {
  background: #ffd54d;            /* +6–8% tint */
  color: var(--text-on-yellow);   /* no inversion */
  border-color: #d39b00;
  box-shadow: 0 8px 22px rgba(38,70,83,0.18);
  transform: translateY(-1px);
}

/* Secondary */
.button--secondary,
.btn--secondary {
  background: var(--color-petrol);
  color: var(--text-on-petrol);
  border-color: var(--color-petrol);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.06);
}
.button--secondary:hover,
.btn--secondary:hover {
  background: #2b515e;            /* subtle deepening */
  color: var(--text-on-petrol);    /* keep text stable */
  border-color: rgba(255,255,255,0.28); /* light edge, not neon */
  box-shadow: 0 8px 22px rgba(38,70,83,0.20);
  transform: translateY(-1px);
}

/* Outline on hero */
.hero .button--outline:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  transform: translateY(-1px);
}

/* ==================================================
   Buttons — Shape Variants (non-pill, premium)
   .btn system (doesn't break your existing .button API)
================================================== */

:root {
  --btn-radius-square: 8px;
  --btn-radius-soft: 12px;
}

/* Base */
.btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 750; letter-spacing: .01em;
  height: 44px; padding: 0 18px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Sizes */
.btn--sm { height: 36px; padding: 0 12px; font-weight: 700; }
.btn--lg { height: 52px; padding: 0 22px; font-weight: 800; }

/* Shapes (non-pill) */
.btn--square { border-radius: var(--btn-radius-square); }
.btn--soft   { border-radius: var(--btn-radius-soft); }
/* Chamfered/cut corners (fallbacks gracefully if no clip-path) */
.btn--cut { border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
@supports not (clip-path: polygon(0 0)) { .btn--cut { border-radius: 6px; } }

/* Variants — no color inversion on hover, just refinement */
.btn--primary {
  background: var(--color-yellow); color: var(--text-on-yellow); border-color: #e4ad00;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08);
}
.btn--primary:hover { background: #ffcf40; border-color: #d39b00; box-shadow: 0 6px 18px rgba(38,70,83,0.15); transform: translateY(-1px); }

.btn--secondary {
  background: var(--color-petrol); color: var(--text-on-petrol); border-color: var(--color-petrol);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08);
}
.btn--secondary:hover { background: #2b515e; border-color: var(--color-yellow); box-shadow: 0 6px 18px rgba(38,70,83,0.18); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--color-petrol); border-color: var(--color-petrol); }
.btn--ghost:hover { background: rgba(38,70,83,0.06); }

.btn--tonal { background: var(--surface-2); color: var(--text-strong); border-color: rgba(15,23,42,.12); }
.btn--tonal:hover { background: var(--surface-inset); transform: translateY(-1px); }

.btn--link { background: transparent; border-color: transparent; color: var(--color-petrol); position: relative; }
.btn--link:hover { color: var(--color-yellow); }
.btn--link:hover::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; background: currentColor; border-radius: 2px; }

/* Icon-only */
.btn--icon { width: 44px; height: 44px; padding: 0; justify-content: center; }
@media (min-width: 720px) { .btn--icon { width: 40px; height: 40px; } }

/* Destructive */
.btn--danger { background: #e5484d; color: #fff; border-color: #d23f44; }
.btn--danger:hover { background: #b94144; transform: translateY(-1px); }

/* Segmented group */
.btn-group { display: inline-flex; border: 1px solid rgba(15,23,42,.12); border-radius: 10px; overflow: clip; background: var(--surface-0); }
.btn-group .btn { border: 0; height: 40px; padding: 0 14px; border-right: 1px solid rgba(15,23,42,.12); background: transparent; }
.btn-group .btn:last-child { border-right: 0; }
.btn-group .btn[aria-pressed=\"true\"], .btn-group .btn.is-active { background: var(--color-yellow); color: var(--text-on-yellow); }

/* Dark section clarity */
.hero .btn--ghost { color: var(--text-on-petrol); border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.15); color: var(--color-yellow); border-color: var(--color-yellow); }
.hero .btn--link { color: var(--text-on-petrol); }
.hero .btn--link:hover { color: var(--color-yellow); }

/* Altstart Next-Gen Button Set (2025) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
  user-select: none;
  transition: transform .18s cubic-bezier(.2,.65,.3,1),
              background-color .18s cubic-bezier(.2,.65,.3,1),
              border-color .18s cubic-bezier(.2,.65,.3,1),
              box-shadow .18s cubic-bezier(.2,.65,.3,1),
              color .18s cubic-bezier(.2,.65,.3,1);
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 1️⃣ Soft Rectangle — FILLED, brand petrol (primary alternative) */
.btn--soft {
  border-radius: 10px;
  background: var(--color-petrol);
  color: var(--text-on-petrol);
  border-color: var(--color-petrol);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08);
}
.btn--soft:hover {
  background: #2f5b68;
  box-shadow: 0 8px 22px rgba(38,70,83,.18);
  transform: translateY(-1px);
}

/* 2️⃣ Squared Bevel — OUTLINED, light surface + bevel line (secondary/toolbar) */
.btn--square {
  border-radius: 4px;
  background: var(--surface-0);
  color: var(--color-petrol);
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.btn--square:hover {
  background: var(--surface-2);
  border-color: var(--color-yellow);
  box-shadow: 0 4px 12px rgba(38,70,83,.12);
  transform: translateY(-1px);
}

/* 3️⃣ Cut-Corner — FILLED ACCENT, yellow + chamfer (hero/signature) */
.btn--cut {
  border-radius: 0;
  background: var(--color-yellow);
  color: var(--text-on-yellow);
  border-color: #e4ad00;
  /* strong shape separation */
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}
@supports not (clip-path: polygon(0 0)) { .btn--cut { border-radius: 6px; } }
.btn--cut:hover {
  background: #ffcf40;
  box-shadow: 0 10px 24px rgba(255,192,0,.28);
  transform: translateY(-1px);
}

/* 4️⃣ Floating Rectangle — TONAL (subtle), clear elevation focus */
.btn--float {
  border-radius: 6px;
  background: var(--surface-1);
  color: var(--color-petrol);
  border: 1px solid rgba(15,23,42,.08);
  /* start elevated to feel “floating” next to others */
  box-shadow: 0 3px 10px rgba(38,70,83,.14);
}
.btn--float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(38,70,83,.20);
}

/* 5️⃣ Asymmetric Capsule — DIRECTIONAL, outline+fill hybrid (next/continue) */
.btn--asym {
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: var(--color-petrol);
  border: 2px solid var(--color-petrol);
  padding: 12px 28px 12px 18px;
  position: relative;
  box-shadow: none;
}
.btn--asym::after {
  content: "→";
  display: inline-block;
  margin-left: 10px;
  transition: transform .18s cubic-bezier(.2,.65,.3,1);
}
.btn--asym:hover {
  background: rgba(38,70,83,.06);
  transform: translateX(2px);
  border-color: var(--color-yellow);
  color: var(--color-petrol);
}
.btn--asym:hover::after { transform: translateX(2px); }

/* Optional size helpers to add further contrast if needed */
.btn--sm { padding: 10px 14px; font-weight: 700; }
.btn--lg { padding: 14px 26px; font-weight: 800; }

/* Dark section readability (if you place buttons on .hero) */
.hero .btn--square,
.hero .btn--float {
  background: rgba(255,255,255,.06);
  color: var(--text-on-petrol);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 3px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero .btn--square:hover,
.hero .btn--float:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-yellow);
}
.hero .btn--asym {
  color: var(--text-on-petrol);
  border-color: rgba(255,255,255,.55);
}
.hero .btn--asym:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}


/* --------------------------------------------------
   Badges
-------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); background: var(--surface-2); color: var(--text-default); border: 1px solid rgba(15, 23, 42, 0.06); }
.badge--yellow { background: var(--color-yellow); color: var(--text-on-yellow); border-color: #e4ad00; }
.badge--teal { background: var(--color-teal); color: #083f3a; border-color: #207d72; }

/* --------------------------------------------------
   Alerts
-------------------------------------------------- */
.alert { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid; font-size: var(--fs-sm); box-shadow: var(--shadow-xs); }
.alert--info { background: #eef6ff; color: #123354; border-color: #c9e1ff; }
.alert--warn { background: #fff8e6; color: #4b3a07; border-color: #ffe2a6; }

/* --------------------------------------------------
   Cards
-------------------------------------------------- */
.card { background: var(--surface-0); border: 1px solid rgba(15,23,42,.06); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__body { padding: var(--space-7); }
.card__title { font-weight: 800; font-size: var(--fs-xl); color: var(--text-strong); margin-bottom: var(--space-3); }
.card__text { color: var(--text-muted); }

.card--inset { background: var(--surface-inset); box-shadow: none; border-style: dashed; }

/* --------------------------------------------------
   Forms
-------------------------------------------------- */
.field { display: grid; gap: 8px; margin-bottom: var(--space-5); }
.label { font-weight: 700; font-size: var(--fs-sm); color: var(--text-muted); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid rgba(15,23,42, .12); background: var(--surface-0); color: var(--text-default); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); box-shadow: inset 0 1px 0 rgba(15,23,42, .04); }
.input::placeholder, .textarea::placeholder { color: #9aa6b2; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--color-yellow); box-shadow: 0 0 0 4px rgba(255, 192, 0, 0.28); }
.textarea { resize: vertical; min-height: 120px; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }

/* Remove default select arrow in some browsers and add crisp one */
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%231f2937' d='M5.8 7.5 10 11.7l4.2-4.2 1.1 1.1L10 14 4.7 8.6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }

/* --------------------------------------------------
   Tokens section helpers
-------------------------------------------------- */
#tokens .badge { min-width: 140px; justify-content: center; }

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

.footer.footer--light {
  background: var(--surface-0, #ffffff);
  color: var(--text-default, #1f2937);
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 14px;
}

/* container general */
.footer-inner {
  max-width: 1180px;
  width: 92vw;
  margin: 0 auto;
  padding-inline: 20px;
}

/* layout pe doua randuri */
.footer-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

/* randul 1 - logo + nume + drepturi pe aceeasi linie */
.footer-brand-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--color-petrol, #264653);
  letter-spacing: -0.02em;
}

.footer-brand-inline img {
  height: 28px;
  width: auto;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-copy-inline {
  color: var(--text-muted, #5b677a);
  font-size: 0.9rem;
  font-weight: 400 !important;
}

/* randul 2 - linkuri */
.footer-row--meta {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-link {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-petrol, #264653);
  padding-bottom: 4px;
  font-size: 0.9rem;
}

/* underline animat la hover */
.footer-link::after {
  content: "";
  position: absolute;
  left: 15%;
  width: 70%;
  bottom: 0;
  height: 2px;
  background: var(--color-yellow, #FFC000);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.footer-link:hover::after,
.footer-link:focus-visible::after {
  transform: scaleX(1);
}

/* mobile - centru, cu linkurile sub randul cu logo */
@media (max-width: 720px) {
  .footer-row {
    justify-content: center;
    text-align: center;
  }

  .footer-brand-inline {
    justify-content: center;
    white-space: nowrap;
  }

  .footer-row--meta {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    margin-top: 8px;
  }
}

/* --------------------------------------------------
   Media Queries / Layout Polishing
-------------------------------------------------- */
@media (max-width: 1140px) {
  .h1 { font-size: var(--fs-3xl); }
}

@media (max-width: 720px) {
  .kicker { font-size: 12px; }
  .lead { font-size: var(--fs-md); }
  .cta-group { gap: var(--space-2); }

  /* Meniu vechi - ascuns implicit pe mobil */
  .navbar {
    position: relative;
    z-index: 1000;
  }

  .navbar .nav-links {
    position: absolute;
    top: 60px;
    right: 16px;
    background: var(--surface-0, #ffffff);
    padding: 12px 16px;
    border-radius: var(--radius-xl, 16px);
    box-shadow: var(--shadow-md, 0 12px 30px rgba(15,23,42,0.18));
    display: none;
    flex-direction: column;
    gap: 8px;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }
}

/* --------------------------------------------------
   Helper: Prose spacing inside cards and sections
-------------------------------------------------- */
.card__body > * + * { margin-top: var(--space-3); }
.section .container > * + * { margin-top: var(--space-6); }

/* --------------------------------------------------
   Brand accents on light sections
-------------------------------------------------- */
.section:not(.hero) .h1::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: 10px;
  background: var(--color-yellow);
  border-radius: 999px;
}

/* --------------------------------------------------
   Optional: Table styling (future ready)
-------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface-0); border: 1px solid rgba(15,23,42,.06); border-radius: var(--radius-lg); overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(15,23,42,.06); }
.table thead th { background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-muted); }
.table tr:last-child td { border-bottom: none; }

/* --------------------------------------------------
   Shadows: consistent, no glow
-------------------------------------------------- */
.elevate-0 { box-shadow: none; }
.elevate-1 { box-shadow: var(--shadow-sm); }
.elevate-2 { box-shadow: var(--shadow-md); }
.elevate-3 { box-shadow: var(--shadow-lg); }

/* --------------------------------------------------
   Color utility chips (optional showcase)
-------------------------------------------------- */
.token-swatch { display: inline-block; width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(0,0,0,.06); }

/* --------------------------------------------------
   Page-specific small tweaks to match provided HTML classes
-------------------------------------------------- */
/* Ensure the provided badge in hero card contrasts well */
.hero .badge--yellow { color: var(--text-on-yellow); }

/* Ensure section spacing on very small screens */
@media (max-width: 420px) {
  .section { padding: var(--space-7) 0; }
  .card__body { padding: var(--space-6); }
}


/* ==================================================
   ENHANCEMENTS: Visuals & Interactive Components
   - Modals, Flip Cards, Tooltips, Accordion, Tabs
   - Dropdown Menu, Toasts, Skeletons, Progress, Effects
   ================================================== */

/* --------------------------------------------------
   Micro effects & helpers
-------------------------------------------------- */
.hover-lift { transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hover-underline { position: relative; }
.hover-underline::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: currentColor; transition: width var(--dur-fast) var(--ease); }
.hover-underline:hover::after { width: 100%; }
.glass { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px) saturate(1.1); }
.backdrop-blur-xs { backdrop-filter: blur(3px); }
.ring-yellow { box-shadow: 0 0 0 4px rgba(255,192,0,0.28); }

/* --------------------------------------------------
   Reversible (Flip) Card
-------------------------------------------------- */
.flip { perspective: 1200px; }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform var(--dur-slow) var(--ease); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-xl); overflow: hidden; }
.flip__face--front { background: var(--surface-0); border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); }
.flip__face--back { background: var(--color-petrol); color: var(--text-on-petrol); transform: rotateY(180deg); }

/* --------------------------------------------------
   Modal (accessible shell)
   Toggle with [aria-hidden="false"] on .modal
-------------------------------------------------- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 100; }
.modal[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease); }
.modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(2, 8, 20, .54); backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: min(720px, 92vw); border-radius: var(--radius-xl); background: var(--surface-0); border: 1px solid rgba(15,23,42,.08); box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform var(--dur-med) var(--ease); }
.modal[aria-hidden="false"] .modal__panel { transform: translateY(0); }
.modal__header, .modal__footer { padding: 18px 22px; border-bottom: 1px solid rgba(15,23,42,.06); }
.modal__footer { border-top: 1px solid rgba(15,23,42,.06); border-bottom: 0; display: flex; gap: 12px; justify-content: flex-end; }
.modal__body { padding: 22px; }

/* --------------------------------------------------
   Tooltip (attribute-driven)
   Usage: add data-tooltip="..." to any element
-------------------------------------------------- */
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(6px); white-space: nowrap; font-size: var(--fs-sm); color: var(--text-on-petrol); background: var(--color-petrol); padding: 6px 8px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); box-shadow: var(--shadow-sm); }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------
   Accordion (details/summary)
-------------------------------------------------- */
details.accordion { border: 1px solid rgba(15,23,42,.08); border-radius: var(--radius-lg); background: var(--surface-0); box-shadow: var(--shadow-xs); }
details.accordion + details.accordion { margin-top: 12px; }
.accordion > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; position: relative; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(90deg); transition: transform var(--dur-fast) var(--ease); }
.accordion[open] > summary::after { transform: translateY(-50%) rotate(270deg); }
.accordion__content { padding: 0 16px 16px; color: var(--text-default); }

/* --------------------------------------------------
   Tabs (ARIA-friendly shell)
-------------------------------------------------- */
.tabs { display: grid; gap: 12px; }
.tablist { display: inline-flex; gap: 8px; border-bottom: 1px solid rgba(15,23,42,.08); }
.tablist [role="tab"] { appearance: none; border: 0; background: transparent; padding: 10px 14px; font-weight: 700; color: var(--text-muted); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.tablist [role="tab"][aria-selected="true"] { color: var(--text-strong); background: var(--surface-0); border: 1px solid rgba(15,23,42,.08); border-bottom-color: var(--surface-0); }
.tab-panel { display: none; padding: 16px; border: 1px solid rgba(15,23,42,.08); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface-0); }
.tab-panel[aria-hidden="false"] { display: block; }

/* --------------------------------------------------
   Dropdown Menu
   Toggle with [data-open="true"] on .menu
-------------------------------------------------- */
.menu { position: relative; display: inline-block; }
/* .menu__button intentionally omitted to avoid empty ruleset; style via .button or inline utility classes. */
.menu__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface-0); border: 1px solid rgba(15,23,42,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 6px; display: none; }
.menu[data-open="true"] .menu__list { display: block; }
.menu__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-default); }
.menu__item:hover { background: var(--surface-2); }

/* --------------------------------------------------
   Toasts (bottom-right stack)
-------------------------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 110; }
.toast { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-lg); border: 1px solid rgba(15,23,42,.08); background: var(--surface-0); box-shadow: var(--shadow-sm); min-width: 260px; }
.toast--success { border-color: #c9f3cf; background: #f1fdf3; color: #0f4d1f; }
.toast--warn { border-color: #ffe2a6; background: #fff8e6; color: #4b3a07; }
.toast--info { border-color: #c9e1ff; background: #eef6ff; color: #123354; }
.toast__close { appearance: none; border: 0; background: transparent; font-size: 18px; padding: 6px; cursor: pointer; color: inherit; }

/* --------------------------------------------------
   Skeleton loader (shimmer)
-------------------------------------------------- */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { position: relative; overflow: hidden; background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
.skeleton--text { height: 14px; }
.skeleton--avatar { width: 40px; height: 40px; border-radius: 999px; }

/* --------------------------------------------------
   Progress bar
-------------------------------------------------- */
.progress { width: 100%; height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid rgba(15,23,42,.06); overflow: hidden; }
.progress__bar { height: 100%; width: 0%; background: var(--color-yellow); transition: width var(--dur-med) var(--ease); }

/* --------------------------------------------------
   Avatar group (common UI)
-------------------------------------------------- */
.avatars { display: flex; }
.avatar { width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--surface-0); box-shadow: var(--shadow-xs); object-fit: cover; }
.avatars .avatar { margin-left: -10px; }

/* --------------------------------------------------
   Breadcrumbs & Pagination
-------------------------------------------------- */
.breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--text-muted); }
.breadcrumbs a { color: inherit; }
.breadcrumbs .sep { opacity: .6; }
.pagination { display: inline-flex; gap: 6px; align-items: center; }
.page { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(15,23,42,.08); background: var(--surface-0); }
.page.is-active { background: var(--color-yellow); color: var(--text-on-yellow); border-color: #e4ad00; }

/* --------------------------------------------------
   Media object + chip list (utility patterns)
-------------------------------------------------- */
.media { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.media__img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Section head spacing - aligns with kit rhythm */
.section-head > * + * { margin-top: var(--space-3); }

/* Premium highlight line */
.statement{
  position: relative;
  background: var(--surface-0);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2.2vw, 18px) clamp(16px, 2.4vw, 22px);
  display: grid;
  align-items: center;
}
.statement__bar{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--color-yellow);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.statement__text{
  margin: 0;
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--text-strong);
}
@media (max-width: 640px){
  .statement__text{ font-size: var(--fs-lg); }
}
/* Panel: separă vizual conținutul care nu e în carduri și creează margini față de ecran */
.panel{
  background: var(--surface-0);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 2.6vw, 24px);
  margin-inline: clamp(8px, 3vw, 20px);  /* respiră față de marginea ecranului */
}

/* Micro-ritm pentru headere de secțiune */
.section-head > * + * { margin-top: var(--space-3); }

/* Note: highlight subtil, nu invaziv */
.note{
  background: var(--surface-inset);
  border: 1px dashed rgba(15,23,42,.12);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.2vw, 18px) clamp(16px, 2.4vw, 22px);
  margin-inline: clamp(8px, 3vw, 20px);  /* aceeași respirație ca panel-ul */
  display: flex; align-items: flex-start; gap: 10px;
  position: relative;
}
.note::before{
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-yellow);
  margin-top: 6px; flex: 0 0 8px;
}
.note__text{
  margin: 0;
  font-weight: 750;
  font-size: var(--fs-lg);
  color: var(--text-strong);
}
@media (max-width: 640px){
  .note__text{ font-size: var(--fs-md); }
}
/* Asigură înălțime consistentă între cardul de intro și celelalte */
#mediu-economic .card{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subtil highlight în loc de punct portocaliu */
.highlight{
  position: relative;
  background: var(--surface-0);
  border: 1px solid rgba(15,23,42,.06);
  border-left: 5px solid var(--color-yellow);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 2.4vw, 22px);
  margin-inline: clamp(8px, 3vw, 20px);
}
.highlight__text{
  margin: 0;
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--text-strong);
  line-height: 1.4;
}
@media (max-width: 640px){
  .highlight__text{ font-size: var(--fs-md); }
}
/* Aliniază consistent toate cardurile din secțiune */
#mediu-economic .card{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Intro: text mai echilibrat pe orizontală */
.card--intro .intro-wrap{
  max-width: 800px; /* echilibru vizual, nu pe jumătate */
  margin: 0 auto;
}

/* Highlight: același look ca restul cardurilor, cu accent subtil */
.card--highlight{
  border-left: 6px solid var(--color-yellow);
  box-shadow: var(--shadow-sm);
}

/* Butonul rămâne centrat natural sub grilă */
#mediu-economic .cta-group{
  display: flex;
  justify-content: flex-start;
  margin-left: clamp(8px, 3vw, 20px);
}
/* Asigură ancoră și să permită elemente în afara cardului */
.hero-carousel{ position: relative; }
#hero{
  position: relative;
  overflow: hidden;
}


/* Săgeata galbenă - lipită de marginea de jos a cardului, dar în afara acestuia */
.scroll-down{
  position: absolute;
  left: 50%;
  bottom: 12px;          
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--color-yellow, #FFC000);
  opacity: .9;
  z-index: 5;             /* peste card, nu se suprapune cu bulina din mijloc */
  transition: opacity .25s ease, transform .25s ease;
}

.scroll-down:hover{
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

/* Animatie subtila doar pe desktop */
@media (prefers-reduced-motion: no-preference){
  .scroll-down svg{ animation: arrowFloat 1.8s ease-in-out infinite; }
}
@keyframes arrowFloat{
  0%,100%{ transform: translateY(0); opacity: .9; }
  50%{ transform: translateY(6px); opacity: 1; }
}

/* Ascunde pe mobil si tableta */
@media (max-width: 768px){
  .scroll-down{ display: none; }
}
/* SVG decorativ sub text în cardul de intro */
.card--intro {
  position: relative;
  overflow: hidden;
}

.card--intro .intro-bg {
  position: absolute;
  inset: 0;                /* acoperă tot cardul */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;           /* fundal subtil */
  z-index: 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply; /* armonizează cu fundalul */
}

.card--intro .card__body {
  position: relative;
  z-index: 1;              /* textul rămâne deasupra */
}
/* ===================== CONTACT ===================== */

#contact { padding: clamp(48px, 6vw, 80px) 0; }

#contact .intro-text { 
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.6; 
  max-width: 60ch; 
  color: var(--text-strong);
}

/* grid pe desktop, stivă pe mobil */
.contact-grid-rows{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 960px){
  .contact-grid-rows{
    grid-template-columns: 1fr 1fr;    /* două coloane pe desktop */
    gap: 14px 16px;
  }
}

/* fiecare linie - pastilă în interiorul cardului */
.contact-line{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: var(--surface-0);
  color: var(--text-strong);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, color .15s ease;
}
.contact-line:hover{
  border-color: rgba(15,23,42,.16);
  box-shadow: var(--shadow-md);
  transform: translateY(1px);
}

/* icon + text vizibil pe toate liniile */
.contact-line i{
  width: 26px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-petrol);
  transition: color .15s ease, transform .15s ease;
}
.contact-line span{
  display: inline-block;
  font-weight: 700;         /* mai lizibil */
  color: var(--text-strong);
  white-space: nowrap;      /* nu rupe handle-ul */
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-line:hover i{ color: var(--color-yellow); transform: scale(1.06); }

/* notă finală în card */
.contact-note{
  margin-top: 14px;
  color: var(--text-soft);
  font-weight: 500;
}

/* dacă secțiunea e plasată peste zonă închisă, păstrează contrastul */
footer.section--alt ~ #contact .contact-line,
footer.section--alt ~ #contact .contact-line span{ color: #0b2230; } /* rămâne citibil pe card alb */

/* TEAM SECTION */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.team-card {
  background: var(--surface-0);
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-yellow);
  margin-bottom: 16px;
}

.team-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-petrol);
}

.team-role {
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  color: var(--text-default);
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.team-link {
  font-size: 1.4rem;
  color: var(--color-petrol);
  transition: color .2s ease;
}

.team-link:hover {
  color: var(--color-yellow);
}

.team-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.team-reason {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,192,0,0.08); /* galben foarte subtil */
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}
@media (max-width: 640px){
  .team-reason {
    white-space: normal;
  }
}

/* style pentru WHAT */
.change-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* tablet */
@media (min-width: 640px) {
  .change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* desktop - toate 5 pe un singur rand */
@media (min-width: 1024px) {
  .change-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* stilizare carduri mici */
.change-card {
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgba(255, 192, 0, 0.7); /* accent discret sus */
}

.change-card .card__body {
  position: relative;
}

/* iconita deasupra titlului */
.change-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #FFC000;
  margin-bottom: 10px;
}

.change-icon i {
  font-size: 14px;
  color: #FFC000;
}

/* titlu cu rand propriu */
.change-card .card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

/* text compact, lizibil */
.change-card .card__text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* =============================================== */
/* PILULE INTERACTIVE - "DE CE ALTSTART"           */
/* =============================================== */

.altst-skills-heading {
  text-align: center;
  margin: 2.5rem auto 1.75rem;
}

.altst-skills-heading-title {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-yellow);
}

/* Container pentru pilule */
.altst-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* Baza pilulei - starea închisă, aspect de chip mic */
.altst-skill-pill.reason-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: transparent;
border: none;

  color: var(--text-default);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;              /* permite 2 rânduri la text */
  overflow: hidden;
  max-width: 320px;    /* doar icon vizibil inițial */
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    max-width 0.26s ease,
    transform 0.16s ease;
}

.altst-skill-pill.reason-pill:hover {
  transform: translateY(-1px);
}

/* Icon galben by default, petrol când pilula e activă */
.altst-skills-container .altst-skill-pill.reason-pill .altst-skill-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--color-yellow);
  transition: transform 0.16s ease, color 0.16s ease;
}

.altst-skills-container
  .altst-skill-pill.reason-pill[data-expanded="true"]
  .altst-skill-icon {
  color: var(--color-petrol);
  transform: scale(1.06);
}

/* Label ascuns în starea închisă */
.altst-skill-pill.reason-pill .altst-skill-label {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  transform: translateX(-4px);
  transition:
    opacity 0.22s ease,
    max-width 0.26s ease,
    margin-left 0.18s ease,
    transform 0.22s ease;
}

/* Stare deschisă - pilula crește moderat, nu ia tot rândul */
.altst-skill-pill.reason-pill[data-expanded="true"] {
  max-width: 260px;
  box-shadow: var(--shadow-md);
  background-color: var(--color-yellow);   /* toate pilulele active au fill galben */
  color: var(--color-petrol);              /* text petrol pe galben */
  border-color: rgba(255, 192, 0, 0.75);
}

/* Label vizibil când pilula este deschisă */
.altst-skill-pill.reason-pill[data-expanded="true"] .altst-skill-label {
  opacity: 1;
  max-width: 220px;
  margin-left: 0.35rem;
  transform: translateX(0);
}

/* data-color rămâne doar ca hook JS, nu schimbă vizualul */
.altst-skill-pill.reason-pill[data-expanded="true"][data-color="amber"],
.altst-skill-pill.reason-pill[data-expanded="true"][data-color="sky"] {
  /* aceleași stiluri ca mai sus - toate arată la fel când sunt active */
  background-color: var(--color-yellow);
  color: var(--color-petrol);
  border-color: rgba(255, 192, 0, 0.75);
}

/* Layout desktop - pilulele rămân mici, pe unul sau două rânduri */
@media (min-width: 1024px) {
  .altst-skills-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .altst-skill-pill.reason-pill {
    flex: 0 0 auto;
  }

  .altst-skill-pill.reason-pill[data-expanded="true"] {
    flex: 0 0 auto;
    max-width: 420px;
  }
}

/* Mobil - pilula activă poate lua lățime mai mare, dar nu full width forțat */
@media (max-width: 640px) {
  .altst-skill-pill.reason-pill {
    flex: 0 0 auto;
     font-size: 0.8rem;      /* puțin mai mic */
  max-width: 280px;   
  }

  .altst-skill-pill.reason-pill[data-expanded="true"] {
    flex: 0 0 auto;
   justify-content: flex-start;
    max-width: 420px; 
  }
}
/* Secțiune albă, full-width, pilule centrate */
.altstart-reasons-section {

  padding: 40px 0;
}

.altstart-reasons-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.altstart-reasons-icons {
  margin-bottom: 0.65rem; /* un pic mai aproape de text */
}

.altstart-reasons-caption {
  margin-top: 0; /* textul stă lipit sub buline */
}



/*new pills */
/* =============================================== */
/* PILULE ICONICE - "DE CE ALTSTART"               */
/* =============================================== */

.altstart-reasons-section {
  background: #fff;
  padding: 24px 0 20px;
}

.altstart-reasons-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.altstart-reasons-kicker {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-petrol);
  margin-bottom: 0.9rem;
}

/* rândul de iconițe */
.altstart-reasons-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

/* buton icon - starea închisă */
.reason-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.reason-pill .altst-skill-icon {
  font-size: 1.2rem;
  color: var(--color-yellow);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

/* starea activă - fundal galben, icon petrol */
.reason-pill[data-expanded="true"] {
  background-color: var(--color-yellow);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.reason-pill[data-expanded="true"] .altst-skill-icon {
  color: var(--color-petrol);
  transform: scale(1.05);
}

/* caption - textul pilulei active */
.altstart-reasons-caption {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--surface-0);
  color: var(--text-default);
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: var(--shadow-md);
  max-width: min(100%, 420px);
}

/* pe mobil, mai strângem spațiile */
@media (max-width: 640px) {
  .altstart-reasons-section {
    padding: 18px 0 16px;
  }

  .altstart-reasons-caption {
    font-size: 0.86rem;
    padding-inline: 0.9rem;
  }
}






/* =============================================== */
/* CARD CU BULINE + TEXT DESPRE ALTSTART           */
/* =============================================== */

.about-reasons {
  margin: 24px 0 20px;
}

.about-reasons-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* rândul de buline */
.about-reasons-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

/* buton circular - starea închisă */
.altst-skill-pill.reason-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* icon galben by default */
.altst-skill-pill.reason-pill .altst-skill-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-yellow);
  transition: color 0.15s ease, transform 0.15s ease;
}

/* ascundem labelul din interiorul butonului, îl folosim doar în JS */
.altst-skill-pill.reason-pill .altst-skill-label {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* stare activă - bulină galbenă, icon petrol */
.altst-skill-pill.reason-pill[data-expanded="true"] {
  background-color: var(--color-yellow);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.altst-skill-pill.reason-pill[data-expanded="true"] .altst-skill-icon {
  color: var(--color-petrol);
  transform: scale(1.05);
}

/* caption - textul activ sub buline */
.about-reasons-caption {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--surface-0);
  color: var(--text-default);
  font-size: 0.9rem;
  line-height: 1.35;
  max-width: min(100%, 420px);
  box-shadow: var(--shadow-md);
  transition: opacity 0.18s ease;
}

/* variantă pentru mobil - card mai compact */
@media (max-width: 640px) {
  .about-reasons-card {
    padding: 12px 14px 12px;
  }

  .about-reasons-caption {
    font-size: 0.86rem;
    padding-inline: 0.9rem;
  }
}
/* CARD MARE ALINAT CU CELELALTE */
.about-reasons {
  margin: 10px 0; /* armonie cu spațiile dintre cardurile mari */
}

.about-reasons-card {
  background: #ffffff;
  border-radius: 24px;                    /* radius ca cele mari */
  box-shadow: var(--shadow-lg);           /* shadow identic cu cardurile mari */
  padding: 32px 48px;                     /* padding exact ca în cardurile mari */
  max-width: 1100px;                      /* lățime card mare ca la secțiunea "Echipa" */
  margin: 0 auto;
  text-align: center;
}


/* Layout text + pilule în același card (Despre Altstart) */
.about-reasons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* coloana cu text - aproximativ 65-70% */
.about-reasons-row .card__body {
  flex: 1 1 60%;
  min-width: 280px;
}

/* coloana cu buline + text dinamic - restul */
.about-reasons-row .altstart-reasons-inner {
  flex: 1 1 32%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* rândul de buline */
.altstart-reasons-icons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

/* textul dinamic stă lipit sub buline, centrat */
.altstart-reasons-caption {
  margin-top: 0;
}

/* pe ecrane mici - se așază unul sub altul, textul deasupra */
@media (max-width: 768px) {
  .about-reasons-row {
    flex-direction: column;
  }

  .about-reasons-row .card__body,
  .about-reasons-row .altstart-reasons-inner {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-reasons-row .altstart-reasons-inner {
    align-items: center;
  }
}
.about-reasons-row {
  display: flex;
  gap: 2rem;
  align-items: center; /* centrăm vertical DREAPTA cu STÂNGA */
}

.altstart-reasons-inner {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centrăm conținutul în propria coloană */
  text-align: center;
}


/* ========== HOW - tabs ========== */


#howTabs .about-reasons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center; /* centreaza vertical cele doua coloane in card */
}

#howTabs .card__body {
  max-width: 550px;
  /* fara align-self aici, ramane aliniat natural */
}

#howTabs .how-header-right {
  max-width: 480px;
  /* alinierea pe centru vine din align-items: center de mai sus */
}

/* ========== HOW - tabs look & behavior (desktop) ========== */

#howTabs .tablist {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

/* scoatem underline-ul implicit al .hover-underline in zona HOW */
#howTabs .tablist [role="tab"]::after {
  display: none !important;
}

#howTabs .tablist [role="tab"] {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  background: transparent;
  color: var(--color-petrol);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;  /* pe desktop raman pe un singur rand */
}

#howTabs .tablist [role="tab"][aria-selected="true"] {
  background: var(--color-yellow);
  color: var(--color-petrol);
  font-weight: 600;
}

#howTabs .tablist [role="tab"][aria-selected="false"]:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ========== HOW - panels container ========== */

.how-panels {
  margin-top: 1rem;
  overflow: hidden;
}
#howTabs .tab-panel {
  border: none !important;
  border-radius: 0 !important; /* dacă vrei colțuri complet curate */
}
/* ========== Tab panels show / hide ========== */

.tab-panel {
  display: none;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface-0);
}

.tab-panel[aria-hidden="false"] {
  display: block;
}

/* ========== HOW - mobile layout (max 600px) ========== */

@media (max-width: 600px) {
  /* cardul nu mai e 2 coloane stranse, ci stiva */
  #howTabs .about-reasons-row {
    display: block;
  }

  #howTabs .card__body {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  #howTabs .how-header-right {
    max-width: 100%;
  }

  /* taburile - 3 coloane pe acelasi rand, fara overflow */
  #howTabs .tablist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    border-bottom: 2px solid var(--color-yellow);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
  }

  /* aici suprascriem explicit white-space: nowrap de pe desktop */
  #howTabs .tablist [role="tab"] {
    font-size: 0.78rem;
    padding: 0.45rem 0.35rem;
    white-space: normal;      /* permite 2 randuri */
    text-align: center;
    line-height: 1.25;
  }

  #howTabs .how-panels {
    margin-top: 0.5rem;
  }
}
#howTabs .how-header-right {
  margin-top: 2rem;  /* ajustează vizual să cadă mai jos în card */
}


@media (max-width: 600px) {
  #howTabs .tablist {
    border-bottom: 2px solid var(--color-yellow);
    margin-inline: 0.75rem;   /* retrage linia față de marginile cardului */
  }
}



/* Carusel "ce se schimbă concret" */
/* Card mare "Cum arată colaborarea cu Altstart" - layout ca la HOW */
.collaboration-card .about-reasons-row {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .collaboration-card .about-reasons-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* listă stânga */
.collab-list {
  list-style: disc;
  padding-left: 1.3rem;
  margin-top: 1rem;
  display: grid;
  gap: 0.3rem;
}

/* coloana dreaptă cu carusel */
.collaboration-right {
  display: flex;
  align-items: stretch;   /* important - nu mai lasă conținutul să dicteze înălțimea */
  width: 100%;            /* important - ocupă toată coloana din grid */
}

@media (min-width: 1024px) {
  .collaboration-right {
    justify-content: center;
    padding-top: 2rem;
  }
}

/* container carusel în interiorul coloanei drepte */
.change-carousel {
  margin-top: 0.75rem;
  flex: 1 1 auto;         /* important - se întinde pe lățime */
  width: 100%;
}

.change-carousel--steps {
  padding: 0.75rem 0.75rem 1rem;
  border-radius: var(--radius-lg, 14px);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  width: 100%;            /* important */
}

/* zona în care stă slide-ul */
.change-stage {
  position: relative;
  min-height: 200px;
  padding-top: 0.5rem;
  padding-bottom: 0.7rem;
  width: 100%;            /* important */
}

/* mini-cardurile – toate aceeași dimensiune */
.change-card {
  position: relative;
  width: 100%;
  max-width: 100%;        /* important - nu mai micșorează */
  min-height: 200px;
  margin: 0.25rem 0 0.5rem 0;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  box-shadow: var(--shadow-xs, 0 8px 24px rgba(15, 23, 42, 0.08));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.change-card .card__body {
  height: 100%;
  padding: 1.05rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* slide activ – border galben */
.change-card.active-slide {
  display: flex;
  border-color: var(--color-yellow, #ffc000);
  box-shadow: var(--shadow-sm, 0 16px 40px rgba(15, 23, 42, 0.16));
}

/* pill cu icon + text */
.change-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 192, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-petrol, #264653);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.change-pill i {
  font-size: 0.9rem;
}

/* text din card */
.change-text {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  color: var(--color-text, #1f2933);
}

/* Bară de control sub carduri: săgeți + buline */
.change-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* buline */
.change-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.change-dot {
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.25);
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease, transform 0.2s ease;
}

.change-dot.is-active {
  width: 18px;
  background: var(--color-petrol, #264653);
  transform: translateY(-1px);
}

.change-dot:focus-visible {
  outline: 2px solid var(--color-yellow, #ffc000);
  outline-offset: 2px;
}

/* săgeți */
.change-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.change-arrow i {
  font-size: 0.9rem;
  color: #0f172a;
}

.change-arrow:hover {
  background: #FFC000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

@media (max-width: 640px) {
  .change-stage {
    min-height: 220px;
  }

  .change-card .card__body {
    padding: 0.95rem 1.05rem;
  }

  .change-pill {
    font-size: 0.76rem;
  }

  .change-text {
    font-size: 0.88rem;
  }

  .change-controls {
    margin-top: 1rem;
  }
}
/* MOBILE FIX: reduce empty space under the card */
@media (max-width: 767px) {

  /* reduce the stage height to fit one card cleanly */
  .change-carousel--steps .change-stage {
    min-height: 150px !important;
    height: auto !important;            /* allow natural height */
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  /* reduce spacing above the controls */
  .change-controls {
    margin-top: 0.5rem !important;
  }

  /* reduce spacing inside the card */
  .change-card .card__body {
    padding: 0.75rem 0.9rem !important;
  }

  /* shrink the pill a little */
  .change-pill {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.55rem !important;
  }

  /* dots closer to the card */
  .change-dots {
    margin-top: 0.25rem !important;
  }
}
/* Mobile: tab-urile din HOW să nu stea lipite de marginea cardului */
@media (max-width: 600px) {
  #howTabs .tablist {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
/* HOW: eliminăm border-ul din jurul panelului */
#howTabs .tab-panel {
  border: none !important;
  border-radius: 0 !important; /* dacă vrei colțuri complet curate */
}
.hero-slide__inner .h1 {
  min-height: 3.2em;
}
