/* ==========================================================================
   SiteuriPro — stylesheet principal
   Estetică: corporate editorial, unghiular, tonuri deschise de hârtie
   cu accent roșu spălăcit. Colțuri drepte, linii fine, grilă tip document.
   ========================================================================== */

:root {
  --paper: #f3efe9;        /* fundal principal, ton hârtie caldă */
  --paper-2: #ece7df;      /* fundal secțiuni alternante */
  --card: #faf8f4;         /* suprafețe deschise */
  --ink: #211d19;          /* text principal, negru cald */
  --muted: #7d756a;        /* text secundar */
  --line: #d6cec3;         /* linii fine hairline */
  --red: #b4574a;          /* roșu spălăcit — accent principal */
  --red-deep: #8f4036;     /* roșu închis, hover / text pe fundal deschis */
  --red-tint: #eadbd5;     /* spălăcit foarte deschis, fundaluri de accent */
  --red-ink: #f6ece8;      /* text pe fundal roșu */
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.container { width: min(1200px, 94%); margin-inline: auto; }

/* ---------- Butoane: dreptunghiulare, fără rotunjiri ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn-solid {
  background: var(--red);
  border-color: var(--red-deep);
  color: var(--red-ink);
}
.btn-solid:hover { box-shadow: 3px 3px 0 var(--red-deep); background: var(--red-deep); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Bară utilitară ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 0;
  font-size: 0.68rem;
}
.topbar a:hover { color: var(--red-tint); }
.topbar-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 28px; }
.topbar .mono { font-size: 0.66rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 16px; height: 16px;
  background: var(--red);
  /* pătrat tăiat colț — unghiular, semnătura vizuală */
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.logo-text b { color: var(--red); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav a:not(.btn):hover { border-bottom-color: var(--red); }
.nav-idx { color: var(--red); font-size: 0.62rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.22s, opacity 0.22s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red-deep);
  margin-bottom: 26px;
}
.kicker-tick { width: 34px; height: 1px; background: var(--red); }

.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); margin-bottom: 26px; }
.hero h1 em {
  font-style: normal;
  color: var(--red);
  /* subliniere angulară, dublu unghi */
  background-image: linear-gradient(var(--red-tint), var(--red-tint));
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 88%;
}

.lead { color: var(--muted); font-size: 1.1rem; max-width: 54ch; margin-bottom: 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Panou „brief" — document tehnic în hero */
.hero-brief {
  border: 1px solid var(--ink);
  background: var(--card);
  /* umbră dură decalată, efect de hârtie așezată pe birou */
  box-shadow: 6px 6px 0 var(--red-tint);
}
.brief-head {
  padding: 12px 20px;
  border-bottom: 1px solid var(--ink);
  background: var(--red-tint);
  color: var(--red-deep);
}
.brief-rows { display: block; }
.brief-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.brief-row dt { color: var(--muted); }
.brief-row dd { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.brief-row-last { border-bottom: none; }
.brief-stamp {
  padding: 10px 20px;
  border-top: 1px dashed var(--red);
  color: var(--red-deep);
}

/* Bandă statistici sub hero */
.stat-strip {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-left: none;
  border-right: none;
}
.stat-cell {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.stat-cell:first-child { border-left: none; }
.stat-cell strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; }
.stat-cell span { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
  padding: 12px 0;
  margin-top: 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 0.78rem;
  color: #cfc7bb;
}
.marquee-track span { padding-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secțiuni: antet cu număr, aliniat la stânga ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
.section-no {
  color: var(--red-deep);
  border-top: 3px solid var(--red);
  padding-top: 10px;
}
.section-title h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.section-title p { color: var(--muted); max-width: 62ch; }

/* ---------- Servicii: listă index ---------- */
.index-list { border-top: 1px solid var(--line); }

.index-row {
  display: grid;
  grid-template-columns: 64px 1.4fr 1fr 48px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.index-row:hover { background: var(--card); padding-left: 16px; }
.row-no { color: var(--red); align-self: start; padding-top: 6px; }
.row-main h3 { font-size: 1.28rem; margin-bottom: 6px; }
.row-main p { color: var(--muted); font-size: 0.95rem; }
.row-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.row-tags li {
  font-size: 0.62rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
}
.row-arrow {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--line);
  text-align: right;
  transition: color 0.18s ease, transform 0.18s ease;
}
.index-row:hover .row-arrow { color: var(--red); transform: translateX(6px); }

/* ---------- Portofoliu: grilă asimetrică ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.work { border: 1px solid var(--ink); background: var(--card); display: flex; flex-direction: column; }
.work-wide { grid-column: 1 / -1; flex-direction: row; }
.work-wide .work-visual { width: 45%; flex: none; }
.work-wide .work-body { border-left: 1px solid var(--ink); }

.work-visual {
  min-height: 240px;
  position: relative;
  border-bottom: 1px solid var(--ink);
}
.work-wide .work-visual { border-bottom: none; }
.work-ref {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  color: var(--red-deep);
  font-size: 0.62rem;
}

/* texteuri grafice în roșu spălăcit */
.pattern-stripes {
  background: repeating-linear-gradient(
    45deg,
    var(--red-tint) 0 14px,
    var(--red) 14px 16px,
    var(--red-tint) 16px 30px,
    var(--red-deep) 30px 32px
  );
}
.pattern-dots {
  background: var(--red-tint);
  background-image: radial-gradient(var(--red) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
}
.pattern-grid {
  background:
    linear-gradient(var(--red-tint) 0 0),
    linear-gradient(90deg, var(--red-tint) 0 0);
  background-image:
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, var(--red-tint), transparent 70%);
}

.work-body { padding: 28px; flex: 1; }
.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--red-deep);
  margin-bottom: 14px;
  font-size: 0.66rem;
}
.work-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.work-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 0.62rem;
  padding: 4px 10px;
  border: 1px solid var(--red);
  color: var(--red-deep);
}

