/* Lexco Expert - lexco.ro
   Dark, precise, hairline-structured. One accent (jade), one radius scale (10px). */

:root {
  --bg: #f7f9fc;              /* page */
  --bg-2: #ffffff;            /* cards and surfaces */
  --tint: #eaf1fb;            /* pastel blue band */
  --line: rgba(22, 35, 59, 0.12);
  --line-strong: rgba(22, 35, 59, 0.2);
  --ink: #16233b;             /* 14.9:1 on the page */
  --ink-2: #4a5769;           /* 7.0:1 */
  --ink-3: #5f6b7a;           /* 4.9:1, small labels */
  --accent: #0a5fbf;          /* links and labels, 5.9:1 */
  --accent-solid: #046bd2;    /* the original Lexco blue, buttons */
  --accent-hover: #0a5fbf;
  --accent-ink: #ffffff;
  --radius: 10px;
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.01em; }
p { margin: 0; }
.lede { color: var(--ink-2); max-width: 62ch; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 39px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: 18px; }
.lang {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang:hover { color: var(--ink); border-color: var(--line-strong); }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent-solid); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- hero */
.hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
}
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19.5px); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg-2); padding: 20px 22px; }
.fact b {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fact span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------------------------------------------------------------- sections */
section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: clamp(34px, 5vw, 56px); }

/* services: featured tile + four */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc {
  background: var(--bg-2);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s ease;
}
.svc:hover { background: var(--tint); }
.svc--feature { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.svc--feature h3 { font-size: clamp(23px, 2vw, 30px); }
.svc--wide { grid-column: span 2; }
.svc--full { grid-column: span 4; flex-direction: row; align-items: flex-start; gap: clamp(20px, 4vw, 56px); }
.svc--full > div:first-child { flex: 0 0 clamp(200px, 26%, 320px); }
.svc--full p { max-width: 62ch; }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.svc .mono { color: var(--accent); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .svc--feature, .svc--wide, .svc--full { grid-column: span 1; grid-row: auto; flex-direction: column; }
  .svc--full > div:first-child { flex: none; }
}

/* advantages: hairline rows, two columns */
.adv { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(36px, 6vw, 72px); }
.adv > div { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.adv h3 { margin-bottom: 8px; }
.adv p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .adv { grid-template-columns: 1fr; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quote { background: var(--bg-2); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 17px; }
.quote footer { color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.quote footer b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about .lede { font-size: 17.5px; }
.about-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.about-list li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15.5px; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--accent);
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.16); }
.field .err { color: #ff9b8a; font-size: 13.5px; min-height: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.form-note { margin-top: 14px; font-size: 14px; }
.form-note.ok { color: var(--accent); }
.form-note.bad { color: #ff9b8a; }
button[disabled] { opacity: 0.6; cursor: progress; }

.details { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail { background: var(--bg-2); padding: 20px 22px; display: grid; gap: 4px; }
.detail span { color: var(--ink-3); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-family: "IBM Plex Mono", monospace; }
.detail a, .detail p { text-decoration: none; font-size: 16.5px; }
.detail a:hover { color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.site-footer { padding: 40px 0 56px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--ink-3);
  font-size: 14px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gut);
  top: 10px;
  z-index: 60;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: var(--radius);
}

/* motion: reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* legal pages */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal h2 { margin-top: 36px; font-size: clamp(21px, 2vw, 26px); }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; }
.legal ul { padding-left: 20px; }


/* ================================================================ liveliness */

/* scroll progress hairline, pure CSS scroll-driven where supported */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 50;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress-grow linear both; animation-timeline: scroll(root block); }
    @keyframes progress-grow { to { transform: scaleX(1); } }
  }
}

/* hero backdrop */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.cta-band, .page-hero { background: var(--bg); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(97deg, rgba(247,249,252,0.9) 0%, rgba(247,249,252,0.84) 38%, rgba(247,249,252,0.34) 66%, rgba(247,249,252,0.06) 100%),
    linear-gradient(to bottom, rgba(247,249,252,0.32) 0%, rgba(247,249,252,0.02) 34%, rgba(247,249,252,0.78) 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: drift 34s ease-in-out infinite alternate; }
  @keyframes drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.09) translate3d(-1.6%, -1.2%, 0); }
  }
}
@media (max-width: 760px) {
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(247,249,252,0.74) 0%, rgba(247,249,252,0.88) 40%, rgba(247,249,252,0.95) 100%);
  }
  .hero-bg img { object-position: 58% 40%; }
}

