/* LawRush — The Rush Desk (light luxury matter atelier) */
@import url('https://fonts.googleapis.com/css2?family=Cousine:wght@400;500&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&family=Urbanist:wght@600;700;800&display=swap');

:root {
  --paper: #F1F3F6;
  --mist: #E4E7EC;
  --ink: #12151C;
  --cerulean: #0D6B7C;
  --slate: #6E7580;
  --link-on-light: #0D6B7C;
  --text-on-accent: #F1F3F6;
  --max-w: 74rem;
  --header-h: 4.25rem;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 100%; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link-on-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ink); }

h1, h2 {
  font-family: 'Urbanist', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3, h4 {
  font-family: 'Urbanist', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.125rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.375rem; }

.label, .eyebrow {
  font-family: 'Cousine', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cerulean);
}

/* Surface system — paired bg+text only */
.surface-paper { background: var(--paper); color: var(--ink); }
.surface-ink { background: var(--ink); color: var(--paper); }
.surface-mist { background: var(--mist); color: var(--ink); }
.surface-cerulean { background: var(--cerulean); color: var(--text-on-accent); }

.surface-ink a { color: var(--paper); }
.surface-ink a:hover { color: var(--cerulean); }
.surface-paper a, .surface-mist a { color: var(--link-on-light); }

/* Cerulean buttons/links — always white text */
a.btn-primary,
button.btn-primary,
.btn-primary {
  background: var(--cerulean);
  color: #fff;
  border-color: var(--cerulean);
}

a.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover {
  color: #fff;
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.container--narrow { width: min(100% - 2.5rem, 42rem); }

/* Header — paper → ink sticky */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid rgba(18, 21, 28, 0.06);
}

.site-header.is-sticky {
  box-shadow: 0 8px 32px rgba(18, 21, 28, 0.18);
}

.site-header.is-sticky.surface-paper {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: rgba(241, 243, 246, 0.08);
}

.site-header.is-sticky .wordmark,
.site-header.is-sticky .nav-link { color: var(--paper); }

.site-header.is-sticky .nav-link::after { background: var(--cerulean); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.wordmark {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: inherit;
  flex-shrink: 0;
}

.wordmark:hover { color: var(--cerulean); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2.5vw, 1.75rem);
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: inherit;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cerulean);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 0.375rem 0.625rem;
  font-family: 'Cousine', monospace;
  font-size: 0.6875rem;
  cursor: pointer;
  color: inherit;
}

/* Buttons — 2px radius */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(13, 107, 124, 0.28);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-secondary:hover { box-shadow: 0 2px 12px rgba(18, 21, 28, 0.1); }

.site-header .header-cta {
  flex-shrink: 0;
}

.site-header .header-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(13, 107, 124, 0.28);
}

main { padding-top: var(--header-h); }

/* Hero pattern D — stacked */
.hero {
  min-height: 92vh;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(18, 21, 28, 0.12);
  position: relative;
}

.hero-top-row::before,
.hero-top-row::after {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cerulean);
  background: var(--paper);
}

.hero-top-row::before { left: 0; }
.hero-top-row::after { right: 0; }

.hero h1 { max-width: 18ch; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.hero h1 .accent { color: var(--cerulean); }

.hero-standfirst {
  max-width: 35rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.65;
  color: rgba(18, 21, 28, 0.82);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-trust {
  margin-top: 2rem;
  font-family: 'Cousine', monospace;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.06em;
}

/* Rush timeline signature motif */
.rush-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2rem;
  max-width: 36rem;
  position: relative;
}

.rush-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(18, 21, 28, 0.15);
  z-index: 0;
}

.rush-node {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  font-family: 'Cousine', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 1.25rem;
}

.rush-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--mist);
  background: var(--paper);
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.rush-timeline.is-bloomed .rush-node::before,
.rush-node.is-lit::before {
  border-color: var(--cerulean);
  background: var(--cerulean);
  box-shadow: 0 0 0 4px rgba(13, 107, 124, 0.15);
}

.rush-timeline.is-bloomed .rush-node,
.rush-node.is-lit { color: var(--cerulean); }

/* Framed photo plate */
.photo-plate {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(18, 21, 28, 0.18);
  padding: 0.5rem;
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(18, 21, 28, 0.08);
  transition: box-shadow 0.8s ease, transform 0.8s ease;
}

.photo-plate.is-bloomed {
  box-shadow: 0 32px 80px rgba(13, 107, 124, 0.12);
  transform: translateY(-4px);
}

.photo-plate::before,
.photo-plate::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cerulean);
  border-style: solid;
  pointer-events: none;
}

.photo-plate::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.photo-plate::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.photo-plate img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

.trust-card {
  position: absolute;
  bottom: -1.5rem;
  right: clamp(1rem, 4vw, 2.5rem);
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid rgba(18, 21, 28, 0.1);
  box-shadow: 0 12px 40px rgba(18, 21, 28, 0.1);
  max-width: 16rem;
  font-size: 0.9375rem;
}

