/* ==========================================================================
   love digital — sistem de design
   Fonturi de sistem, fără fișiere externe → încărcare instant.
   ========================================================================== */

:root{
  /* culoare */
  --ink:        #16151c;
  --ink-soft:   #3a3842;
  --paper:      #f6f4f0;
  --paper-raised: #ffffff;
  --line:       #e4e0d8;
  --flame:      #e8304f;
  --flame-dark: #c11f3c;
  --plum:       #4b2e6b;
  --graphite:   #6e6a63;

  /* tipografie */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-1: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);
  --step-2: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem);
  --step-3: 1.4rem;
  --step-0: 1.05rem;
  --step--1: 0.9rem;

  /* ritm */
  --gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  --container: 1120px;
}

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

html{
  scroll-behavior: smooth;
}

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

body{
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a{ color: inherit; }

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

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- tipografie ---------- */

h1, h2, h3{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1{ font-size: var(--step-1); }
h2{ font-size: var(--step-2); }
h3{ font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; }

p{ margin: 0 0 1.1em; max-width: 62ch; }
p:last-child{ margin-bottom: 0; }

.lede{
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.eyebrow{
  font-size: var(--step--1);
  color: var(--graphite);
  margin: 0 0 0.6em;
}

/* ---------- header ---------- */

.site-header{
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
}

.wordmark{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img{
  height: 26px;
  width: auto;
  display: block;
}
@media (min-width: 480px){
  .wordmark img{ height: 30px; }
}

.main-nav{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.main-nav ul{
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.main-nav a{
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{
  color: var(--ink);
  border-color: var(--flame);
}

.nav-toggle{
  display: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.nav-toggle svg{ width: 20px; height: 20px; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover{ background: var(--ink); color: var(--paper); }
.btn:active{ transform: translateY(1px); }

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

/* specificitate mai mare decât ".main-nav a" ca butonul din meniu să rămână alb */
.main-nav .btn-primary,
.main-nav .btn-primary:hover{
  color: #fff;
}

.btn-whatsapp{
  border-color: #2fae5b;
  color: #1c7a3f;
}
.btn-whatsapp:hover{
  background: #2fae5b;
  border-color: #2fae5b;
  color: #fff;
}

.wa-form{
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.wa-form iframe{
  max-width: 100%;
  display: block;
}

/* ---------- hero ---------- */

.hero{
  padding-block: clamp(3rem, 4vw + 2rem, 6.5rem) clamp(2.5rem, 3vw + 1rem, 4.5rem);
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}

.hero h1{
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 0.05s;
}
.hero .lede{
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 0.18s;
  margin-top: 1rem;
}
.hero-aside{
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 0.28s;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 2vw, 2rem);
}
.hero-aside p{ font-size: var(--step--1); color: var(--graphite); font-weight: 700; font-style: italic; }

@keyframes rise{
  to{ opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-aside{ border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.25rem; }
}

/* ---------- pagini interioare: hero mic ---------- */

.page-hero{
  padding-block: clamp(2.5rem, 3vw + 1.5rem, 4.5rem) clamp(2rem, 2vw + 1rem, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1{ font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); }
.page-hero .lede{ margin-top: 0.9rem; }

/* ---------- secțiuni ---------- */

section{ padding-block: clamp(2.5rem, 3vw + 1.5rem, 5rem); }
.contact-section{
  padding-block: clamp(1.5rem, 2vw + 0.75rem, 2.5rem) clamp(1.5rem, 2vw + 0.75rem, 2rem);
}
.contact-section .contact-grid{
  padding-top: 1rem;
  gap: 1rem 2rem;
}
.section-border{ border-top: 1px solid var(--line); }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
  flex-wrap: wrap;
}

/* ---------- listă servicii (fără carduri) ---------- */

.service-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-row{
  border-bottom: 1px solid var(--line);
}

.service-row a{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  text-decoration: none;
  color: inherit;
  padding-block: clamp(1.4rem, 2vw, 2rem);
}

.service-icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--flame);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg{ width: 24px; height: 24px; }

.service-text{ flex: 1 1 300px; min-width: 0; }
.service-row h3{ font-size: 1.3rem; }
.service-row p{
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 48ch;
}

.service-row .go{
  font-weight: 700;
  color: var(--flame);
  font-size: 0.95rem;
  white-space: nowrap;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.service-row a:hover .go{ transform: translateX(4px); }
.service-row a:hover h3{ color: var(--flame); }

/* ---------- blocuri de conținut editorial (pagini de serviciu) ---------- */

.editorial{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.editorial .side{
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--graphite);
}
.editorial .side h3{ font-size: 1rem; color: var(--ink); margin-bottom: 0.5rem; }
.editorial .side p{ font-weight: 700; font-style: italic; }
@media (max-width: 800px){
  .editorial{ grid-template-columns: 1fr; }
}

.info-blocks{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}
.info-blocks li{
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
}
.info-blocks h3{ font-size: 1.05rem; margin-bottom: 0.4rem; }
.info-blocks p{ font-size: 0.95rem; color: var(--ink-soft); }

.pull{
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--flame);
  padding-left: 1.25rem;
  margin-block: clamp(1.5rem, 2vw, 2.5rem);
  max-width: 50ch;
}

/* ---------- CTA banda ---------- */

.cta-band{
  background: var(--ink);
  color: var(--paper);
}
.cta-band .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2{ font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.cta-band p{ color: #cfccc4; }
.cta-band .btn{ border-color: var(--paper); color: var(--paper); }
.cta-band .btn:hover{ background: var(--paper); color: var(--ink); }
.cta-band .btn-primary{ background: var(--flame); border-color: var(--flame); color: #fff; }
.cta-band .btn-primary:hover{ background: var(--flame-dark); border-color: var(--flame-dark); }

/* ---------- contact ---------- */

.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.contact-grid dt{
  font-size: var(--step--1);
  color: var(--graphite);
  margin-bottom: 0.35rem;
}
.contact-grid dd{
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.contact-grid dd svg{ width: 18px; height: 18px; color: var(--flame); flex-shrink: 0; }
.contact-grid a{ text-decoration: none; }
.contact-grid a:hover{ color: var(--flame); }

/* ---------- footer ---------- */

.site-footer{
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: var(--step--1);
  color: var(--graphite);
}
.site-footer .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer nav ul{
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.site-footer a{ text-decoration: none; color: var(--graphite); }
.site-footer a:hover{ color: var(--flame); }

@media (max-width: 600px){
  .site-footer .container{
    flex-direction: column;
    text-align: center;
  }
  .site-footer nav ul{
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ---------- galerie ---------- */

.gallery-grid{
  columns: 2;
  column-gap: clamp(0.6rem, 1.2vw, 1rem);
}
@media (min-width: 640px){
  .gallery-grid{ columns: 3; }
}
@media (min-width: 900px){
  .gallery-grid{ columns: 4; }
}
@media (min-width: 1200px){
  .gallery-grid{ columns: 5; }
}
.gallery-grid figure{
  margin: 0 0 clamp(0.6rem, 1.2vw, 1rem);
  break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}
.gallery-grid img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img{ transform: scale(1.02); }

.gallery-status{
  color: var(--graphite);
  font-size: var(--step--1);
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

/* ---------- lightbox galerie ---------- */

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(22,21,28,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  border-radius: 4px;
}
.lightbox-close{
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.15); }

/* ---------- utilitare ---------- */

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

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

/* ---------- meniu mobil ---------- */

@media (max-width: 760px){
  .nav-toggle{ display: inline-flex; }
  .main-nav{
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100dvh;
    background: var(--paper-raised);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1.1rem;
  }
  .main-nav .btn{ margin-top: 1.5rem; }
}
