/* =========================================================
   ROL — Premium Corporate Redesign
   Design System
   ========================================================= */

:root {
  /* Color palette — sophisticated, European, industrial-luxury */
  --c-bg: #EAF6FF;
  --c-bg-2: #D4EEFF;
  --c-surface: #EAF6FF;
  --c-line: rgba(0, 48, 73, 0.10);
  --c-line-strong: rgba(0, 48, 73, 0.22);
  --c-text: #003049;
  --c-text-dim: #2C5871;
  --c-text-muted: #6B8DA1;
  --c-accent: #06A2F7;       /* primary accent */
  --c-accent-2: #88D2FA;
  --c-warm: #88D2FA;

  /* Dark surfaces (used for inverted sections like footer) */
  --c-light: #003049;
  --c-light-2: #062a3d;
  --c-on-light: #EAF6FF;

  /* Typography */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing — 8px scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --s-9: 160px;

  /* Layout */
  --container: 1320px;
  --gutter: 24px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 200ms;
  --t-mid: 450ms;
  --t-slow: 800ms;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0,48,73,.08);
  --shadow-2: 0 20px 60px -20px rgba(0,48,73,.18);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.005em;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* =========================================================
   Typography
   ========================================================= */
.h-display, h1.hero {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 350; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(36px, 5.2vw, 76px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 500; font-family: var(--font-sans); letter-spacing: -0.01em; }
p { color: var(--c-text-dim); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--c-text); max-width: 64ch; line-height: 1.5; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}
.italic { font-style: italic; font-family: var(--font-display); font-weight: 300; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: 60px 0px; position: relative; }
.section--sm { padding: 60px 0px; }
.section--light { background: var(--c-light); color: var(--c-on-light); }
.section--light p { color: #C8E2EE; }
.section--light .eyebrow { color: #88D2FA; }

.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); gap: var(--s-3); }
.col-span-6 { grid-column: span 6; }
.col-span-5 { grid-column: span 5; }
.col-span-7 { grid-column: span 7; }
.col-span-4 { grid-column: span 4; }
.col-span-8 { grid-column: span 8; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding var(--t-mid) var(--ease), background var(--t-mid) var(--ease), backdrop-filter var(--t-mid) var(--ease);
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(234, 246, 255, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.logo__mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  position: relative;
  overflow: hidden;
}
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--c-bg);
  border-radius: 50%;
}
.logo__text { font-weight: 500; letter-spacing: 0.02em; }
.logo__text em { font-style: italic; font-weight: 300; color: var(--c-text-dim); margin-left: 4px; }

.nav__menu {
  display: flex; align-items: center; gap: var(--s-4);
}
.nav__link {
  font-size: 14px;
  font-weight: 450;
  color: var(--c-text-dim);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav__link:hover { color: var(--c-text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--c-text); }

.nav__cta { display: inline-flex; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
}
.burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--c-text);
  position: relative;
  transition: transform var(--t-mid) var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--c-text);
  transition: transform var(--t-mid) var(--ease), top var(--t-mid) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--c-bg);
  z-index: 90;
  padding: 100px var(--gutter) var(--s-5);
  transform: translateY(-100%);
  transition: transform var(--t-mid) var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-2); }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 350;
  letter-spacing: -0.02em;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu a span { color: var(--c-text-muted); font-family: var(--font-mono); font-size: 12px; vertical-align: super; margin-right: 12px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --bg: var(--c-text);
  --fg: var(--c-bg);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--bg);
  color: var(--fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--t-mid) var(--ease);
}
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--accent { --bg: var(--c-accent); --fg: var(--c-bg); }
.btn--ghost {
  --bg: transparent; --fg: var(--c-text);
  border: 1px solid var(--c-line-strong);
}
.btn--ghost:hover { background: rgba(0,48,73,.05); border-color: var(--c-text); }
.btn--lg { padding: 18px 28px; font-size: 15px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: 200px;
  padding-bottom: var(--s-7);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-6);
  align-items: end;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(54px, 11vw, 188px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c-text);
}
.hero__title em { font-style: italic; font-weight: 300; color: var(--c-text-dim); }
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
@keyframes rise { to { transform: translateY(0); } }

