/* Lăcrămioara Ursache — broker de credite, Iași
   Paletă: verde adânc (încredere, stabilitate) + alamă (căldură, personal) */

:root {
  --ink: #16302a;
  --ink-soft: #45605a;
  --paper: #f5f3ee;
  --white: #ffffff;
  --brass: #a9762f;
  --brass-dark: #8a5f24;
  --line: #ddd7cb;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1080px;
  --gap: clamp(3rem, 8vw, 6rem);
}

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

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

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

img { max-width: 100%; display: block; }

a { color: var(--brass-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ---------- Tipografie ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Antet ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  margin-right: auto;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--ink-soft);
}

.nav { display: flex; gap: 1.5rem; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: .95rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.call {
  display: inline-block;
  background: var(--ink); color: var(--white);
  text-decoration: none;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
}
.call:hover { background: var(--brass-dark); color: var(--white); }
.call.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.call.ghost:hover { background: var(--ink); color: var(--white); }

@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: wrap; gap: .75rem 1rem; padding-top: .75rem; padding-bottom: .75rem; }
  .site-head .call { display: none; }
  .nav { width: 100%; gap: 1.1rem; font-size: .9rem; overflow-x: auto; }
}

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

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 var(--gap); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 42ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.portrait {
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; aspect-ratio: 1 / 1; }
}

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

section { padding: var(--gap) 0; }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }

/* Servicii */

.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }

.service {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.service h3 { margin-bottom: .35em; }
.service p { margin-bottom: 1rem; font-size: .98rem; color: var(--ink-soft); }
.service a { font-weight: 500; }

/* Pași — chiar este o secvență, deci numerotarea are sens */

.steps { counter-reset: step; display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.step { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--brass); }
.step::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass);
  display: block;
  margin-bottom: .35rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Detaliu serviciu (pagina Servicii) */

.detail { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.detail:last-of-type { border-bottom: 0; }
.detail h2 { margin-bottom: .3em; }
.detail ul { margin: 0 0 1.25rem; padding-left: 1.15rem; max-width: 62ch; color: var(--ink-soft); }
.detail li { margin-bottom: .4rem; }

/* Contact */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list strong { display: block; font-weight: 500; font-size: .82rem; color: var(--ink-soft); margin-bottom: .15rem; }
.contact-list a, .contact-list span { font-size: 1.05rem; }

.transit { font-size: .95rem; color: var(--ink-soft); }
.transit dt { font-weight: 500; color: var(--ink); margin-top: 1rem; }
.transit dd { margin: .2rem 0 0; }

.map {
  width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 4px;
}

/* Bandă finală */

.cta-band {
  background: var(--ink); color: var(--paper);
  padding: var(--gap) 0;
  border-top: 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c9d6d1; }
.cta-band .call { background: var(--brass); }
.cta-band .call:hover { background: var(--white); color: var(--ink); }

/* ---------- Subsol ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 6rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; }
.site-foot nav { display: flex; gap: 1.25rem; margin-left: auto; }
.site-foot a { color: var(--ink-soft); }

/* ---------- Bară de contact pe mobil ---------- */

.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .5rem;
}
.mobile-bar a {
  flex: 1; text-align: center;
  padding: .8rem .5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: .95rem; font-weight: 500;
}
.mobile-bar .b-call { background: var(--ink); color: var(--white); }
.mobile-bar .b-wa { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

@media (max-width: 760px) { .mobile-bar { display: flex; } }

/* ---------- Banner cookie-uri ---------- */

#cookie-bar {
  position: fixed; z-index: 60;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 4px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 6px 28px rgba(22,48,42,.16);
}
#cookie-bar p { font-size: .93rem; line-height: 1.5; margin: 0 0 .9rem; max-width: none; color: var(--ink-soft); }
#cookie-bar .cb-actions { display: flex; gap: .6rem; justify-content: flex-end; }
#cookie-bar button {
  font: inherit; font-size: .92rem; font-weight: 500;
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
#cookie-bar button:hover { background: var(--paper); }
#cookie-bar .cb-yes { background: var(--ink); color: var(--white); }
#cookie-bar .cb-yes:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
@media (max-width: 760px) { #cookie-bar { bottom: 5.2rem; } }
