/* ROM (Romulus) public site — shared styles.
   Palette + font stack match the internal visual identity spec
   (01 - Active/19 - Static Website/Business Strategy/visual_identity.md)
   and the gantt chart already published there, for visual continuity
   between the internal and public sites. */

:root {
  --color-bg: #fef8ee;
  --color-text: #242d5d;
  --color-primary: #a4e3cd; /* light green — logo, positive facts */
  --color-secondary: #2e86ab; /* medium blue — sections */
  --color-accent: #f45b69; /* red — used sparingly, critical/CTA only */
  --color-done: #cfcfcf; /* achieved milestones */
  --font-display: "Lora", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: var(--color-secondary);
}

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

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

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254, 248, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(36, 45, 93, 0.1);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav .brand img {
  height: 32px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-secondary);
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p.lede {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(36, 45, 93, 0.85);
}

.scroll-hint {
  margin-top: 48px;
  font-size: 0.9rem;
  opacity: 0.6;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Founders */
.founders {
  padding: 48px 0 80px;
}

.founders-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.founder-card {
  text-align: center;
  max-width: 280px;
}

.founder-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid var(--color-primary);
}

.founder-card h3 {
  margin-bottom: 4px;
}

.founder-card .role {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.founder-card p {
  font-size: 0.95rem;
  color: rgba(36, 45, 93, 0.85);
}

/* Timeline */
.timeline-section {
  padding: 40px 0 120px;
  position: relative;
}

.timeline-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--color-done) 0%,
    var(--color-primary) 35%,
    var(--color-secondary) 70%,
    var(--color-secondary) 100%
  );
}

.milestone {
  position: relative;
  padding: 0 0 56px 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.milestone.in-view {
  opacity: 1;
  transform: translateY(0);
}

.milestone::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-done);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px rgba(36, 45, 93, 0.15);
}

.milestone.achieved::before {
  background: var(--color-primary);
}

.milestone.projected::before {
  background: var(--color-secondary);
}

.milestone.exit-window::before {
  background: var(--color-accent);
  width: 22px;
  height: 22px;
  left: -35px;
  top: 2px;
}

.milestone .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.milestone.achieved .tag {
  background: var(--color-primary);
  color: var(--color-text);
}

.milestone.projected .tag {
  background: rgba(46, 134, 171, 0.15);
  color: var(--color-secondary);
}

.milestone.exit-window .tag {
  background: var(--color-accent);
  color: var(--color-bg);
}

.milestone .date {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 6px;
}

.milestone h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.milestone p {
  margin: 0;
  color: rgba(36, 45, 93, 0.85);
  max-width: 620px;
}

/* Generic page sections (non-home pages) */
.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

section {
  padding: 40px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid rgba(36, 45, 93, 0.1);
  border-radius: 12px;
  padding: 28px;
}

.card h3 {
  color: var(--color-secondary);
}

/* "How it works" — 4 cards at the corners of a square, with a decorative
   connecting cross through the center. */
.square-diagram {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.square-diagram::before,
.square-diagram::after {
  content: "";
  position: absolute;
  background: rgba(46, 134, 171, 0.25);
  z-index: 0;
}

.square-diagram::before {
  /* horizontal line */
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.square-diagram::after {
  /* vertical line */
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.square-diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.square-diagram-grid .card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .square-diagram::before,
  .square-diagram::after {
    display: none;
  }
  .square-diagram-grid {
    grid-template-columns: 1fr;
  }
  .square-diagram-grid .card {
    aspect-ratio: auto;
  }
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

/* Form */
form.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(36, 45, 93, 0.25);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid rgba(36, 45, 93, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  opacity: 0.7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .milestone {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint {
    animation: none;
  }
}

/* Responsive nav */
@media (max-width: 640px) {
  .site-nav ul {
    gap: 16px;
    font-size: 0.9rem;
  }
  .hero {
    padding: 64px 0 48px;
  }
}
