/* ==========================================================================
   Verifield Group — due diligence & economic intelligence
   Dark, sober, institutional. Mobile-first. No framework.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom properties
   -------------------------------------------------------------------------- */
:root {
  --navy: #0a1628;
  --navy-deep: #07101c;
  --navy-raised: #102038;
  --ivory: #f3efe6;
  --ivory-soft: #e8e2d6;
  --ink: #121820;
  --ink-muted: #4a5564;
  --paper-muted: #8b93a0;
  --gold: #c4a574;
  --gold-bright: #d4b896;
  --line-dark: rgba(196, 165, 116, 0.22);
  --line-light: rgba(10, 22, 40, 0.12);
  --white: #ffffff;

  --font-serif: "Playfair Display", "Times New Roman", Times, serif;
  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1120px;
  --nav-h: 4.5rem;
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 36rem;
  margin-top: 1.15rem;
  color: var(--ink-muted);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rule {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1.5rem 0;
  background: var(--gold);
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Sticky navigation — stacked on mobile, inline from tablet up
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.94);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.9rem 0 0.95rem;
}

.logo {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ivory);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-links a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.8125rem;
  color: var(--paper-muted);
}

.language-links a {
  padding-block: 0.35rem;
}

.language-links a[aria-current="page"],
.language-links a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav { flex-wrap: wrap; }

@media (max-width: 979px) {
  html { scroll-padding-top: 13rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 7.5rem);
  padding: 4rem 0 3.5rem;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 80% 55% at 100% -10%, rgba(196, 165, 116, 0.08), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-dark);
}

.hero__kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  max-width: 14ch;
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 8.4vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__sub {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: var(--paper-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero .btn {
  margin-top: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.hero__meta span:not(:first-child)::before {
  content: "·";
  margin-right: 1.5rem;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Positioning band
   -------------------------------------------------------------------------- */
.statement {
  padding: 3.25rem 0;
  background: var(--navy-deep);
  color: var(--ivory);
  border-bottom: 1px solid var(--line-dark);
}

.statement p {
  max-width: 46rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ivory-soft);
}

/* --------------------------------------------------------------------------
   Problem — light institutional band
   -------------------------------------------------------------------------- */
.problem {
  padding: var(--section-y) 0;
  background: var(--ivory);
  color: var(--ink);
}

.cards-3 {
  display: grid;
  gap: 1.25rem;
}

.card {
  padding: 1.75rem 1.5rem 1.85rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.card:hover {
  border-color: var(--gold);
  background: var(--white);
}

.card__index {
  display: block;
  margin-bottom: 1.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
}

.card p {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services {
  padding: var(--section-y) 0;
  background: #ece7dc;
  color: var(--ink);
}

.service {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem 1.85rem;
  border: 1px solid var(--line-light);
  background: var(--ivory);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-grid {
  display: grid;
  gap: 1.5rem;
}

.service:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.service h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.55rem;
}

.service h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin: 1.05rem 0 0;
  background: var(--gold);
}

.service > p {
  margin-top: 0.85rem;
  flex: 1;
  color: var(--ink-muted);
}

.service__deliverable {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
  color: var(--ink);
}

.service__deliverable span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Method / process — dark
   -------------------------------------------------------------------------- */
.method {
  padding: var(--section-y) 0;
  background: var(--navy);
  color: var(--ivory);
}

.method .section-lead {
  color: var(--paper-muted);
}

.process {
  display: grid;
  gap: 0;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.2rem;
  width: 1px;
  background: var(--line-dark);
}

.process li {
  position: relative;
  padding: 1.35rem 0 1.35rem 1.5rem;
}

.process li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.7rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--navy);
}

.process__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.process h3 {
  margin-top: 0.35rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
}

.process p {
  margin-top: 0.45rem;
  color: var(--paper-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Trust
   -------------------------------------------------------------------------- */
.trust {
  padding: var(--section-y) 0;
  background: var(--ivory);
  color: var(--ink);
}

.trust-grid {
  display: grid;
  gap: 1.25rem;
}

.trust-item {
  padding: 1.6rem 0 0.4rem;
  border-top: 1px solid var(--gold);
}

.trust-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
}

.trust-item p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Contact / CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: var(--section-y) 0;
  background: var(--navy-deep);
  color: var(--ivory);
}

.cta .section-lead {
  color: var(--ivory-soft);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}

.section-note {
  max-width: 32rem;
  margin-top: 0.85rem;
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.contact-whatsapp {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.contact-whatsapp .btn {
  max-width: 100%;
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-dark);
  background: var(--navy);
  color: var(--ivory);
  border-radius: 0;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #66707e;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ivory);
  -webkit-box-shadow: 0 0 0 1000px var(--navy) inset;
  caret-color: var(--ivory);
}

.form__note {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--paper-muted);
}

.form__note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form__status {
  display: none;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--gold-bright);
}

.form__status.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0 2rem;
  background: #050b14;
  color: var(--paper-muted);
  border-top: 1px solid var(--line-dark);
}

.footer__brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
}

.footer__tag {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
}

.footer__contact {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer__contact:hover {
  color: var(--gold-bright);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.75rem;
}

.footer__links a {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__links a:hover {
  color: var(--ivory);
}

.footer__legal {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  line-height: 1.65;
}

.footer__legal p + p {
  margin-top: 0.65rem;
  max-width: 40rem;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.9rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__policies a:hover {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Legal documents
   -------------------------------------------------------------------------- */
.legal-body {
  background: var(--ivory);
  color: var(--ink);
}

.legal-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--navy);
  color: var(--ivory);
}

.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-hero p {
  margin-top: 0.85rem;
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.legal-doc {
  max-width: 42rem;
  padding: var(--section-y) 0;
}

.legal-doc h2 {
  margin: 2.4rem 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p + p {
  margin-top: 0.85rem;
}

.legal-doc ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-doc li {
  margin: 0.35rem 0;
  color: var(--ink-muted);
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-muted);
}

.legal-doc a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-doc strong {
  color: var(--ink);
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status.is-error {
  color: #c9a3a3;
}

/* --------------------------------------------------------------------------
   Scroll reveal (CSS only — View Timelines; graceful if unsupported)
   -------------------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise 0.7s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .reveal-delay-1 { animation-range: entry 5% entry 40%; }
  .reveal-delay-2 { animation-range: entry 10% entry 45%; }
  .reveal-delay-3 { animation-range: entry 15% entry 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .service {
    animation: none !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Tablet and up
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    padding: 0;
  }

  .nav-links {
    flex-direction: row;
    gap: 1.75rem;
  }

  .hero {
    min-height: calc(100svh - var(--nav-h));
    padding: 5.5rem 0 4.5rem;
  }

  .cards-3,
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .process {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }

  .process::before {
    top: 0.55rem;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .process li {
    padding: 2rem 1.1rem 0.25rem 0;
  }

  .process li::before {
    top: 0.4rem;
    left: 0;
  }

  .process li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2rem;
    right: 0;
    width: 1px;
    height: calc(100% - 2rem);
    background: var(--line-dark);
  }

  .cta__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }

  .cta .section-head {
    margin-bottom: 0;
  }

  .footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer__links {
    flex-direction: row;
    gap: 1.75rem;
    margin-top: 0;
  }
}

@media (min-width: 980px) {
  .wrap {
    width: min(calc(100% - 4.5rem), var(--max));
  }

  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card,
  .service {
    padding: 2.1rem 1.85rem 2rem;
  }

  .process li {
    padding-right: 1.4rem;
  }
}
