/* ===== Selah Consulting — design tokens ===== */
:root {
  --black: #0a0a0a;
  --near-black: #101010;
  --charcoal: #1a1a1a;
  --grey: #6b6b6b;
  --grey-light: #b3b3b3;
  --white: #ffffff;
  --off-white: #f6f5f3;

  --red: #9a1f1f;
  --red-light: #c22c2c;
  --red-dark: #5c1212;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --container: 1180px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--off-white);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--white);
}

p { margin: 0 0 1rem; color: var(--grey-light); }

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-light); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-ghost {
  color: var(--grey-light);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn-ghost:hover { color: var(--white); }

.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.02rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: 1rem;
  flex: 1;
}
.site-nav a {
  color: var(--grey-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--white); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg:first-child { width: 100%; height: 100%; }

.hero-icon-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  opacity: 0.08;
  filter: blur(0.3px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-light);
  margin-bottom: 1rem;
}
.eyebrow-center { text-align: center; }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section {
  padding: var(--space-6) 0;
}
.section-dark {
  background: var(--near-black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-title.center { text-align: center; }

.section-lead {
  max-width: 60ch;
  font-size: 1.05rem;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Pain point cards ===== */
.card-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 31, 31, 0.5);
}

.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--red-light);
  margin-bottom: 1rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.1rem;
  color: var(--white);
}
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-5);
  align-items: center;
}

.about-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.about-frame svg { width: 100%; height: 100%; display: block; }

.about-credentials {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--grey-light);
}
.about-credentials strong { color: var(--white); }

.about-copy .section-title { margin-bottom: 1.25rem; }

.pullquote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--red);
  background: var(--charcoal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--white);
}

/* ===== Services ===== */
.service-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem 2rem;
}

.service {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-index {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.service h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.service p { font-size: 0.95rem; margin-bottom: 0; }

/* ===== Contact / CTA ===== */
.cta-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(154, 31, 31, 0.16), transparent 60%),
    var(--black);
}

.contact-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover {
  border-color: var(--red-light);
  transform: translateY(-3px);
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--grey);
  font-weight: 600;
}
.contact-value {
  color: var(--white);
  font-weight: 600;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.contact-card[href^="mailto:"] .contact-value {
  font-size: 0.85rem;
}

.cta-actions {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4) 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-logo { height: 30px; opacity: 0.85; }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--grey-light);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--white); }

.footer-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--grey);
}
.footer-meta p { margin: 0 0 0.25rem; color: inherit; }
.footer-meta a { color: var(--grey-light); }
.footer-meta a:hover { color: var(--white); }
.footer-copy { opacity: 0.7; }

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 320px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--near-black);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0;
  }

  .hero-icon-mark { opacity: 0.06; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .header-cta .btn-primary { padding: 0.6rem 1rem; font-size: 0.85rem; }
}