/* hero entrance, CSS only so the text never depends on JavaScript */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-cta, .hero .facts {
    animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero .lede { animation-delay: 0.1s; }
  .hero-cta { animation-delay: 0.2s; }
  .hero .facts { animation-delay: 0.3s; }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* navigation underline */
.nav-links a { position: relative; padding-block: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* counters keep their width steady while animating */
.fact b { font-variant-numeric: tabular-nums; }

/* service tiles */
.svc { position: relative; }
.svc::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc:hover::before { transform: scaleX(1); }
.svc h3 { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.svc:hover h3 { transform: translateX(4px); }
.svc .go {
  margin-top: auto;
  text-decoration: none;
  align-self: flex-start;
  color: var(--accent);
  font-size: 15px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.svc:hover .go, .svc:focus-within .go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .svc .go { opacity: 1; transform: none; }
}

/* advantage index numbers */
.adv > div { position: relative; counter-increment: adv; }
.adv { counter-reset: adv; }
.adv > div::before {
  content: "0" counter(adv);
  display: block;
  margin-bottom: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* testimonials react to the pointer */
.quote { transition: background 0.3s ease; }
.quote:hover { background: var(--tint); }

/* mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(22, 35, 59, 0.1);
  }
  .action-bar .btn { width: 100%; }
  body { padding-bottom: 86px; }
}


/* the whole service tile is clickable, the visible link stays the focus target */
.svc .go::after { content: ""; position: absolute; inset: 0; }
.svc .go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc:has(.go:hover) { background: var(--bg-2); }

/* ================================================================ inner pages */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4.2vw, 50px); max-width: 20ch; }
.page-hero .head { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 18px; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--accent);
}

.narrow { max-width: 860px; }
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--bg-2); }
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--tint); }
.faq p { padding: 0 24px 22px; color: var(--ink-2); max-width: 70ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chip:hover { color: var(--accent); border-color: var(--accent); background: var(--tint); }

.cta-band { border-bottom: none; }
.cta-band .lede { margin-top: 14px; }
.cta-band .hero-cta { margin-top: 26px; }

/* services hub: full-width rows rather than the homepage mosaic */
.services.stack { grid-template-columns: 1fr; }
.services.stack .svc { text-decoration: none; }
.services.stack .svc h3 { font-size: clamp(21px, 2vw, 26px); }
.services.stack .svc p { max-width: 80ch; }
.services.stack .svc .go { position: static; }
.services.stack .svc .go::after { content: ""; position: absolute; inset: 0; }

.legal h1 { font-size: clamp(28px, 3.4vw, 40px); }

/* ================================================================ invitation */
.invite {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.invite-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.invite-portrait img { width: 100%; height: auto; }
.invite-portrait figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 20px;
  background: linear-gradient(to top, rgba(255,255,255,0.96) 30%, rgba(255,255,255,0));
}
.invite-portrait figcaption { color: var(--ink); }
.invite-portrait figcaption b { display: block; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.invite-portrait figcaption span { color: var(--accent); font-size: 14px; }
.invite-text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.invite-text + .invite-text { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); }
.direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.direct a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.direct a:hover { border-color: var(--accent); background: var(--bg-2); }
.direct a span { color: var(--ink-3); font-size: 13px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 860px) {
  .invite { grid-template-columns: 1fr; }
  .invite-portrait { max-width: 340px; }
}

.form-card {
  margin-top: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 10px 40px rgba(22, 35, 59, 0.06);
  padding: clamp(24px, 3.4vw, 44px);
}
.form-card h3 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 6px; }
.form-card .sub { color: var(--ink-2); font-size: 15.5px; margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 760px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-foot .btn { min-width: 190px; }
.form-reassure { color: var(--ink-3); font-size: 14px; max-width: 46ch; }
.form-card .consent { margin: 4px 0 18px; }

/* ================================================================ crumbs, team */
.crumbs {
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 12px 0;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); margin: 0 2px; }
.crumbs [aria-current] { color: var(--ink-2); }