.trust-card .label { display: block; margin-bottom: 0.375rem; }

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 40rem; }

.section-head p { margin-top: 1rem; color: rgba(18, 21, 28, 0.78); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }

.metric-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(18, 21, 28, 0.08);
  border: 1px solid rgba(18, 21, 28, 0.08);
}

.metric-cell {
  padding: 2rem 1.5rem;
  text-align: center;
}

.metric-cell .num {
  font-family: 'Cousine', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--cerulean);
  display: block;
}

.metric-cell .desc {
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  color: var(--slate);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stage-card {
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(18, 21, 28, 0.08);
  position: relative;
}

.stage-card .serial {
  font-family: 'Cousine', monospace;
  font-size: 0.6875rem;
  color: var(--cerulean);
  margin-bottom: 0.75rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.capability-card {
  padding: 1.5rem;
  border-left: 3px solid var(--cerulean);
  background: rgba(228, 231, 236, 0.35);
}

.capability-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.capability-card p { font-size: 1rem; color: rgba(18, 21, 28, 0.78); }

.capability-cta { margin-top: 2rem; }

.matter-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.matter-teaser img { border: 1px solid rgba(241, 243, 246, 0.15); }

.mini-faq details {
  border-bottom: 1px solid rgba(18, 21, 28, 0.1);
  padding: 1.25rem 0;
}

.mini-faq summary {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.mini-faq summary::-webkit-details-marker { display: none; }

.mini-faq p { margin-top: 0.75rem; color: rgba(18, 21, 28, 0.78); }

.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 32rem; margin: 0 auto 1.5rem; opacity: 0.88; }

.cta-band.surface-cerulean a:not(.btn),
.cta-band.surface-ink a:not(.btn) {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cta-band.surface-cerulean a:not(.btn):hover,
.cta-band.surface-ink a:not(.btn):hover {
  color: #fff;
}

.cta-band.surface-cerulean .btn-secondary,
.cta-band.surface-ink .btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.cta-band.surface-cerulean .btn-secondary:hover,
.cta-band.surface-ink .btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(18, 21, 28, 0.15);
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.prose { max-width: 42rem; }
.prose p + p { margin-top: 1.25rem; }
.prose ul, .prose ol { margin: 1.25rem 0 1.25rem 1.5rem; }
.prose li + li { margin-top: 0.5rem; }

.prose-wide { max-width: 52rem; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
}

.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }

.service-block img { border: 1px solid rgba(18, 21, 28, 0.1); }

.price-note {
  font-family: 'Cousine', monospace;
  font-size: 0.8125rem;
  color: var(--cerulean);
  margin-top: 1rem;
}

.matter-card {
  padding: 2rem;
  border: 1px solid rgba(18, 21, 28, 0.1);
  margin-bottom: 2rem;
}

.matter-card h3 { margin-bottom: 0.75rem; }

.matter-card img { border: 1px solid rgba(18, 21, 28, 0.1); }

.faq-list details {
  border: 1px solid rgba(18, 21, 28, 0.08);
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

.faq-list summary {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.faq-list p { margin-top: 1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-block address { font-style: normal; line-height: 1.8; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  border: 1px solid rgba(18, 21, 28, 0.18);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--cerulean);
}

.form-check label {
  flex: 1;
  margin-bottom: 0;
  font-weight: 400;
  font-family: 'Crimson Pro', serif;
  font-size: 0.9375rem;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.legal-doc h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 21, 28, 0.08);
}

.legal-doc h2:first-of-type { border-top: none; padding-top: 0; }

.disclaimer-box {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cerulean);
  background: rgba(228, 231, 236, 0.5);
  margin: 2rem 0;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid rgba(241, 243, 246, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .wordmark {
  font-size: 1.5rem;
  color: inherit;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { color: inherit; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--cerulean); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(241, 243, 246, 0.12);
  font-size: 0.875rem;
  opacity: 0.75;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  opacity: 0.7;
  max-width: 52rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -8px 32px rgba(18, 21, 28, 0.15);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cookie-text { flex: 1; min-width: 16rem; font-size: 0.9375rem; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(18, 21, 28, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-open { display: flex; }

.cookie-modal-panel {
  max-width: 28rem;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
}

/* Reveal animation — JS enhanced only */
.js .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal:not(.is-visible) {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .photo-plate.is-bloomed { transform: none; }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .stage-grid, .capability-grid,
  .matter-teaser, .contact-grid, .service-block,
  .footer-grid, .metric-trio { grid-template-columns: 1fr; }

  .service-block:nth-child(even) { direction: ltr; }

  .nav-toggle { display: block; margin-left: auto; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid rgba(18, 21, 28, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-header.is-sticky .site-nav { background: var(--ink); }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .header-cta { display: none; }

  .trust-card { position: relative; bottom: auto; right: auto; margin-top: 1rem; }

  .hero { min-height: auto; }
}
