/*
Theme Name: Chertes
Theme URI: https://chertes.legal/
Author: Cabinet de avocat Dan-Sebastian Chertes
Description: Temă mobile-first, fără page builder, pentru cabinetul de avocatură Dan-Sebastian Chertes. Construită pentru viteză, lizibilitate pe telefon și SEO local.
Version: 1.5.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: chertes
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Identitatea existentă, păstrată */
  --ink:          #181818;
  --ink-soft:     #4a4643;
  --ink-faint:    #7a736d;
  --accent:       #936249;
  --accent-dark:  #774c37;
  --accent-light: #b98a6f;
  --paper:        #ffffff;
  --sand:         #f7f3ef;
  --sand-deep:    #efe7df;
  --line:         #e3d9d0;
  --night:        #16150f;
  --night-soft:   #262320;

  /* Tipografie fluidă: scalează singură între 360px și 1440px */
  --f-eyebrow: 0.75rem;
  --f-small:   0.875rem;
  --f-body:    clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --f-lead:    clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --f-h3:      clamp(1.25rem, 1.13rem + 0.5vw, 1.625rem);
  --f-h2:      clamp(1.75rem, 1.45rem + 1.3vw, 3rem);
  --f-h1:      clamp(2.25rem, 1.7rem + 2.4vw, 4.25rem);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cond:  "IBM Plex Sans Condensed", var(--sans);

  /* Spațiere */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --wrap: 1200px;
  --wrap-narrow: 720px;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(24, 24, 24, 0.04), 0 8px 24px rgba(24, 24, 24, 0.06);
  --shadow-lift: 0 2px 4px rgba(24, 24, 24, 0.06), 0 16px 40px rgba(24, 24, 24, 0.1);

  /* Înălțimea barei fixe de acțiune de pe mobil */
  --actionbar-h: 4.25rem;
}

