/* =====================================================================
   Denis Avram — foaie de stil principală
   Organizare: 1) tokens  2) reset/bază  3) utilitare  4) componente
   5) secțiuni  6) lightbox  7) responsive  8) preferințe de mișcare
   ===================================================================== */

/* ----------------------------- 1. Tokens ---------------------------- */
:root {
  /* Culori */
  --c-bg: #faf8f5;
  --c-bg-alt: #f3efe8;
  --c-surface: #ffffff;
  --c-ink: #1c1a17;
  --c-ink-soft: #5a544c;
  /* Nuanțele de text sunt alese pentru contrast ≥ 4.5:1 pe fundalurile deschise. */
  --c-ink-muted: #6e675d;
  --c-accent: #b08d57;
  --c-accent-dark: #7d5f34;
  --c-accent-soft: #f0e6d6;
  --c-line: #e3dacd;
  --c-dark: #1c1a17;
  --c-dark-soft: #2a2721;
  --c-error: #a63b2a;
  --c-success: #3f6b45;

  /* Tipografie */
  --font-display: "Cormorant Garamond", "Didot", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.0625rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 4.2vw, 2.75rem);
  --fs-h1: clamp(2.125rem, 7vw, 4.25rem);

  /* Spațiere */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Altele */
  --container: 1200px;
  --radius: 2px;
  --header-h: 68px;
  --shadow-soft: 0 18px 40px rgba(28, 26, 23, 0.08);
  --shadow-strong: 0 24px 60px rgba(28, 26, 23, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------- 2. Reset / bază ------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--sp-4); }

a {
  color: var(--c-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--c-ink); }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--c-accent-dark);
  outline-offset: 3px;
}

/* --------------------------- 3. Utilitare --------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.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: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--c-ink);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--sp-4);
  color: #fff;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-3);
}

/* --------------------------- 4. Componente -------------------------- */

/* Wordmark / logo text */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.wordmark__name {
  font-family: var(--font-display);
  /* Se micșorează pe ecrane înguste, ca „DENIS AVRAM” să încapă lângă butonul de meniu. */
  font-size: clamp(1.1rem, 4.8vw, 1.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark__accent { color: var(--c-accent); }

.wordmark__tagline {
  font-size: clamp(0.5rem, 1.9vw, 0.625rem);
  letter-spacing: clamp(0.14em, 0.8vw, 0.3em);
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-top: 0.35rem;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Variantă peste imaginea hero (doar pe pagina principală): text deschis */
.site-header--overlay:not(.is-solid) .wordmark,
.site-header--overlay:not(.is-solid) .primary-nav__list > li > a {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.site-header--overlay:not(.is-solid) .wordmark__tagline { color: rgba(255, 255, 255, 0.78); }

.site-header.is-solid {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-line);
}

/* Navigație */
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.primary-nav__list > li > a {
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--sp-2) 0;
  position: relative;
}

.primary-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav__list > li > a:hover::after,
.primary-nav__list > li > a.is-current::after {
  transform: scaleX(1);
}

.primary-nav__cta {
  border: 1px solid currentColor;
  padding: var(--sp-2) var(--sp-4) !important;
}

.primary-nav__cta::after { display: none; }

/* Buton hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.site-header--overlay:not(.is-solid) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--c-ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.site-header--overlay:not(.is-solid) .nav-toggle__bars,
.site-header--overlay:not(.is-solid) .nav-toggle__bars::before,
.site-header--overlay:not(.is-solid) .nav-toggle__bars::after {
  background: #fff;
}

.nav-toggle__bars { top: 50%; margin-top: -0.75px; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: translateX(-50%) rotate(-90deg); }

/* Butoane */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

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

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--light {
  background: var(--c-accent-soft);
  color: var(--c-ink);
  border-color: var(--c-accent-soft);
}

.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--c-ink);
}

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

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-accent-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow:hover { color: var(--c-ink); }

/* Secțiuni generice */
.section {
  padding: var(--sp-8) 0;
  scroll-margin-top: var(--header-h);
}

/* Fundalurile alternează: hero (închis) → despre → portofoliu → servicii → contact. */
.section--about,
.section--services { background: var(--c-bg-alt); }

.section__head {
  max-width: 62ch;
  margin-bottom: var(--sp-6);
}

.section__lead {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  margin-bottom: 0;
}

/* --------------------------- 5. Secțiuni ---------------------------- */

/* Hero */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-8);
  scroll-margin-top: 0;
  isolation: isolate;
  background: var(--c-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(185deg, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.28) 38%, rgba(20, 18, 16, 0.82) 100%);
}

.hero__content {
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--sp-5);
  color: #fff;
}

.hero .eyebrow { color: var(--c-accent-soft); }

.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-4);
}

.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
  max-width: 48ch;
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__scroll {
  display: none;
}

