/* =========================================================
   OCHEAN · George · Chiajna
   Stil editorial: hârtie crem, cerneală neagră, accent portocaliu
   ========================================================= */

:root {
  --paper: #F1EFE6;
  --paper-2: #E9E7DC;
  --ink: #141311;
  --ink-2: #3A3934;
  --mute: #5F5E58;
  --line: #C9C7BB;
  --accent: #FF5A2E;
  --accent-ink: #141311;

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --fast: 180ms;
  --base: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a, button, summary, select { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: var(--space-2); top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 1000;
  font-weight: 600;
}
.skip:focus { top: var(--space-2); }

/* ---------- Tipografie de display ---------- */
.big {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .005em;
  display: block;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.section-dark .outline { -webkit-text-stroke-color: var(--paper); }
@supports not (-webkit-text-stroke: 1px black) {
  .outline { color: var(--mute); }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 var(--space-2);
}
.section-dark .eyebrow { color: var(--accent); }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 15px;
  border: 1.5px solid var(--ink);
  transition: background var(--fast) var(--ease-out), color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }
.section-dark .btn-ghost { border-color: var(--paper); color: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 14px; min-height: 44px;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--fast), color var(--fast);
}
.link-arrow:hover { border-bottom-color: var(--accent); color: var(--accent); }
.link-arrow span { transition: transform var(--fast) var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--space-2);
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; color: var(--ink); flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 20px;
}
.header-cta {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-weight: 500; font-size: 15px;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--fast), color var(--fast);
}
.header-cta svg { width: 18px; height: 18px; }
.header-cta:hover { border-bottom-color: var(--accent); color: var(--accent); }
.site-nav { justify-self: end; display: flex; gap: 4px; }
.site-nav a {
  padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--base) var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; justify-self: end;
  width: 48px; height: 48px; border: 1.5px solid var(--ink); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform var(--base) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-7) 0; border-top: 1px solid var(--line); }
#servicii { padding-top: var(--space-6); }
.section-title { margin: 0 0 var(--space-5); font-size: clamp(44px, 7vw, 96px); }
.section-title .big { font-size: inherit; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0 var(--space-5); }
.hero-title { margin: 0; font-size: clamp(44px, 9.1vw, 132px); }
.hero-title .line { display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap; }
.hero-title .line-1 { justify-content: flex-start; }
.hero-title .line-2 { justify-content: flex-start; padding-left: .04em; margin-top: .07em; }
.hero-title .big { font-size: inherit; }
.kicker {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: .38em; line-height: 1; color: var(--accent);
  letter-spacing: .02em;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6); align-items: center;
  margin-top: var(--space-6);
}

.portrait { margin: 0; position: relative; width: 100%; }
.portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.05); }
.badge {
  position: absolute; left: 18px; bottom: 18px; width: 124px; height: 124px;
  display: grid; place-items: center; color: var(--ink);
}
.badge > svg:first-child {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: rotire 14s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; fill: var(--accent);
}
.badge-eye { width: 50px; height: 50px; background: var(--paper); padding: 5px; }
@keyframes rotire { to { transform: rotate(360deg); } }

.hero-text p { margin: 0 0 var(--space-2); font-size: 18px; color: var(--ink-2); }

.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* ---------- Servicii ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}
.service {
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
  border-right: 1px solid var(--ink);
  transition: background var(--base) var(--ease-out);
}
.service:last-child { border-right: 0; }
.service:hover { background: var(--paper-2); }
.service .num { font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; color: var(--accent); }
.service h3 {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 30px; line-height: 1;
}
.service p { margin: 0; color: var(--ink-2); }
.service ul { margin: 0; padding: 0; list-style: none; color: var(--mute); font-size: 15px; }
.service li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px;
  background: var(--accent);
}
.service .link-arrow { margin-top: auto; }
.services-note { max-width: 720px; color: var(--mute); font-size: 15px; margin: var(--space-3) 0 0; }

/* ---------- Lucrări ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.work { padding: var(--space-4); border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: var(--space-3); }
.work:last-child { border-right: 0; }
.work-head { display: flex; justify-content: space-between; gap: var(--space-2); align-items: flex-start; }
.work h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 34px; line-height: 1; }
.work-head p { margin: 0; color: var(--mute); font-size: 15px; max-width: 34ch; }
.tags { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.tags span {
  border: 1px solid var(--ink); padding: 4px 12px; font-size: 12px; font-weight: 500;
  border-radius: 999px; white-space: nowrap;
}
.work-media {
  position: relative; display: block; background: var(--ink); overflow: hidden;
  aspect-ratio: 16 / 10;
}
.work-media .shot-desktop { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 600ms var(--ease-out); }
.work-media:hover .shot-desktop { transform: scale(1.03); }
.work-media .shot-mobile {
  position: absolute; right: 3%; bottom: -4%; width: 21%;
  border: 3px solid var(--paper); box-shadow: 0 12px 32px rgba(0,0,0,.35);
  aspect-ratio: 860 / 1800; object-fit: cover; object-position: top;
}
.work-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); color: var(--mute); font-size: 14px; margin-top: auto; }

.work-next .work-empty {
  flex: 1; min-height: 280px; border: 1.5px dashed var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  text-align: center; padding: var(--space-4);
}
.work-next .work-empty svg { width: 64px; height: 64px; color: var(--ink); }
.work-next .work-empty p { margin: 0; color: var(--mute); }

.work-link { position: relative; cursor: pointer; transition: background var(--base) var(--ease-out); }
.work-link .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.work-link .work-media, .work-link .work-foot .link-arrow { position: relative; z-index: 2; }
.work-link:hover { background: var(--paper-2); }
.work-link:hover h3 { color: var(--accent); }
.work-link h3 { transition: color var(--fast); }

/* ---------- Proces ---------- */
.steps { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--ink); }
.steps details { border-bottom: 1px solid var(--ink); }
.steps summary {
  list-style: none; display: grid; grid-template-columns: 90px 1fr 32px; align-items: center;
  gap: var(--space-2); padding: 20px 0; min-height: 64px;
}
.steps summary::-webkit-details-marker { display: none; }
.step-n { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.step-t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; }
.step-i { position: relative; width: 24px; height: 24px; justify-self: end; }
.step-i::before, .step-i::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform var(--base) var(--ease-out);
}
.step-i::before { width: 22px; height: 2px; }
.step-i::after { width: 2px; height: 22px; }
details[open] .step-i::before { transform: translate(-50%, -50%) rotate(45deg); }
details[open] .step-i::after { transform: translate(-50%, -50%) rotate(45deg); }
.steps details p {
  margin: 0; padding: 0 0 24px 106px; color: var(--ink-2); max-width: 60ch;
}
.steps summary:hover .step-t { color: var(--accent); }