.team { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.member { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; }
.member h3 { margin-bottom: 6px; }
.member .role { color: var(--accent); font-size: 15px; margin-bottom: 14px; }
.member p { color: var(--ink-2); font-size: 16px; }
.member--note {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  background: var(--tint);
}
.member--note h3 { font-size: 19px; }
.member--note p { margin-top: 12px; }
.member--note .muted { color: var(--ink-3); font-size: 15px; }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .member { grid-template-columns: 1fr; } .member .invite-portrait { max-width: 320px; } }

/* ================================================================ map */
.map-band { border-bottom: none; }
.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(22,35,59,.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(22,35,59,.05) 0 1px, transparent 1px 44px),
    var(--tint);
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-inner { text-align: center; padding: 32px 20px; display: grid; gap: 16px; justify-items: center; }
.map-addr { font-size: 17px; line-height: 1.5; }
.map-note { color: var(--ink-3); font-size: 13.5px; max-width: 46ch; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-band .direct { margin-top: 18px; }
@media (max-width: 680px) { .map { min-height: 260px; } .map iframe { height: 320px; } }


/* ================================================================ consent bar */
.consent-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 60;
  width: min(760px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(22, 35, 59, 0.18);
}
.consent-bar[hidden] { display: none; }
.consent-bar p { color: var(--ink-2); font-size: 14.5px; max-width: 60ch; margin: 0; }
.consent-bar a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 760px) {
  .consent-bar { bottom: 92px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* ================================================================ page heroes with a photo */
.page-hero--img {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 136px) 0 clamp(56px, 7vw, 88px);
}
.page-hero--img > .wrap { position: relative; z-index: 1; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.page-hero--img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(97deg, rgba(247,249,252,0.9) 0%, rgba(247,249,252,0.84) 38%, rgba(247,249,252,0.34) 68%, rgba(247,249,252,0.08) 100%),
    linear-gradient(to bottom, rgba(247,249,252,0.34) 0%, rgba(247,249,252,0.02) 34%, rgba(247,249,252,0.8) 100%);
}
@media (max-width: 760px) {
  .page-hero--img::after {
    background: linear-gradient(to bottom, rgba(247,249,252,0.76) 0%, rgba(247,249,252,0.89) 42%, rgba(247,249,252,0.96) 100%);
  }
}

/* ================================================================ CTA band with Mihaela */
.cta-band--photo {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}
.cta-photo { position: absolute; inset: 0; z-index: 0; }
.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keeps Mihaela in frame at every width */
  object-position: 38% 42%;
}
.cta-band--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(270deg,
    rgba(247,249,252,0.97) 0%, rgba(247,249,252,0.94) 32%,
    rgba(247,249,252,0.68) 52%, rgba(247,249,252,0.26) 78%, rgba(247,249,252,0.12) 100%);
}
.cta-band--photo > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.cta-band--photo .cta-copy { grid-column: 2; }
.cta-band--photo .cta-copy .lede { margin-top: 14px; }
@media (max-width: 900px) {
  .cta-band--photo { padding-top: clamp(240px, 42vw, 340px); }
  .cta-photo img { object-position: 42% 32%; }
  .cta-band--photo::after {
    background: linear-gradient(to bottom,
      rgba(247,249,252,0.3) 0%, rgba(247,249,252,0.55) 38%, rgba(247,249,252,0.95) 68%, rgba(247,249,252,0.98) 100%);
  }
  .cta-band--photo > .wrap { grid-template-columns: 1fr; }
  .cta-band--photo .cta-copy { grid-column: 1; }
}

/* ================================================================ hero parallax
   Scroll-driven animation: the browser runs it off the main thread, so there is
   no scroll listener and nothing to jank. Browsers without support simply show
   a still image, and anyone who asks for reduced motion gets the same. */
.hero-bg img, .page-hero-bg img { transform-origin: 50% 50%; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg img,
    .page-hero-bg img,
    .cta-photo img {
      animation: hero-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      will-change: transform;
    }
    @keyframes hero-parallax {
      from { transform: scale(1.14) translateY(-4%); }
      to   { transform: scale(1.14) translateY(4%); }
    }
  }
}
