/* ─── THEME TOKENS ────────────────────────────────────── */
:root {
  /* Light mode */
  --bg:          #f7f3ec;   /* warm cream */
  --bg-alt:      #1c1917;   /* warm near-black */
  --text:        #1c1917;
  --text-alt:    #f7f3ec;
  --muted:       #7a7570;
  --muted-alt:   rgba(247,243,236,0.42);
  --border:      rgba(28,25,23,0.1);
  --border-alt:  rgba(247,243,236,0.09);
  --accent:      #C8102E;
  --accent-h:    #a00d24;
}

[data-theme="dark"] {
  /* Dark mode — both tones go darker, keep the warmth */
  --bg:          #242220;   /* warm dark charcoal (replaces cream) */
  --bg-alt:      #0f0e0d;   /* near-black with warmth */
  --text:        #e8e3db;
  --text-alt:    #e8e3db;
  --muted:       #6a6460;
  --muted-alt:   rgba(232,227,219,0.4);
  --border:      rgba(232,227,219,0.09);
  --border-alt:  rgba(232,227,219,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0 3rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(15, 14, 13, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.theme-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.loaded { opacity: 1; }

/* Fallback bg if no video loads */
.hero-fallback {
  position: absolute;
  inset: 0;
  background: #0f0e0d;
  pointer-events: none;
}

/* Gradient overlay so text is always readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(15,14,13,0.55) 0%, rgba(15,14,13,0.3) 40%, rgba(15,14,13,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(3.8rem, 10vw, 10rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,0.5);
  max-width: 420px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.28);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.6; }
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.82rem 2.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-light {
  background: #fff;
  color: #0f0e0d;
}
.btn-light:hover { background: #e8e3db; }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  background: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }

.btn-red {
  background: var(--accent);
  color: #fff;
}
.btn-red:hover { background: var(--accent-h); }

/* ─── SHARED EYEBROW ─────────────────────────────────── */
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
}

/* ─── STATEMENT ───────────────────────────────────────── */
.statement {
  background: var(--bg);
  color: var(--text);
  padding: 10rem 2rem;
  text-align: center;
  transition: background 0.4s, color 0.4s;
}

.statement h2 {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
  max-width: 860px;
  margin: 0 auto 2rem;
}

.statement p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.78;
}

/* ─── SPECIALTIES ─────────────────────────────────────── */
.specialties {
  background: var(--bg);
  padding: 7rem 3rem;
  transition: background 0.4s;
}

.spec-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.specialties h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  color: var(--text);
  transition: color 0.4s;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s;
}

.spec-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.4s;
}

.spec-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
  transition: color 0.4s;
}

.spec-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  transition: color 0.4s;
}

/* ─── SERVICES ────────────────────────────────────────── */
.services {
  background: var(--bg-alt);
  padding: 8rem 3rem;
  transition: background 0.4s;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.services-header h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-alt);
  line-height: 1.07;
  transition: color 0.4s;
}

.services-header p {
  font-size: 0.875rem;
  color: var(--muted-alt);
  max-width: 220px;
  text-align: right;
  line-height: 1.65;
  transition: color 0.4s;
}

.services-list {
  max-width: 1200px;
  margin: 0 auto;
}

.service-row {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-alt);
  transition: border-color 0.4s;
}

.service-row:last-child { border-bottom: 1px solid var(--border-alt); }

.service-row:hover .service-num { color: var(--accent); }
.service-row:hover .service-row-top { padding-left: 0.75rem; }

.service-row-top {
  transition: padding-left 0.3s ease;
}

.service-row-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
}

.service-num {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted-alt);
  font-weight: 600;
  width: 2.5rem;
  flex-shrink: 0;
  transition: color 0.25s;
}

.service-name {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-alt);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.4s;
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  opacity: 0.8;
}

.service-sub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0 1rem 4.5rem;
  transition: color 0.4s;
}

