/* ══════════════════════════════════════════════════
   BEDROCK GROWTH SYSTEMS — Shared Stylesheet
   ══════════════════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2e4a;
  --navy-dark:   #0f1e30;
  --navy-deeper: #091628;
  --orange:      #e8682a;
  --orange-h:    #d45c20;
  --orange-glow: rgba(232,104,42,0.18);
  --warm-white:  #fafaf8;
  --light-gray:  #f2f1ee;
  --mid-gray:    #e4e2dc;
  --text:        #0f1e2e;
  --text-soft:   #4a5f72;
  --text-muted:  #7a8fa3;
  --white:       #ffffff;
  --gold:        #c9a84c;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
  --mono:        'DM Mono', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p { line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 4px 20px var(--orange-glow), 0 2px 8px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow), 0 4px 12px rgba(0,0,0,0.16);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 13px 27px;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(10,20,40,0.2);
}
.btn-dark:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  padding: 13px 27px;
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-arrow::after { content: ' →'; }

/* ── PULSE ANIMATION ── */
@keyframes pulse-ring {
  0% { box-shadow: 0 4px 20px var(--orange-glow), 0 0 0 0 rgba(232,104,42,0.35); }
  70% { box-shadow: 0 4px 20px var(--orange-glow), 0 0 0 10px rgba(232,104,42,0); }
  100% { box-shadow: 0 4px 20px var(--orange-glow), 0 0 0 0 rgba(232,104,42,0); }
}
.btn-pulse { animation: pulse-ring 3s ease-out infinite; }
.scrolled .btn-pulse { animation: none; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(9, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-logo { text-decoration: none; }
.nav-logo-primary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  letter-spacing: -0.01em;
}
.nav-logo-secondary {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 8px; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.7rem; opacity: 0.6; }

/* Invisible bridge fills the gap so hover stays live as mouse moves down */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deeper);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75) !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white) !important;
}

/* "Coming Soon" items — grayed out, not interactive */
.nav-dropdown-menu a.nav-item-soon {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.nav-dropdown-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(232,104,42,0.2);
  color: var(--orange);
  letter-spacing: 0.04em;
}
.nav-dropdown-badge.soon {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-deeper);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease;
}
.nav-mobile a:hover { color: var(--orange); }
.nav-mobile .btn-primary { margin-top: 32px; text-align: center; justify-content: center; font-family: var(--sans); font-size: 1rem; }

/* ── SECTION BASE ── */
section { position: relative; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-pad { padding: 100px 0; }
.section-pad-lg { padding: 120px 0; }
.section-pad-sm { padding: 72px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
}

/* ── FOOTER ── */
.footer {
  background: var(--navy-deeper);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 260px;
}
.footer-col-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-family: var(--mono);
}

/* ── MOBILE STICKY CTA ── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  padding: 12px 20px;
  background: rgba(9,22,40,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-sticky-cta .btn-primary { width: 100%; justify-content: center; }

/* ── DEMO MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,22,40,0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 52px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: var(--light-gray);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-close:hover { background: var(--mid-gray); }
.modal-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.modal h3 { font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.modal p { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 28px; line-height: 1.6; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.modal-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,46,74,0.08);
}
.modal-input::placeholder { color: #a0adb8; }
.modal-submit { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; }
.modal-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-family: var(--mono);
}
.modal-success { text-align: center; padding: 20px 0; display: none; }
.modal-success-icon {
  width: 64px; height: 64px;
  background: rgba(40,200,64,0.12);
  color: #28c840;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.modal-success h3 { color: var(--navy); margin-bottom: 8px; }
.modal-success p { color: var(--text-soft); font-size: 0.9rem; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section-inner { padding: 0 24px; }
  .section-pad { padding: 72px 0; }
  .section-pad-lg { padding: 80px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal { padding: 36px 28px; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}
