/* Consortium Law MSO — site stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--gold-bright); }

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

/* Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 0.6em 0;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
em, .italic { font-style: italic; }
.amp { font-family: var(--font-display); font-style: italic; color: var(--gold); }
.mono { font-family: var(--font-mono); font-size: 0.94em; letter-spacing: -0.02em; }

.eyebrow, .hero-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 1rem 0;
}

.section-title { margin-top: 0; }
.section-lede { font-size: var(--fs-lede); color: var(--text-secondary); max-width: 60ch; margin: 0 0 2rem 0; }
.brand-rule { display: inline-block; width: 56px; height: 2px; background: var(--gold); margin: 0.5rem 0 1.6rem; }

/* Nav ------------------------------------------------------------------ */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,10,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand-mark .dot { color: var(--gold); margin: 0 0.14em; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }
@media (max-width: 820px) {
  .nav-inner { flex-direction: column; height: auto; padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .nav-links { gap: 0.9rem 1.2rem; justify-content: center; }
}

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(201,163,90,0.09), transparent 65%),
    radial-gradient(800px 500px at 0% 100%, rgba(201,163,90,0.06), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
  border-bottom: 1px solid var(--rule);
}
.hero.hero-image {
  background: none;
}
.hero.hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
}
.hero.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.92) 90%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.hero-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin: 0 0 1.3rem 0;
}
.hero-h1 .accent { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: var(--fs-lede);
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0 0 2.2rem 0;
}
.hero-sub .brand { color: var(--gold); font-style: normal; font-weight: 500; }

.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 140ms ease;
  cursor: pointer;
}
.btn.primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn.ghost { background: transparent; color: var(--text-primary); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-arrow { display: inline-block; transition: transform 140ms ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Trust ribbon --------------------------------------------------------- */
.trust-ribbon {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 100%);
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.3rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.8rem;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.trust-item { display: inline-flex; align-items: center; gap: 0.55rem; }
.trust-item .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}

/* Sections ------------------------------------------------------------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.section.alt { background: #0c0c0c; }
.container { max-width: var(--max); margin: 0 auto; }

/* Explore grid --------------------------------------------------------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.explore-card {
  display: block;
  padding: 1.7rem 1.6rem 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: all 160ms ease;
  color: var(--text-primary);
  position: relative;
}
.explore-card:hover {
  border-color: var(--gold);
  background: #131313;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.ex-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.ex-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.22;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.ex-blurb { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.55; }
.ex-arrow { position: absolute; bottom: 1.4rem; right: 1.4rem; color: var(--gold); font-size: 1.1rem; }

/* Content blocks ------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.pillar-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 1.2rem;
}
.pillar {
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
}
.pillar h3 { margin: 0 0 0.4rem 0; color: var(--text-primary); }
.pillar .p-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em; }
.pillar p { margin: 0.4rem 0 0 0; color: var(--text-secondary); font-size: 0.96rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.stat {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-elev);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 500;
}
.stat .lbl {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
  display: block;
}

/* Image block ---------------------------------------------------------- */
.figure {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
}
.figure img { display: block; width: 100%; height: auto; }
.figure .caption {
  padding: 0.9rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  border-top: 1px solid var(--rule);
}

/* Final CTA ------------------------------------------------------------ */
.final-cta {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  background:
    radial-gradient(1000px 400px at 50% 100%, rgba(201,163,90,0.12), transparent 70%),
    #0a0a0a;
  text-align: center;
}
.final-cta-inner { max-width: 780px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final-cta p { color: var(--text-secondary); font-size: var(--fs-lede); margin: 0 0 2rem 0; }
.final-cta .hero-cta-row { justify-content: center; }

/* Footer --------------------------------------------------------------- */
.site-footer {
  background: #060606;
  color: var(--text-secondary);
  padding: 3rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .tagline { margin: 0.8rem 0 0 0; max-width: 30ch; font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 1rem 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-quiet);
}
.footer-bottom .legal { max-width: 60ch; line-height: 1.6; }
.footer-trust { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--text-quiet); }

/* Contact form --------------------------------------------------------- */
.form-block {
  max-width: 640px;
  margin: 2rem 0 0 0;
  padding: 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #0a0a0a;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Utility -------------------------------------------------------------- */
.text-quiet { color: var(--text-quiet); }
.text-gold  { color: var(--gold); }
.rule       { height: 1px; background: var(--rule); margin: 2rem 0; }
.spacer-sm  { height: 1rem; }
.spacer-md  { height: 2.2rem; }
.spacer-lg  { height: 3.6rem; }