.hero__meta {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  margin-top: var(--s-5);
}
.hero__meta p { font-size: 16px; max-width: 38ch; }
.hero__stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-text);
}
.hero__stat .lbl { display: block; margin-top: 8px; font-size: 13px; color: var(--c-text-dim); }

.hero__decor {
  position: absolute; right: -120px; top: 140px;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(6,162,247,.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--c-bg-2);
}
.marquee__track {
  display: inline-flex; gap: var(--s-5);
  animation: marq 40s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-text-dim);
  display: inline-flex; align-items: center; gap: var(--s-5);
}
.marquee__track span::after {
  content: "✦"; color: var(--c-accent); font-size: 18px;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   Section heading
   ========================================================= */
.s-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-6);
}
.s-head__title { max-width: 18ch; }

/* =========================================================
   Service cards
   ========================================================= */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.svc {
  background: var(--c-bg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
  transition: background var(--t-mid) var(--ease);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.svc:hover { background: var(--c-bg-2); }
.svc__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-muted);
  letter-spacing: 0.1em;
}
.svc__title {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.svc__desc { margin-top: var(--s-2); font-size: 15px; max-width: 42ch; }
.svc__foot {
  margin-top: var(--s-4);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-dim);
}
.svc__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.svc:hover .svc__arrow { background: var(--c-accent); color: var(--c-bg); border-color: var(--c-accent); transform: rotate(-45deg); }

/* =========================================================
   Featured / numbers
   ========================================================= */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.num-item {
  padding: var(--s-5) var(--s-3);
  border-right: 1px solid var(--c-line);
}
.num-item:last-child { border-right: 0; }
.num-item .v {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}
.num-item .l { display: block; margin-top: var(--s-2); font-size: 14px; color: var(--c-text-dim); }

/* =========================================================
   Portfolio / Projects
   ========================================================= */
.portfolio {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-3);
}
.proj {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
  isolation: isolate;
}
.proj a { display: block; }
.proj__media {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c-bg-2), var(--c-surface));
  position: relative;
  overflow: hidden;
}
.proj__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6));
}
.proj__visual {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 80px; font-weight: 300; letter-spacing: -0.04em;
  color: var(--c-text-muted);
  transition: transform var(--t-slow) var(--ease-out), color var(--t-mid) var(--ease);
}
.proj:hover .proj__visual { transform: scale(1.05); color: var(--c-accent); }
.proj__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-3);
  z-index: 2;
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-2);
}
.proj__info h3 {
  font-size: 22px; font-weight: 400; letter-spacing: -0.02em;
}
.proj__info span { font-family: var(--font-mono); font-size: 11px; color: var(--c-text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

.proj--wide { grid-column: span 8; }
.proj--tall { grid-column: span 4; }
.proj--half { grid-column: span 6; }

/* =========================================================
   Catalog grid (used on services/projects)
   ========================================================= */
.catalog {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
}
.cat-card {
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.cat-card:hover { border-color: var(--c-line-strong); transform: translateY(-4px); }
.cat-card__media {
  aspect-ratio: 4/3;
  background: var(--c-surface);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--c-text-muted);
  letter-spacing: -0.04em;
  font-weight: 300;
}
.cat-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(6,162,247,.06), transparent 60%);
}
.cat-card__body { padding: var(--s-3); }
.cat-card__body h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.cat-card__body p { font-size: 14px; margin-top: 6px; color: var(--c-text-muted); }
.cat-card__meta {
  margin-top: var(--s-3);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-dim);
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-line);
  align-items: start;
}
.tl-item:last-child { border-bottom: 1px solid var(--c-line); }
.tl-year {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 300; letter-spacing: -0.03em;
  line-height: 1;
}
.tl-body h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.tl-body p { margin-top: var(--s-2); }

/* =========================================================
   CTA block
   ========================================================= */
