/* =========================================================
   BTC Group — foaie de stil
   Culori preluate din logo: albastru #004AAD, negru #000
   ========================================================= */

/* Font Manrope, găzduit local (latin + latin-ext pentru ă, â, î, ș, ț) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../assets/fonts/manrope-latin-ext-wght-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../assets/fonts/manrope-latin-wght-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;
}

:root {
  /* Brand */
  --blue: #004AAD;
  --blue-700: #003B8A;
  --blue-800: #002C68;
  --blue-50: #EEF3FB;
  --blue-100: #DCE6F6;

  /* Neutre */
  --ink: #0A0C10;
  --text: #1E232D;
  --muted: #5B6273;
  --line: #E3E6EC;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --surface: #FFFFFF;
  --accent: var(--blue);          /* albastru pentru text și detalii */
  --header-bg: rgba(255, 255, 255, .92);
  --footer-bg: #0A0C10;
  --placeholder: #9AA1B0;
  --danger: var(--danger);
  --success: var(--success);
  --fill-bg: #FFF6DA;
  --fill-text: #7A5B00;
  --fill-border: #E5C45A;
  --mark-opacity: .075;           /* floarea din fundal */

  /* Tipografie */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spațiere și formă */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(10, 12, 16, .06);
  --shadow-md: 0 12px 32px -12px rgba(10, 20, 45, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 8px 20px -8px rgba(0, 74, 173, .55); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 11px 18px; font-size: .9375rem; }
.btn-lg { padding: 17px 28px; font-size: 1.0625rem; }

/* ---------- Antet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}

.brand img { height: 42px; width: auto; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav ul a {
  position: relative; text-decoration: none;
  font-weight: 600; font-size: .96875rem; color: var(--text);
  padding: 6px 0;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav ul a:hover::after,
.main-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-mail {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; color: var(--ink); font-size: .96875rem;
}
.header-mail svg { color: var(--accent); }
.header-mail:hover span { text-decoration: underline; text-underline-offset: 3px; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang-switch a {
  text-decoration: none; font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; color: var(--muted);
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.lang-switch a:not([aria-current="true"]):hover { color: var(--ink); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px;
  background: var(--ink); border-radius: 2px; content: "";
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; left: 0; margin-left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; margin-left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Prima impresie ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}

/* Floarea din logo, discret, ca semn de fundal */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -260px; top: -220px;
  background: url("../assets/favicon.svg") center / contain no-repeat;
  opacity: var(--mark-opacity);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 .accent { color: var(--accent); white-space: nowrap; }

.lead {
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-facts li { padding-right: 16px; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts strong { display: block; color: var(--ink); font-size: .96875rem; line-height: 1.3; }
.hero-facts span { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }

.hero-media { position: relative; }

.hero-photo {
  margin: 0;
  aspect-ratio: 6 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  position: absolute; left: -32px; bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 20px 16px 16px;
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 24px);
}
.hero-card-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-50); display: grid; place-items: center;
}
.hero-card strong { display: block; color: var(--ink); font-size: .96875rem; line-height: 1.3; }
.hero-card span { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }

/* Direcții de activitate */
.directions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.directions li + li { border-left: 1px solid var(--line); }
.directions a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 28px 26px 30px;
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.directions a:hover { background: var(--blue-50); }
.directions .num {
  font-size: .8125rem; font-weight: 800; color: var(--accent); letter-spacing: .08em;
  margin-bottom: 6px;
}
.directions strong { color: var(--ink); font-size: 1.0625rem; line-height: 1.3; }
.directions span:last-child { color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* ---------- Animații discrete ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tabletă ---------- */
@media (max-width: 1240px) {
  .header-mail span { display: none; }
  .header-mail {
    width: 44px; height: 44px; justify-content: center;
    border: 1px solid var(--line); border-radius: 12px;
  }
  .main-nav ul { gap: 22px; }
}

@media (max-width: 999px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block; padding: 14px 0; font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav ul a::after { display: none; }
  .nav-mobile-extra {
    display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px;
  }
  .nav-mail { text-align: center; font-weight: 700; color: var(--ink); text-decoration: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 720px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .hero-card { left: 16px; bottom: 16px; }

  .directions a { padding: 24px 22px 26px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 599px) {
  body { font-size: 1rem; }
  .header-inner { gap: 12px; }
  .brand img { height: 36px; }
  .header-actions { gap: 10px; margin-left: auto; }

  .hero::before { width: 460px; height: 460px; right: -220px; top: -160px; }
  .eyebrow { font-size: .75rem; letter-spacing: .05em; margin-bottom: 18px; align-items: flex-start; line-height: 1.5; }
  .eyebrow img { margin-top: 1px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .hero-facts { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; padding-top: 22px; }
  .hero-facts li, .hero-facts li + li { padding: 0; border: 0; }
  .hero-facts li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .hero-facts span { margin-top: 0; }

  .hero-photo { aspect-ratio: 4 / 3.4; }
  .hero-card { position: relative; left: auto; bottom: auto; margin: -28px 12px 0; max-width: none; }

  .directions { grid-template-columns: 1fr; }
  .directions li + li { border-left: 0; border-top: 1px solid var(--line); }
  .directions a { padding: 22px 20px; }
}

/* =========================================================
   Secțiuni de conținut
   ========================================================= */

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-soft { background: var(--bg-soft); }

.kicker {
  font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  text-wrap: balance;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head > p:last-child:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }

.section-head-row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.section-head-row > p:last-child:not(.kicker) { max-width: 420px; margin-top: 0; font-size: 1rem; }

.photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Despre noi ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 104px); align-items: center;
}
.photo-tall { aspect-ratio: 4 / 5; }

.prose { margin-top: 26px; color: var(--muted); font-size: 1.125rem; }
.prose p + p { margin-top: 16px; }

.values { margin-top: 36px; display: grid; border-top: 1px solid var(--line); }
.values li {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.values strong { color: var(--ink); font-size: 1.0625rem; }
.values span { color: var(--muted); }

.process {
  margin-top: clamp(72px, 9vw, 112px);
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--blue-50);
}
.process-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.process-head h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 800; }
.process-head p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 8px; position: relative; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .9375rem;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: 48px; right: 0; height: 1.5px;
  background: var(--blue-100);
}
.steps strong { color: var(--ink); font-size: 1rem; line-height: 1.35; }
.steps span:last-child { color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* ---------- Servicii ---------- */
.services { display: grid; gap: clamp(56px, 8vw, 104px); }

.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px); align-items: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-flip .service-photo { order: 2; }
.service-photo { aspect-ratio: 5 / 4; }

.service-num { display: block; font-size: .875rem; font-weight: 800; color: var(--accent); letter-spacing: .08em; margin-bottom: 12px; }
.service h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 800; letter-spacing: -0.025em; }
.service-body > p { margin-top: 18px; color: var(--muted); }

.checklist {
  margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
}
.checklist li { position: relative; padding-left: 28px; color: var(--text); font-size: .96875rem; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23004AAD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.service-body > .service-benefit {
  margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--blue);
  background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text); font-size: .96875rem;
}
.service-benefit strong { color: var(--ink); }

