/*-----------------------------------------------------------------------------------
  Black Diamond Pro — Marketing Site
  Adapted from: Lendex Personal Portfolio Bootstrap 5 Template
  Palette: cream #f5f5f0 / near-black #0a0a0c / graphite #888880
  Typography: Georgia serif headings, system sans body
-----------------------------------------------------------------------------------*/

/* ── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --cream:        #f5f5f0;
  --black:        #0a0a0c;
  --graphite:     #888880;
  --graphite-lt:  #c8c8c2;
  --border:       rgba(136,136,128,.18);
  --bg:           #f5f5f0;
  --bg-alt:       #eaeae5;
  --bg-dark:      #0a0a0c;
  --bg-dark-alt:  #111113;
  --text:         #3a3a3c;
  --text-muted:   #666660;
  --heading:      #0a0a0c;
  --card-bg:      #ffffff;
  --nav-h:        72px;
  --serif:        Georgia, 'Times New Roman', serif;
  --sans:         system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease:         0.4s ease;
  --section-pad:  108px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Light sections flip to dark */
    --bg:         #0a0a0c;
    --bg-alt:     #111113;
    --text:       #c8c8c2;
    --text-muted: #888880;
    --heading:    #f5f5f0;
    --card-bg:    #111113;
    --border:     rgba(136,136,128,.15);
    /* --bg-dark stays #0a0a0c — dark sections never flip to light */
  }
}

/* ── Reset / base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--black); }

p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

input, textarea { width: 100%; }

::selection { background: var(--black); color: var(--cream); }

a, button, .btn, img, input { transition: all var(--ease); }

a, a:hover, a:focus, button, button:focus,
.btn, .btn:focus, input:focus, select, textarea {
  outline: 0;
  box-shadow: none;
}

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.text-graphite  { color: var(--graphite); }
.text-muted-bdp { color: var(--text-muted); }
.bg-dark-bdp    { background: var(--bg-dark); }
.bg-light-bdp   { background: var(--bg); }

.serif { font-family: var(--serif); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 20px;
}

.hairline {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--graphite);
  margin: 24px 0;
}
.hairline-center { margin-left: auto; margin-right: auto; }

/* ── Section layout ─────────────────────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }

.section-title {
  margin-bottom: 64px;
}
.section-title .title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--heading);
  margin: 0;
}
.section-title .sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 540px;
}
.section-title.center { text-align: center; }
.section-title.center .sub { margin-left: auto; margin-right: auto; }
.section-title.center .hairline { margin-left: auto; margin-right: auto; }

/* Dark section text override */
.section-dark .section-title .title  { color: var(--bg); }
.section-dark .eyebrow               { color: var(--graphite-lt); }
.section-dark .hairline              { background: var(--graphite); }
.section-dark .section-title .sub    { color: var(--graphite-lt); }

/* ── Scroll reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.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; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-bdp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--ease);
  cursor: pointer;
}

.btn-bdp-dark {
  background: var(--black);
  color: var(--cream);
  border: 1px solid var(--black);
}
.btn-bdp-dark:hover {
  background: transparent;
  color: var(--black);
}

.btn-bdp-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-bdp-outline:hover {
  background: var(--black);
  color: var(--cream);
}

.btn-bdp-light {
  background: var(--cream);
  color: var(--black);
  border: 1px solid var(--cream);
}
.btn-bdp-light:hover {
  background: transparent;
  color: var(--cream);
}

.btn-bdp-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,245,240,.4);
}
.btn-bdp-outline-light:hover {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}
#site-nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}
@media (prefers-color-scheme: dark) {
  #site-nav.scrolled { background: var(--bg-alt); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px;
  height: 30px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1;
}
.nav-logo-pro {
  font-size: 9px;
  letter-spacing: 5px;
  opacity: 0.55;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 48px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.8;
}
.nav-links a:hover { opacity: 1; color: var(--heading); }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu */
.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: 1.5px;
  background: var(--heading);
  transition: all var(--ease);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.mobile-menu a:hover { color: var(--heading); }