.cta {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(48px, 8vw, 120px) var(--s-5);
  overflow: hidden;
  background: var(--c-light);
  color: var(--c-on-light);
  text-align: center;
}
.cta h2 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 300; letter-spacing: -0.035em;
  max-width: 16ch; margin: 0 auto;
}
.cta h2 em { font-style: italic; color: #88D2FA; }
.cta p { color: #C8E2EE; max-width: 52ch; margin: var(--s-3) auto 0; }
.cta__actions { margin-top: var(--s-4); display: inline-flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }
.cta__actions .btn { background: var(--c-accent); color: #ffffff; }
.cta__actions .btn--ghost { background: transparent; color: var(--c-on-light); border-color: rgba(234,246,255,.3); }
.cta::before {
  content: "";
  position: absolute; right: -10%; top: -40%;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(6,162,247,.4), transparent 70%);
  pointer-events: none;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: var(--s-7) 0 var(--s-3);
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-5);
  padding-bottom: var(--s-6);
}
.footer__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.0;
  max-width: 14ch;
}
.footer__title em { font-style: italic; color: var(--c-text-dim); }
.footer h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: var(--s-2); }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 15px; color: var(--c-text-dim); transition: color var(--t-fast) var(--ease); }
.footer ul a:hover { color: var(--c-text); }
.footer__addr p { font-size: 14px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  font-size: 12px; color: var(--c-text-muted);
  font-family: var(--font-mono); letter-spacing: 0.05em;
}

/* =========================================================
   Contact / Forms
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7);
  align-items: start;
}
.contact-info dl { display: grid; gap: var(--s-3); }
.contact-info dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); }
.contact-info dd {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 350; letter-spacing: -0.02em;
  margin-top: 6px;
}
.contact-info dd small { display: block; font-size: 14px; color: var(--c-text-dim); margin-top: 4px; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

.form { display: grid; gap: var(--s-3); }
.field {
  display: grid; gap: 8px;
  position: relative;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-line);
}
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); }
.field input, .field textarea, .field select {
  background: transparent; border: 0;
  padding: 6px 0;
  font-size: 18px;
  color: var(--c-text);
  outline: none;
  width: 100%;
  font-family: var(--font-sans);
}
.field textarea { resize: vertical; min-height: 90px; }
.field:focus-within { border-color: var(--c-accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--c-text-muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.form__submit { margin-top: var(--s-3); display: flex; justify-content: flex-end; }
.form__success {
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: rgba(6,162,247,.12);
  border: 1px solid rgba(6,162,247,.3);
  border-radius: var(--r-sm);
  color: var(--c-accent-2);
  font-size: 14px;
  display: none;
}
.form__success.is-visible { display: block; }

/* =========================================================
   Page header (sub-pages)
   ========================================================= */
.page-head {
  padding-top: 180px; padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--c-line);
}
.page-head__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5);
  align-items: end;
}
.page-head h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(48px, 9vw, 132px); letter-spacing: -0.04em; line-height: 0.94;
}
.page-head h1 em { font-style: italic; color: var(--c-text-dim); }
.page-head__crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: var(--s-3); }
.page-head__crumb a { color: var(--c-text-dim); }

/* =========================================================
   Logo strip / partners
   ========================================================= */


/* =========================================================
   Reveal animation (JS-controlled)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid-3, .catalog { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .page-head__inner { grid-template-columns: 1fr; }
  .s-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .partners > div:nth-child(3n) { border-right: 0; }
  .partners > div { border-bottom: 1px solid var(--c-line); }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .num-item:nth-child(2) { border-right: 0; }
  .num-item:nth-child(1), .num-item:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .hero__meta { grid-template-columns: 1fr; gap: var(--s-3); }
  .portfolio { grid-template-columns: repeat(6, 1fr); }
  .proj--wide, .proj--tall, .proj--half { grid-column: span 6; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 20px 0px; }
  .nav__menu, .nav__cta { display: none; }
  .burger { display: inline-flex; }
  .svc-grid, .grid-3, .grid-4, .catalog { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--s-4); }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .tl-item { grid-template-columns: 1fr; gap: var(--s-2); }
  .tl-year { font-size: 40px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .partners > div:nth-child(2n) { border-right: 0; }
  .hero { padding-top: 140px; }
  .portfolio { grid-template-columns: 1fr; }
  .proj--wide, .proj--tall, .proj--half { grid-column: span 1; }
  .grid.grid-12 {display: block;}
  .grid.grid-12 .lead {margin-top: 20px;}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Theme System (light default + dark)
   ========================================================= */
