/* ===========================
   Engine House Marketing
   Shared Stylesheet
   =========================== */

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

:root {
  --orange: #ff6633;
  --black: #000000;
  --white: #ffffff;
  --grey: #111111;
  --mid-grey: #222222;
  --light-grey: #f5f5f5;
  --text-muted: #aaaaaa;
  --purple: #6b21a8;
  --purple-light: #7c3aed;
  --green: #22c55e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===========================
   Navigation
   =========================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--black);
  border-bottom: 1px solid #1a1a1a;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--orange);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===========================
   Hero
   =========================== */

.hero {
  background-color: var(--grey);
  background-image: url('../images/hero-background.jpeg');
  background-size: cover;
  background-position: center;
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.88;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-orange {
  background-color: var(--orange);
  color: var(--white);
}

.btn-purple {
  background-color: var(--purple-light);
  color: var(--white);
}

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

/* ===========================
   Sections
   =========================== */

section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-dark {
  background-color: var(--black);
}

.section-grey {
  background-color: var(--mid-grey);
}

.section-light {
  background-color: var(--light-grey);
  color: #111;
}

.section-light h2,
.section-light h3 {
  color: #111;
}

.section-light p,
.section-light li {
  color: #333;
}

.section-purple {
  background-color: var(--purple);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: block;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 680px;
}

.section-light .lead {
  color: #444;
}

/* ===========================
   Two-column grid
   =========================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

/* ===========================
   Cards / Venture grid
   =========================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--mid-grey);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid #2a2a2a;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,102,51,0.12);
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.card-tag.coming-soon {
  color: var(--text-muted);
  background: rgba(255,255,255,0.07);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
}

.card .card-link::after {
  content: ' →';
}

/* ===========================
   Stats
   =========================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ===========================
   CTA Banner
   =========================== */

.cta-banner {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ===========================
   Roll For Company specific
   =========================== */

.rfc-hero {
  background-image: url('../images/home-background.png');
  background-size: cover;
  background-position: center top;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.section-light .feature-list li {
  color: #333;
}

.section-light .feature-list li::before {
  color: #16a34a;
}

/* ===========================
   About / Bio
   =========================== */

.bio-section {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* ===========================
   Footer
   =========================== */

footer {
  background-color: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid #1a1a1a;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col.reverse {
    direction: ltr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}