.service-sub-group h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-sub-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-sub-group ul li {
  font-size: 0.82rem;
  color: var(--muted-alt);
  line-height: 1.5;
  padding-left: 0.75rem;
  position: relative;
}

.service-sub-group ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(200,16,46,0.4);
  font-size: 0.7rem;
}

/* ─── FINANCING ───────────────────────────────────────── */
.financing {
  background: var(--bg);
  padding: 7rem 3rem;
  transition: background 0.4s;
}

.financing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.financing .section-eyebrow { margin-bottom: 1rem; }

.financing h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.financing p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.75;
  transition: color 0.4s;
}

/* ─── PARTNERS ────────────────────────────────────────── */
.partners {
  background: var(--bg-alt);
  padding: 7rem 3rem;
  transition: background 0.4s;
}

.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-sub {
  font-size: 1rem;
  color: var(--muted-alt);
  margin-bottom: 3rem;
  transition: color 0.4s;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-alt);
  border: 1px solid var(--border-alt);
  border-radius: 16px;
  overflow: hidden;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 2rem 2.25rem;
  background: var(--bg-alt);
  text-decoration: none;
  transition: background 0.2s;
}

.partner-card:hover { background: rgba(200,16,46,0.06); }

.partner-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-alt);
  letter-spacing: -0.01em;
  transition: color 0.4s;
}

.partner-handle {
  font-size: 0.78rem;
  color: var(--muted-alt);
  transition: color 0.4s;
}

/* ─── ABOUT ───────────────────────────────────────────── */
.about {
  background: var(--bg);
  padding: 10rem 3rem;
  transition: background 0.4s;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 2rem;
  color: var(--text);
  transition: color 0.4s;
}

.about p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 1.25rem;
  transition: color 0.4s;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.meta-item h4 {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.meta-item p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.meta-item a {
  color: var(--accent);
  text-decoration: none;
}

.meta-item a:hover { text-decoration: underline; }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact {
  background: var(--bg-alt);
  padding: 10rem 3rem;
  text-align: center;
  transition: background 0.4s;
}

.contact h2 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-alt);
  line-height: 0.95;
  margin-bottom: 1.25rem;
  transition: color 0.4s;
}

.contact > p {
  font-size: 0.98rem;
  color: var(--muted-alt);
  margin-bottom: 3.5rem;
  line-height: 1.72;
  transition: color 0.4s;
}

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(247,243,236,0.06);
  border: 1px solid var(--border-alt);
  border-radius: 10px;
  padding: 0.88rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-alt);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s, color 0.4s;
  -webkit-appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-alt); }

.contact-form select { color: var(--muted-alt); }

.contact-form select option {
  background: var(--bg-alt);
  color: var(--text-alt);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(200,16,46,0.55);
  background: rgba(247,243,236,0.09);
}

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

.form-submit { text-align: center; margin-top: 0.4rem; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-alt);
  padding: 3rem;
  transition: background 0.4s, border-color 0.4s;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-alt);
}

.footer-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-alt);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted-alt);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--muted-alt);
  opacity: 0.5;
  line-height: 1.6;
}

.footer-disclaimer {
  max-width: 700px;
  font-size: 0.68rem !important;
  opacity: 0.35 !important;
}

/* ─── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(.16,1,.3,1), transform 0.85s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links li:not(:last-child) { display: none; }

  .specialties { padding: 5rem 1.5rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }

  .services { padding: 5rem 1.5rem; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 2.5rem; }
  .services-header p { text-align: left; max-width: none; }
  .service-sub { grid-template-columns: 1fr 1fr; padding-left: 0; gap: 1.25rem; }

  .financing { padding: 5rem 1.5rem; }
  .financing-inner { flex-direction: column; align-items: flex-start; }

  .partners { padding: 5rem 1.5rem; }
  .partners-grid { grid-template-columns: 1fr; }

  .about { padding: 6rem 1.5rem; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }

  .contact { padding: 6rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  footer { padding: 2rem 1.5rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
