/* ==========================================================================
   IT LAW — Cabinet de avocat Ioana Tăbușcă
   Static stylesheet. No build step, no dependencies.
   Palette + typography derived from the approved brand lockup and reference
   screenshots (warm gold, deep navy, cream, slate body text).
   ========================================================================== */

/* ---------- Fonts: Lato, self-hosted, full Romanian coverage ----------
   Subsetted from the official OFL Lato release (github.com/google/fonts)
   instead of using Google's "latin" and "latin-ext" web subsets. Those do
   not contain a-breve (U+0103), s-comma (U+0219) or t-comma (U+021B), so
   the browser silently fell back to a system font for exactly those letters
   and the word looked semi-bold in the middle. Each file below covers
   Latin-1 + Latin Extended-A + the four Romanian letters, so one file per
   weight is sufficient and no unicode-range split is needed. */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/lato-300.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #0b253b;
  --navy-2: #15334e;
  --gold: #bc9c80;        /* decorative: rules, borders, frames */
  --gold-ink: #8e6c45;    /* text-safe gold (4.8:1 on white) */
  --gold-soft: #d9c6ac;   /* hairlines */
  --gold-bright: #c9a961; /* on navy only */
  --body: #4c5468;
  --muted: #6b7285;
  --cream: #f9f7f5;
  --cream-2: #f3efe9;
  --line: #e4ded4;
  --white: #fff;

  --font: "Lato", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;

  --step: clamp(56px, 7.5vw, 104px);
  --shadow: 0 18px 40px -24px rgb(11 37 59 / 0.35);

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--gold-ink); }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-soft); color: var(--navy); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; color: var(--cream); }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--wrap), 100% - (2 * var(--gutter)));
  margin-inline: auto;
}

.section { padding-block: var(--step); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.band { background: var(--cream); }
.band--deep { background: var(--cream-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.4em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--navy);
}
.brand img { width: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--navy);
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  flex-wrap: wrap;
}
.nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--body);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--navy); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold-ink); }

.nav .lang {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
}
.nav .lang:hover { background: var(--cream); border-color: var(--gold-ink); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  text-align: center;
  padding-block: clamp(34px, 5.5vw, 66px) clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.hero .lockup {
  width: clamp(190px, 24vw, 268px);
  margin: 0 auto clamp(18px, 2.6vw, 30px);
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-size: clamp(0.92rem, 1.5vw, 1.06rem);
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  text-wrap: balance;
}
.tagline::before,
.tagline::after {
  content: "";
  flex: 0 1 92px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.tagline::after { background: linear-gradient(to left, transparent, var(--gold)); }

.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero .lead {
  max-width: 56ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(24px, 3.4vw, 36px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.85em 1.65em;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--navy-2);
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gold);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--gold-ink); }
.btn svg { width: 17px; height: 17px; }

/* ---------- About ---------- */
.about {
  display: grid;
  gap: clamp(30px, 4.5vw, 56px);
  align-items: center;
}
.about__media { position: relative; max-width: 430px; width: 100%; justify-self: center; }
.about__media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: calc(var(--radius) + 4px);
  z-index: -1;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__body h2 { margin-bottom: 0.45em; }
.about__body p { max-width: 58ch; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Commitment ---------- */
.commit { text-align: center; }
.commit__inner { max-width: 60ch; margin-inline: auto; }
.commit__rule {
  width: 56px;
  height: 1px;
  margin: 0 auto 26px;
  background: var(--gold);
}
.commit p {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--body);
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.card__index {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
}
.card h3 { margin-bottom: 0.5em; }
.card p { font-size: 0.97rem; color: var(--muted); margin: 0; }

/* ---------- Checks ---------- */
.checks {
  display: grid;
  gap: 14px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.checks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--gold-ink); }
@media (min-width: 760px) {
  /* Odd number of items: let the last one use the full width. */
  .checks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
}
.steps p { margin: 0.4em 0 0; }

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: rgb(249 247 245 / 0.82);
  text-align: center;
}
.contact h2 { color: var(--cream); }
.contact .tagline { color: var(--gold-bright); }
.contact .tagline::before,
.contact .tagline::after { background: linear-gradient(to right, transparent, rgb(201 169 97 / 0.75)); }
.contact .tagline::after { background: linear-gradient(to left, transparent, rgb(201 169 97 / 0.75)); }

.contact__lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 46px;
  margin: clamp(24px, 3.6vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.contact__lines a,
.contact__lines span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact__lines a:hover { color: var(--white); border-bottom-color: var(--gold-bright); }
.contact__lines svg { width: 19px; height: 19px; color: var(--gold-bright); }

.contact__note {
  margin-top: clamp(22px, 3vw, 30px);
  font-size: 0.88rem;
  color: rgb(249 247 245 / 0.62);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(30px, 4vw, 44px);
  background: var(--cream);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; }
.footer-brand strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.footer-brand span { font-size: 0.78rem; letter-spacing: 0.04em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Prose (privacy, 404) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.24rem, 2.2vw, 1.5rem); margin-top: 2.1em; margin-bottom: 0.5em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.7em; color: var(--navy); }
.prose ul { padding-left: 1.15em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose__meta { font-size: 0.88rem; color: var(--muted); }

.lone {
  text-align: center;
  padding-block: clamp(64px, 10vw, 120px);
}
.lone h1 { margin-bottom: 0.4em; }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .about { grid-template-columns: minmax(280px, 0.85fr) 1.15fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .header-inner { padding-block: 10px; justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .nav { width: 100%; justify-content: center; gap: 10px 16px; }
  .nav a { font-size: 0.85rem; }
  .about__media::after { inset: 10px -10px -10px 10px; }
  .contact__lines { flex-direction: column; gap: 12px; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}

@media print {
  .site-header, .contact .btn, .skip { display: none; }
  body { color: #000; background: #fff; }
  .contact { background: #fff; color: #000; }
  .contact h2 { color: #000; }
}