/* ==========================================================================
   2. RESET & BAZĂ
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--f-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Spațiu pentru bara fixă de pe mobil, ca să nu acopere footerul */
@media (max-width: 900px) {
  body { padding-bottom: var(--actionbar-h); }
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Dimensiune implicită pentru iconițele SVG inline.
   Fără ea, un <svg> fără width/height se întinde cât îl lasă containerul —
   de unde iconițe de 150px în bara de contact. Regulile specifice de mai
   jos o suprascriu acolo unde e nevoie de altă mărime. */
svg { width: 1.15em; height: 1.15em; flex: none; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--f-h1); }
h2 { font-size: var(--f-h2); }
h3 { font-size: var(--f-h3); line-height: 1.2; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

/* Focus vizibil — obligatoriu pentru accesibilitate */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  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;
  top: -100px; left: 1rem;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: #f0ebe5; }
.section--night h2, .section--night h3 { color: #fff; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }

/* Eticheta mică de deasupra titlurilor („ÎNTREBĂRI FRECVENTE”) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--cond);
  font-size: var(--f-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--accent);
  flex: none;
}
.section__head--center .eyebrow { justify-content: center; }

.lead {
  font-size: var(--f-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}
.section--night .lead { color: #d7cec5; }

/* ==========================================================================
   4. BUTOANE — minim 48px înălțime peste tot (cerință Google pentru mobil)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

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

/* Butonul secundar pe fundal închis. Fără asta moștenea culoarea implicită
   a textului (#181818) și devenea negru pe negru — practic invizibil. */
.section--night .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section--night .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn--block { width: 100%; }

@media (max-width: 480px) {
  .btn { width: 100%; }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   5. HEADER & NAVIGAȚIE
   ========================================================================== */

.topbar {
  display: none;
  background: var(--night);
  color: #cfc6bd;
  font-size: var(--f-small);
}
@media (min-width: 901px) {
  .topbar { display: block; }
  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 2.75rem;
  }
  .topbar a { color: #cfc6bd; text-decoration: none; }
  .topbar a:hover { color: #fff; }
  .topbar__group { display: flex; align-items: center; gap: 1.5rem; }
  .topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

/* --- SIGLA ---
   Monogramă în pastilă plus numele, scris cu tipografia temei.
   Vechea siglă era un PNG lat de 2:1, randat la 96×48 px; la mărimea aia
   liniile semnăturii coborau sub 1,5 px și dispăreau vizual, iar fiind
   imagine nu putea prelua culoarea temei. Aici semnul e SVG cu
   `currentColor`, deci se colorează singur pe fundal deschis sau închis. */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
  color: var(--accent);          /* culoarea pastilei */
  --logo-ink: #fff;              /* culoarea labirintului din pastilă */
}

.logo__mark {
  width: 2.375rem;
  height: 2.375rem;
  flex: none;
}

.logo__type { display: flex; flex-direction: column; line-height: 1; }

.logo__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo__desc {
  font-family: var(--cond);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.22rem;
}

@media (min-width: 901px) {
  .logo__mark { width: 2.75rem; height: 2.75rem; }
  .logo__name { font-size: 1.5rem; }
  .logo__desc { font-size: 0.6875rem; }
}

/* Pe fundal închis — subsol și panoul de meniu de pe telefon */
.site-logo--footer .logo__name,
.site-logo--mobile .logo__name { color: #fff; }
.site-logo--footer .logo__desc,
.site-logo--mobile .logo__desc { color: #b8afa6; }

/* Sub 380px, descriptorul ar înghesui antetul; rămâne doar numele. */
@media (max-width: 379px) {
  .site-logo--header .logo__desc { display: none; }
  .site-logo--header .logo__name { font-size: 1.25rem; }
}

/* --- Meniu desktop --- */
.nav-desktop { display: none; }
@media (min-width: 901px) {
  .nav-desktop { display: flex; align-items: center; gap: 0.35rem; }
  .nav-desktop ul { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
  .nav-desktop li { margin: 0; position: relative; }
  .nav-desktop a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius);
  }
  .nav-desktop a:hover { background: var(--sand); color: var(--accent-dark); }
  .nav-desktop .current-menu-item > a,
  .nav-desktop .current_page_item > a,
  .nav-desktop .current-menu-ancestor > a { color: var(--accent-dark); font-weight: 600; }

  /* Submeniu servicii */
  .nav-desktop .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    display: block;
    min-width: 17rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }
  .nav-desktop li:hover > .sub-menu,
  .nav-desktop li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-desktop .sub-menu li { width: 100%; }
  .nav-desktop .sub-menu a { width: 100%; font-size: 0.9375rem; }
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { padding: 0.7rem 1.15rem; min-height: 2.75rem; font-size: 0.9375rem; }
@media (max-width: 900px) { .header-actions .btn--primary { display: none; } }
@media (max-width: 480px) { .header-actions .btn { width: auto; } }

/* --- Comutator de limbă --- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch a {
  min-width: 2.75rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  font-family: var(--cond);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { background: var(--sand); color: var(--ink); }

/* --- Buton hamburger --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 901px) { .nav-toggle { display: none; } }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Panou meniu mobil --- */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
body.nav-open { overflow: hidden; }

.nav-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-mobile__close {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nav-mobile__body { padding: 1.5rem var(--gutter) 2.5rem; flex: 1; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nav-mobile a {
  display: block;
  padding: 1.15rem 0;              /* tap target confortabil, ~56px */
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.nav-mobile a:hover, .nav-mobile a:focus { color: var(--accent-light); }
.nav-mobile .sub-menu { padding-left: 0; }
.nav-mobile .sub-menu li:last-child { border-bottom: 0; }
.nav-mobile .sub-menu a {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 0.9rem 0 0.9rem 1.1rem;
  color: #ccc2b8;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.nav-mobile__contact {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.85rem;
}
.nav-mobile__contact a.plain {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: #ccc2b8;
  padding: 0.5rem 0;
}

/* ==========================================================================
   6. BARA FIXĂ DE ACȚIUNE (doar mobil) — cel mai important element de conversie
   ========================================================================== */

.action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 901px) { .action-bar { display: none; } }

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--actionbar-h);
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.action-bar a.is-primary { background: var(--accent); color: #fff; }
.action-bar svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* ==========================================================================
   7. HERO
   ========================================================================== */

/* Portretul lui Dan este o fotografie verticală. Într-un hero lat, cu
   imaginea pe tot fundalul, subiectul ajunge inevitabil în spatele textului
   și fața se pierde la decupare. De aceea, pe desktop hero-ul are două
   coloane: textul la stânga, portretul la dreapta. Pe telefon portretul nu
   se încarcă deloc — economisim din LCP exact acolo unde contează. */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 62vh, 38rem);
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

/* Textură discretă, ca fundalul să nu fie un negru plat */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 78% 40%, rgba(147, 98, 73, 0.22), transparent 65%),
    linear-gradient(160deg, #1c1a14 0%, #16150f 60%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__grid { display: grid; gap: 2rem; align-items: center; }

.hero__content { max-width: 40rem; }

/* --- Portretul ---
   Pe telefon apare primul, deasupra titlului: clientul vede cu cine are
   de-a face înainte de orice text. Ca să nu împingă titlul sub linia de
   plutire, e un cadru lat, decupat pe fața lui, nu portretul întreg.
   Pe desktop trece în coloana din dreapta, în format vertical. */

.hero__portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* ține fața în cadru la decupaj lat */
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 21, 15, 0.5) 100%);
}

@media (min-width: 560px) and (max-width: 900px) {
  .hero__portrait { aspect-ratio: 2 / 1; }
}

@media (min-width: 901px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
  }
  /* Pe desktop textul e la stânga, portretul la dreapta — deși în HTML
     portretul vine primul, pentru ordinea corectă de pe telefon. */
  .hero__content   { order: 1; }
  .hero__portrait  { order: 2; aspect-ratio: 4 / 5; }
  .hero__portrait img { object-position: center 12%; }
  .hero__portrait::after {
    background: linear-gradient(180deg, transparent 55%, rgba(22, 21, 15, 0.55) 100%);
  }
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__sub {
  font-size: var(--f-lead);
  line-height: 1.55;
  color: #ddd5cc;
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* Cele 4 drepturi de sub hero */
.rights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 600px) { .rights { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rights { grid-template-columns: repeat(4, 1fr); } }

/* Elementele trebuie să umple toată celula: dacă unul are textul pe două
   rânduri, celelalte rămâneau mai scunde și se vedea fundalul prin grilă. */
.rights > li { display: flex; }

.rights__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 1.15rem 1.25rem;
  background: rgba(22, 21, 15, 0.72);
  font-family: var(--cond);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #efe8e1;
  text-decoration: none;
}
.rights__item:hover { background: rgba(147, 98, 73, 0.85); color: #fff; }
.rights__item svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--accent-light); }
.rights__item:hover svg { color: #fff; }

/* Hero mic, pentru paginile interioare */
.page-hero {
  background: var(--night);
  color: #fff;
  padding-block: clamp(3rem, 9vw, 5.5rem);
}

/* Antet de pagină de serviciu, cu labirintul în fundal */
.page-hero--marked { position: relative; overflow: hidden; }
.page-hero--marked > .wrap { position: relative; z-index: 1; }

.page-hero__mark {
  position: absolute;
  top: 50%;
  right: clamp(-6rem, -4vw, -2rem);
  transform: translateY(-50%);
  width: clamp(16rem, 34vw, 26rem);
  color: var(--accent);
  opacity: 0.2;
  pointer-events: none;
}
/* Pe telefon labirintul ar concura cu textul; îl estompăm puternic și îl
   scoatem parțial din cadru, ca să rămână doar o textură. */
@media (max-width: 700px) {
  .page-hero__mark { right: -30%; width: 20rem; opacity: 0.12; }
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero .lead { color: #d7cec5; max-width: 44rem; }

/* ==========================================================================
   8. CARDURI GENERICE (etapele procesului penal)
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 620px)  { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px)  { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px)  { .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__media { aspect-ratio: 4 / 3; background: var(--sand-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 3vw, 1.75rem); }
.card__body h3 { margin-bottom: 0.6rem; }
.card__body p { color: var(--ink-soft); }

/* ==========================================================================
   9. BLOG — grid cu carduri perfect egale și titluri complete
   ==========================================================================
   Problema veche: imagini de înălțimi diferite împingeau meta și titlul pe
   linii diferite, iar titlurile erau tăiate la 2 rânduri, la mijlocul frazei.
   Soluția: aspect-ratio fix pe imagine + subgrid pe card, astfel încât
   eticheta, titlul și linkul să se alinieze pe aceleași linii în tot rândul.
   Titlurile NU se mai trunchiază niciodată.
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: stretch;
}
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cardurile se întind automat la înălțimea celui mai înalt din rând
   (comportamentul implicit al gridului). Tot ce e deasupra titlului are
   înălțime fixă — imaginea prin aspect-ratio, eticheta și data pe câte un
   rând — deci eticheta, data și titlul pornesc de la aceeași linie în toate
   cardurile. Exact decalajul reclamat.

   Am încercat întâi `subgrid`, care aliniază și mai strict, dar el moștenește
   distanța dintre coloane și o aplică între rândurile interne ale cardului,
   spărgând spațierea. Flexbox rezolvă problema reală fără efectul secundar. */

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* Împinge legătura „Citește articolul” la baza cardului, oricât de lung
   ar fi titlul de deasupra. */
.post-card__excerpt { flex: 1; }

.post-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.post-card__media {
  aspect-ratio: 16 / 10;        /* înălțime identică pentru toate imaginile */
  background: var(--sand-deep);
  overflow: hidden;
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 1.25rem 1.35rem 0;
  font-family: var(--cond);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card__cats a { color: inherit; text-decoration: none; }
.post-card__cats a:hover { text-decoration: underline; }

.post-card__meta {
  padding: 0.5rem 1.35rem 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.post-card__title {
  padding: 0.65rem 1.35rem 0;
  margin: 0;
  font-size: 1.3125rem;
  line-height: 1.25;
  /* Fără line-clamp: titlul se vede întotdeauna integral */
}
.post-card__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.post-card__title a:hover { color: var(--accent-dark); background-size: 100% 1px; }

.post-card__excerpt {
  padding: 0.75rem 1.35rem 0;
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.post-card__more svg { width: 0.85rem; height: 0.85rem; transition: transform 0.2s ease; }
.post-card:hover .post-card__more svg { transform: translateX(3px); }

/* Filtre pe categorii — scroll orizontal pe mobil, fără să rupă layoutul */
.cat-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.cat-filter a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--cond);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}
.cat-filter a:hover { border-color: var(--accent-light); color: var(--accent-dark); }
.cat-filter a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ==========================================================================
   10. ARTICOL INDIVIDUAL
   ========================================================================== */

.entry {
  max-width: 44rem;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.75;
}
.entry > * + * { margin-top: 1.35em; }
.entry h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem); margin-top: 2em; }
.entry h3 { margin-top: 1.75em; }
.entry img { border-radius: var(--radius); margin-block: 2rem; }
.entry blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.35em;
  line-height: 1.4;
  color: var(--ink-soft);
}
.entry ul, .entry ol { padding-left: 1.4em; }
.entry a { color: var(--accent-dark); }

.entry-header { max-width: 44rem; margin-inline: auto; }
.entry-header h1 { margin-bottom: 0.6rem; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin-inline: 0.45rem; opacity: 0.5; }
.page-hero .breadcrumbs { color: #b3a99f; }
.page-hero .breadcrumbs a:hover { color: #fff; }

/* ==========================================================================
   11. ACORDEON FAQ — nativ <details>, fără JavaScript
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-dark); }
.faq__icon {
  flex: none;
  position: relative;
  width: 1.5rem; height: 1.5rem;
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.faq__icon::before { width: 0.7rem; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 0.7rem; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 48rem; }
.faq__a > *:first-child { margin-top: 0; }

/* ==========================================================================
   12. PORTOFOLIU / STUDII DE CAZ
   ========================================================================== */

.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 700px)  { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(3, 1fr); } }

.case {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: #fff;
}
.case__tag {
  font-family: var(--cond);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.case h3 { margin: 0; font-size: 1.25rem; }
.case p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

/* Caseta finală.
   Cu 6 studii de caz într-o grilă de 3 coloane, al 7-lea element rămânea
   singur pe ultimul rând și lăsa două celule goale — de aici impresia de
   spațiu nefolosit. Acum ocupă tot rândul, cu textul la stânga și
   labirintul cabinetului la dreapta. */

.case--cta {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--sand);
}

@media (min-width: 760px) {
  .case--cta {
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: clamp(2rem, 5vw, 4rem);
  }
}
@media (min-width: 1040px) {
  .case--cta { grid-template-columns: minmax(0, 1fr) 15rem; }
}

.case--cta__text { display: flex; flex-direction: column; gap: 0.65rem; }

.case__mark {
  justify-self: center;
  width: clamp(8rem, 30vw, 15rem);
  color: var(--accent);
  opacity: 0.85;
}
.case__mark .labyrinth { width: 100%; height: auto; }

/* Labirintul, dimensiune implicită (regula globală pentru svg o limitează
   la 1.15em, deci trebuie readusă explicit acolo unde e element grafic). */
.labyrinth { width: 100%; height: auto; }

/* ==========================================================================
   13. PAȘI (1-2-3)
   ========================================================================== */

.steps { display: grid; gap: 1.25rem; counter-reset: step; margin-top: 2rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--accent);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.step p { margin: 0; font-weight: 500; }

/* ==========================================================================
   14. RECENZII
   ========================================================================== */

.reviews { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 780px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review__stars { display: flex; gap: 0.15rem; color: #e0a422; }
.review__stars svg { width: 1rem; height: 1rem; }
.review blockquote {
  flex: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink);
}
.review__author { font-size: 0.875rem; font-weight: 600; color: var(--ink-faint); margin: 0; }

/* ==========================================================================
   15. FORMULAR DE CONTACT
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.contact-info__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info__item svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--accent); margin-top: 0.2rem; }
.contact-info__item a { color: inherit; font-weight: 500; text-decoration: none; }
.contact-info__item a:hover { color: var(--accent-dark); text-decoration: underline; }
.contact-info__label {
  display: block;
  font-family: var(--cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .req { color: var(--accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;           /* 16px — împiedică iOS să facă zoom la focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147, 98, 73, 0.15);
}
.field__hint { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 0.35rem; }

/* Capcană anti-spam invizibilă, în locul captcha-ului manual */
.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  border: 1px solid;
}
.form-notice--ok  { background: #f0f7f1; border-color: #bfdcc4; color: #1f5b2c; }
.form-notice--err { background: #fdf2f2; border-color: #f0c4c4; color: #8b2020; }

.form-privacy { font-size: 0.8125rem; color: var(--ink-faint); line-height: 1.55; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--night);
  color: #b8afa6;
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.site-footer a { color: #d7cec5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-logo { margin-bottom: 1.25rem; }
.footer-col h2 {
  font-family: var(--cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.15rem; }
.footer-col li a { display: inline-block; padding: 0.5rem 0; }

.social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 1.15rem; height: 1.15rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #8f867e;
}

/* ==========================================================================
   17. PAGINAȚIE
   ========================================================================== */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--sand);
  border-radius: var(--radius);
}
.pagination .page-numbers:hover { background: var(--sand-deep); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; }

/* ==========================================================================
   18. PAGINI DE SERVICIU
   ========================================================================== */

.area-icon { width: 2rem; height: 2rem; }

.service-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) {
  .service-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}

.service-aside__inner {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--sand);
  border-radius: var(--radius);
}
@media (min-width: 1000px) {
  .service-aside { position: sticky; top: 6rem; }
}

/* Listă de „semnale de alarmă” folosită în paginile de serviciu */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 1.25rem; height: 1.25rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* Casetă de avertisment/urgență în interiorul articolelor */
.callout {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--sand);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout--urgent { background: #fdf5f2; border-left-color: #b4441f; }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   19. UTILITARE
   ========================================================================== */

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.3em; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack-sm > * + * { margin-top: 0.75rem; }

/* Ancoră de conținut pentru butoanele care sar în pagină */
[id] { scroll-margin-top: 5.5rem; }

@media print {
  .site-header, .action-bar, .nav-mobile, .site-footer, .hero__portrait { display: none !important; }
  body { padding-bottom: 0; }
}
