/* ==========================================================================
   AVORAINVEST — Reset & base
   ========================================================================== */

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

/* Process + FAQ redesign */
.process-section,
.faq-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 150px;
  grid-template-columns: minmax(280px, .72fr) minmax(540px, 1.28fr);
  gap: clamp(64px, 9vw, 132px);
}

.process-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(46vw, 560px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 144, 228, .5));
}

.process-section .content-section-heading::after {
  content: "Un parcurs transparent, cu feedback la fiecare etapă și fără surprize pe drum.";
  margin-top: 30px;
}

.process-list {
  position: relative;
  display: flex;
  grid-template-columns: none;
  flex-direction: column;
  gap: 0;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 31px;
  width: 1px;
  background: linear-gradient(180deg, #7890e4, rgba(120, 144, 228, .12));
}

.process-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 0;
  gap: 26px;
  overflow: visible;
  padding: 0 0 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.process-list li::before { display: none; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li:hover { transform: none; border-color: transparent; background: transparent; }

.process-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(120, 144, 228, .42);
  border-radius: 50%;
  background: var(--ink);
  color: #91a5eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.process-list li:hover > span { transform: scale(1.06); background: #7890e4; color: #111214; }
.process-list li > div { padding: 3px 0 52px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.process-list li:last-child > div { padding-bottom: 0; border-bottom: 0; }
.process-list h3 { margin-bottom: 13px; font-size: clamp(22px, 2.3vw, 30px); }
.process-list p { max-width: 570px; }

.faq-section {
  background: #f0f0eb;
  box-shadow: 0 0 0 100vmax #f0f0eb;
  border-top: 0;
}

.faq-section .content-section-heading > p { color: #536fcf; }
.faq-section .content-section-heading h2 { color: #17181a; }
.faq-section .content-section-heading::after {
  content: "Tot ce merită clarificat înainte să pornim. Pentru restul, suntem la un mesaj distanță.";
  color: #686a67;
}

.faq-list {
  display: block;
  border-top: 1px solid rgba(23, 24, 26, .22);
}

.faq-list details {
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 24, 26, .22);
  border-radius: 0;
  background: transparent;
  transition: background .25s ease;
}

.faq-list details:hover,
.faq-list details[open] { transform: none; border-color: rgba(23, 24, 26, .22); background: rgba(255, 255, 255, .38); }
.faq-list summary { grid-template-columns: 38px 1fr 42px; gap: 18px; min-height: 102px; padding: 22px 18px; color: #202124; font-size: clamp(16px, 1.65vw, 20px); font-weight: 540; }
.faq-list summary::before { color: #747773; }
.faq-list summary span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(23, 24, 26, .2); border-radius: 50%; color: #536fcf; }
.faq-list details[open] summary { min-height: 102px; }
.faq-list details[open] summary span { background: #17181a; color: #f0f0eb; }
.faq-list details p { max-width: 590px; margin: -5px 60px 32px 74px; color: #626460; font-size: 14px; line-height: 1.75; }

@media (max-width: 1100px) {
  .process-section,
  .faq-section { grid-template-columns: 1fr; gap: 58px; padding-top: 110px; padding-bottom: 110px; }
  .process-section .content-section-heading,
  .faq-section .content-section-heading { position: static; }
}

@media (max-width: 640px) {
  .process-section,
  .faq-section { width: calc(100% - 48px); gap: 46px; padding-top: 82px; padding-bottom: 82px; }
  .process-list::before { left: 23px; }
  .process-list li { grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 42px; }
  .process-list li > span { width: 48px; height: 48px; }
  .process-list li > div { padding-top: 0; padding-bottom: 40px; }
  .process-list h3 { font-size: 21px; }
  .faq-list summary { grid-template-columns: 26px 1fr 38px; gap: 10px; min-height: 92px; padding: 18px 4px; font-size: 15px; }
  .faq-list summary span { width: 38px; height: 38px; }
  .faq-list details[open] summary { min-height: 92px; }
  .faq-list details p { margin: -2px 44px 26px 40px; font-size: 13px; }
}

/* Premium footer */
body > .site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 88px max(32px, calc((100vw - 1200px) / 2)) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body > .site-footer .site-footer-inner {
  display: grid;
  grid-template-columns: minmax(300px, 1.65fr) repeat(3, minmax(130px, 0.65fr));
  gap: clamp(38px, 5vw, 78px);
  align-items: start;
}

body > .site-footer .site-footer-brand { max-width: 410px; }
body > .site-footer .footer-logo { display: inline-flex; }

body > .site-footer .footer-logo img {
  display: block;
  width: min(240px, 100%);
  height: auto;
  object-fit: contain;
}

.footer-intro {
  max-width: 380px;
  margin: 28px 0 30px;
  color: #a4a59f;
  font-size: 15px;
  line-height: 1.75;
}

.footer-project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--accent);
  color: #f5f5f2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.footer-project-link:hover { gap: 17px; color: #7890e4; }

body > .site-footer .footer-column,
body > .site-footer .footer-nav,
body > .site-footer .footer-contact,
.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body > .site-footer .footer-column,
body > .site-footer .footer-nav,
body > .site-footer .footer-contact { gap: 13px; }

.footer-label {
  margin: 2px 0 10px;
  color: #666862;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body > .site-footer .footer-column a,
body > .site-footer .footer-contact a {
  color: #c5c6c0;
  font-size: 14px;
  white-space: normal;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

body > .site-footer .footer-column a:hover,
body > .site-footer .footer-contact a:hover { color: #f5f5f2; }

.footer-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #73756e;
  font-size: 11px;
}

body > .site-footer .footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

body > .site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #d5d6d0;
}

body > .site-footer .footer-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

body > .site-footer .footer-social .social-icon-fill {
  fill: currentColor;
  stroke: none;
}

body > .site-footer .footer-social a:hover {
  border-color: rgba(47, 78, 184, 0.7);
  background: rgba(47, 78, 184, 0.12);
  color: #8ea3ed;
}

.footer-legal-links { gap: 8px; margin-top: 18px; }

body > .site-footer .footer-legal-links a {
  color: #70716c;
  font-size: 11px;
  line-height: 1.45;
}

body > .site-footer .site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body > .site-footer .site-footer-bottom p,
body > .site-footer .site-footer-bottom > a {
  margin: 0;
  color: #686963;
  font-size: 11px;
  text-decoration: none;
}

body > .site-footer .site-footer-bottom > a:hover { color: #b9bab4; }

@media (max-width: 900px) {
  body > .site-footer .site-footer-inner {
    grid-template-columns: minmax(280px, 1.5fr) repeat(2, 1fr);
  }

  body > .site-footer .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body > .site-footer { padding: 62px 28px 24px; }

  body > .site-footer .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
  }

  body > .site-footer .site-footer-brand,
  body > .site-footer .footer-contact { grid-column: 1 / -1; }
  .footer-intro { margin-top: 24px; }

  body > .site-footer .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 56px;
  }
}

@media (max-width: 380px) {
  body > .site-footer .site-footer-inner { grid-template-columns: 1fr; }
  body > .site-footer .site-footer-brand,
  body > .site-footer .footer-contact { grid-column: auto; }
}

:root {
  --ink: #17181a;
  --ink-soft: #252525;
  --header-bg-scrolled: rgba(28, 28, 28, 0.55);
  --header-shadow-scrolled: 0 10px 40px rgba(0, 0, 0, 0.3);

  --accent: #2f4eb8;
  --accent-glow: rgba(47, 78, 184, 0.3);
  --accent-glow-strong: rgba(47, 78, 184, 0.45);
  --cta-radius: 18px;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: #e8e8e6;
  background: #2a2a2a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font-family: inherit;
}

/* ==========================================================================
   Header — floating glass panel
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-12px);
  width: 100%;
  border-radius: 0;
  z-index: 1000;

  background: transparent;
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  border: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;

  opacity: 0;
  filter: blur(6px);

  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s ease,
    backdrop-filter 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.site-header.loaded {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--header-shadow-scrolled);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 120px;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.logo-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* ==========================================================================
   Desktop nav
   ========================================================================== */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding: 10px 14px;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #2f4eb8;
}

.contact-dropdown {
  position: relative;
  margin-left: 32px;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  padding: 20px 30px;
  border-radius: var(--cta-radius);
  background: linear-gradient(135deg, #1c1c1c 0%, #101010 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(47, 78, 184, 0.08),
    0 0 22px -6px var(--accent-glow);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Focus visibility
   ========================================================================== */

.logo:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.nav-link-mobile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   Mobile hamburger
   ========================================================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:hover .menu-toggle-bar {
  background: #2f4eb8;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile nav panel
   ========================================================================== */

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 110px 24px 40px;
  overflow-y: auto;

  background: rgba(20, 21, 23, 0.9);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}

.nav-mobile.menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-link-mobile {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  padding: 10px 20px;
  transition: color 0.25s ease;
}

.nav-link-mobile:hover {
  color: #2f4eb8;
}

.nav-cta-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  padding: 18px 40px;
  border-radius: var(--cta-radius);
  background: linear-gradient(135deg, #1c1c1c 0%, #101010 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(47, 78, 184, 0.08),
    0 0 22px -6px var(--accent-glow);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-dropdown-mobile {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

.contact-dropdown-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 270px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(18, 18, 19, 0.94);
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-dropdown.is-open .contact-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-dropdown-menu a {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #f3f3f1;
  transition: background 0.25s ease;
}

.contact-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.contact-dropdown-menu span {
  color: #858681;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-dropdown-menu strong {
  font-size: 14px;
  font-weight: 600;
}

.contact-dropdown-mobile .contact-dropdown-menu {
  position: relative;
  top: auto;
  right: auto;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transform: translateY(-6px);
}

.contact-dropdown-mobile.is-open .contact-dropdown-menu {
  max-height: 180px;
  margin-top: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  transform: translateY(0);
}

/* ==========================================================================
   Premium CTA — shared shine, content, hover/active/focus states
   ========================================================================== */

.nav-cta-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta::before,
.nav-cta-mobile::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-cta::after,
.nav-cta-mobile::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.nav-cta:hover,
.nav-cta-mobile:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #212121 0%, #131313 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 28px 55px -14px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(47, 78, 184, 0.18),
    0 0 32px -4px var(--accent-glow-strong);
}

.nav-cta:hover::before,
.nav-cta-mobile:hover::before {
  left: 130%;
}

.nav-cta:hover .nav-cta-arrow,
.nav-cta-mobile:hover .nav-cta-arrow {
  transform: translateY(3px);
}

.contact-dropdown.is-open .nav-cta-arrow {
  transform: rotate(180deg);
}

.nav-cta:active,
.nav-cta-mobile:active {
  transform: translateY(-1px);
}

.nav-cta:focus-visible,
.nav-cta-mobile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

main {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Hero — background decor (radial glow, noise, vignette)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(47, 78, 184, 0.1), transparent 58%);
}

.hero-diffuse {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1100px 750px at 50% 26%, rgba(245, 245, 242, 0.035), transparent 72%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'%3E%3C/rect%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.22) 100%);
}

/* ==========================================================================
   Hero — layout (single column, centered)
   ========================================================================== */

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 94vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 150px 24px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   Hero — content
   ========================================================================== */

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  margin: 0;
}

.hero-headline-img {
  display: block;
  width: clamp(300px, 44vw, 620px);
  height: auto;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.hero-tagline {
  margin: 14px 0 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--accent) 55%, #e8e8e6 45%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

.hero-subtitle {
  max-width: 520px;
  margin: 30px 0 0;
  font-size: clamp(16px, 1vw + 13px, 18px);
  line-height: 1.6;
  color: #a8a8a5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
}

.hero-cta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 44px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s;
}

.hero.is-visible .hero-headline-img,
.hero.is-visible .hero-tagline,
.hero.is-visible .hero-subtitle,
.hero.is-visible .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero — CTA buttons (call / whatsapp / email)
   ========================================================================== */

.hero-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #f2f2f0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(36, 36, 38, 0.9) 0%, rgba(15, 15, 16, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(47, 78, 184, 0.07),
    0 0 22px -8px var(--accent-glow);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-cta-btn::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.hero-cta-icon,
.hero-cta-label {
  position: relative;
  z-index: 2;
}

.hero-cta-label-mobile {
  display: none;
}

.hero-cta-icon {
  display: inline-flex;
  color: color-mix(in srgb, var(--accent) 62%, #f5f5f2 38%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s ease;
}

.hero-cta-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.hero-cta-btn:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(43, 43, 46, 0.92) 0%, rgba(20, 20, 21, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.45),
    0 26px 54px -18px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(47, 78, 184, 0.15),
    0 0 30px -6px var(--accent-glow-strong);
}

.hero-cta-btn:hover::before {
  left: 130%;
}

.hero-cta-btn:hover .hero-cta-icon {
  transform: translateX(3px);
  color: color-mix(in srgb, var(--accent) 40%, #fff 60%);
}

.hero-cta-btn:active {
  transform: translateY(-2px);
}

.hero-cta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Portfolio — section header
   ========================================================================== */

.portfolio {
  position: relative;
  background: var(--ink);
  padding: 140px 0 160px;
}

.portfolio-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}

.portfolio-header {
  text-align: center;
  margin: 0 0 64px;
}

.portfolio-title-img {
  display: block;
  margin: 0 auto;
  width: clamp(220px, 24vw, 320px);
  height: auto;
  /* the file's decorative swash above the "P" throws off its own bounding
     box — the readable word sits ~6.5% right of center, so nudge it back */
  transform: translateX(-6.5%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.portfolio-subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  color: #a8a8a5;
}

/* ==========================================================================
   Portfolio — slider
   ========================================================================== */

.portfolio-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 30vw, 460px);
  /* extra clipping headroom so the hover lift+scale on .portfolio-card
     doesn't get cut off by this viewport's own overflow:hidden edge */
  padding: 32px 18px;
}

.portfolio-track {
  --visible: 3;
  --gap: 28px;
  display: flex;
  gap: var(--gap);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

.portfolio-track:active {
  cursor: grabbing;
}

.portfolio-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  border-radius: 20px;
  will-change: transform;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 10px 24px -20px rgba(0, 0, 0, 0.34);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/*
 * The corner-clip lives on this separate, never-transformed wrapper.
 * Chrome/Safari can fail to keep a rounded overflow:hidden clip intact
 * on an element that ALSO animates its own transform — corners flash
 * square mid-hover. Splitting "moves" (.portfolio-card) and "clips"
 * (this element) sidesteps that compositing bug entirely.
 */
.portfolio-card-clip {
  display: block;
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-card-clip::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(47, 78, 184, 0.25),
    rgba(112, 145, 255, 1),
    rgba(18, 42, 120, 0.95),
    rgba(47, 78, 184, 0.25)
  );
  background-size: 250% 250%;
  opacity: 0;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes portfolio-border-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.portfolio-card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  cursor: pointer;
}

.portfolio-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.portfolio-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f5f2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.portfolio-card:hover {
  z-index: 2;
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.28),
    0 20px 42px -28px rgba(0, 0, 0, 0.42);
}

.portfolio-card:hover .portfolio-card-clip::after,
.portfolio-card:focus-within .portfolio-card-clip::after {
  opacity: 1;
  animation: portfolio-border-flow 2.2s linear infinite alternate;
}

.portfolio-card:hover .portfolio-card-caption,
.portfolio-card-link:focus-visible .portfolio-card-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Portfolio — controls
   ========================================================================== */

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.portfolio-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-arrow svg {
  width: 16px;
  height: 16px;
}

.portfolio-arrow:hover {
  background: rgba(47, 78, 184, 0.14);
  border-color: rgba(47, 78, 184, 0.35);
  transform: translateY(-2px);
}

.portfolio-arrow:active {
  transform: translateY(0);
}

.portfolio-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.portfolio-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  max-width: 340px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.portfolio-dot {
  width: 10px;
  height: 2px;
  padding: 0;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.3s ease, width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.portfolio-dot.is-active {
  background: #f5f5f2;
  width: 22px;
}

.portfolio-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Services — 3 cards under portfolio
   ========================================================================== */

.services {
  position: relative;
  background: var(--ink);
  padding: 0 0 140px;
}

.services-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  scroll-margin-top: 130px;
}

.services-ticker {
  margin: 56px 0 0;
  text-align: center;
  font-size: clamp(20px, 2vw + 12px, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.services-ticker-word {
  display: inline-block;
  color: color-mix(in srgb, var(--accent) 55%, #e8e8e6 45%);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-ticker-word.is-swapping {
  opacity: 0;
  transform: translateY(-10px);
}

.service-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 14px 32px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(120, 150, 255, 0.35),
    rgba(47, 78, 184, 0.12) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

.service-card:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Service details, process and FAQ
   ========================================================================== */

.services-details article > p {
  color: #737573;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.services-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 26px;
}

.services-details article {
  padding: 26px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.services-details article > p { margin: 0 0 18px; }
.services-details h3 { margin: 0 0 12px; color: #f1f1ee; font-size: 20px; font-weight: 570; }
.services-details article > span { display: block; min-height: 48px; color: #999a97; font-size: 14px; line-height: 1.6; }
.services-details ul { margin: 22px 0 20px; padding: 0; list-style: none; }
.services-details li { position: relative; margin-top: 9px; padding-left: 16px; color: #c4c5c1; font-size: 13px; }
.services-details li::before { content: ""; position: absolute; top: 0.63em; left: 0; width: 5px; height: 1px; background: #607bd8; }
.services-details small { color: #70716e; font-size: 11px; }

.process-section,
.faq-section {
  max-width: 1200px;
  width: calc(100% - 64px);
  margin: 0 auto;
  padding: 130px 0;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(560px, 1.38fr);
  gap: clamp(54px, 8vw, 116px);
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}
.faq-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(560px, 1.38fr);
  gap: clamp(54px, 8vw, 116px);
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-section-heading > p,
.contact-section-heading > p {
  margin: 0 0 20px;
  color: #7890e4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-section-heading h2,
.contact-section-heading h2 {
  margin: 0;
  color: #f2f2ef;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 560;
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.process-section .content-section-heading {
  align-self: start;
  position: sticky;
  top: 120px;
}

.process-section .content-section-heading::after {
  content: "Un proces clar înseamnă mai puține surprize și decizii mai bune.";
  display: block;
  max-width: 310px;
  margin-top: 28px;
  color: #858682;
  font-size: 14px;
  line-height: 1.7;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: space-between;
  gap: 52px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #1b1c1e;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.process-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 42px;
  height: 2px;
  background: #536fcf;
}

.process-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 122, 216, 0.34);
  background: #1d1e21;
}

.process-list li > span {
  color: #626460;
  font-size: 38px;
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.05em;
}

.process-list h3 {
  margin: 0 0 12px;
  color: #ededeb;
  font-size: 21px;
  font-weight: 570;
  letter-spacing: -0.02em;
}

.process-list p {
  margin: 0;
  color: #91928f;
  font-size: 14px;
  line-height: 1.7;
}

.faq-section .content-section-heading {
  align-self: start;
  position: sticky;
  top: 120px;
}

.faq-section .content-section-heading::after {
  content: "Răspunsuri directe înainte să începem o colaborare.";
  display: block;
  max-width: 300px;
  margin-top: 28px;
  color: #858682;
  font-size: 14px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  counter-reset: faq-item;
}

.faq-list details {
  counter-increment: faq-item;
  min-height: 132px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #1b1c1e;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(95, 122, 216, 0.34);
  background: #1d1e21;
}

.faq-list details:hover { transform: translateY(-3px); }

.faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 130px;
  padding: 22px 0;
  color: #e5e5e2;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::before {
  content: counter(faq-item, decimal-leading-zero);
  color: #626460;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: #7890e4; font-size: 22px; font-weight: 300; transition: transform 0.25s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details[open] summary { min-height: 96px; }
.faq-list details p { margin: -2px 12px 26px 41px; color: #92938f; font-size: 13px; line-height: 1.7; }

.contact-section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.contact-section-heading > span { display: block; max-width: 520px; margin: 18px auto 0; color: #92938f; font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.contact-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 110px 120px 70px;
}

.contact-cta-inner {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    url("assets/cta-bg2.png") center / cover no-repeat,
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075) 0%,
      rgba(255, 255, 255, 0.025) 55%,
      rgba(255, 255, 255, 0.045) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px -34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.contact-cta-inner::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url("assets/CTA-background.png") center / cover no-repeat;
  pointer-events: none;
}

.contact-cta-inner:hover::before {
  -webkit-mask-image: radial-gradient(
    circle 190px at var(--cta-mouse-x, 50%) var(--cta-mouse-y, 50%),
    transparent 0,
    transparent 48%,
    rgba(0, 0, 0, 0.45) 72%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle 190px at var(--cta-mouse-x, 50%) var(--cta-mouse-y, 50%),
    transparent 0,
    transparent 48%,
    rgba(0, 0, 0, 0.45) 72%,
    #000 100%
  );
}

.contact-quick-actions.hero-cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(40px, 7vw, 96px);
  width: min(calc(100% - 48px), 620px);
  margin: 0;
  opacity: 1;
  transform: translateX(-50%);
}

.contact-cta-eyebrow {
  margin: 0 0 22px;
  color: #a8a8a5;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-cta h2 {
  margin: 0;
  color: #f5f5f2;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-cta-copy {
  max-width: 520px;
  margin: 28px auto 0;
  color: #a8a8a5;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.contact-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.contact-cta-primary,
.contact-cta-secondary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

.contact-cta-primary {
  color: #161719;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #f1f1ee;
  box-shadow: 0 16px 36px -20px rgba(255, 255, 255, 0.4);
}

.contact-cta-primary span {
  font-size: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-cta-secondary {
  color: #d8d8d5;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.contact-cta-primary:hover,
.contact-cta-secondary:hover {
  transform: translateY(-3px);
}

.contact-cta-primary:hover span {
  transform: translateX(4px);
}

.contact-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
}

.contact-cta-primary:focus-visible,
.contact-cta-secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.site-footer {
  background: var(--ink);
  padding: 64px max(32px, calc((100vw - 1200px) / 2)) 26px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: center;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
}

.site-footer-links,
.footer-nav,
.footer-contact,
.footer-anpc-links {
  display: flex;
  align-items: center;
}

.site-footer-links {
  justify-content: flex-end;
  gap: 30px;
  min-width: 0;
}

.footer-nav,
.footer-contact {
  gap: 22px;
}

.footer-anpc-links {
  gap: 22px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-nav a,
.footer-contact a {
  color: #a8a8a5;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #f5f5f2;
}

.site-footer-bottom {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer-bottom p {
  margin: 0;
  color: #5f605e;
  font-size: 12px;
}

.site-footer-bottom > a {
  display: inline-block;
  margin-top: 8px;
  color: #777873;
  font-size: 12px;
  transition: color 0.25s ease;
}

.site-footer-bottom > a:hover {
  color: #f5f5f2;
}

.site-footer-bottom > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  .header-inner {
    padding: 18px 32px;
  }

  .hero-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .portfolio-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .services-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .contact-cta {
    padding-right: 32px;
    padding-left: 32px;
  }

  .contact-cta-inner {
    aspect-ratio: 4 / 5;
    min-height: 0;
    background: url("assets/cta-mobile.png?v=2") center / cover no-repeat;
  }

  .contact-cta-inner::before {
    display: none;
  }

  .process-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 100px 0;
  }

  .process-section .content-section-heading { position: static; }
  .faq-section .content-section-heading { position: static; }
}

@media (max-width: 980px) {
  .hero-inner {
    min-height: auto;
    padding-top: clamp(130px, 26vw, 170px);
    padding-bottom: 80px;
  }

  .hero-subtitle {
    max-width: 440px;
  }

  .portfolio-track {
    --visible: 1.6;
  }

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

  .process-section {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .process-section .content-section-heading { position: static; }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .faq-section .content-section-heading { position: static; }
}

@media (max-width: 860px) {
  .hero-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-btn:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 8px);
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .site-footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .hero-cta-label-desktop {
    display: none;
  }

  .hero-cta-label-mobile {
    display: inline;
  }

  .hero-headline-img {
    width: calc(100vw - 64px);
  }

  .portfolio {
    padding: 100px 0 110px;
  }

  .portfolio-header {
    margin-bottom: 44px;
  }

  .portfolio-slider {
    width: calc(100% + 32px);
    min-height: 0;
    margin-right: -32px;
    padding: 8px 32px 18px 0;
  }

  .portfolio-track {
    --visible: 1.12;
    --gap: 14px;
  }

  .portfolio-card {
    border-radius: 24px;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.22),
      0 18px 36px -24px rgba(0, 0, 0, 0.7);
  }

  .portfolio-card:hover {
    transform: none;
  }

  .portfolio-card-caption {
    padding: 44px 18px 16px;
    font-size: 15px;
    opacity: 1;
    transform: none;
  }

  .portfolio-controls {
    gap: 14px;
    margin-top: 18px;
  }

  .portfolio-arrow {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.07);
  }

  .portfolio-dots {
    min-width: 86px;
    height: 46px;
    padding: 0 18px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
  }

  .portfolio-dots::before {
    content: attr(data-current) " / " attr(data-total);
  }

  .portfolio-dot {
    display: none;
  }

  .services {
    padding-bottom: 100px;
  }

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

  .services-details { grid-template-columns: 1fr; gap: 38px; }
  .services-details article > span { min-height: 0; }

  .process-section,
  .faq-section {
    width: calc(100% - 56px);
    padding: 82px 0;
  }

  .content-section-heading h2 { font-size: clamp(31px, 10vw, 42px); }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: 250px; gap: 42px; padding: 24px; }
  .faq-list { grid-template-columns: 1fr; }
  .faq-list details { min-height: 0; }
  .faq-list summary { min-height: 108px; }
  .faq-list summary { font-size: 15px; line-height: 1.4; }

  .contact-cta {
    padding: 82px 32px 48px;
  }

  .contact-cta-inner {
    padding: 0;
    border-radius: 22px;
  }

  .contact-quick-actions.hero-cta {
    bottom: 26px;
    width: calc(100% - 32px);
  }

  .contact-cta h2 br {
    display: none;
  }

  .contact-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-cta-primary,
  .contact-cta-secondary {
    width: 100%;
  }

  .site-footer {
    padding: 54px 28px 24px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-nav,
  .footer-contact,
  .footer-anpc-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-anpc-links {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .site-footer-bottom {
    margin-top: 44px;
  }

  .services-ticker {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .contact-cta-inner {
    min-height: 0;
  }

  .hero-cta {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 14px;
  }

  .hero-cta-btn:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

  .hero-cta-btn {
    width: 100%;
  }

  .contact-quick-actions.hero-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-quick-actions .hero-cta-btn:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 7px);
  }

  .hero-tagline {
    font-size: clamp(19px, 6vw, 24px);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .header-inner,
  .nav-link,
  .nav-cta,
  .nav-link-mobile,
  .nav-cta-mobile,
  .nav-cta::before,
  .nav-cta-mobile::before,
  .nav-cta-arrow,
  .menu-toggle-bar,
  .nav-mobile,
  .hero-headline-img,
  .hero-tagline,
  .hero-subtitle,
  .hero-cta,
  .hero-cta-btn,
  .hero-cta-btn::before,
  .hero-cta-icon,
  .contact-cta-primary,
  .contact-cta-primary span,
  .contact-cta-secondary,
  .portfolio-track,
  .portfolio-card,
  .portfolio-card-clip::after,
  .portfolio-card img,
  .portfolio-card-caption,
  .portfolio-arrow,
  .portfolio-dot,
  .service-card,
  .service-card img,
  .service-card::before,
  .services-ticker-word {
    transition: none !important;
    animation: none !important;
  }

  .site-header {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }

  .hero-headline-img,
  .hero-tagline,
  .hero-subtitle,
  .hero-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final cascade: redesigned process and FAQ */
.process-section,.faq-section{position:relative;padding-top:150px;padding-bottom:150px;grid-template-columns:minmax(280px,.72fr) minmax(540px,1.28fr);gap:clamp(64px,9vw,132px)}
.process-section::before{content:"";position:absolute;top:0;right:0;width:min(46vw,560px);height:1px;background:linear-gradient(90deg,transparent,rgba(120,144,228,.5))}
.process-section .content-section-heading::after{content:"Un parcurs transparent, cu feedback la fiecare etapă și fără surprize pe drum.";margin-top:30px}
.process-list{position:relative;display:flex;grid-template-columns:none;flex-direction:column;gap:0}
.process-list::before{content:"";position:absolute;top:31px;bottom:31px;left:31px;width:1px;background:linear-gradient(180deg,#7890e4,rgba(120,144,228,.12))}
.process-list li{display:grid;grid-template-columns:64px 1fr;min-height:0;gap:26px;overflow:visible;padding:0 0 54px;border:0;border-radius:0;background:transparent}
.process-list li::before{display:none}.process-list li:last-child{padding-bottom:0}.process-list li:hover{transform:none;border-color:transparent;background:transparent}
.process-list li>span{position:relative;z-index:1;display:grid;width:64px;height:64px;place-items:center;border:1px solid rgba(120,144,228,.42);border-radius:50%;background:var(--ink);color:#91a5eb;font-size:11px;font-weight:700;letter-spacing:.1em;transition:background .3s ease,color .3s ease,transform .3s ease}
.process-list li:hover>span{transform:scale(1.06);background:#7890e4;color:#111214}.process-list li>div{padding:3px 0 52px;border-bottom:1px solid rgba(255,255,255,.1)}.process-list li:last-child>div{padding-bottom:0;border-bottom:0}.process-list h3{margin-bottom:13px;font-size:clamp(22px,2.3vw,30px)}.process-list p{max-width:570px}
.faq-section{background:#f0f0eb;box-shadow:0 0 0 100vmax #f0f0eb;border-top:0}.faq-section .content-section-heading>p{color:#536fcf}.faq-section .content-section-heading h2{color:#17181a}.faq-section .content-section-heading::after{content:"Tot ce merită clarificat înainte să pornim. Pentru restul, suntem la un mesaj distanță.";color:#686a67}
.faq-list{display:block;border-top:1px solid rgba(23,24,26,.22)}.faq-list details{min-height:0;padding:0;border:0;border-bottom:1px solid rgba(23,24,26,.22);border-radius:0;background:transparent;transition:background .25s ease}.faq-list details:hover,.faq-list details[open]{transform:none;border-color:rgba(23,24,26,.22);background:rgba(255,255,255,.38)}
.faq-list summary{grid-template-columns:38px 1fr 42px;gap:18px;min-height:102px;padding:22px 18px;color:#202124;font-size:clamp(16px,1.65vw,20px);font-weight:540}.faq-list summary::before{color:#747773}.faq-list summary span{display:grid;width:42px;height:42px;place-items:center;border:1px solid rgba(23,24,26,.2);border-radius:50%;color:#536fcf}.faq-list details[open] summary{min-height:102px}.faq-list details[open] summary span{background:#17181a;color:#f0f0eb}.faq-list details p{max-width:590px;margin:-5px 60px 32px 74px;color:#626460;font-size:14px;line-height:1.75}
@media(max-width:1100px){.process-section,.faq-section{grid-template-columns:1fr;gap:58px;padding-top:110px;padding-bottom:110px}.process-section .content-section-heading,.faq-section .content-section-heading{position:static}}
@media(max-width:640px){.process-section,.faq-section{width:calc(100% - 48px);gap:46px;padding-top:82px;padding-bottom:82px}.process-list::before{left:23px}.process-list li{grid-template-columns:48px 1fr;gap:18px;padding-bottom:42px}.process-list li>span{width:48px;height:48px}.process-list li>div{padding-top:0;padding-bottom:40px}.process-list h3{font-size:21px}.faq-list summary{grid-template-columns:26px 1fr 38px;gap:10px;min-height:92px;padding:18px 4px;font-size:15px}.faq-list summary span{width:38px;height:38px}.faq-list details[open] summary{min-height:92px}.faq-list details p{margin:-2px 44px 26px 40px;font-size:13px}}

/* Keep the redesigned FAQ inside the site's dark visual system. */
.faq-section {
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.faq-section .content-section-heading > p { color: #7890e4; }
.faq-section .content-section-heading h2 { color: #f2f2ef; }
.faq-section .content-section-heading::after { color: #858682; }
.faq-list { border-top-color: rgba(255, 255, 255, .12); }
.faq-list details { border-bottom-color: rgba(255, 255, 255, .12); }
.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}
.faq-list summary { color: #e8e8e5; }
.faq-list summary::before { color: #686a67; }
.faq-list summary span { border-color: rgba(255, 255, 255, .14); color: #7890e4; }
.faq-list details[open] summary span { background: #7890e4; color: #121315; }
.faq-list details p { color: #92938f; }

/* Unified vertical rhythm between the remaining page sections. */
:root { --section-space: 96px; }

.hero-inner { padding-bottom: var(--section-space); }
.portfolio,
.testimonials,
.services,
.contact-cta { padding-top: var(--section-space); padding-bottom: var(--section-space); }
body > .site-footer { padding-top: var(--section-space); }

@media (max-width: 1100px) {
  :root { --section-space: 84px; }
}

@media (max-width: 640px) {
  :root { --section-space: 72px; }
}

.whatsapp-floating {
  position: fixed;
  z-index: 1000;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: #25d366;
  color: #07140c;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .34), 0 0 0 0 rgba(37, 211, 102, .25);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  animation: whatsapp-pulse 3s ease-out infinite;
}

.whatsapp-floating svg { width: 25px; height: 25px; fill: currentColor; }
.whatsapp-floating:hover { transform: translateY(-4px); background: #35df75; box-shadow: 0 18px 44px rgba(0, 0, 0, .42); }
.whatsapp-floating:active { transform: translateY(-1px) scale(.98); }
.whatsapp-floating:focus-visible { outline: 2px solid #f2f2ef; outline-offset: 4px; }

@keyframes whatsapp-pulse {
  0%, 68%, 100% { box-shadow: 0 14px 38px rgba(0, 0, 0, .34), 0 0 0 0 rgba(37, 211, 102, .25); }
  82% { box-shadow: 0 14px 38px rgba(0, 0, 0, .34), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .whatsapp-floating {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
  }
  .whatsapp-floating span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

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

/* Testimonials */
.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, calc(100% - 64px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
}

.testimonials-inner { max-width: 1200px; margin: 0 auto; padding: 0 120px; }
.testimonials-header { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.testimonials-header > p { margin: 0 0 7px; color: #7890e4; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.testimonials-header h2 { max-width: 680px; margin: 0; color: #f2f2ef; font-size: clamp(32px, 4vw, 52px); font-weight: 560; line-height: 1.07; letter-spacing: -.045em; text-align: right; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.testimonial-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: #1b1c1e;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.testimonial-card:hover { transform: translateY(-5px); border-color: rgba(120, 144, 228, .36); background: #1d1e21; }
.testimonial-card-featured { border-color: rgba(120, 144, 228, .26); background: linear-gradient(145deg, rgba(120, 144, 228, .11), #1b1c1e 58%); }
.testimonial-rating { position: relative; z-index: 1; color: #7890e4; font-size: 12px; letter-spacing: .2em; }
.testimonial-card blockquote { position: relative; z-index: 1; margin: 38px 0 42px; color: #d8d8d4; font-size: 16px; line-height: 1.75; }
.testimonial-card footer { position: relative; z-index: 1; display: flex; align-items: center; }
.testimonial-card footer div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.testimonial-card footer strong { color: #eeeeeb; font-size: 13px; font-weight: 620; }
.testimonial-card footer small { color: #747572; font-size: 11px; }

@media (max-width: 1100px) {
  .testimonials-inner { padding-right: 32px; padding-left: 32px; }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .testimonials-inner { padding-right: 28px; padding-left: 28px; }
  .testimonials-header { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 38px; }
  .testimonials-header h2 { text-align: left; }
  .testimonials-grid { display: flex; gap: 14px; overflow-x: auto; margin-right: -28px; padding-right: 28px; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial-card { grid-column: auto; min-width: min(82vw, 330px); min-height: 310px; padding: 24px; scroll-snap-align: start; }
  .testimonial-card:hover { transform: none; }
}
