/* =========================================================
   COLUMBUS TRUST — Design system
   Palette: deep navy + warm cream + restrained brass
   Typography: Fraunces (display serif) + Inter (body sans)
   ========================================================= */

:root {
  --navy:        #0B2545;
  --navy-deep:   #06182E;
  --navy-soft:   #1B3358;
  --cream:       #F5F0E4;
  --paper:       #FBF8F1;
  --paper-warm:  #F1ECDF;
  --brass:       #B08D57;
  --brass-dim:   #8B6B3D;
  --ink:         #14181F;
  --ink-muted:   #5A6470;
  --line:        #D9CFB7;
  --line-soft:   #E8DFC9;

  --serif:  "Fraunces", "EB Garamond", "Georgia", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--navy); color: var(--cream); }

/* ---------- Typography scale ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.04;
  color: var(--navy);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.22; }
h4 { font-size: 1.15rem; }

p { color: var(--ink); }
p + p { margin-top: 0.9em; }

.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 880px;
}

.section-head .eyebrow + h2 { margin-top: 0.4rem; }

.divider {
  width: 48px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.06);
  padding: 0.7rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
}

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}

.brand-mark img { width: 100%; height: auto; }

.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-tag {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-top: 0.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover { color: var(--brass-dim); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.84rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--navy); color: var(--cream); }

.lang-switch {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.lang-switch a {
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}
.lang-switch a:hover { opacity: 1; color: var(--brass-dim); }
.lang-switch .active { color: var(--navy); font-weight: 500; opacity: 1; }
.lang-switch .sep { opacity: 0.3; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(176, 141, 87, 0.08), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(11, 37, 69, 0.06), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .eyebrow { margin-bottom: 1.5rem; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--brass-dim);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.6rem;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 0;
  margin-left: 1.75rem;
  color: var(--navy);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.hero-cta-secondary:hover { border-color: var(--brass); }

.hero-mark {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-mark::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.hero-mark img {
  position: relative;
  width: 64%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(11%) sepia(28%) saturate(2100%) hue-rotate(195deg) brightness(96%) contrast(102%);
  transition: transform 1.2s var(--ease);
}

/* ---------- Credibility band (horizontal marquee) ---------- */

.credibility {
  border-block: 1px solid var(--line-soft);
  padding-block: 2.5rem;
  background: var(--paper);
  overflow: hidden;
}

.credibility .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.credibility-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: 22ch;
  flex-shrink: 0;
}

.credibility-logos {
  overflow: hidden;
  min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
  will-change: transform;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  opacity: 0.62;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- About ---------- */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-statement {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.012em;
}

.about-statement em { color: var(--brass-dim); font-style: italic; }

.about-body p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.about-body p + p { margin-top: 1.2rem; }

.stats {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.stat {
  background: var(--paper);
  padding: 2rem 1.5rem;
  text-align: left;
}

.stat[data-animate] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stat[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .stat[data-animate] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.stat-num small { font-size: 0.5em; color: var(--brass-dim); font-weight: 400; margin-left: 0.1rem; }

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.8rem;
}

/* ---------- Services ---------- */

.services {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: clamp(2rem, 3.5vw, 3rem);
  position: relative;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(11, 37, 69, 0.25);
  border-color: var(--line);
}

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brass-dim);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.service-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.service-card h3 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
}

.service-list li {
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.service-list li::before {
  content: "";
  flex: 0 0 5px;
  width: 5px; height: 5px;
  background: var(--brass);
  margin-top: 0.6rem;
}

/* ---------- Team ---------- */

.team {
  background: var(--navy);
  color: var(--cream);
}

.team .eyebrow { color: var(--brass); }
.team h2 { color: var(--cream); }
.team .section-head p { color: rgba(245, 240, 228, 0.7); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.partner-card {
  background: var(--navy-deep);
  border: 1px solid rgba(176, 141, 87, 0.18);
  padding: clamp(2rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px -28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(176, 141, 87, 0.28);
  border-color: rgba(176, 141, 87, 0.42);
}

.partner-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 48px; height: 1px;
  background: var(--brass);
}

.partner-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  color: var(--cream);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.partner-role {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2rem;
}

.partner-bio {
  list-style: none;
}

.partner-bio li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(176, 141, 87, 0.12);
  font-size: 0.94rem;
  color: rgba(245, 240, 228, 0.82);
  line-height: 1.55;
}

.partner-bio li:last-child { border-bottom: none; }

.partner-bio strong {
  font-weight: 500;
  color: var(--cream);
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--brass);
  opacity: 0.8;
}

.partner-history {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.partner-history span {
  font-size: 0.86rem;
  color: rgba(245, 240, 228, 0.7);
  padding: 0.35rem 0;
}

.partner-contact {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.88rem;
}

.partner-contact a {
  color: var(--cream);
  border-bottom: 1px solid rgba(176, 141, 87, 0.4);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease);
}
.partner-contact a:hover { border-color: var(--brass); }

/* ---------- Contact ---------- */

.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-block h3 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.contact-row .label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dim);
  padding-top: 0.15rem;
}

.contact-row .value {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
}

.contact-row a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}
.contact-row a:hover { border-color: var(--brass); }

.contact-note {
  background: var(--cream);
  border-left: 2px solid var(--brass);
  padding: 1.5rem 1.8rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 240, 228, 0.7);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-tag { color: var(--brass); }
.footer-brand p {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 228, 0.6);
  max-width: 32ch;
  line-height: 1.55;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(245, 240, 228, 0.75);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brass); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(176, 141, 87, 0.18);
  font-size: 0.8rem;
  color: rgba(245, 240, 228, 0.5);
  letter-spacing: 0.06em;
}

.footer-bottom .legal { display: flex; gap: 1.8rem; }
.footer-bottom .legal a { color: rgba(245, 240, 228, 0.6); }
.footer-bottom .legal a:hover { color: var(--brass); }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger system — used for service/team cards and their inner content */
.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.stagger-item.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-child {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.stagger-child.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero title — line-by-line reveal */
.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.hero-title-line.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item,
  .stagger-child,
  .hero-title-line {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }
  .hero-mark {
    position: absolute;
    top: -8px;
    right: 0;
    width: clamp(76px, 14vw, 104px);
    height: auto;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
  }
  .hero-mark::before,
  .hero-mark::after { display: none; }
  .hero-mark img {
    width: 100%;
    height: auto;
  }

  .hero-text .eyebrow {
    padding-right: clamp(92px, 16vw, 120px);
    margin-bottom: clamp(2.25rem, 7vw, 3.25rem);
  }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: var(--paper);
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    z-index: 40;
  }
  .nav-mobile-open .nav-links a { font-size: 1.2rem; font-family: var(--serif); }
  .partner-history { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .credibility .container { grid-template-columns: 1fr; gap: 1rem; }
  .contact-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
