/* CM Design — stil minimalist cald (alb / bej / lemn) */

:root {
  --alb: #F8F6F1;
  --bej: #E6DCCB;
  --bej-deschis: #F1ECE3;
  --lemn: #8C7058;
  --lemn-inchis: #6F5744;
  --text: #35363A;
  --text-moale: #6B6660;
  --olive: #8F9A88;
  --linie: #D9D0C2;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--alb);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 300; }
.hero h1 span { display: block; }
h2 { font-size: clamp(36px, 4.2vw, 56px); font-weight: 300; }
h3 { font-size: 28px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lemn); outline-offset: 4px; }

.todo { color: var(--olive); font-size: 14px; font-style: italic; }
.todo.center { text-align: center; margin-top: 36px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--alb) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand { font-family: var(--serif); font-size: 28px; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--lemn); font-style: italic; font-weight: 300; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 400; color: var(--text-moale); }
.nav a:hover { color: var(--text); }
.nav-cta { border-bottom: 1px solid var(--lemn); padding-bottom: 2px; color: var(--text) !important; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; height: 1px; background: var(--text); margin: 7px auto; width: 24px; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--pad) clamp(60px, 8vw, 120px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-kicker { color: var(--lemn); font-size: 15px; font-weight: 400; margin-bottom: 26px; }
.lead { max-width: 46ch; font-size: 19px; color: var(--text-moale); margin: 30px 0 40px; }
.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.btn {
  display: inline-block; background: var(--text); color: var(--alb); text-decoration: none;
  padding: 16px 28px; font-size: 15px; font-weight: 500; border: 0; cursor: pointer; font-family: var(--sans);
  transition: background .2s;
}
.btn:hover { background: var(--lemn-inchis); }
.link { text-decoration: none; font-size: 15px; font-weight: 400; border-bottom: 1px solid var(--linie); padding-bottom: 2px; }
.link:hover { border-color: var(--text); }

/* ---------- despre ---------- */
.despre {
  background: var(--bej-deschis);
  padding: clamp(60px, 8vw, 120px) var(--pad);
}
.despre { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.despre-img img { aspect-ratio: 4 / 5; object-fit: cover; width: min(100%, 440px); }
.despre-text h2 { margin-bottom: 28px; }
.despre-text .big { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 31px); line-height: 1.35; font-style: italic; font-weight: 300; margin-bottom: 24px; max-width: 34ch; }
.despre-text p + p { margin-top: 16px; }
.despre-text p { max-width: 58ch; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; color: var(--text-moale); font-size: 15px; }
.facts strong { font-weight: 500; color: var(--text); }

/* ---------- secțiuni generale ---------- */
.sect-head { max-width: var(--max); margin: 0 auto 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.sect-head p { color: var(--text-moale); max-width: 46ch; font-size: 18px; }

/* ---------- servicii ---------- */
.servicii { padding: clamp(60px, 8vw, 120px) var(--pad); }
.serv-list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--linie); }
.serv-list > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--linie); }
.serv-list dt { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.serv-list dd { margin: 0; color: var(--text-moale); max-width: 58ch; }

/* ---------- portofoliu ---------- */
.portofoliu { padding: clamp(60px, 8vw, 120px) var(--pad); background: var(--bej-deschis); }
.grid { max-width: var(--max); margin: 0 auto; columns: 3; column-gap: 28px; }
.card { display: block; break-inside: avoid; margin-bottom: 28px; text-decoration: none; }
.card img { width: 100%; }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px 0; }
.cap em { font-family: var(--serif); font-style: normal; font-size: 22px; }
.cap small { color: var(--text-moale); font-size: 13px; white-space: nowrap; }
.card:hover .cap em { color: var(--lemn-inchis); }

/* ---------- pagină de proiect ---------- */
.proj-head { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.proj-head .back { font-size: 15px; text-decoration: none; color: var(--text-moale); display: inline-block; margin-bottom: 28px; }
.proj-head .back:hover { color: var(--text); }
.proj-head h1 { font-size: clamp(40px, 5.4vw, 76px); }
.proj-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-moale); border-top: 1px solid var(--linie); padding-top: 18px; }
.proj-meta strong { font-weight: 500; color: var(--text); display: inline-block; min-width: 110px; }
.proj-intro { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.proj-intro .big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; font-style: italic; font-weight: 300; max-width: 24ch; }
.proj-intro p + p { margin-top: 16px; }
.proj-intro div p { max-width: 56ch; color: var(--text-moale); }
.proj-gallery { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(60px, 8vw, 120px); display: grid; gap: 28px; }
.proj-gallery figure { margin: 0; }
.proj-gallery img { width: 100%; height: auto; }
.proj-gallery .pair figure { display: flex; flex-direction: column; }
.proj-gallery .pair img { flex: 1; object-fit: cover; }
.proj-gallery figcaption { font-size: 14px; color: var(--text-moale); padding-top: 10px; }
.proj-gallery .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.proj-next { background: var(--bej); padding: clamp(60px, 8vw, 100px) var(--pad); text-align: left; }
.proj-next div { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.proj-next p { color: var(--text-moale); max-width: 44ch; margin-bottom: 24px; }

/* ---------- proces (secvență → numerotare justificată) ---------- */
.proces { padding: clamp(60px, 8vw, 120px) var(--pad); }
.steps { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: pas; }
.steps li { counter-increment: pas; border-top: 1px solid var(--lemn); padding-top: 20px; }
.steps li::before { content: counter(pas, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 18px; color: var(--lemn); margin-bottom: 14px; }
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--text-moale); font-size: 16px; }

/* ---------- contact ---------- */
.contact { background: var(--bej); padding: clamp(60px, 8vw, 120px) var(--pad); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.contact-text h2 { margin-bottom: 22px; max-width: 14ch; }
.contact-text > p { color: var(--text-moale); max-width: 44ch; }
address { font-style: normal; display: grid; gap: 8px; margin: 36px 0 10px; font-size: 18px; }
address a { text-decoration: none; border-bottom: 1px solid var(--lemn); width: max-content; }
address span { color: var(--text-moale); font-size: 16px; }
.social { display: flex; gap: 24px; margin-top: 28px; }
.social a { font-size: 15px; text-decoration: none; color: var(--text-moale); border-bottom: 1px solid transparent; }
.social a:hover { color: var(--text); border-color: var(--text); }

.contact-form { display: grid; gap: 22px; align-content: start; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 400; color: var(--text-moale); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--alb);
  border: 0; border-bottom: 1px solid var(--linie); padding: 12px 14px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-bottom-color: var(--lemn); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--olive); }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; padding: 28px var(--pad); font-size: 14px; color: var(--text-moale); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(42, 36, 32, .94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; max-width: 92vw; width: auto; }
.lb-cap { color: var(--bej); font-family: var(--serif); font-size: 22px; margin-top: 14px; }
.lb-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: var(--bej); font-size: 40px; cursor: pointer; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { columns: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--alb); border-bottom: 1px solid var(--linie); padding: 8px var(--pad) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; }
  .hero, .despre, .contact { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { aspect-ratio: 4 / 3; }
  .despre-img img { width: 100%; aspect-ratio: 4 / 3; }
  .sect-head { grid-template-columns: 1fr; gap: 14px; }
  .proj-head, .proj-intro, .proj-gallery .pair, .proj-next div { grid-template-columns: 1fr; }
  .serv-list > div { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .cap { flex-direction: column; gap: 2px; }
  .foot { flex-direction: column; gap: 6px; }
}
