/* Orvanto — site styles. Simple and clear: white and light-grey sections, the Reliato blue,
   Barlow Condensed for headings and DM Sans for text, gentle fade-ins. */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --white: #ffffff;
  --grey: #f4f5f9;
  --line: #e3e5ee;
  --ink: #0b0b12;
  --text: #3d3f4d;
  --blue: #0836c1;
  --blue-dark: #062a97;
  --blue-light: #e8edfc;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:target { scroll-margin-top: 6rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--grey { background: var(--grey); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.section-head p { margin-top: 1rem; font-size: 1.1875rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 999px;
  background: var(--blue); color: var(--white); border: 2px solid var(--blue);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 150ms var(--ease);
}
.btn--ghost { background: transparent; color: var(--blue); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.text-link span { transition: transform 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
  .btn--white:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue); }
  .text-link:hover span { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: scale(0.97); } }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus-visible { top: 1rem; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--ink); text-decoration: none; }
.logo span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; transition: color 180ms ease; }
.nav a[aria-current="page"] { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--blue); } }
.menu-btn { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 10px; background: var(--grey); color: var(--ink); }
.menu-btn svg { width: 1.25rem; height: 1.25rem; }

@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--pad) 1.25rem; background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .js .nav .btn { margin-top: 1rem; }
  html:not(.js) .header__inner { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 1rem 1.5rem; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 1.8rem + 4.6vw, 5.5rem); line-height: 0.95; }
.hero h1 span { color: var(--blue); }
.hero__text p { margin-top: 1.5rem; font-size: 1.25rem; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2.25rem; padding: 0; list-style: none; font-weight: 500; color: var(--ink); }
.hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 16 / 10; }
}

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.card { grid-column: span 2; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: span 3; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.card h3 { font-size: 1.875rem; }
.card__intro { margin-top: 0.5rem; }
.card ul { margin-top: 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.card li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%230836c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.card .text-link { margin-top: auto; padding-top: 1.5rem; }
.badge { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-family: var(--font-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; vertical-align: middle; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img img { transform: scale(1.04); } }
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 0; list-style: none; }
.reason { padding: 1.75rem; border-radius: var(--radius); background: var(--grey); }
.reason__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--blue); color: var(--white); }
.reason__icon svg { width: 1.5rem; height: 1.5rem; }
.reason h3 { margin-top: 1.25rem; font-size: 1.625rem; }
.reason p { margin-top: 0.5rem; font-size: 1rem; }
@media (max-width: 960px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding-top: 4.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); color: var(--blue); border: 2px solid var(--blue);
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem;
}
.step::after { content: ""; position: absolute; top: 1.5rem; left: 3.75rem; right: -0.75rem; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.625rem; }
.step p { margin-top: 0.5rem; font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step { padding: 0 0 0 4.25rem; min-height: 3rem; }
  .step::after { display: none; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.about p { margin-top: 1rem; }
.about .lead { font-size: 1.1875rem; color: var(--ink); }
.facts { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.facts div { border-top: 2px solid var(--blue); padding-top: 0.75rem; }
.facts dt { font-size: 0.875rem; color: var(--text); }
.facts dd { margin: 0.25rem 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- contact band ---------- */
.cta { background: var(--blue); color: var(--white); border-radius: calc(var(--radius) * 1.5); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.cta p { margin-top: 1rem; color: #dbe3ff; font-size: 1.125rem; max-width: 46ch; }
.cta__side { display: grid; gap: 1rem; justify-items: start; }
.cta__side address { font-style: normal; color: #dbe3ff; font-size: 0.9375rem; }
.cta :focus-visible { outline-color: var(--white); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9bccb; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; margin-top: var(--section); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer .logo { color: var(--white); }
.footer .logo span { color: #6f8fff; }
.footer__about p { margin-top: 1rem; font-size: 0.9375rem; max-width: 32ch; }
.footer h2 { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.footer ul { padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.footer a { color: #b9bccb; text-decoration: none; font-size: 0.9375rem; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--white); } }
.footer :focus-visible { outline-color: var(--white); }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #262838; font-size: 0.8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); background: var(--grey); }
.page-hero h1 { font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4.75rem); }
.page-hero p { margin-top: 1rem; font-size: 1.25rem; max-width: 52ch; }
.page-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.page-nav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; transition: border-color 180ms ease, color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .page-nav a:hover { border-color: var(--blue); color: var(--blue); } }

.practice { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.practice:last-of-type { border-bottom: 0; }
.practice__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.practice__head img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.practice__head h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.practice__head p { margin-top: 1rem; font-size: 1.1875rem; }
.service-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.service { padding: 1.75rem; border-radius: var(--radius); background: var(--grey); }
.service h3 { font-size: 1.625rem; }
.service p { margin-top: 0.6rem; font-size: 1rem; }
.service ul { margin-top: 1rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.service li { position: relative; padding-left: 1.4rem; font-size: 0.9375rem; color: var(--ink); }
.service li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue); }
@media (max-width: 860px) {
  .practice__head, .service-grid { grid-template-columns: 1fr; }
  .practice__head img { order: -1; }
}

.prose { max-width: 720px; }
.prose h2 { font-size: 2rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose a:not(.btn) { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose__meta { font-size: 0.9375rem; margin-bottom: 2rem; }
.legal-list { margin: 0 0 2rem; display: grid; border-top: 1px solid var(--line); }
.legal-list div { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { font-weight: 600; color: var(--ink); }
.legal-list dd { margin: 0; }
.legal-note { font-size: 0.875rem; }
@media (max-width: 640px) { .legal-list div { grid-template-columns: 1fr; gap: 0.25rem; } }
.footer__legal p:first-child { max-width: 70ch; }

.notfound { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.notfound h1 { font-size: clamp(3rem, 2rem + 4vw, 5rem); }
.notfound p { margin: 1rem auto 0; font-size: 1.1875rem; max-width: 40ch; }
.notfound .hero__actions { justify-content: center; }

/* ---------- light animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .fade { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .fade.is-in { opacity: 1; transform: none; }
  .js .hero .fade { transition-duration: 800ms; }
}