/* Portofoliu */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.filter {
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter:hover {
  border-color: var(--c-accent);
  color: var(--c-ink);
}

.filter.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.filters__status {
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
  min-height: 1.4em;
  margin-bottom: var(--sp-5);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: var(--sp-3);
}

.gallery__item {
  margin: 0;
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
}

.gallery__item--tall { grid-row: span 3; }

.gallery__item > figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gallery__trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.gallery__trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s linear;
}

.gallery__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.45), rgba(20, 18, 16, 0) 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery__trigger:hover img,
.gallery__trigger:focus-visible img {
  transform: scale(1.04);
}

.gallery__trigger:hover::after,
.gallery__trigger:focus-visible::after {
  opacity: 1;
}

.gallery__label {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 1;
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery__trigger:hover .gallery__label,
.gallery__trigger:focus-visible .gallery__label {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item.is-hidden { display: none; }

/* Stare de rezervă dacă o imagine demonstrativă nu se încarcă */
.gallery__item.is-missing .gallery__trigger img,
.service__media.is-missing img,
.about__media.is-missing img {
  opacity: 0;
}

.gallery__item.is-missing,
.service__media.is-missing,
.about__media.is-missing {
  background: repeating-linear-gradient(45deg, var(--c-bg-alt), var(--c-bg-alt) 12px, #ece5d9 12px, #ece5d9 24px);
}

.gallery__item.is-missing .gallery__trigger::before,
.service__media.is-missing::before,
.about__media.is-missing::before {
  content: "Fotografie indisponibilă";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
  text-align: center;
  padding: var(--sp-3);
}

/* Servicii */
.services {
  display: grid;
  gap: var(--sp-5);
}

.service {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-alt);
}

.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.service__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.service__body p {
  color: var(--c-ink-soft);
  margin-bottom: var(--sp-3);
}

/* Despre */
.about {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__body p { color: var(--c-ink-soft); }

.about__points {
  display: grid;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-6);
}

.about__points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--c-ink-soft);
}

.about__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--c-accent);
}

/* Contact */
.contact {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

.contact__intro p { color: var(--c-ink-soft); }

.contact__details {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.contact__details li {
  display: grid;
  gap: 0.15rem;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}

.contact__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.contact__details a {
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-decoration: none;
  color: var(--c-ink);
}

.contact__details a:hover { color: var(--c-accent-dark); }

.contact__hint {
  font-size: 0.75rem;
  color: var(--c-ink-muted);
}

/* Formulare */
.form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-soft);
}

.form__title { margin-bottom: var(--sp-2); }

.form__note,
.form__privacy,
.form__demo {
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
}

.form__note { margin-bottom: var(--sp-5); }

.form__demo {
  margin: var(--sp-3) 0 0;
  font-style: italic;
}

.field { margin-bottom: var(--sp-4); }

.field label {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
}

.field__optional {
  color: var(--c-ink-muted);
  letter-spacing: 0;
}

.field__group-note {
  font-size: 0.8125rem;
  color: var(--c-ink-soft);
  background: var(--c-bg-alt);
  border-left: 2px solid var(--c-accent);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.2s linear, box-shadow 0.2s linear;
}

textarea { resize: vertical; min-height: 7rem; }

input:hover,
select:hover,
textarea:hover { border-color: var(--c-ink-muted); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-accent-dark);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--c-error);
}

.field__error {
  margin: var(--sp-2) 0 0;
  font-size: 0.8125rem;
  color: var(--c-error);
  min-height: 0;
}

.field__error:empty { display: none; }

.field-row {
  display: grid;
  gap: var(--sp-4);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--c-accent-dark);
  flex: 0 0 auto;
}

.form__status {
  margin: var(--sp-4) 0 0;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.form__status:empty { display: none; }

.form__status.is-success,
.form__status.is-error {
  padding: var(--sp-3);
  border-radius: var(--radius);
  border: 1px solid;
}

.form__status.is-success {
  color: var(--c-success);
  border-color: rgba(63, 107, 69, 0.35);
  background: rgba(63, 107, 69, 0.07);
}

.form__status.is-error {
  color: var(--c-error);
  border-color: rgba(166, 59, 42, 0.35);
  background: rgba(166, 59, 42, 0.07);
}

/* Secțiunea „Contactați-mă” */
.callback {
  background: var(--c-dark);
  color: #fff;
  padding: var(--sp-8) 0;
  scroll-margin-top: var(--header-h);
}

.callback__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

.callback h2 { color: #fff; }

.callback__intro p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lead);
  margin-bottom: 0;
  max-width: 46ch;
}

.form--compact {
  background: var(--c-dark-soft);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.form--compact label,
.form--compact .checkbox,
.form--compact .field__group-note,
.form--compact .form__privacy,
.form--compact .form__demo {
  color: rgba(255, 255, 255, 0.82);
}

.form--compact .field__group-note {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--c-accent);
}

.form--compact input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.form--compact input::placeholder { color: rgba(255, 255, 255, 0.6); }

