/* ==========================================================================
   Ambition — M&A Advisory
   Design tokens derived from the brand mark: navy #122A4D + gold #AE8A5A.
   Display: Piazzolla (serif, editorial gravitas). Body: Work Sans.
   Signature motif: a diagonal gold stroke, echoing the logo's swoosh,
   used as a hero flourish and as the tick mark for non-sequential lists.
   ========================================================================== */

/* ---- Self-hosted fonts (no third-party requests) ---- */
@font-face {
  font-family: 'Piazzolla';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/piazzolla-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/piazzolla-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/piazzolla-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/piazzolla-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/worksans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/worksans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  --navy: #122a4d;
  --navy-deep: #0b1d38;
  --navy-soft: #2b3a56;
  --gold: #ae8a5a;
  --gold-light: #c9ad82;
  --gold-pale: #e8dcc8;
  --paper: #fdfcfa;
  --paper-alt: #f3efe8;
  --ink: #2b3140;
  --ink-muted: #5b6473;
  --line: #e1dccf;
  --line-navy: #d7dce4;

  --font-display: 'Piazzolla', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;

  --container: 1120px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(18, 42, 77, 0.06), 0 8px 24px rgba(18, 42, 77, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1626;
    --paper-alt: #121d30;
    --ink: #e7e9ee;
    --ink-muted: #a6afc0;
    --line: #23304a;
    --line-navy: #23304a;
    --navy: #d9c9a8;
    --navy-deep: #060b14;
    --navy-soft: #cbb98f;
    --gold: #c9ad82;
    --gold-light: #dcc79f;
    --gold-pale: #2a2110;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  .site-header::before,
  .card,
  .form-panel,
  .contact-card {
    background: #101a2c;
  }
  .brand-logo,
  .footer-logo {
    background: #fff;
    border-radius: 50%;
    padding: 2px;
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Typography ---- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy-soft);
}

p + p { margin-top: 1em; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 66ch; }
.prose h3 { margin-top: 2em; margin-bottom: 0.6em; }

/* ---- Diagonal tick: the signature mark, echoing the logo's gold swoosh ---- */
.tick {
  --tick-size: 14px;
  position: relative;
  display: inline-block;
  width: var(--tick-size);
  height: var(--tick-size);
  flex: none;
}
.tick::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-navy);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn:active { transform: translateY(1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line-navy);
  padding-bottom: 0.15em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { border-color: var(--gold); color: var(--gold); }
.text-link .arrow { transition: transform 0.2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* Backdrop blur lives on a pseudo-element, not .site-header itself: a
   filter/backdrop-filter on an element makes it a containing block for
   its position:fixed descendants, which would trap the mobile nav
   overlay (#site-nav, fixed) inside the header's own box instead of
   letting it cover the viewport. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.brand-claim {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-menu a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:hover { color: var(--navy); }
.nav-menu a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 2px 3px;
}
.lang-switch a:hover { color: var(--gold); }
.lang-switch a.active { color: var(--navy); }
.lang-sep { color: var(--line-navy); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 28px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
  .nav-menu a { font-size: 1.1rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-block: 88px 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 48px;
  align-items: center;
}
.hero-title { margin-top: 18px; }
.hero-lead { margin-top: 24px; max-width: 46ch; }
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-mark {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark svg { width: 100%; height: 100%; }
.hero-mark .stroke {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-stroke 1.1s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.hero-mark .stroke-thin {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1;
  opacity: 0.18;
}
@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark .stroke { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 220px; margin-inline: auto; order: -1; }
}

/* ---- Sections ---- */
.section { padding-block: 80px; }
.section-alt { background: var(--paper-alt); }
.section-header { max-width: 62ch; margin-bottom: 44px; }
.section-header h2 { margin-top: 14px; }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line-navy), transparent 70%);
  margin-block: 0;
}

/* ---- Cards (non-sequential content: home teasers) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card .tick { margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: 0.96rem; }
.card .text-link { margin-top: 16px; font-size: 0.88rem; }

/* ---- Value list (non-sequential bullets, uses the tick mark) ---- */
.tick-list { display: grid; gap: 16px; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 500;
  color: var(--navy);
}
.tick-list .tick { margin-top: 4px; }

/* ---- Numbered steps (genuine sequence: the fee structure) ---- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.step h3 { margin-bottom: 10px; }
.step ul { margin-top: 14px; display: grid; gap: 8px; }
.step ul li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.step ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 1px;
  background: var(--gold);
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Coming-soon panels (References / Investor projects) ---- */
.panel {
  border: 1px dashed var(--line-navy);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  background: var(--paper);
}
.panel .tick { margin-inline: auto; margin-bottom: 18px; }
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--ink-muted); max-width: 52ch; margin-inline: auto; }
.panel .btn { margin-top: 24px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  padding-block: 64px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 12px; }
.cta-band .btn-gold { margin-top: 28px; }

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h2 { font-size: 1.1rem; margin-bottom: 18px; }
.contact-card p { margin-bottom: 14px; color: var(--ink-muted); }
.contact-card a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line-navy); }
.contact-card a:hover { color: var(--gold); border-color: var(--gold); }

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.form-check input { width: auto; margin-top: 3px; }
.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--ink-muted); }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #eef4ec; color: #33562f; border: 1px solid #cfe3c8; }
.form-status.is-error { background: #fbecec; color: #7a2727; border: 1px solid #f0caca; }

/* honeypot field, hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-logo { border-radius: 50%; margin-bottom: 14px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}
.footer-tagline { font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,0.7); max-width: 28ch; }
.footer-col h2 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p { font-size: 0.92rem; margin-bottom: 10px; color: rgba(255,255,255,0.75); }
.footer-col a { color: rgba(255,255,255,0.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer-col a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-links ul { display: grid; gap: 10px; }
.footer-links a { border-bottom: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 20px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }
