/* WANDAPRELL SRL — stiluri
   Paletă: bleumarin corporativ + neutru cald. Fonturi de sistem (fără CDN). */

:root {
  --navy: #14304b;
  --navy-dark: #0e2338;
  --slate: #3e5c76;
  --slate-light: #6b8299;
  --cream: #f7f5f2;
  --cream-dark: #efebe5;
  --white: #ffffff;
  --ink: #1b1d1f;
  --muted: #5c6268;
  --line: #ddd8d1;
  --danger: #a52a2a;
  --success: #1f6b45;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 48, 75, .06), 0 8px 24px rgba(20, 48, 75, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--slate); }

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

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

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  border-radius: 3px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-suffix { color: var(--slate-light); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--slate); }

.site-nav .nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: var(--radius);
  border-bottom: 0;
}
.site-nav .nav-cta:hover { background: var(--navy-dark); border-bottom-color: transparent; }

/* ---------- Butoane ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-dark); }

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

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(20, 48, 75, .25); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(20, 48, 75, .04); }

.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 92px 0 76px;
}

.hero-inner { max-width: 820px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: .01em;
  margin-bottom: .35em;
}

.tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2em;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 2px;
}
.hero-facts dd { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Secțiuni ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); border-block: 1px solid var(--line); }

.section-dark {
  background: var(--navy);
  color: rgba(247, 245, 242, .88);
}
.section-dark .section-title { color: var(--cream); }
.section-dark .section-title::after { background: var(--slate-light); }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin-bottom: 1.2em;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--slate);
}

.section-lead {
  max-width: 620px;
  color: var(--muted);
  margin-top: -1em;
  margin-bottom: 2.4em;
}

/* ---------- Servicii ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.services li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

.svc-no {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--slate-light);
  min-width: 22px;
}

/* ---------- Misiune ---------- */

.mission {
  margin: 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--slate);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  color: var(--navy);
}

/* ---------- De ce noi ---------- */

.reasons {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 40px;
}

.reasons li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid rgba(247, 245, 242, .14);
}
.reasons li::before {
  content: "";
  position: absolute;
  left: 2px; top: 23px;
  width: 8px; height: 8px;
  border: 1px solid var(--slate-light);
  transform: rotate(45deg);
}

.closing-line {
  max-width: 760px;
  margin: 0;
  color: rgba(247, 245, 242, .75);
  font-size: 16px;
}

/* ---------- Tarife ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.price-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.price-card h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.price {
  font-family: var(--serif);
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.1;
}
.price strong { font-size: 2.1rem; font-weight: 600; }
.price span { font-size: .95rem; color: var(--muted); font-family: var(--sans); }

.price-note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 26px;
}

.price-card .btn { margin-top: auto; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.contact-details { margin: 32px 0 0; }
.contact-details > div { padding: 16px 0; border-top: 1px solid var(--line); }

.contact-details dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.contact-details dd { margin: 0; }
.contact-details a { color: var(--navy); }

/* ---------- Formular ---------- */

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(62, 92, 118, .12);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }

.field-error {
  min-height: 0;
  margin: 0;
  font-size: 13px;
  color: var(--danger);
}
.field-error:not(:empty) { margin-top: 5px; }

.field-check .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  cursor: pointer;
}
.field-check input { margin-top: 3px; flex: 0 0 auto; }

.btn-submit { width: 100%; margin-top: 6px; letter-spacing: .08em; }

.form-status {
  margin: 14px 0 0;
  padding: 0;
  font-size: 15px;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* Honeypot: invizibil pentru oameni, dar prezent în DOM pentru boți.
   Nu folosim display:none — unii boți sar peste câmpurile ascunse astfel. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Pagina legală (politica de confidențialitate) ---------- */

.legal { padding-top: 56px; }

.legal-title {
  font-size: clamp(2rem, 4.4vw, 2.6rem);
  margin-bottom: .2em;
}

.legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2em;
}

.legal-intro {
  font-size: 1.08rem;
  color: var(--muted);
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2em;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-size: 1.1rem;
  color: var(--slate);
  margin-top: 1.6em;
}

.legal-list {
  margin: 0 0 1.1em;
  padding-left: 22px;
}
.legal-list li { margin-bottom: .5em; }

.legal a { color: var(--slate); }

.legal-back {
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.legal-back a { text-decoration: none; color: var(--navy); }
.legal-back a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(247, 245, 242, .7);
  padding: 32px 0;
  font-size: 14px;
}
.site-footer strong { color: var(--cream); font-weight: 600; }
.site-footer a { color: rgba(247, 245, 242, .85); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-inner p { margin: 0; }

/* ---------- Chat ---------- */

.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  background: var(--navy);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(20, 48, 75, .28);
  transition: background-color .15s ease, transform .15s ease;
}
.chat-toggle:hover { background: var(--navy-dark); transform: translateY(-1px); }

.chat-toggle svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-toggle .icon-chat { fill: currentColor; stroke: none; }
.chat-toggle .icon-close { display: none; }

.chat-toggle[aria-expanded="true"] .icon-chat { display: none; }
.chat-toggle[aria-expanded="true"] .icon-close { display: block; }
.chat-toggle[aria-expanded="true"] .chat-toggle-label { display: none; }
.chat-toggle[aria-expanded="true"] { padding: 14px; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 130px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(20, 48, 75, .22);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy);
  color: var(--cream);
}
.chat-header h2 {
  font-size: 16px;
  color: var(--cream);
  margin: 0;
}
.chat-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: rgba(247, 245, 242, .7);
}

.chat-close {
  background: transparent;
  border: 0;
  padding: 4px;
  color: rgba(247, 245, 242, .8);
  cursor: pointer;
  border-radius: 3px;
}
.chat-close:hover { color: var(--cream); }
.chat-close svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}
.msg-user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--cream);
  border-bottom-right-radius: 3px;
}
.msg-error {
  align-self: stretch;
  max-width: 100%;
  background: #fdf2f2;
  border: 1px solid #e8c8c8;
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span {
  width: 6px; height: 6px;
  background: var(--slate-light);
  border-radius: 50%;
  animation: blink 1.3s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }

@keyframes blink {
  0%, 80%, 100% { opacity: .25; }
  40% { opacity: 1; }
}

.chat-note {
  align-self: center;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form textarea {
  flex: 1;
  resize: none;
  max-height: 120px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chat-form textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(62, 92, 118, .12);
}

.chat-send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--navy);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.chat-send:hover { background: var(--navy-dark); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-send svg { width: 18px; height: 18px; fill: currentColor; }

.chat-gate {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.chat-gate[hidden] { display: none; }
.chat-gate p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.chat-gate label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.chat-gate input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.chat-gate input:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(62, 92, 118, .12);
}
.chat-gate .btn { width: 100%; margin-top: 12px; }

/* Când poarta e activă, ascundem conversația și câmpul de scris. */
.chat-panel.locked .chat-body,
.chat-panel.locked .chat-form { display: none; }

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

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 52px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .chat-panel {
    right: 12px; left: 12px;
    bottom: 12px;
    width: auto;
    height: calc(100vh - 24px);
    max-height: none;
  }
  .chat-toggle { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