.form--compact .form__privacy a,
.form--compact .form__status.is-success,
.form--compact .form__status.is-error {
  color: #fff;
}

.form--compact .form__privacy a { color: var(--c-accent-soft); }

.form--compact .field__error { color: #f0a99b; }

.form--compact .form__status.is-success {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form--compact .form__status.is-error {
  border-color: rgba(240, 169, 155, 0.5);
  background: rgba(166, 59, 42, 0.2);
}

/* Footer */
.site-footer {
  background: var(--c-bg-alt);
  padding: var(--sp-7) 0 var(--sp-5);
  border-top: 1px solid var(--c-line);
}

.site-footer__inner {
  display: grid;
  gap: var(--sp-6);
}

.site-footer__brand p {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  max-width: 34ch;
  margin-top: var(--sp-4);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--sp-3);
}

.site-footer__nav ul,
.site-footer__contact ul {
  display: grid;
  gap: var(--sp-2);
}

.site-footer a {
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-small);
}

.site-footer a:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: var(--sp-2);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
}

/* --------------------------- 6. Lightbox ---------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 13, 0.94);
}

.lightbox__dialog {
  position: relative;
  width: min(100%, 1400px);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 3.75rem var(--sp-3) 4.5rem;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  max-height: 100%;
  min-width: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100svh - 10rem);
  width: auto;
  object-fit: contain;
  box-shadow: var(--shadow-strong);
  border-radius: var(--radius);
  background: #1a1917;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--sp-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
  text-align: center;
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox__btn--close {
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 1.5rem;
}

.lightbox__btn--prev { left: var(--sp-3); bottom: var(--sp-3); }
.lightbox__btn--next { right: var(--sp-3); bottom: var(--sp-3); }

/* -------------------------- 7. Responsive --------------------------- */
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --header-h: 84px; }

  .section { padding: var(--sp-9) 0; }
  .form { padding: var(--sp-6); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }

  .about { grid-template-columns: 0.85fr 1fr; gap: var(--sp-7); }
  .contact { grid-template-columns: 0.9fr 1.1fr; }
  .callback__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }

  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__bottom {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: var(--sp-5);
  }
  .site-footer__disclaimer { text-align: right; }

  .hero { align-items: center; }
  .hero__content { padding: 0 var(--sp-6); }

  .hero__scroll {
    display: block;
    position: absolute;
    left: 50%;
    bottom: var(--sp-5);
    transform: translateX(-50%);
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, 0.35);
  }

  .hero__scroll span {
    display: block;
    width: 1px;
    height: 100%;
    background: #fff;
    transform-origin: top;
    animation: scroll-hint 2.4s var(--ease) infinite;
  }

  .lightbox__dialog { padding: var(--sp-6) 5.5rem; }
  .lightbox__btn--prev { left: var(--sp-5); top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__btn--next { right: var(--sp-5); top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__btn--close { top: var(--sp-5); right: var(--sp-5); }
}

@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .hero__content { max-width: var(--container); padding: 0 var(--sp-6); }
  .hero h1 { max-width: 20ch; }
}

@media (min-width: 1440px) {
  :root { --container: 1320px; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
}

/* Navigație mobilă */
@media (max-width: 899px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

  .primary-nav.is-open { transform: translateY(0); }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }

  .primary-nav__list > li > a,
  .site-header--overlay:not(.is-solid) .primary-nav__list > li > a {
    display: block;
    color: var(--c-ink);
    text-shadow: none;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 1rem;
  }

  .primary-nav__list > li:last-child > a {
    border-bottom: 0;
    margin-top: var(--sp-4);
    text-align: center;
  }

  .primary-nav__cta { border: 1px solid var(--c-ink) !important; }
}

@keyframes scroll-hint {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------ 8. Preferință pentru mișcare redusă -------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .gallery__trigger:hover img,
  .service:hover .service__media img { transform: none; }

  .hero__scroll { display: none; }
}

/* ------------- 9. Pagini secundare (fără secțiune hero) -------------- */
/* Header fără imagine hero dedesubt: mereu opac, text închis (vezi privacy.html).
   Culorile deschise se aplică doar pe `.site-header--overlay`, deci nu e nevoie
   de suprascrieri aici. */
.site-header--static {
  position: sticky;
  background: rgba(250, 248, 245, 0.96);
  box-shadow: 0 1px 0 var(--c-line);
}

.page-head {
  padding: var(--sp-7) 0 var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}

.legal {
  padding: var(--sp-7) 0 var(--sp-9);
}

.legal__body {
  max-width: 70ch;
}

.legal__body h2 {
  font-size: 1.5rem;
  margin-top: var(--sp-6);
}

.legal__body p,
.legal__body li {
  color: var(--c-ink-soft);
}

.legal__body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.notice {
  background: var(--c-accent-soft);
  border-left: 3px solid var(--c-accent);
  padding: var(--sp-4);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
}

.notice p:last-child { margin-bottom: 0; }