.works-cta {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px dashed var(--red);
  padding: 22px 28px;
}
.works-cta .mono { color: var(--red-deep); }

/* ---------- Proces ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }

.phase {
  padding: 26px 24px 30px;
  border-left: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease;
}
.phase:first-child { border-left: none; }
.phase:hover { background: var(--card); }

/* bară roșie verticală pe etapa hover — accent mecanic */
.phase::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.25s ease;
}
.phase:hover::before { height: 100%; }

.phase-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.phase-no { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.phase h3 { font-size: 1.05rem; margin-bottom: 10px; }
.phase p { color: var(--muted); font-size: 0.9rem; flex-grow: 1; }
.phase-dur {
  margin-top: 18px;
  color: var(--red-deep);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

/* ---------- Prețuri ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.plan { border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.plan-featured { border-color: var(--ink); box-shadow: 6px 6px 0 var(--red-tint); position: relative; }

.plan-flag {
  background: var(--red);
  color: var(--red-ink);
  padding: 8px 18px;
  font-size: 0.64rem;
  position: absolute;
  top: 0; right: 0;
  /* steag tăiat diagonal */
  clip-path: polygon(10px 0, 100% 0, 100% 100%);
  padding-left: 26px;
}

.plan-head { padding: 26px 24px 18px; border-bottom: 1px solid var(--line); }
.plan-head h3 { font-size: 1.1rem; color: var(--red-deep); margin-bottom: 4px; }
.plan-for { color: var(--muted); font-size: 0.88rem; }

.plan-price {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-price strong { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; }
.plan-price .mono { color: var(--muted); font-size: 0.62rem; }

.plan-list { padding: 20px 24px; flex-grow: 1; }
.plan-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.93rem;
  color: var(--muted);
  border-bottom: 1px dotted var(--line);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 500;
}
.plan .btn { margin: 0 24px 24px; }

.note {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.64rem;
}

/* ---------- Testimoniale ---------- */
.quotes { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.quote-main { grid-row: 1 / 3; }

.quote {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-mark {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 10px;
}
.quote blockquote { font-size: 1rem; flex-grow: 1; }
.quote-main blockquote {
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 500;
}
.quote figcaption { color: var(--muted); font-size: 0.64rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-no { display: inline-block; margin-bottom: 20px; }
.contact-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; max-width: 46ch; }

.contact-list { border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { color: var(--red-deep); padding-top: 2px; }
.contact-list dd { font-size: 0.95rem; }
.contact-list a { font-weight: 600; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--red-deep); border-bottom-color: var(--red); }

.contact-form {
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 32px;
  box-shadow: 6px 6px 0 var(--red-tint);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { color: var(--red-deep); margin-bottom: 8px; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 3px 3px 0 var(--red-tint);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b4574a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-group select option { background: var(--card); color: var(--ink); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #a89f92; }
.form-group input.invalid, .form-group textarea.invalid { border-color: var(--red); background: var(--red-tint); }

.form-status { margin-top: 16px; font-size: 0.66rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--red-deep); }
.form-status.err { color: var(--red-deep); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 0; }

.footer-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px #5a5349;
  user-select: none;
  margin-bottom: 56px;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid #3d3831;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col > .mono { color: var(--red); margin-bottom: 6px; }
.footer-col a {
  font-size: 0.92rem;
  color: #cfc7bb;
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.footer-col a:hover { color: var(--paper); border-bottom-color: var(--red); }
.footer-txt { font-size: 0.92rem; color: #cfc7bb; }

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid #3d3831;
  color: #8d8579;
  font-size: 0.62rem;
}

/* ---------- Animații la scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-brief { max-width: 560px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .phase:nth-child(3) { border-left: none; }
  .phase:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .index-row { grid-template-columns: 48px 1fr 40px; }
  .row-tags { grid-column: 2; }
  .row-arrow { grid-row: 1; grid-column: 3; align-self: start; }
  .quotes { grid-template-columns: 1fr; }
  .quote-main { grid-row: auto; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd) { border-left: none; }
  .stat-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .work { grid-column: 1 / -1; }
  .work-wide { flex-direction: column; }
  .work-wide .work-visual { width: 100%; border-bottom: 1px solid var(--ink); }
  .work-wide .work-body { border-left: none; }
  .process { grid-template-columns: 1fr; }
  .phase { border-left: none; }
  .phase:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-right { display: none; }

  /* Meniu mobil */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 26px;
    background: var(--paper);
    border-left: 1px solid var(--ink);
    box-shadow: -6px 0 0 var(--red-tint);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav a:not(.btn) { font-size: 1.15rem; }
  .footer-word { white-space: normal; }
}
