/* ============================================================
   OlumaDent — components.css
   Componente de pagină: breadcrumb, formular, FAQ, alerte,
   tabel prețuri, galerie, utilitare responsive.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted-2); text-decoration: none; transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--accent); }

/* ── Formular de contact ───────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--text); }
.field-label .req { color: var(--accent); }

.input, .textarea, .select {
  width: 100%; padding: 13px 15px;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 13px;
  font-size: 15.5px; line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #a89f92; }
.textarea { resize: vertical; min-height: 130px; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,154,130,.16);
}
.field.has-error .input, .field.has-error .textarea { border-color: #c0553f; box-shadow: 0 0 0 4px rgba(192,85,63,.12); }
.field-error { font-size: 13px; color: #b14a35; }

/* honeypot — ascuns pentru oameni, momeală pentru boți */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-ink); text-decoration: underline; }

.form-note { font-size: 13px; color: var(--muted-2); line-height: 1.55; }

/* ── Alerte (rezultat formular) ────────────────────────────── */
.alert { padding: 15px 18px; border-radius: 14px; font-size: 15px; line-height: 1.55; display: flex; gap: 11px; align-items: flex-start; }
.alert svg { flex: none; margin-top: 2px; }
.alert-ok  { background: #eaf2ea; color: #2f5d3a; border: 1px solid #cfe3d1; }
.alert-err { background: #f7e9e4; color: #8a3a26; border: 1px solid #ecd2c8; }

/* ── FAQ (native <details>) ────────────────────────────────── */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px;
  overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--line); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 2.2vw, 20px); color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C9A82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); line-height: 1.7; font-size: 16px; }

/* ── Tabel prețuri (scroll propriu pe mobil) ───────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th, .price-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.price-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table .price { font-family: var(--font-head); font-weight: 600; color: var(--text); }
.price-table tbody tr:hover { background: var(--surface); }

/* ── Galerie ───────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Placeholder media (ÎNLOCUIEȘTE) ───────────────────────── */
.media-ph-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(46,42,38,.72); color: #fff; font-size: 11px; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 8px; font-weight: 600;
}

/* ── Pagini legale (proză) ─────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(40px,6vw,72px) 0; }
.legal .updated { font-size: 13.5px; color: var(--muted-2); margin-bottom: 6px; }
.legal h2 {
  font-family: var(--font-head); font-size: clamp(20px,3vw,26px);
  margin: 40px 0 12px; letter-spacing: -.01em;
}
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-family: var(--font-head); font-size: 18px; margin: 24px 0 8px; }
.legal p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.legal ul { color: var(--muted); line-height: 1.75; margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--accent-ink); text-decoration: underline; }
.legal strong { color: var(--text); }
.legal .legal-box {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 20px 22px; margin: 20px 0;
}

/* ── Utilitare responsive comune ───────────────────────────── */
img[loading] { background: var(--surface-2); }

@media (max-width: 720px) {
  h1 { font-size: clamp(30px, 9vw, 46px) !important; }
}