/* ---------- Despre (întunecat) ---------- */
.section-dark {
  background: var(--ink); color: var(--paper);
  margin: 0 calc(-1 * var(--gutter)); padding: var(--space-7) var(--gutter);
  border-top: 0;
}
.section-dark .section-title { margin-bottom: var(--space-4); }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); max-width: var(--max); margin: 0 auto; }
.about-text p:not(.eyebrow) { margin: 0 0 var(--space-2); color: #D9D7CC; max-width: 58ch; }
.about-lists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-self: end; border-top: 1px solid #4A4944; padding-top: var(--space-3); }
.about-lists h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.about-lists ul { margin: 0; padding: 0; list-style: none; }
.about-lists li { padding: 6px 0; border-bottom: 1px solid #2A2925; font-size: 15px; color: #E6E4D9; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-6); }
.contact-info p { margin: 0 0 var(--space-4); font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.contact-info dl { margin: 0; display: grid; gap: var(--space-2); }
.contact-info dl > div { border-top: 1px solid var(--line); padding-top: 12px; }
.contact-info dt { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.contact-info dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; }
.contact-info dd a { border-bottom: 1.5px solid var(--accent); transition: color var(--fast); display: inline-block; min-height: 44px; line-height: 44px; }
.contact-info dd a:hover { color: var(--accent); }

.contact-form { display: grid; gap: var(--space-3); border: 1px solid var(--ink); padding: var(--space-4); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px;
  background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 0;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 46, .25); }
.field.invalid input { border-color: #C6361A; }
.error { color: #B32E15; font-size: 14px; min-height: 1.2em; }
.hint { color: var(--mute); font-size: 13px; }
.form-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 500; color: var(--ink-2); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--gutter); max-width: var(--max); margin: 0 auto;
  font-size: 14px; color: var(--mute);
}
.site-footer p { margin: 0; text-align: center; }
.site-footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-footer nav a { padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--accent); }

/* ---------- Buton WhatsApp fix ---------- */
.wapp {
  position: fixed; z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 28px rgba(20, 19, 17, .28);
  transition: background var(--fast) var(--ease-out), color var(--fast) var(--ease-out),
              opacity var(--base) var(--ease-out), transform var(--base) var(--ease-out);
}
.wapp svg { width: 30px; height: 30px; }
.wapp:hover { background: var(--ink); color: var(--paper); }
.wapp:active { transform: scale(.94); }
.wapp.ascuns { opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; }

/* ---------- Animații de apariție ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge > svg:first-child { animation: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--ink); }
  .service:last-child { border-bottom: 0; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .site-footer { padding-bottom: 104px; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; grid-column: 1 / -1; flex-direction: column; gap: 0;
    border-top: 1px solid var(--line); padding-top: var(--space-1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 48px; font-size: 17px; }
  .site-nav a::after { display: none; }

  .hero { padding-top: var(--space-5); }
  .hero-intro { grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-5); }
  .portrait { max-width: 360px; }
  .badge { left: 14px; bottom: 14px; width: 108px; height: 108px; }

  .works { grid-template-columns: 1fr; }
  .work { border-right: 0; border-bottom: 1px solid var(--ink); }
  .work:last-child { border-bottom: 0; }
  .work-head { flex-direction: column; }
  .tags { flex-direction: row; align-items: flex-start; }

  .steps summary { grid-template-columns: 70px 1fr 28px; }
  .steps details p { padding-left: 0; }
  .about-lists { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer nav { justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: var(--space-6) 0; }
  .section-dark { padding: var(--space-6) var(--gutter); }
  .hero-title { font-size: clamp(40px, 13vw, 80px); }
  .hero-title .kicker { width: 100%; font-size: .5em; margin-bottom: .1em; }
  .hero-text p { font-size: 17px; }
  .service, .work, .contact-form { padding: var(--space-3); }
  .service h3 { font-size: 26px; }
  .work h3 { font-size: 28px; }
  .step-t { font-size: 20px; }
  .form-actions .btn { width: 100%; }
  .wapp { width: 56px; height: 56px; }
  .wapp svg { width: 28px; height: 28px; }
}
