/* Lora (variable, self-hosted) — serif contemporan, elegant dar discret */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-vietnamese-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-ext-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-vietnamese-italic.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/lora-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter (variable, self-hosted) — fontul principal al site-ului */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-align: center;
}


h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  margin-top: 0.75rem;
  color: #9aa0a6;
  font-size: 0.95rem;
  line-height: 1.6;
}






.navbar {
  width: 100%;
  height: 51px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: black;
  z-index: 1000;
}

.navbar-limit {
  max-width: 1920px;
  margin: 0 auto;
  height: 51px;
}

.navbar-margin {
  position: relative;
  height: 50px;
  margin-left: 50px;
  width: calc(1920px - 100px);
}

/* linia de sub bară: se umple de la stânga la dreapta la încărcare */
.navbar-margin::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #e5e5e5;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.js-anim .navbar-margin::after,
.navbar-margin.prep-line::after {
  transform: scaleX(0);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  text-decoration: none;
}

.brand-flag {
  display: block;
  height: 34px;
  width: auto;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}



.section {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.section-limit{
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.section-margin{
  margin-left: 50px;
  margin-right: 50px;
}


#section-1 {
  width: 100%;
  margin-top: 51px;
  background-color: black;
}

.matrix {
  position: relative;
  height: 250px;
  background-color: black;
  width: 100%;
  overflow: hidden;
}

.matrix-canvas {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: end;
  padding: 20px 0 20px;
  text-align: left;
}

.hero-eyebrow {
  margin-top: 0;
  color: #9aa0a6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 1.25rem;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: #ffffff;
  font-size: clamp(1.75rem, 2.7vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero-title strong {
  font-weight: 600;
}

.hero-title-top {
  display: block;
}

.hero-title-bottom {
  display: block;
  padding-left: 2em;
  font-style: italic;
  color: #d3d6db;
}

.hero-quote {
  text-align: left;
}

.hero-quote-text {
  margin-top: 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #e8eaed;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 1.5rem;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #cfd2d6;
  transform: translateY(-1px);
}

#section-2 {
  width: 100%;
  background-color: black;
  padding: 20px 0 20px;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: center;
  text-align: left;
}

.cta-sub {
  margin-top: 0;
  max-width: 560px;
  color: #b6bac0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.cta-actions a {
  min-width: 240px;
  text-align: center;
}

.btn-secondary {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* reflexie care traversează butonul la hover */
.btn-primary::after,
.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  transform: translateX(-140%) skewX(-18deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-primary::after {
  background: linear-gradient(105deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.btn-secondary::after {
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  transform: translateX(240%) skewX(-18deg);
}

/* ============================================================
   Secțiunea Servicii (#dichvu) — ancoră folosită de blog și de
   paginile de orașe (/#dichvu), de aceea id-ul nu e "section-3".
   Zonă deschisă: fundal alb, panouri gri deschis.
   ============================================================ */

#dichvu {
  width: 100%;
  background-color: #ffffff;
  padding: 40px 0 80px;
  scroll-margin-top: 61px; /* bara fixă de navigare să nu acopere titlul la ancoră */
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: end;
  text-align: left;
}

.services-eyebrow {
  margin-top: 0;
  color: #6b6f75;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.services-title {
  margin-top: 1.25rem;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: #111111;
  font-size: clamp(1.75rem, 2.7vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.services-title strong {
  font-weight: 600;
}

.services-title-top {
  display: block;
}

.services-title-bottom {
  display: block;
  padding-left: 2em;
  font-style: italic;
  color: #4b4f55;
}

.services-intro {
  margin-top: 0;
  max-width: 560px;
  color: #5f6368;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* carduri pe un singur rând, care se derulează orizontal cu o bară dedesubt */
.services-list {
  display: flex;
  gap: 16px;
  margin-top: 2.5rem;
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;              /* Firefox: fără bară vizibilă */
  -ms-overflow-style: none;
}

.services-list.is-dragging {
  cursor: grabbing;
}

/* bară ascunsă și în Chrome/Safari/Edge (derularea se face prin tragere) */
.services-list::-webkit-scrollbar {
  display: none;
}

.service-panel {
  position: relative;
  flex: 0 0 clamp(280px, 32vw, 480px);
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #111111;
  text-align: left;
}

/* voal întunecat peste poză, ca titlul și textul să rămână lizibile */
.service-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.6) 62%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
}

/* poza umple tot cardul; gri până la hover, apoi color */
.service-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #e5e5e5;
}

.service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  -webkit-user-drag: none;
  transition: filter 0.4s ease, transform 0.6s ease;
}

.service-panel:hover .service-media img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.service-panel-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end; /* textul stă lipit de baza cardului */
  padding: 1.4rem clamp(1.25rem, 2vw, 2rem) clamp(1.5rem, 2vw, 2.25rem);
}

.service-num {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* titlul e singurul text vizibil la început */
.service-name {
  margin-top: 1.1rem;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: #ffffff;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.service-desc {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.06s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
}

.service-cta {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: background-color 0.2s ease, color 0.2s ease,
              opacity 0.35s ease 0.12s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.service-cta:hover {
  background-color: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* la hover iese la iveală tot textul cardului */
.service-panel:hover .service-num,
.service-panel:hover .service-desc,
.service-panel:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
}

/* pe touch nu există hover: textul rămâne vizibil permanent */
@media (hover: none) {
  .service-num,
  .service-desc,
  .service-cta {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 20px 0 20px;
  }

  .hero-title-bottom {
    padding-left: 1.2em;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-title-bottom {
    padding-left: 1.2em;
  }

  .services-list {
    margin-top: 1.75rem;
    gap: 12px;
  }

  .service-panel-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }
}

/* ============================================================
   Animări de intrare (pregătite și pornite de animations.js)
   ============================================================ */

/* Cât timp JS-ul pregătește animațiile, conținutul principal e ascuns.
   Clasa js-anim e scoasă imediat după pregătire, iar dacă scriptul nu
   rulează, fallback-ul inline din index.html o scoate după 2,5 s. */
.js-anim .brand,
.js-anim .hero-eyebrow,
.js-anim .hero-title,
.js-anim .hero-quote-text,
.js-anim .matrix,
.js-anim .cta-sub,
.js-anim .cta-actions,
.js-anim .services-eyebrow,
.js-anim .services-title,
.js-anim .services-intro,
.js-anim .service-panel {
  opacity: 0;
}

/* Cuvinte animate: fiecare stă într-o mască din care urcă de jos în sus */
.anim-word {
  display: inline-block;
}

/* obligatoriu inline-block: pe elemente inline translateY(%) nu se aplică */
.anim-word-inner {
  display: inline-block;
}

.anim-word--mask {
  overflow: hidden;
  padding: 0.18em 0 0.3em;
  margin: -0.18em 0 -0.3em;
}

/* Wrapper folosit pentru a anima butoanele fără a le strica hover-ul */
.anim-wrap {
  display: inline-block;
}

.anim-word-inner,
.anim-wrap,
.anim-block {
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* starea de așteptare a cuvintelor (scoasă rând pe rând de JS):
   cuvântul stă ascuns sub mască și urcă de jos în sus */
.anim-word-inner.prep-mask {
  transform: translateY(140%) rotate(1.5deg);
}

.anim-wrap.prep-rise,
.anim-block.prep-rise {
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .brand,
  .js-anim .hero-eyebrow,
  .js-anim .hero-title,
  .js-anim .hero-quote-text,
  .js-anim .matrix,
  .js-anim .cta-sub,
  .js-anim .cta-actions,
  .js-anim .services-eyebrow,
  .js-anim .services-title,
  .js-anim .services-intro,
  .js-anim .service-panel {
    opacity: 1;
  }

  .anim-word-inner,
  .anim-wrap,
  .anim-block,
  .navbar-margin::after,
  .btn-primary::after,
  .btn-secondary::after {
    transition: none;
  }
}