.mobile-menu .mobile-ctas {
  display: flex;
  gap: 12px;
  padding: 16px 24px 0;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero is dark — nav text should be light on entry */
#site-nav.hero-top .nav-logo-text { color: var(--cream); }
#site-nav.hero-top .nav-links a   { color: rgba(245,245,240,.75); }
#site-nav.hero-top .nav-links a:hover { color: var(--cream); }
#site-nav.hero-top .nav-toggle span { background: var(--cream); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Gradient overlay — darkens the video so text stays legible */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 12, 0.82) 0%,
    rgba(10, 10, 12, 0.55) 60%,
    rgba(10, 10, 12, 0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(245,245,240,.6);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-diamond-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-diamond {
  width: min(320px, 80vw);
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.6));
}

/* One-time shine sweep on load */
@keyframes shine-sweep {
  0%   { opacity: 0; transform: skewX(-15deg) translateX(-120%); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: skewX(-15deg) translateX(200%); }
}
.hero-shine {
  animation: shine-sweep 1.8s ease-out 0.6s 1 forwards;
  opacity: 0;
}

/* ── Diamond facet icon (used in cards & bullets) ───────────────────────────── */
.facet-icon {
  width: 28px;
  height: 26px;
  flex-shrink: 0;
}

/* ── Audience section ───────────────────────────────────────────────────────── */
#audience {
  background: var(--bg);
}

.audience-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  height: 100%;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10,10,12,.10);
}

/* Card photo — Lendex project-image pattern */
.card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}
.audience-card:hover .card-img {
  transform: scale(1.04);
}

.card-body-inner {
  padding: 32px 32px 36px;
}

.audience-card .card-icon {
  margin-bottom: 20px;
}
.audience-card .card-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--heading);
  margin-bottom: 12px;
}
.audience-card .card-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Video break ─────────────────────────────────────────────────────────────── */
.video-break {
  position: relative;
  height: 340px;
  overflow: hidden;
}
@media (min-width: 768px) { .video-break { height: 440px; } }
@media (min-width: 1200px) { .video-break { height: 520px; } }

.video-break-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.video-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,.45);
}

/* ── Modules section ────────────────────────────────────────────────────────── */
#modules {
  background: #212529;
}

.module-card {
  border-top: 1px solid rgba(136,136,128,.18);
  padding: 32px 0;
  display: flex;
  gap: 20px;
  transition: opacity var(--ease);
}
.module-card:hover { opacity: 0.85; }

.module-icon { flex-shrink: 0; padding-top: 2px; }

.module-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--bg);
  margin-bottom: 8px;
}
@media (prefers-color-scheme: dark) {
  .module-title { color: var(--cream); }
}

.module-desc {
  font-size: 14px;
  color: rgba(200,200,194,.65);
  line-height: 1.6;
}

/* ── Why section ────────────────────────────────────────────────────────────── */
#why {
  background: var(--bg);
}

.why-card {
  padding: 48px 40px;
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
}

.why-number {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  user-select: none;
}

.why-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 16px;
}

.why-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Comparison section ─────────────────────────────────────────────────────── */
#comparison {
  background: #212529;
}
#comparison .section-title .title { color: #f5f5f0; }
#comparison .eyebrow             { color: #888880; }
#comparison .hairline            { background: #888880; }
#comparison .section-title .sub  { color: rgba(200,200,194,.7); }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 767px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

.comparison-col {
  padding: 40px 36px;
}

.comparison-col-old {
  border: 1px solid #f5f5f0;
  opacity: 1;
}

.comparison-col-new {
  background: #0a0a0c;
  border: 1px solid #0a0a0c;
}

.comparison-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.comparison-label-old { color: var(--graphite); }
.comparison-label-new { color: var(--graphite); }

.comparison-heading {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 28px;
  line-height: 1.25;
}
.comparison-col-old .comparison-heading { color: var(--heading); }
.comparison-col-new .comparison-heading { color: #f5f5f0; }

.comparison-list { list-style: none; margin: 0; padding: 0; }
.comparison-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  align-items: flex-start;
}
.comparison-list li:last-child { border-bottom: none; }

.comparison-col-old .comparison-list li { color: var(--text-muted); }
.comparison-col-new .comparison-list li { color: rgba(200,200,194,.8); border-color: rgba(136,136,128,.12); }

