/* =========================================================
   Cezara Drosu — Design Interior
   Paletă caldă, minimalistă, editorială.
   Schimbă culorile din :root dacă vrei alt accent.
   ========================================================= */

:root {
  --bg:        #f4efe8;   /* fundal bone / cremă */
  --bg-alt:    #ece4d9;   /* secțiuni alternante */
  --ink:       #2c2723;   /* text principal */
  --muted:     #6f655b;   /* text secundar */
  --line:      #d8cdc0;   /* linii subtile */
  --accent:    #a9734f;   /* terracotta / lut */
  --accent-dk: #8a5c3c;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.08; }
em { font-style: italic; color: var(--accent); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: .95rem 2.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: all .35s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 5vw, 4rem);
  backdrop-filter: blur(8px);
  background: rgba(244, 239, 232, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, padding .4s ease;
}
.nav.scrolled { border-color: var(--line); padding-top: 1rem; padding-bottom: 1rem; }
.nav__logo {
  font-family: "Fraunces", serif; font-size: 1.35rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-size: .92rem; letter-spacing: .03em;
  position: relative; padding-bottom: 3px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .3s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: .3s; }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(8rem, 16vh, 11rem) clamp(1.2rem, 5vw, 4rem) 5rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: .3rem 0 1.6rem; }
.hero__lead { color: var(--muted); max-width: 30rem; font-size: 1.05rem; }
.hero__image {
  aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(44,39,35,.4);
}

/* ---------- DESPRE ---------- */
.despre {
  background: var(--bg-alt);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 4rem);
}
.despre {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; max-width: var(--max); margin: 0 auto;
}
.despre { border-radius: 0; }
.despre__image { aspect-ratio: 7 / 8; border-radius: 4px; overflow: hidden; }
.despre__text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.4rem; }
.despre__text p { color: var(--muted); margin-bottom: 1.1rem; max-width: 36rem; }
.stats { list-style: none; display: flex; gap: 2.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: "Fraunces", serif; font-size: 2rem; color: var(--ink); font-weight: 400; }
.stats span { font-size: .82rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* full-bleed alt background trick */
.despre { position: relative; }
.despre::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw);
  background: var(--bg-alt); z-index: -1;
}

/* ---------- SECTION HEAD ---------- */
.section-head { text-align: center; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

/* ---------- SERVICII ---------- */
.servicii { max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 2.4rem 2rem; transition: background .35s ease; }
.card:hover { background: var(--bg-alt); }
.card__num { font-family: "Fraunces", serif; font-size: .95rem; color: var(--accent); letter-spacing: .1em; }
.card h3 { font-size: 1.35rem; margin: .9rem 0 .7rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- PROIECTE ---------- */
.proiecte { background: var(--bg-alt); padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 4rem); position: relative; }
.proiecte::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--bg-alt); z-index: 0; }
.proiecte > * { position: relative; z-index: 1; }
.gallery {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.gallery__item { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; cursor: pointer; }
.gallery__item img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.3rem .9rem; color: #fff; font-family: "Fraunces", serif;
  font-size: 1.05rem; letter-spacing: .02em;
  background: linear-gradient(transparent, rgba(40,30,24,.6));
  opacity: 0; transform: translateY(8px); transition: .4s ease;
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 4rem); text-align: center; }
.contact__inner { max-width: 40rem; margin: 0 auto; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.contact__lead { color: var(--muted); margin-bottom: 1.6rem; }
.contact__address {
  color: var(--ink); font-size: 1rem; letter-spacing: .02em;
  margin-bottom: 2.4rem;
}
.contact__address::before { content: "📍 "; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center; }
.contact__links a {
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: .3s;
}
.contact__links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem clamp(1.2rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- ANIMAȚIE REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero__image { order: -1; max-height: 52vh; }
  .despre { grid-template-columns: 1fr; }
  .despre__image { max-height: 60vh; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(75vw, 300px);
    flex-direction: column; gap: 1.4rem; justify-content: center; align-items: center;
    background: var(--bg); transform: translateX(100%); transition: transform .4s ease;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.25);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
}

@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: .6rem; }
}
