/* ==========================================================================
   Migama Soft Wind — stylesheet
   White / airy / Zen, Kandinsky composition in Van Gogh palette.
   ========================================================================== */

:root {
  /* Van Gogh palette (from the logo) */
  --yellow: #F5B301;   /* chrome yellow   */
  --blue:   #2A6FB0;   /* cobalt blue     */
  --green:  #5E9A3E;   /* cypress green   */
  --orange: #E1742B;   /* burnt orange    */
  --navy:   #173A67;   /* Starry Night    */

  /* neutrals */
  --bg:      #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef2f8;
  --ink:     #173A67;
  --text:    #2b3a52;
  --muted:   #66758d;
  --line:    #e4e9f1;

  --accent:  var(--blue);  /* overridden per nav item / section */

  /* shape & depth */
  --radius:   16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow:    0 1px 2px rgba(23,58,103,.05), 0 8px 30px rgba(23,58,103,.07);
  --shadow-sm: 0 1px 2px rgba(23,58,103,.06), 0 4px 14px rgba(23,58,103,.06);

  /* layout */
  --sidebar-w: 264px;
  --maxw: 1080px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ----- reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* skip link */
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 1000;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ----- decorative Kandinsky background art ------------------------------ */
.bg-art {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-art svg { position: absolute; top: -6%; right: -4%; width: min(58vw, 720px); height: auto; opacity: .5; }

/* ======================================================================== */
/*  LAYOUT — dashboard sidebar                                              */
/* ======================================================================== */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem 1rem; z-index: 60;
  overflow-y: auto;
}
.sidebar__brand { padding: .25rem .5rem 1rem; }
.sidebar__brand img { width: 200px; height: auto; }

.nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.nav__item {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .85rem; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__item .icon { width: 22px; height: 22px; color: var(--accent); flex: none; transition: transform .2s var(--ease); }
.nav__item:hover { background: var(--surface); color: var(--navy); }
.nav__item:hover .icon { transform: translateX(1px) scale(1.06); }
.nav__item[aria-current="page"] {
  background: var(--surface-2); color: var(--navy); font-weight: 600;
}
.nav__item[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 4px; border-radius: 0 4px 4px 0; background: var(--accent);
}

/* sidebar footer block: language + contact */
.sidebar__foot { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lang-switch { display: inline-flex; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch button {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  border: 0; background: transparent; color: var(--muted);
  padding: .3rem .7rem; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.contact-mini { display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.contact-mini a, .contact-mini span { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); }
.contact-mini a:hover { color: var(--navy); }
.contact-mini .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ----- top bar (mobile only) -------------------------------------------- */
.topbar {
  display: none; position: sticky; top: 0; z-index: 55;
  align-items: center; justify-content: space-between;
  padding: .6rem 1rem; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar img { width: 150px; height: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.icon-btn .icon { width: 24px; height: 24px; }
.overlay {
  position: fixed; inset: 0; background: rgba(23,58,103,.35); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease); z-index: 58;
}
body.nav-open .overlay { opacity: 1; visibility: visible; }

/* ----- main ------------------------------------------------------------- */
.main {
  margin-left: var(--sidebar-w);
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gap) 3rem;
}
.container { max-width: var(--maxw); margin: 0 auto; }
.section { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.section__head { margin-bottom: 1.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ======================================================================== */
/*  HERO                                                                    */
/* ======================================================================== */
.hero { position: relative; }
.hero__copy { max-width: 34rem; }
.hero__title { margin-bottom: .6rem; }
.hero__subtitle { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-figure { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.hero-figure figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.hero-figure figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: .7rem; max-width: 70ch; margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0f2c52; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ----- slider ----------------------------------------------------------- */
.slider { position: relative; border-radius: var(--radius-lg); }
.slider__viewport {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease); display: flex;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide--zoom img { object-position: top left; transform: scale(1.6); transform-origin: top left; }
.slide__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem .9rem; color: #fff;
  background: linear-gradient(to top, rgba(15,28,52,.78), rgba(15,28,52,0));
}
.slide__cap strong { font-size: 1.05rem; display: block; }
.slide__cap span { font-size: .9rem; opacity: .9; }

.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--navy); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; z-index: 3;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.slider__btn:hover { background: #fff; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__btn .icon { width: 22px; height: 22px; }
.slider__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: all .2s var(--ease); }
.slider__dots button[aria-pressed="true"] { background: var(--accent); width: 26px; border-radius: 5px; }

/* ======================================================================== */
/*  CONTENT                                                                 */
/* ======================================================================== */
.prose { max-width: 56ch; }
.prose p { color: var(--text); }
.lead { font-size: 1.18rem; color: var(--ink); }

/* card grids */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); margin-bottom: 1rem;
}
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* bullet list with check marks */
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; color: var(--text); }
.checklist .icon { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: .15rem; }

/* ----- projects grid ---------------------------------------------------- */
.projects { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card__media { aspect-ratio: 16 / 10; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.project-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card__imgs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4%; padding: 7% 5%; }
.project-card__imgs img { height: 100%; width: auto; max-width: 47%; object-fit: contain; border-radius: 8px; }
.project-card__media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.project-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { display: flex; align-items: center; gap: .55rem; }
.project-card__body h3 .icon { width: 22px; height: 22px; color: var(--accent); }
.tagline { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.project-card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.project-card__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); }
.project-card__link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.project-card:hover .project-card__link .icon { transform: translateX(3px); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent);
}
.badge--soft { background: var(--surface-2); color: var(--muted); }
.badge .icon { width: 15px; height: 15px; }

/* ----- project detail --------------------------------------------------- */
.proj-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.proj-hero__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16/10; background: var(--surface); }
.proj-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.feature .icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .15rem; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 500; margin-bottom: 1.25rem; }
.back-link .icon { width: 18px; height: 18px; }
.back-link:hover { color: var(--navy); }

/* ----- pricing ---------------------------------------------------------- */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.price-card__head { padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.price-card__head h3 { margin: 0; }
.price-card__dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.price-card__body { padding: .5rem 1.5rem 1.5rem; }
.tier { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.tier:last-child { border-bottom: 0; }
.tier__name { color: var(--text); }
.tier__price { font-weight: 700; color: var(--ink); font-size: 1.05rem; white-space: nowrap; }
.maint { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.maint__label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.maint__row { display: flex; justify-content: space-between; font-size: .92rem; padding: .25rem 0; color: var(--text); }
.note-list li { display: flex; gap: .7rem; padding: .55rem 0; color: var(--muted); font-size: .95rem; }
.note-list .icon { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: .15rem; }

.callout {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.callout__price { font-size: 1.8rem; font-weight: 700; color: var(--ink); }

/* ----- collaboration steps --------------------------------------------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.step__num {
  position: absolute; top: 1.1rem; right: 1.25rem; font-weight: 700; font-size: 1.4rem;
  color: color-mix(in srgb, var(--accent) 55%, #fff);
}
.step__icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); margin-bottom: 1rem; }
.step__icon .icon { width: 24px; height: 24px; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ----- CTA banner ------------------------------------------------------- */
.cta {
  margin-top: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 auto 1.5rem; }
.cta .btn--primary { background: #fff; color: var(--navy); }
.cta .btn--primary:hover { background: var(--yellow); color: var(--navy); }
.cta__art { position: absolute; inset: 0; opacity: .25; pointer-events: none; }
.cta__art svg { position: absolute; right: -40px; top: -40px; width: 260px; }

/* ----- footer ----------------------------------------------------------- */
.footer { margin-left: var(--sidebar-w); border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gap); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; }
.footer__legal strong { color: var(--ink); }
.footer__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.footer .badge--soft { font-weight: 600; }
.footer__author { display: inline-block; margin-top: .45rem; font-size: .85rem; color: var(--muted); }
.footer__author a { font-weight: 600; }

/* ======================================================================== */
/*  RESPONSIVE                                                              */
/* ======================================================================== */
@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%); transition: transform .3s var(--ease);
    box-shadow: 0 0 40px rgba(23,58,103,.18); width: min(86vw, 320px);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .topbar { display: flex; }
  .main, .footer { margin-left: 0; }
  .hero, .proj-hero { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; order: 1; }
  .hero .slider { order: 2; }
}
@media (max-width: 520px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* motion-safe */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .slide { transition: none; }
}

/* print */
@media print {
  .sidebar, .topbar, .overlay, .slider__btn, .slider__dots, .bg-art, .cta, .lightbox { display: none !important; }
  .main, .footer { margin-left: 0; }
}

/* ======================================================================== */
/*  PROJECT CASE STUDY — components, galleries, resources, lightbox         */
/* ======================================================================== */
.components { display: grid; gap: 1.5rem; }
.component { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.component__head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.component__icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); flex: none; }
.component__icon .icon { width: 24px; height: 24px; }
.component__head h3 { margin: 0; }
.component__role { font-size: .85rem; font-weight: 600; color: var(--accent); }
.component > p { color: var(--text); margin: 0 0 .25rem; }
.component .checklist { margin-top: .9rem; }
.component .checklist li { margin-bottom: .55rem; font-size: .95rem; }

.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 1.1rem; }
.thumb { font: inherit; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.thumb img { width: 100%; height: 120px; object-fit: cover; object-position: top center; background: #fff; }
.thumb__cap { font-size: .78rem; color: var(--muted); padding: .5rem .6rem; }

.resources { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.resource { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.resource:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.resource__icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); flex: none; }
.resource__icon .icon { width: 22px; height: 22px; }
.resource__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.resource__body strong { color: var(--ink); }
.resource__body span { font-size: .82rem; color: var(--muted); }
.resource > .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.resource:hover > .icon { color: var(--accent); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(.35rem, 1vw, .7rem); background: rgba(15, 28, 52, .94); }
body.lb-open { overflow: hidden; }
body.lb-open .lightbox { display: flex; }
.lightbox__fig { margin: 0; max-width: 98vw; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.lightbox__fig img { max-width: 98vw; max-height: 94vh; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
.lightbox__fig figcaption { color: #fff; font-size: .95rem; opacity: .9; text-align: center; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__close .icon, .lightbox__nav .icon { width: 24px; height: 24px; }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; } .lightbox__nav--prev { left: .4rem; } .lightbox__nav--next { right: .4rem; } }

/* hero text-only (fără media) */
.proj-hero--text { grid-template-columns: 1fr; }
.proj-hero--text .proj-hero__copy { max-width: none; }
/* pe paginile de proiect, textul descriere foloseste toata latimea (castig spatiu) */
#project .proj-hero__summary, #proj-about { max-width: none; }

/* component split layout (text | carousel lateral) */
.component--side { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: center; }
.component--side .component__main { min-width: 0; }
@media (max-width: 760px) { .component--side { grid-template-columns: 1fr; } }

/* carousel */
.carousel { margin-top: 1.1rem; }
.carousel__viewport { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 10; }
.carousel__track { display: flex; height: 100%; transition: transform .4s var(--ease); will-change: transform; }
.carousel__track > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; background: #fff; cursor: zoom-in; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .2s var(--ease); }
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; flex-wrap: wrap; }
.carousel__cap { font-size: .85rem; color: var(--muted); }
.carousel__dots { display: flex; gap: .4rem; flex-wrap: wrap; }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: all .2s var(--ease); }
.carousel__dot[aria-current="true"] { background: var(--accent); width: 22px; border-radius: 4px; }
.component--side .carousel__viewport { aspect-ratio: 1000 / 1640; max-width: 340px; margin: 0 auto; }

/* single centered media */
.single-media { display: flex; justify-content: center; margin-top: 1.1rem; }
.single-media figure { margin: 0; text-align: center; }
.single-media img { display: block; margin: 0 auto; max-width: min(100%, 460px); max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.single-media figcaption { font-size: .85rem; color: var(--muted); margin-top: .55rem; }

/* ediții / versiuni produs */
.editions { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.edition { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.edition__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin-bottom: .5rem; }
.edition__head h3 { margin: 0; }
.edition p { color: var(--muted); margin: 0; font-size: .95rem; }
.edition .checklist { margin-top: .6rem; }
.edition .checklist li { margin-bottom: .4rem; font-size: .92rem; }
.media-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.media-card .carousel { margin-top: 0; }

/* flow diagram — „Cum funcționează" */
.flow { display: grid; gap: 1.6rem; }
.flow__diagram { display: grid; gap: .55rem; padding: clamp(1rem, 2.5vw, 1.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow__nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2vw, 1.1rem); }
.flow__node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1rem .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.flow__node-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); }
.flow__node-ico .icon { width: 26px; height: 26px; }
.flow__node-name { font-weight: 700; color: var(--ink); }
.flow__node-sub { font-size: .82rem; color: var(--muted); }
.flow__node--hub { background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow); }
.flow__node--hub .flow__node-name { color: #fff; }
.flow__node--hub .flow__node-sub { color: rgba(255,255,255,.88); }
.flow__node--hub .flow__node-ico { background: rgba(255,255,255,.22); color: #fff; }
.flow__lane { display: flex; align-items: center; gap: .55rem; padding: 0 .3rem; }
.flow__lane-label { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.flow__lane-track { flex: 1; height: 0; border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); }
.flow__lane-arrow { display: flex; color: var(--accent); }
.flow__lane-arrow .icon { width: 20px; height: 20px; }
.flow__steps { list-style: none; counter-reset: step; display: grid; gap: .65rem; padding: 0; margin: 0; }
.flow__steps li { counter-increment: step; display: flex; gap: .75rem; align-items: flex-start; }
.flow__steps li::before { content: counter(step); flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; margin-top: .1rem; }
.flow__built { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.flow__built-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .55rem; }
.flow__built ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; padding: 0; margin: 0; }
.flow__built li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--text); }
.flow__built li .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
@media (max-width: 600px) {
  .flow__nodes { grid-template-columns: 1fr; }
  .flow__lane-label { white-space: normal; }
}

/* demo frame (prototipuri, ex. FillRepo v2 / v3) */
.demos { margin-top: 1.1rem; padding: 1rem 1.1rem 1.15rem; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.demos__label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: .8rem; }
.demos__label .icon { width: 16px; height: 16px; color: var(--accent); }
.demos__grid { display: grid; gap: .7rem; }
.demo-link { display: flex; align-items: flex-start; gap: 1rem; padding: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.demo-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.demo-link__shot { flex: none; width: 114px; aspect-ratio: 43 / 78; border-radius: 12px; overflow: hidden; background: #E7E0D2; border: 1px solid var(--line); }
.demo-link__shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-link__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.demo-link__title { display: flex; align-items: center; gap: .45rem; color: var(--ink); font-size: 1rem; }
.demo-link__title .icon { flex: none; width: 18px; height: 18px; color: var(--accent); }
.demo-link__lead { font-size: .85rem; color: var(--muted); }
.demo-link__feats { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .2rem; }
.demo-link__feats li { position: relative; padding-left: .95rem; font-size: .82rem; color: var(--text); line-height: 1.4; }
.demo-link__feats li::before { content: ""; position: absolute; left: .05rem; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.demo-link__go { flex: none; align-self: center; color: var(--muted); display: flex; }
.demo-link__go .icon { width: 20px; height: 20px; }
.demo-link:hover .demo-link__go { color: var(--accent); }
@media (max-width: 560px) {
  .demo-link { gap: .8rem; padding: .7rem; }
  .demo-link__shot { width: 88px; }
}

/* prezentare: textul „Software la comandă" pe toată lățimea disponibilă */
#lead, #presentation { max-width: none; }