:root[data-theme="dark"] {
  --c-bg: #0B1D2A;
  --c-bg-2: #132F44;
  --c-surface: #132F44;
  --c-line: rgba(234, 246, 255, 0.10);
  --c-line-strong: rgba(234, 246, 255, 0.22);
  --c-text: #EAF6FF;
  --c-text-dim: #B8D4E3;
  --c-text-muted: #7FA0B5;
  --c-accent: #06A2F7;
  --c-accent-2: #88D2FA;
  --c-warm: #88D2FA;
  --c-light: #06141F;
  --c-light-2: #0B1D2A;
  --c-on-light: #EAF6FF;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 20px 60px -20px rgba(0,0,0,.7);
}
:root[data-theme="dark"] .nav.is-scrolled {
  background: rgba(11, 29, 42, 0.82);
  border-bottom: 1px solid var(--c-line);
}
:root[data-theme="dark"] .section--light p { color: #B8D4E3; }
:root[data-theme="dark"] .cta p { color: #B8D4E3; }

/* Smooth theme transitions on color-bearing properties */
html, body, .nav, .nav.is-scrolled, .mobile-menu, .svc, .cat-card, .proj,
.field, .footer, .section--light, .cta, .btn, .btn--ghost, .logo__mark,
.nav__link, p, h1, h2, h3, h4, a {
  transition:
    background-color var(--t-mid) var(--ease),
    background var(--t-mid) var(--ease),
    color var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}

/* =========================================================
   Theme toggle button + Logo (SVG, circular, click-rotate)
   ========================================================= */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  margin-left: var(--s-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.theme-toggle:hover { background: var(--c-bg-2); border-color: var(--c-accent); color: var(--c-accent); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Override the old square placeholder mark to host the SVG */
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  will-change: transform;
}
.logo__mark::after { content: none; }
.logo__mark img,
.logo__mark svg {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.logo { cursor: pointer; }
.logo__mark.is-spinning {
  animation: logo-spin 0.8s cubic-bezier(.2,.7,.2,1);
}



.portfolio-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    display: flex;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 350px;
    scroll-snap-align: start;
    flex: 0 0 350px;
    width: 350px;
}

.portfolio-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .35s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.img-wrapper {
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    display: block;
    transition: .5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .portfolio-link {
        flex: 0 0 280px;
    }
}


@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo__mark.is-spinning { animation: none; }
}

@media (max-width: 760px) {
  .theme-toggle { margin-left: var(--s-1); }
}


/* =========================================================
   Mobile fine-tuning (compact, iPhone SE-friendly)
   Only scaling/spacing — no design changes.
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  /* Tighter section rhythm */
  .section { padding: var(--s-6) 0; }

  /* Typography — keep hierarchy, scale down */
  body { font-size: 15px; }
  p { font-size: 15px; line-height: 1.55; }
  .lead { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.5; }

  h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
  h2 { font-size: clamp(26px, 7vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
  h3 { font-size: clamp(20px, 5.2vw, 24px); line-height: 1.2; }
  h4 { font-size: 14px; }

  /* Hero — proportional, no awkward giant headline on SE */
  .hero { padding-top: 112px; padding-bottom: var(--s-5); }
  .hero__grid { gap: var(--s-4); }
  .hero__title { font-size: clamp(40px, 12vw, 64px); line-height: 0.96; letter-spacing: -0.03em; }
  .hero__meta { padding-top: var(--s-3); margin-top: var(--s-3); gap: var(--s-3); }
  .hero__meta p { font-size: 15px; }
  .hero__stat .num { font-size: clamp(28px, 8vw, 40px); }
  .hero__stat .lbl { font-size: 12px; margin-top: 4px; }

  /* Page heads on inner pages */
  .page-head { padding-top: 120px; padding-bottom: var(--s-4); }
  .page-head h1 { font-size: clamp(36px, 10vw, 56px); line-height: 0.98; }
  .page-head__inner { gap: var(--s-3); }
  .page-head__crumb { margin-bottom: var(--s-2); }

  /* Buttons — tighter pill */
  .btn { padding: 12px 18px; font-size: 14px; gap: 8px; }
  .btn .arrow { font-size: 14px; }

  /* Navbar — fits logo + theme toggle + burger on 320px */
  .nav { padding: 14px 0; }
  .nav.is-scrolled { padding: 10px 0; }
  .nav__inner { gap: var(--s-2); }
  .logo { font-size: 18px; gap: 8px; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__mark img, .logo__mark svg { width: 100%; height: 100%; }
  .logo__text em { display: none; } /* drop "est. 1996" tagline on tiny screens */
  .theme-toggle { width: 34px; height: 34px; margin-left: auto; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .burger { padding: 8px; }

  /* Cards / services / categories — compact */
  .svc { padding: var(--s-3) var(--s-3); }
  .svc__arrow { width: 36px; height: 36px; }
  .cat-card__body { padding: var(--s-2) var(--s-3) var(--s-3); }
  .cat-card__visual { aspect-ratio: 16 / 11; }

  /* Numbers strip */
  .numbers { grid-template-columns: 1fr 1fr; }
  .num-item { padding: var(--s-3) var(--s-2); }

  /* Footer */
  .footer { padding-top: var(--s-5); padding-bottom: var(--s-3); }
  .footer__top { gap: var(--s-3); }
  .footer__title { font-size: 32px; }

  /* CTA */
  .cta { padding: var(--s-6) 0; }
  .cta h2 { font-size: clamp(28px, 8vw, 44px); }
  .cta__actions { flex-direction: column; gap: var(--s-2); width: 100%; }
  .cta__actions .btn { width: 100%; justify-content: center; }

  /* Forms */
  .field { padding: 12px 0; }
  .field input, .field textarea { font-size: 16px; } /* prevent iOS zoom-on-focus */

  /* Mobile menu — slightly tighter */
  .mobile-menu a { font-size: 28px; }
  .mobile-menu ul { gap: var(--s-3); }

  /* Timeline */
  .tl-year { font-size: 32px; }
  .tl-item { padding: var(--s-3) 0; }

  /* Partners */
  .partners > div { padding: var(--s-3) var(--s-2); font-size: 13px; }

  /* Reveal animations — shorter travel on mobile */
  .reveal { transform: translateY(16px); }

  /* Avoid horizontal overflow regardless of content */
  html, body { overflow-x: hidden; }
  img, svg, video { max-width: 100%; height: auto; }
}

.container-forma {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
}

.title {
    font-size: 14px;
    letter-spacing: 2px;
    color: #5c7a8a;
    margin-bottom: 40px;
    position: relative;
}

.title::before {
    content: "";
    width: 40px;
    height: 2px;
    background: #2d8fcb;
    position: absolute;
    left: -50px;
    top: 50%;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
}

.form-group {
    position: relative;
}

.full {
    grid-column: 1 / 3;
}

label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #7b96a5;
    display: block;
    margin-bottom: 10px;
}

input,
textarea,
select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #9fb2bf;
    background: transparent;
    padding: 10px 0;
    font-size: 18px;
    color: #4a6a7a;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #6f8c9b;
}

textarea {
    resize: none;
    height: 120px;
}

select {
    appearance: none;
    cursor: pointer;
}

.button-wrapper {
    grid-column: 1 / 3;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

form button {
    background: linear-gradient(135deg, #1aa0e1, #1c82c8);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    opacity: 0.85;
}

/* iPhone SE & below — extra-compact */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .section { padding: var(--s-5) 0; }
  .hero { padding-top: 104px; }
  .hero__title { font-size: clamp(34px, 11.5vw, 48px); }
  h2 { font-size: clamp(22px, 7vw, 30px); }
  .btn { padding: 11px 16px; font-size: 13px; }
  .logo { font-size: 17px; }
  .logo__mark { width: 26px; height: 26px; }
  .theme-toggle { width: 32px; height: 32px; }
  .footer__title { font-size: 28px; }
  .num-item .num { font-size: 28px; }
}

.logo__mark img {
  transition: transform 0.6s ease;
}

.logo__mark img.spin {
  transform: rotate(360deg);
}

.slider-wrapper{
  position:relative;
  display:flex;
  align-items:center;
  gap:15px;
  max-width:100%;
}

.slider-btn{
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#05a1f7;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  transition:.3s ease;
  flex-shrink:0;
  box-shadow:0 8px 20px rgba(5,161,247,.25);
}

.slider-btn:hover{
  transform:scale(1.08);
}

.slider{
  overflow:hidden;
  background:rgba(253,253,253,.65);
  padding:25px 0;
  border-radius:14px;
  flex:1;
}

.track{
  display:flex;
  gap:30px;
  width:max-content;
}



.item{
  flex:0 0 auto;
  margin:0 25px;
  width:200px;
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.item a{
  display:block;
}

.item img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  opacity:.75;
  transition:.3s;
}

.item img:hover{
  opacity:1;
  transform:scale(1.05);
}

@keyframes scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:.3s;
  z-index:9999;
}

.lightbox.active{
  opacity:1;
  visibility:visible;
}

.lightbox-content{
  max-width:90%;
  max-height:90%;
}

.lightbox-close{
  position:absolute;
  top:30px;
  right:40px;
  font-size:40px;
  color:#fff;
  cursor:pointer;
}

.lightbox-img{
  cursor:pointer;
}

#torte {
  cursor: pointer;
}



/* =========================================================
   ULTRA RESPONSIVE FIX
   Premium mobile optimization
   ========================================================= */

/* ---------- Large tablets ---------- */
@media (max-width: 1024px){

  .hero{
    padding-top:140px;
    padding-bottom:60px;
  }

  .hero__title{
    font-size:clamp(52px,10vw,100px);
    line-height:.95;
  }

  .hero__meta{
    grid-template-columns:1fr;
    gap:24px;
  }

  .svc-grid,
  .catalog,
  .grid-3{
    grid-template-columns:1fr 1fr;
  }

  .portfolio{
    grid-template-columns:1fr 1fr;
  }

  .proj--wide,
  .proj--half,
  .proj--tall{
    grid-column:unset;
  }

  .footer__top{
    grid-template-columns:1fr 1fr;
  }

  .contact-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .page-head{
    padding-top:150px;
  }

}

/* ---------- Phones ---------- */
@media (max-width: 768px){

  :root{
    --gutter:18px;
  }

  html,
  body{
    overflow-x:hidden;
  }

  body{
    font-size:15px;
  }

  .container{
    padding-left:18px;
    padding-right:18px;
  }

  /* NAVBAR */
  .nav{
    padding:14px 0;
  }

  .nav.is-scrolled{
    padding:10px 0;
  }

  .nav__menu,
  .nav__cta,
  .nav__instagram{
    display:none;
  }

  .burger{
    display:flex;
  }

  .theme-toggle{
    margin-left:auto;
    width:36px;
    height:36px;
  }

  .logo{
    font-size:18px;
  }

  .logo__text em{
    display:none;
  }

  .logo__mark{
    width:30px;
    height:30px;
  }

  /* HERO */
  .hero{
    padding-top:120px;
    padding-bottom:50px;
  }

  .hero__grid{
    gap:28px;
  }

  .hero__title{
    font-size:clamp(42px,14vw,68px);
    line-height:.92;
    letter-spacing:-0.04em;
  }

  .hero__meta{
    grid-template-columns:1fr;
    gap:22px;
    margin-top:28px;
    padding-top:28px;
  }

  .hero__meta p{
    font-size:15px;
  }

  .hero__stat .num{
    font-size:42px;
  }

  /* HEADINGS */
  h2{
    font-size:clamp(28px,9vw,42px);
    line-height:1.05;
  }

  h3{
    font-size:24px;
  }

  p{
    font-size:15px;
    line-height:1.65;
  }

  /* SECTION */
  .section{
    padding:55px 0;
  }

  .s-head{
    grid-template-columns:1fr;
    gap:20px;
    margin-bottom:40px;
  }

  /* CARDS */
  .svc-grid,
  .catalog,
  .grid-2,
  .grid-3,
  .grid-4,
  .portfolio{
    grid-template-columns:1fr;
  }

  .svc{
    min-height:auto;
    padding:28px;
  }

  .svc__title{
    font-size:30px;
  }

  .cat-card__body{
    padding:22px;
  }

  .cat-card__body h3{
    font-size:22px;
  }

  /* NUMBERS */
  .numbers{
    grid-template-columns:1fr 1fr;
  }

  .num-item{
    padding:28px 18px;
  }

  .num-item .v{
    font-size:48px;
  }

  .num-item:nth-child(2){
    border-right:0;
  }

  .num-item:nth-child(1),
  .num-item:nth-child(2){
    border-bottom:1px solid var(--c-line);
  }

  /* TIMELINE */
  .tl-item{
    grid-template-columns:1fr;
    gap:18px;
    padding:36px 0;
  }

  .tl-year{
    font-size:40px;
  }

  /* PAGE HEAD */
  .page-head{
    padding-top:120px;
    padding-bottom:40px;
  }

  .page-head__inner{
    grid-template-columns:1fr;
    gap:24px;
  }

  .page-head h1{
    font-size:clamp(42px,13vw,70px);
  }

  /* CTA */
  .cta{
    padding:60px 24px;
    border-radius:24px;
  }

  .cta h2{
    font-size:clamp(34px,10vw,52px);
  }

  .cta__actions{
    flex-direction:column;
    width:100%;
  }

  .cta__actions .btn{
    width:100%;
    justify-content:center;
  }

  /* FOOTER */
  .footer{
    padding-top:60px;
  }

  .footer__top{
    grid-template-columns:1fr;
    gap:40px;
  }

  .footer__title{
    font-size:42px;
  }

  .footer__bottom{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  /* FORM */
  .form__row{
    grid-template-columns:1fr;
  }

  .field input,
  .field textarea{
    font-size:16px;
  }

  /* MOBILE MENU */
  .mobile-menu{
    padding-top:110px;
  }

  .mobile-menu a{
    font-size:34px;
  }

  /* SLIDER */
  .slider-wrapper{
    gap:10px;
  }

  .slider{
    padding:18px 0;
  }

  .item{
    width:140px;
    height:80px;
    margin:0 12px;
  }

  .slider-btn{
    width:42px;
    height:42px;
    font-size:20px;
  }

  /* LIGHTBOX */
  .lightbox-close{
    top:20px;
    right:20px;
    font-size:34px;
  }

}

/* ---------- Small phones ---------- */
@media (max-width: 480px){

  :root{
    --gutter:14px;
  }

  .hero{
    padding-top:105px;
  }

  .hero__title{
    font-size:clamp(36px,13vw,54px);
  }

  h2{
    font-size:30px;
  }

  .btn{
    width:100%;
    justify-content:center;
    padding:14px 18px;
  }

  .numbers{
    grid-template-columns:1fr;
  }

  .num-item{
    border-right:0 !important;
    border-bottom:1px solid var(--c-line);
  }

  .num-item:last-child{
    border-bottom:0;
  }

  .svc{
    padding:24px;
  }

  .svc__title{
    font-size:26px;
  }

  .cat-card__media{
    font-size:42px;
  }

  .footer__title{
    font-size:34px;
  }

  .mobile-menu a{
    font-size:28px;
  }

  .item{
    width:120px;
    height:70px;
  }

}

/* ---------- Ultra smooth touch ---------- */
@media (hover:none){

  .btn:active,
  .svc:active,
  .cat-card:active{
    transform:scale(.98);
  }

}

/* ---------- Better image rendering ---------- */
img{
  image-rendering:auto;
  -webkit-user-drag:none;
}

/* ---------- Safe overflow ---------- */
section,
div,
main,
header,
footer{
  max-width:100%;
}


/* =========================
   DESKTOP DROPDOWN
========================= */

.nav__dropdown{
  position: relative;
  display: flex;
  align-items: center;
}

.nav__dropdown-toggle{
  display: inline-flex;
  align-items: center;
}

.nav-arrow{
  margin-left: 6px;
  font-size: 12px;
  transition: transform .3s ease;
  color: var(--c-text-muted);
}

/* dropdown panel */
.nav__dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 240px;
  margin-top: 12px;
  padding: 10px 0;

  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0,0,0,.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s ease;

  z-index: 999;
}

.nav__dropdown-menu a{
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--c-text-dim);
  transition: .2s ease;
}

.nav__dropdown-menu a:hover{
  background: var(--c-bg-2);
  color: var(--c-text);
}

/* hover open */
.nav__dropdown:hover .nav__dropdown-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown:hover .nav-arrow{
  transform: rotate(180deg);
  color: var(--c-text);
}

/* =========================
   MOBILE DROPDOWN
========================= */

@media (max-width: 720px){

  .mobile-dropdown{
    border-bottom: 1px solid var(--c-line);
  }

  .mobile-dropdown__toggle{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-dropdown__label{
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    color: var(--c-text);
  }

  .mobile-dropdown__label span{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-text-muted);
  }

  .mobile-arrow{
    font-size: 18px;
    color: var(--c-text-muted);
    transition: .3s ease;
  }

  .mobile-dropdown.open .mobile-arrow{
    transform: rotate(180deg);
    color: var(--c-text);
  }

  .mobile-dropdown__menu{
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding-left: 28px;
    transition: max-height .35s ease;
  }

  .mobile-dropdown.open .mobile-dropdown__menu{
    max-height: 320px;
    padding-bottom: 12px;
  }

  .mobile-dropdown__menu a{
    font-size: 15px;
    color: var(--c-text-dim);
    padding: 6px 0;
  }

  .mobile-dropdown__menu a:hover{
    color: var(--c-text);
  }
}

/* =========================================================
   FIXES
   ========================================================= */

/* 1. Hero tekst - razmak između naslova i paragrafa */
.hero__meta{
  align-items: start;
}

.hero__meta p{
  margin-top: 10px;
}

/* Ako je tekst "Od ideje do serijske proizvodnje" */
.hero__title{
  margin-bottom: 20px;
  max-width: 12ch;
}

/* 2. Partner slider strelice manje */
.slider-btn{
  width: 38px;
  height: 38px;
  font-size: 18px;
}

/* Mobile */
@media (max-width:768px){
  .slider-btn{
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* 3. Footer - sva prava zadržana u jednom redu */
.footer__bottom{
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p,
.footer__bottom span,
.footer__bottom a{
  font-size: 11px;
  white-space: nowrap;
}

/* Mobile footer */
@media (max-width:768px){

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

  .footer__bottom p,
  .footer__bottom span,
  .footer__bottom a{
    font-size: 10px;
    white-space: normal;
  }

/* PORTFOLIO SLIDER */
#portfolioSlider {
  overflow: hidden;
  scroll-behavior: smooth;
}

#portfolioTrack {
  display: flex;
  gap: 20px;
}

/* kartice */
#portfolioTrack .item {
  min-width: 300px;
  flex: 0 0 auto;
  text-align: center;
}

#portfolioTrack img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

#portfolioTrack p {
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
}

/* desktop 2 komada */
@media (min-width: 1024px) {
  #portfolioTrack .item {
    min-width: calc(50% - 10px);
  }
}

/* mobilni 1 komad */
@media (max-width: 768px) {
  #portfolioTrack .item {
    min-width: 100%;
  }
}

}