:root {
  --c-wood:   #b87333;
  --c-cream:  #f5ede0;
  --c-bg:     #120c05;

  --c-wood-dark:   color-mix(in oklch, var(--c-wood)  55%, black);
  --c-wood-mid:    color-mix(in oklch, var(--c-wood)  72%, black);
  --c-wood-light:  color-mix(in oklch, var(--c-wood)  65%, white);
  --c-wood-faint:  color-mix(in oklch, var(--c-wood)   8%, transparent);

  --c-bg-raised:   color-mix(in oklch, var(--c-bg) 60%, var(--c-wood-dark));
  --c-bg-surface:  color-mix(in oklch, var(--c-bg) 75%, var(--c-wood-dark));

  --c-text:        var(--c-cream);
  --c-text-muted:  color-mix(in oklch, var(--c-cream) 55%, var(--c-wood-dark));
  --c-border:      color-mix(in oklch, var(--c-wood)  22%, transparent);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius: 4px;
  --pad: clamp(4.5rem, 9vw, 7rem) 5%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.preload * { transition: none !important; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
  line-height: 1.65;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-wood);
  margin-bottom: 1.2rem;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--c-wood);
  opacity: 0.45;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--c-text-muted);
  max-width: 50ch;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid   { background: var(--c-wood); color: #fff; }
.btn-solid:hover { background: var(--c-wood-mid); }
.btn-outline { background: transparent; color: var(--c-cream); border: 1px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-wood); color: var(--c-wood); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed { opacity: 1; transform: none; }

header {
  position: sticky;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5%;
  background: color-mix(in oklch, var(--c-bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

a.back-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
a.back-link::before { content: '← '; }
a.back-link:hover { color: var(--c-wood); }

.vr { width: 1px; height: 20px; background: var(--c-border); }

a.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
a.site-logo img { height: 40px; width: 40px; flex-shrink: 0; }
a.site-logo figcaption {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-wood);
  letter-spacing: 0.03em;
}
a.site-logo figcaption strong {
  font-style: italic;
  color: var(--c-wood-light);
}

nav ul { display: flex; gap: 2rem; list-style: none; }
nav a {
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--c-wood); }

#hero {
  contain: layout;
  will-change: transform;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background:
    repeating-linear-gradient(87deg, transparent, transparent 38px,
      var(--c-wood) 38px, var(--c-wood) 39px),
    repeating-linear-gradient(3deg, transparent, transparent 55px,
      var(--c-wood) 55px, var(--c-wood) 56px);
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 65% 70% at 60% 50%,
    color-mix(in oklch, var(--c-wood-dark) 40%, transparent), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 1.5rem;
}
.hero-copy h1 em { font-style: italic; color: var(--c-wood); }

.hero-copy p {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--c-text-muted);
  max-width: 44ch;
  margin-bottom: 2.5rem;
  line-height: 1.78;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

figure.hero-photo {
  position: relative;
  z-index: 1;
}
figure.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.88) contrast(1.05);
}
figure.hero-photo .img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px dashed var(--c-border);
  background: var(--c-bg-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}
figure.hero-photo .img-placeholder span { font-size: 2.8rem; }

#servicii {
  padding: var(--pad);
  background: var(--c-bg-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.servicii-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.servicii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

article.card {
  padding: 1.8rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-raised);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
article.card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-wood-dark), var(--c-wood-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
article.card:hover { border-color: var(--c-wood); transform: translateY(-3px); }
article.card:hover::before { transform: scaleX(1); }
article.card .icon { font-size: 1.7rem; margin-bottom: 0.9rem; }
article.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
article.card p { font-size: 0.87rem; color: var(--c-text-muted); line-height: 1.72; }

#proiecte {
  padding: var(--pad);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-surface);
}

.proiecte-header {
  max-width: 56ch;
  margin-bottom: 3rem;
}

.proiect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.proiect:nth-child(even) { direction: rtl; }
.proiect:nth-child(even) > * { direction: ltr; }

.proiect + .proiect {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid var(--c-border);
}

figure.proiect-foto img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.9) contrast(1.04);
}

.proiect-info .eyebrow { margin-bottom: 0.7rem; }

.proiect-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.proiect-info p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.78;
  margin-bottom: 1rem;
}
.proiect-info p:last-of-type { margin-bottom: 0; }

dl.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  margin-top: 1.6rem;
  font-size: 0.84rem;
}
dl.specs dt {
  color: var(--c-wood);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
dl.specs dd { color: var(--c-text-muted); }

@media (max-width: 960px) {
  .proiect                  { grid-template-columns: 1fr; gap: 2rem; }
  .proiect:nth-child(even)  { direction: ltr; }
  figure.proiect-foto img   { aspect-ratio: 16 / 9; }
}

#materiale {
  padding: var(--pad);
}

