/* ================================================================
   Research & Acquisition LLC — Design System
   Inspired by foundersfactory.com | Brand palette from R&A logo
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --ra-crimson: #8B1A1A;
  --ra-crimson-deep: #5C1010;
  --ra-crimson-light: #A52828;
  --ra-gold: #C9A84C;
  --ra-gold-light: #E8D48B;
  --ra-gold-dim: rgba(201, 168, 76, 0.15);

  /* Neutrals */
  --ra-cream: #FAF7F0;
  --ra-cream-warm: #F5F0E6;
  --ra-charcoal: #1A1A1A;
  --ra-slate: #4A4A4A;
  --ra-muted: #7A7A7A;
  --ra-white: #FFFFFF;
  --ra-border: rgba(201, 168, 76, 0.25);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 1170px;
  --content-narrow: 780px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ra-charcoal);
  background-color: var(--ra-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ra-charcoal);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
}

p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  color: var(--ra-slate);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ra-gold);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--ra-slate);
  max-width: 640px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background-color: var(--ra-crimson);
  color: var(--ra-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark .eyebrow {
  color: var(--ra-white);
}

.section--dark .eyebrow {
  color: var(--ra-gold-light);
}

.section--dark p,
.section--dark .lead {
  color: rgba(255, 255, 255, 0.8);
}

.section--deep {
  background-color: var(--ra-crimson-deep);
  color: var(--ra-white);
}

.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: var(--ra-white);
}

.section--deep .eyebrow {
  color: var(--ra-gold-light);
}

.section--deep p {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(24px, 5vw, 48px);
  transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.nav--scrolled {
  background: rgba(92, 16, 16, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ra-white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ra-gold);
  transition: width var(--transition-medium);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ra-white);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ra-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.nav__cta:hover {
  background: var(--ra-gold);
  border-color: var(--ra-gold);
  color: var(--ra-charcoal);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ra-white);
  transition: all var(--transition-fast);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ra-crimson);
  overflow: hidden;
  padding-top: 72px;
}

.hero--short {
  min-height: 50vh;
}

.hero__bg-orb {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(201, 168, 76, 0.2) 0%,
    rgba(201, 168, 76, 0.08) 40%,
    rgba(139, 26, 26, 0) 70%
  );
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 20px) scale(1.03); }
  50% { transform: translate(10px, -15px) scale(0.97); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  color: var(--ra-white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero .eyebrow {
  color: var(--ra-gold-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--outline {
  color: var(--ra-white);
  border-color: var(--ra-gold);
  background: transparent;
}

.btn--outline:hover {
  background: var(--ra-gold);
  color: var(--ra-charcoal);
}

.btn--gold {
  background: var(--ra-gold);
  color: var(--ra-charcoal);
  border-color: var(--ra-gold);
}

.btn--gold:hover {
  background: var(--ra-gold-light);
  border-color: var(--ra-gold-light);
}

.btn--dark {
  background: var(--ra-crimson);
  color: var(--ra-white);
  border-color: var(--ra-crimson);
}

.btn--dark:hover {
  background: var(--ra-crimson-deep);
  border-color: var(--ra-crimson-deep);
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Link Arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ra-gold);
  transition: gap var(--transition-fast);
}

.link-arrow:hover {
  gap: 14px;
}

.section--dark .link-arrow {
  color: var(--ra-gold-light);
}

/* --- Cards --- */
.card {
  background: var(--ra-white);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

.card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card__gold-border {
  border-left: 3px solid var(--ra-gold);
}

.card h3,
.card h4 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Stat Pills --- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.875rem;
  color: var(--ra-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
}

.stat:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.stat strong {
  font-weight: 600;
}

/* --- Process / Timeline --- */
.process-step {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--ra-gold);
  line-height: 1;
  min-width: 60px;
}

.process-step__content h4 {
  margin-bottom: 0.5rem;
}

.process-step__content p {
  font-size: 0.9375rem;
}

/* --- Credo / Principle Items --- */
.principle {
  padding: clamp(28px, 4vw, 40px);
  background: var(--ra-white);
  border-left: 3px solid var(--ra-gold);
  border-radius: 0 6px 6px 0;
  margin-bottom: clamp(16px, 2vw, 24px);
  transition: box-shadow var(--transition-medium);
}

.principle:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.principle h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--ra-crimson);
}

.principle p {
  font-size: 0.9375rem;
}

/* --- Check List --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ra-slate);
}

.check-list__marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ra-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-list__marker svg {
  width: 12px;
  height: 12px;
  stroke: var(--ra-gold);
}

/* --- Standards (gold bullets) --- */
.standard-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 2rem;
}

.standard-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.standard-list__marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--ra-gold);
  border-radius: 50%;
  margin-top: 8px;
}

.standard-list__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ra-slate);
}

/* --- Four Questions --- */
.questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 2.5rem;
}

.question-card {
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.question-card__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ra-gold-light);
  margin-bottom: 0.75rem;
}

.question-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* --- Contact Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ra-charcoal);
  letter-spacing: 0.02em;
}

.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ra-charcoal);
  background: var(--ra-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 12px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--ra-gold);
  box-shadow: 0 0 0 3px var(--ra-gold-dim);
}

.form__input.error,
.form__select.error,
.form__textarea.error {
  border-color: var(--ra-crimson);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234A4A4A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ra-muted);
}

.form__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--ra-crimson);
}

.form__consent a {
  color: var(--ra-crimson);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__message {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  display: none;
}

.form__message--success {
  background: rgba(34, 139, 34, 0.08);
  color: #228B22;
  border: 1px solid rgba(34, 139, 34, 0.2);
  display: block;
}

.form__message--error {
  background: rgba(139, 26, 26, 0.08);
  color: var(--ra-crimson);
  border: 1px solid rgba(139, 26, 26, 0.2);
  display: block;
}

/* --- CTA Band --- */
.cta-band {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--ra-crimson-deep);
  text-align: center;
}

.cta-band h2 {
  color: var(--ra-white);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--ra-crimson-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ra-gold);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--ra-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--ra-white);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--ra-gold);
  margin: 2rem 0;
}

.section--dark .divider {
  background: var(--ra-gold-light);
}

/* --- Prose Block --- */
.prose {
  max-width: 640px;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ra-crimson-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .questions {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
  }

  .stat {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
  }
  .stat:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero {
    min-height: 80vh;
  }

  .hero--short {
    min-height: 40vh;
  }

  .process-step {
    flex-direction: column;
    gap: 12px;
  }

  .process-step__num {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }
}