.inline-cta {
  margin-top: clamp(64px, 8vw, 96px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.inline-cta p { color: var(--muted); font-size: 1.0625rem; }
.inline-cta strong { color: var(--ink); }

/* ---------- De ce BTC Group ---------- */
.section-dark { background: var(--blue-800); color: rgba(255, 255, 255, .78); overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -180px; bottom: -200px;
  background: url("../assets/favicon.svg") center / contain no-repeat;
  opacity: .1; filter: brightness(0) invert(1);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: #9DBBEA; }

.reasons {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.reasons li { padding: 36px 32px 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.reasons li:nth-child(3n+1) { padding-left: 0; }
.reasons li:nth-child(3n) { padding-right: 0; }
.reasons li:not(:nth-child(3n+1)) { border-left: 1px solid rgba(255, 255, 255, .14); }
.reasons svg { color: #9DBBEA; margin-bottom: 20px; }
.reasons h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.reasons p { margin-top: 10px; font-size: .96875rem; line-height: 1.6; }

/* ---------- Proiecte ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project { display: flex; flex-direction: column; }
.project-photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project-photo img { transform: scale(1.03); }
.project-photo.is-empty {
  display: grid; place-items: center; align-content: center; gap: 14px;
  border: 1.5px dashed var(--blue-100);
  background: var(--blue-50);
}
.project-photo.is-empty::before {
  content: ""; width: 48px; height: 48px; opacity: .35;
  background: url("../assets/favicon.svg") center / contain no-repeat;
}
.project-body { padding-top: 20px; }
.project-meta { font-size: .8125rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.project h3 { margin-top: 8px; font-size: 1.1875rem; font-weight: 700; }
.project-body > p:last-child { margin-top: 8px; color: var(--muted); font-size: .96875rem; }

/* Câmpuri de completat (marcaj vizibil pentru informațiile lipsă) */
.fill {
  display: inline; padding: 1px 6px; border-radius: 6px;
  background: var(--fill-bg); color: var(--fill-text); border: 1px dashed var(--fill-border);
  font-weight: 600; font-size: .9em; line-height: 1.9; letter-spacing: 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Testimoniale ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.testimonial {
  margin: 0; padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.quote-mark { color: var(--blue-100); margin-bottom: 20px; }
.testimonial blockquote { margin: 0; font-size: 1.125rem; color: var(--ink); line-height: 1.6; flex: 1; }
.testimonial figcaption { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption > span { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px); align-items: start;
}
.contact-lead { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 44ch; }

.contact-list { margin-top: 40px; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--blue-50); color: var(--accent);
}
.contact-label { display: block; font-size: .8125rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.contact-list a, .contact-list .contact-value {
  display: block; font-size: 1.125rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.contact-list a:hover { color: var(--accent); }

.form-card {
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235B6273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 74, 173, .18);
}
.field [aria-invalid="true"] { border-color: var(--danger); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.consent.is-invalid span { color: var(--danger); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; }

.form-status { font-size: .9375rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.form-note { font-size: .8125rem; color: var(--muted); }

/* ---------- Subsol ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .66); padding-top: clamp(56px, 7vw, 80px); font-size: .9375rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .btn-primary { color: #fff; }

.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 36ch; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-nav ul, .footer-contact ul { display: grid; gap: 10px; }
.footer-contact .btn { margin-top: 22px; }

.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  padding-block: 26px 32px; font-size: .8125rem; color: rgba(255, 255, 255, .5);
}

/* ---------- Buton fix pe telefon ---------- */
.mobile-cta { display: none; }

/* ---------- Tabletă ---------- */
@media (max-width: 999px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 640px; }
  .photo-tall { aspect-ratio: 16 / 10; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .steps li::after { display: none; }
  .process-head { flex-direction: column; gap: 6px; }

  .service, .service-flip { grid-template-columns: 1fr; }
  .service-flip .service-photo { order: 0; }
  .service-photo { aspect-ratio: 16 / 10; }

  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons li, .reasons li:nth-child(n) { padding: 32px 0 36px; border-left: 0; }
  .reasons li:nth-child(2n+1) { padding-right: 28px; }
  .reasons li:nth-child(2n) { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }

  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Telefon ---------- */
@media (max-width: 599px) {
  .values li { grid-template-columns: 1fr; gap: 4px; }
  .process { padding: 28px 22px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; row-gap: 2px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }

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

  .reasons { grid-template-columns: 1fr; }
  .reasons li, .reasons li:nth-child(n) { padding: 28px 0; border-left: 0; }

  .projects, .testimonials { grid-template-columns: 1fr; }
  .testimonial { padding: 28px 24px; }

  .field-row { grid-template-columns: 1fr; }
  .inline-cta { padding: 24px; }
  .inline-cta .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-legal { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }

  .mobile-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    height: 54px; border-radius: 999px;
    background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 28px -10px rgba(0, 44, 104, .6);
    transform: translateY(120%); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .mobile-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
}

/* =========================================================
   Temă întunecată
   Se activează prin data-theme="dark" pe <html> (setat din script,
   după preferința salvată sau setarea sistemului).
   ========================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1018;
  --bg-soft: #111723;
  --surface: #151C29;
  --ink: #F2F4F8;
  --text: #D0D6E0;
  --muted: #98A1B2;
  --line: #253043;
  --accent: #7FA9F0;
  --blue-700: #0B5BCB;
  --blue-50: #142038;
  --blue-100: #20355C;
  --header-bg: rgba(11, 16, 24, .86);
  --footer-bg: #070A10;
  --placeholder: #6B7488;
  --danger: #FF8A8A;
  --success: #6EDB98;
  --fill-bg: #2E2710;
  --fill-text: #F3D27A;
  --fill-border: #7A6420;
  --mark-opacity: .12;
  --shadow-md: 0 14px 36px -14px rgba(0, 0, 0, .7);
}

[data-theme="dark"] .photo img,
[data-theme="dark"] .hero-photo img { filter: brightness(.9); }

[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%237FA9F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}
[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2398A1B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme="dark"] .section-dark { background: #0A2350; }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 8px 22px -8px rgba(40, 110, 220, .7); }

/* Logo: varianta potrivită temei */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Floarea folosită ca iconiță (SVG inline, preia culoarea --accent) */
.icon-floare { flex: none; color: var(--blue); }
[data-theme="dark"] .icon-floare { color: var(--accent); }

/* Buton comutare temă */
.theme-toggle {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 999px) {
  .theme-toggle { width: 44px; height: 44px; border-radius: 12px; }
}
@media (max-width: 599px) {
  .header-mail { display: none; }
}