.cmp-icon-old { flex-shrink: 0; margin-top: 1px; color: #888880; font-size: 13px; }
.cmp-icon-new { flex-shrink: 0; margin-top: 1px; color: #c8c8c2; font-size: 13px; }

/* ── Pricing section ────────────────────────────────────────────────────────── */
#pricing {
  background: #0a0a0c; /* always dark — never flips */
  text-align: center;
}

.pricing-box {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid rgba(136,136,128,.2);
  padding: 64px 48px;
}

.pricing-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.pricing-sub {
  font-size: 16px;
  color: var(--graphite);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── Contact / form ─────────────────────────────────────────────────────────── */
#contact {
  background: #212529;
}
#contact .section-title .title { color: #f5f5f0; }
#contact .eyebrow             { color: #888880; }
#contact .hairline            { background: #888880; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-info .info-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  color: #f5f5f0;
  font-weight: 400;
  margin-bottom: 16px;
}

.contact-info .info-text {
  font-size: 15px;
  color: rgba(200,200,194,.75);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-detail span {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888880;
}
.contact-detail a {
  font-size: 15px;
  color: rgba(200,200,194,.85);
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888880;
  margin-bottom: 8px;
}

.form-control-bdp {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(136,136,128,.3);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: #f5f5f0;
  transition: border-color var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-control-bdp::placeholder { color: rgba(200,200,194,.35); }
.form-control-bdp:focus {
  outline: none;
  border-bottom-color: #c8c8c2;
}
.form-control-bdp option { color: #000; }

textarea.form-control-bdp { resize: vertical; min-height: 100px; }

/* Honeypot */
.hp-field { display: none !important; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  display: none;
}
.form-status.success {
  display: block;
  background: #f0faf4;
  color: #1a6b3a;
  border: 1px solid #a8d9bb;
}
.form-status.error {
  display: block;
  background: #fdf2f2;
  color: #7a1e1e;
  border: 1px solid #e9b3b3;
}
@media (prefers-color-scheme: dark) {
  .form-status.success { background: #0a1e12; color: #5dbe87; border-color: #1a5034; }
  .form-status.error   { background: #1a0a0a; color: #e07070; border-color: #5a1a1a; }
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
#footer {
  background: #0a0a0c; /* always dark — never flips */
  padding: 80px 0 40px;
}

.footer-brand .brand-mark { width: 32px; height: 30px; }

.footer-brand-name {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 10px;
}

.footer-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 4px;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(200,200,194,.65);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--cream); }

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(136,136,128,.12);
  margin: 48px 0 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--graphite);
}

/* ── Facet background SVG pattern ───────────────────────────────────────────── */
.facet-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --section-pad: 72px; }
  .hero-content { padding: 100px 0 60px; }
  .hero-diamond-wrap { display: none; }
  .why-card { padding: 32px 24px; }
  .pricing-box { padding: 48px 28px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-diamond-wrap { display: none; }
}

@media (min-width: 992px) {
  .hero-row { min-height: calc(100vh - var(--nav-h)); }
}

/* ── Form status messages ────────────────────────────────────────────────────── */
.form-status {
  display: none;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 0;
  border-left: 3px solid transparent;
}
.form-status-ok {
  display: block;
  color: #1a5c34;
  background: #edf7f1;
  border-left-color: #1a5c34;
}
.form-status-error {
  display: block;
  color: #6b1f1f;
  background: #fdf1f1;
  border-left-color: #6b1f1f;
}
.form-status-sending {
  display: block;
  color: #888880;
  background: #f5f5f0;
  border-left-color: #c8c8c2;
}

/* Invalid field highlight */
.form-control-bdp.is-invalid {
  border-bottom-color: #6b1f1f;
}
.field-error {
  font-size: 12px;
  color: #6b1f1f;
  margin-top: 4px;
  display: block;
}

/* Honeypot — visually off-screen, not display:none so autofill bots still see it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  .form-status-ok {
    color: #5dbe87;
    background: #0a1e12;
    border-left-color: #1a5034;
  }
  .form-status-error {
    color: #e07070;
    background: #1a0a0a;
    border-left-color: #5a1a1a;
  }
  .form-status-sending {
    color: #888880;
    background: #111113;
    border-left-color: #3a3a3c;
  }
  .field-error {
    color: #e07070;
  }
  .form-control-bdp.is-invalid {
    border-bottom-color: #e07070;
  }
}