.materiale-intro {
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

aside.principiu {
  margin-bottom: 3rem;
  padding: 1.4rem 1.8rem;
  border-inline-start: 3px solid var(--c-wood);
  background: var(--c-wood-faint);
  border-radius: 0 var(--radius) var(--radius) 0;
}
aside.principiu p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--c-wood-light);
  line-height: 1.55;
}
aside.principiu strong { color: var(--c-cream); font-style: normal; }

.specii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.specie {
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-raised);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.specie:hover { border-color: var(--c-wood); transform: translateY(-2px); }
.specie .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.specie h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.specie p { font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.55; }

#proces {
  padding: var(--pad);
  background: var(--c-bg-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.proces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

ol.pasi {
  margin-top: 2rem;
  list-style: none;
  counter-reset: pas;
}
ol.pasi li {
  counter-increment: pas;
  display: flex;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--c-border);
}
ol.pasi li:last-child { border-bottom: none; }
ol.pasi li::before {
  content: counter(pas, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-wood);
  opacity: 0.3;
  min-width: 2.2rem;
  line-height: 1;
  padding-top: 0.1rem;
}
ol.pasi h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
ol.pasi p  { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.65; }

figure.galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
figure.galerie img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: auto;
  filter: brightness(0.82) contrast(1.08);
}
figure.galerie img:first-child {
  grid-column: 1 / -1;
  height: auto;
}
figure.galerie .ph {
  border-radius: var(--radius);
  border: 1px dashed var(--c-border);
  background: var(--c-bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
  text-align: center;
  height: 180px;
}
figure.galerie .ph:first-child { grid-column: 1 / -1; height: 240px; }

#contact {
  padding: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

address.detalii {
  font-style: normal;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-raised);
  transition: border-color 0.2s;
}
.channel:hover { border-color: var(--c-wood); }
.channel .icon { font-size: 1.15rem; flex-shrink: 0; }
.channel p { font-size: 0.86rem; color: var(--c-text-muted); }
.channel strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 0.1rem;
}

form.formular {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.38rem; }
.form-row label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.8rem 1rem;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--c-wood); }
.form-row textarea   { resize: vertical; min-height: 130px; }
.form-row select option { background: var(--c-bg); }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

button.trimite {
  padding: 1rem;
  background: var(--c-wood);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
button.trimite:hover { background: var(--c-wood-mid); transform: translateY(-1px); }

footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-wood);
}
.footer-brand em { font-style: italic; color: var(--c-wood-light); }
footer small { font-size: 0.74rem; color: var(--c-text-muted); }
footer a.footer-back {
  font-size: 0.74rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer a.footer-back::before { content: '← '; }
footer a.footer-back:hover { color: var(--c-wood); }

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--c-wood); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-cream);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile drawer ── */
#mobile-nav {
  display: none;
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 99;
  background: color-mix(in oklch, var(--c-bg) 97%, transparent);
  backdrop-filter: blur(20px);
  padding-top: 80px; /* clears the header */
  border-bottom: 1px solid var(--c-border);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-nav.open {
  transform: translateY(0);
}
#mobile-nav ul {
  list-style: none;
  padding: 1.5rem 5% 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#mobile-nav ul li {
  border-bottom: 1px solid var(--c-border);
}
#mobile-nav ul li:first-child {
  border-top: 1px solid var(--c-border);
}
#mobile-nav ul li a {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
#mobile-nav ul li a:hover { color: var(--c-wood); padding-left: 0.4rem; }
#mobile-nav .mobile-cta {
  padding: 0 5% 2rem;
}
#mobile-nav .mobile-cta .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 960px) {
  #hero                { grid-template-columns: 1fr; }
  figure.hero-photo    { display: none; }
  .servicii-header     { grid-template-columns: 1fr; }
  .proces-grid         { grid-template-columns: 1fr; gap: 3rem; }
  #contact             { grid-template-columns: 1fr; gap: 3rem; }
  header nav           { display: none; }
  header > .btn        { display: none; }
  .nav-toggle          { display: flex; }
  #mobile-nav          { display: block; }
}
@media (max-width: 560px) {
  .specii-grid   { grid-template-columns: 1fr 1fr; }
  .form-cols     { grid-template-columns: 1fr; }
  footer         { flex-direction: column; text-align: center; }
}

/* ── Toast notifications ── */
.toast {
  position: fixed;
  inset-block-end: 2rem;
  inset-inline-end: 2rem;
  z-index: 9999;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: min(420px, calc(100vw - 2rem));
  line-height: 1.5;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast--success {
  background: color-mix(in oklch, var(--c-wood-dark) 80%, var(--c-bg));
  border-color: var(--c-wood);
  color: var(--c-cream);
}
.toast--error {
  background: color-mix(in oklch, #7a1f1f 70%, var(--c-bg));
  border-color: #b94040;
  color: var(--c-cream);
}
.toast--info {
  background: var(--c-bg-raised);
  border-color: var(--c-border);
  color: var(--c-text-muted);
}

/* ── Category page gallery section ── */
.gallery-section:not(:has(picture)) { display: none; }
