/* Fonturi găzduite local (subseturi latin + latin-ext pentru diacritice) */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(fonts/barlowc-700-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(fonts/barlowc-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/inter-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/inter.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --graphite: #1b1d20;
  --graphite-2: #23262a;
  --graphite-3: #2d3136;
  --line: #3a3e44;
  --text: #f4efe6;          /* alb cald */
  --muted: #b9b2a7;
  --amber: #f0a830;         /* singurul accent */
  --amber-hover: #f7bb52;
  --on-amber: #1b1d20;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 60px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .005em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--text); color: var(--graphite); padding: 10px 14px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Antet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(27, 29, 32, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }
nav .header-tel { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
  nav a:not(.header-tel) { display: none; }
}

/* ---------- Primul ecran ---------- */
.hero { padding-block: 0 56px; overflow: hidden; }
.hero-grid { display: grid; }
.hero-copy { order: 2; padding-top: 22px; }
.hero-media { order: 1; margin: 0 calc(var(--gutter) * -1); position: relative; overflow: hidden; background: #0c0d0e; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); text-transform: uppercase; text-wrap: balance; }
.lead { margin-top: 16px; font-size: 1.08rem; color: #e2dcd2; max-width: 34em; text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--amber); color: var(--on-amber);
  font-weight: 600; font-size: 1.02rem; text-decoration: none;
  border-radius: 8px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--amber-hover); }
.btn:active { transform: translateY(1px); }
.link-arrow {
  font-weight: 500; text-decoration: none; color: var(--text);
  border-bottom: 1px solid rgba(244,239,230,.4); padding: 6px 0 3px;
}
.link-arrow::after { content: " ↓"; }
.link-arrow:hover { border-bottom-color: var(--text); }

@media (max-width: 559px) {
  .actions .btn { width: 100%; }
}

/* Reflexia care traversează capota o singură dată */
.sheen {
  position: absolute; inset: 0; pointer-events: none;
  /* limitată la zona capotei (partea de sus a cadrului) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 52%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 52%);
}
.sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,246,228,0) 30%, rgba(255,246,228,.22) 50%, rgba(255,246,228,0) 70%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-120%) skewX(-14deg);
  animation: sheen 2.4s cubic-bezier(.45,.05,.3,1) .5s 1 forwards;
}
@keyframes sheen {
  to { transform: translateX(330%) skewX(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sheen { display: none; }
}

@media (min-width: 860px) {
  .hero { padding-block: 40px 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px; align-items: center;
    min-height: min(calc(100svh - 60px - 40px), 860px);
  }
  .hero-copy { order: 1; padding-top: 0; }
  .hero-media { order: 2; margin: 0; border-radius: 6px; height: min(calc(100svh - 60px - 80px), 820px); min-height: 520px; }
  .hero-media picture, .hero-media img { height: 100%; }
  .hero-media img { aspect-ratio: auto; object-position: 50% 38%; }
  .sheen { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 44%); mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 44%); }
  .lead { font-size: 1.2rem; }
}
@media (min-width: 1200px) {
  h1 { font-size: 6rem; }
}

/* ---------- Servicii ---------- */
.services { background: var(--graphite-2); padding-block: 64px 72px; border-top: 1px solid rgba(255,255,255,.05); }
h2 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); text-wrap: balance; max-width: 18ch; }
.hint { margin-top: 12px; color: var(--muted); }

.picker { margin-top: 32px; display: grid; gap: 12px; }
.choice {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 52px 18px 20px; position: relative;
  background: var(--graphite-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.choice:hover { border-color: #5a5f66; }
.choice[aria-expanded="true"] { border-color: var(--text); background: #33373d; }
.choice[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--text); }
.choice-text { font-size: 1.08rem; font-weight: 500; }
.choice-tag { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.panel { background: var(--graphite); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.panel[hidden] { display: none; }
.panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel-body { padding: 20px 20px 24px; }
.panel h3 { font-size: 1.9rem; text-transform: uppercase; }
.panel p { margin-top: 10px; color: #e2dcd2; max-width: 40em; }

@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: fadein .35s ease; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
}

@media (min-width: 860px) {
  .services { padding-block: 96px 112px; }
  /* Titlul și opțiunile în stânga, explicația în dreapta, aliniată sus */
  .services > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto auto auto auto auto 1fr;
    column-gap: 56px;
  }
  .services .eyebrow, .services h2, .services .hint { grid-column: 1; }
  .picker { display: contents; }
  .choice { grid-column: 1; padding: 22px 56px 22px 24px; margin-top: 14px; }
  #opt-polish { grid-row: 4; margin-top: 36px; }
  #opt-ceramic { grid-row: 5; }
  #opt-faruri { grid-row: 6; }
  .choice-text { font-size: 1.2rem; }
  .choice::after, .choice[aria-expanded="true"]::after { transform: rotate(-45deg); margin-top: -5px; }
  .panel { grid-column: 2; grid-row: 1 / -1; align-self: start; }
  .panel img { aspect-ratio: 3 / 2; }
  .panel-body { padding: 24px 30px 28px; }
  .panel h3 { font-size: 2.2rem; }
  .panel p { font-size: 1.06rem; }
}

/* ---------- Lucrări (portofoliu ilustrativ) ---------- */
.works { padding-block: 64px 72px; border-top: 1px solid rgba(255,255,255,.06); }
.demo-note {
  margin-top: 14px; display: inline-block; font-size: .88rem; color: var(--muted);
  border: 1px dashed #4a4f56; border-radius: 6px; padding: 8px 12px;
}
.works-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.works-grid figure { margin: 0; }
.works-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #111; }
.works-grid figcaption { margin-top: 14px; color: #d8d2c8; font-size: .95rem; text-wrap: pretty; }
.works-grid figcaption strong {
  display: block; margin-bottom: 4px; color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.12; text-transform: uppercase;
}
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; } }
@media (min-width: 1100px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .works { padding-block: 104px 112px; } .works-grid { margin-top: 44px; } }

/* ---------- Contact ---------- */
.contact { padding-block: 64px 72px; background: var(--graphite-2); border-top: 1px solid rgba(255,255,255,.05); }
.contact-inner { display: grid; gap: 48px; }
.contact h2 { text-transform: uppercase; max-width: 17ch; }
.city { margin-top: 8px; font-size: 1.15rem; color: var(--muted); }
.phone {
  display: inline-block; margin: 28px 0 20px;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 12vw, 4.4rem);
  line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.phone:hover { color: #fff; }
.contact-info .btn { display: flex; width: 100%; max-width: 360px; }

.form-wrap { background: var(--graphite); border: 1px solid var(--line); border-radius: 10px; padding: 24px 20px 26px; }
.contact-form h3, .form-success h3 { font-size: 1.9rem; text-transform: uppercase; }
.form-intro { margin-top: 6px; color: var(--muted); }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--graphite-3); border: 1px solid #4a4f56; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #7f7a72; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 2px rgba(244,239,230,.25); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.error { margin-top: 6px; font-size: .88rem; color: #ffb3a7; }
.error[hidden] { display: none; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-block { width: 100%; margin-top: 24px; }
.form-demo { margin-top: 12px; font-size: .82rem; color: #8d877e; }
.form-success p { margin-top: 12px; color: #e2dcd2; }
.form-success a { font-weight: 600; white-space: nowrap; }
.form-success:focus { outline: none; }
.link-btn {
  margin-top: 18px; padding: 6px 0 3px; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--text); border-bottom: 1px solid rgba(244,239,230,.4);
}
@media (min-width: 860px) {
  .contact { padding-block: 104px 112px; }
  .contact-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: start; }
  .form-wrap { padding: 32px 32px 34px; }
}

/* ---------- Subsol ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding-block: 22px 28px; font-size: .8rem; color: #8d877e; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
