/* Construct Dobre Dănuț — Versiunea 1: direct & minimal */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap; src: url(assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap; src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-024F; }

:root {
  --bg: #F6F5F1;
  --ink: #1D2324;
  --ink-2: #555D5E;
  --accent: #C65A2E;
  --accent-ink: #A8481F; /* accent darkened for small text on --bg (AA) */
  --line: #D9D9D2;
  --field: #FFFFFF;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --gut: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), 1200px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }

.label { font: 600 .6875rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.label--accent { color: var(--accent-ink); }
.note { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 .9375rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.head { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.logo__name { font: 600 1.375rem/1 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.logo__meta { font-size: .75rem; color: var(--ink-2); }
.demo { font: 600 .625rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); padding: 5px 7px; white-space: nowrap; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: .875rem; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.head__tel { font: 600 1.375rem/1 var(--head); letter-spacing: .02em; text-decoration: none; white-space: nowrap; padding: 8px 0 8px 32px; border-left: 1px solid var(--line); }
.head__tel .label { margin-right: 8px; vertical-align: 3px; }
.head__tel:hover { color: var(--accent-ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 55fr 45fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(32px, 5vh, 56px) clamp(48px, 7vh, 80px); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
h1 { font: 600 clamp(2.75rem, 6.1vw, 5.25rem)/.95 var(--head); letter-spacing: -.01em; margin: 18px 0 24px; max-width: 11em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.0625rem; max-width: 34em; color: var(--ink-2); margin-bottom: 28px; }
.lead strong { color: var(--ink); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 0 40px; width: 100%; margin-top: clamp(32px, 6vh, 56px); padding-top: 16px; border-top: 1px solid var(--line); }
.facts dd { font-size: .9375rem; font-weight: 500; margin-top: 2px; }

/* Form */
.panel { background: var(--field); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: clamp(20px, 2.4vw, 28px); scroll-margin-top: 80px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form__head, .form__foot, .field--wide { grid-column: 1 / -1; }
.form__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.form__head h2, .done h2 { font: 600 1.625rem/1.1 var(--head); }
.field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 6px; }
.field label span { color: var(--accent-ink); }
input, select, textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #B9BAB2; border-radius: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--body); appearance: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 84px; }
select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D2324' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select:invalid { color: var(--ink-2); }
::placeholder { color: #70787A; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--field); box-shadow: inset 0 -2px 0 var(--accent); }
[aria-invalid="true"] { border-color: #B3261E; box-shadow: inset 0 -2px 0 #B3261E; }
.err { font-size: .8125rem; line-height: 1.35; color: #B3261E; }
.err:not(:empty) { margin-top: 6px; }
.form__foot { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.form__foot .btn { flex: none; background: var(--accent-ink); border-color: var(--accent-ink); }
.form__foot .btn:hover { background: var(--ink); border-color: var(--ink); }

.done h2 { margin: 10px 0 12px; }
.done > p:not(.label) { font-size: .9375rem; color: var(--ink-2); }
.done__sum { margin: 18px 0 20px; border-top: 1px solid var(--line); font-size: .875rem; }
.done__sum div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.done__sum dt { color: var(--ink-2); }
.done__sum dd { overflow-wrap: anywhere; }

/* Sections */
.sec { display: grid; grid-template-columns: 3fr 9fr; gap: 32px; padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--ink); }
.sec__side .note { margin-top: 12px; max-width: 22em; }
.list li { display: grid; grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.list li:first-child { padding-top: 0; border-top: 0; }
.list li:last-child { padding-bottom: 0; }
.list__no { font: 500 1rem/1 var(--head); letter-spacing: .08em; color: var(--accent-ink); }
.list h3 { font: 600 clamp(1.625rem, 2.6vw, 2.25rem)/1.05 var(--head); text-wrap: balance; }
.list p { color: var(--ink-2); font-size: .9375rem; }

.plate { padding-bottom: clamp(56px, 8vw, 104px); }
.plate img { aspect-ratio: 21 / 9; object-fit: cover; background: var(--line); }
.plate figcaption { margin-top: 10px; }

.about { max-width: 780px; }
.about__lead { font: 500 clamp(1.625rem, 2.8vw, 2.375rem)/1.15 var(--head); margin-bottom: 20px; text-wrap: balance; }
.about > p:not(.about__lead) { color: var(--ink-2); max-width: 38em; }
.data { margin-top: 36px; border-top: 1px solid var(--line); }
.data div { display: grid; grid-template-columns: 12rem 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.data dd { font-weight: 500; font-size: .9375rem; }

/* Contact + footer */
.contact { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--ink); }
.contact__tel { display: inline-block; font: 600 clamp(3.5rem, 13vw, 10rem)/.9 var(--head); letter-spacing: -.01em; text-decoration: none; margin: 16px 0 28px; transition: color .15s; }
.contact__tel:hover { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__row p { color: var(--ink-2); }
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-block: 20px; font-size: .8125rem; color: var(--ink-2); }

.bar { display: none; }

/* Tablet */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .facts { display: none; }
  .sec { grid-template-columns: 1fr; gap: 28px; }
  .nav, .head__tel .label { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  .head__in { height: 56px; gap: 12px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 5px; }
  .logo__name { font-size: 1.125rem; }
  .logo__meta { display: none; }
  .demo { border: 0; padding: 0; }
  .head__tel { font-size: 1.125rem; padding-left: 14px; }
  .head__tel .label { display: none; }
  .hero { gap: 28px; padding-top: 28px; }
  h1 { margin: 12px 0 16px; }
  .lead { font-size: 1rem; margin-bottom: 0; }
  .hero__text .actions { display: none; } /* the form follows directly; the bottom bar carries both actions */
  .form { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .list li { grid-template-columns: 2.5rem 1fr; gap: 6px 12px; padding: 22px 0; }
  .list p { grid-column: 2; }
  .plate { width: 100%; }
  .plate img { aspect-ratio: 3 / 2; }
  .plate figcaption { padding-inline: var(--gut); }
  .data div { grid-template-columns: 1fr; gap: 2px; }
  .contact__row .btn { display: none; }
  .foot__in { padding-bottom: calc(20px + 72px + env(safe-area-inset-bottom)); }
  .bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 10; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transition: transform .2s; }
  .bar.is-off { transform: translateY(100%); visibility: hidden; transition: transform .2s, visibility 0s .2s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
