/* ============================================================
   ConciergeSync™ — Premium Design System (shared chrome)
   Single source of truth for public funnel pages.
   Load order: Google Fonts (Playfair Display + Inter) → this file.
   ============================================================ */

/* === ROOT VARIABLES === */
:root {
  --navy: #0a1a33;
  --gold: #bfa14a;
  --gold-light: #d4af37;
  --text-light: #e6e6e6;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --bg: #fafafa;
  --shadow-sm: 0 4px 12px rgba(10, 26, 51, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 26, 51, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .logo, .brand-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; }

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
header.scrolled {
  padding: 16px 40px;
  backdrop-filter: blur(10px);
}
.logo {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.logo img { height: 36px; border-radius: 4px; }
.logo a { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo a:hover { opacity: 0.9; transform: translateY(-1px); }

nav {
  display: none;
  gap: 32px;
  font-weight: 500;
}
nav a { position: relative; transition: var(--transition); }
nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--gold-light); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* === BUTTON === */
.btn {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(191, 161, 74, 0.3);
}
.btn:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(191, 161, 74, 0.4);
}

/* === HERO (centered, default) === */
.hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 90px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,26,51,0.9), rgba(10,26,51,0.7));
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 3;
}
.hero h1 { font-size: 2.8rem; margin: 0 0 18px; line-height: 1.2; }
.hero p, .hero .lede {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero .lede strong { color: #fff; }
.hero .btn { margin-top: 32px; }

/* === HERO (split, two-column — home) === */
.hero.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 80px 40px;
}
.hero.split .hero-text {
  flex: 1 1 500px;
  min-width: 300px;
  max-width: 660px;
}
.hero.split .hero-text p { max-width: none; margin: 0 0 32px; }
.hero.split .hero-text h1 { font-size: 3rem; }
.hero-media, .hero-video {
  flex: 1 1 500px;
  max-width: 560px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img, .hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media::after, .hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  pointer-events: none;
}

/* === HERO SCREENSHOT STACK (layered deck) === */
.hero-stack {
  position: relative;
  flex: 1 1 500px;
  max-width: 520px;
  height: 420px;
  margin-right: 52px; /* room for the up-right stagger so back cards aren't clipped */
}
.stack-card {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c1f3d; /* poster floor — never renders empty */
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s ease;
  will-change: transform, opacity;
}
.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.stack-card .stack-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 26, 51, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 6px 12px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* Deck positions: front (0) → back (3), staggered up-right */
.stack-card.pos-0 { transform: translate(0, 0) rotate(0deg) scale(1);            z-index: 40; opacity: 1; }
.stack-card.pos-1 { transform: translate(15px, -12px) rotate(2deg) scale(0.96);  z-index: 30; opacity: 1; }
.stack-card.pos-2 { transform: translate(28px, -23px) rotate(4deg) scale(0.93);  z-index: 20; opacity: 1; }
.stack-card.pos-3 { transform: translate(40px, -33px) rotate(6deg) scale(0.90);  z-index: 10; opacity: 0.82; }
.stack-card.pos-0 .stack-label { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stack-card { transition: none; }
}

/* === SECTION HEADING === */
.section-head { text-align: center; padding: 80px 40px 0; }
/* When a section-head follows prose, the .content block already supplies its 72px
   bottom margin — so drop the heading's top padding to avoid a doubled gap. */
.content + .section-head { padding-top: 8px; }
.section-head .eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-head h2 { font-size: 2rem; margin: 0 0 12px; color: var(--navy); }
.section-head p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* === CAPABILITY / FEATURE CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(191,161,74,0.25);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-card i { width: 32px; height: 32px; stroke: var(--gold); stroke-width: 1.8; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--navy); }
.feature-card p { font-size: 0.92rem; margin: 0; color: var(--text-muted); line-height: 1.6; }

/* === CONTENT (prose pages: About, etc.) === */
.content {
  max-width: 820px;
  margin: 72px auto;
  padding: 0 40px;
}
.content h2 {
  margin-top: 48px;
  font-size: 1.7rem;
  color: var(--navy);
}
.content h2:first-child { margin-top: 0; }
.content p { line-height: 1.8; margin: 14px 0; color: #333; }

/* === CREED / CALLOUT BOX === */
.creed-box {
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 44px auto;
  font-style: italic;
  color: #333;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}
.creed-box h3 {
  font-style: normal;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
  color: var(--navy);
}

/* === CTA BAND (closing call-to-action) === */
.cta-band {
  background: transparent;
  color: var(--navy);
  text-align: center;
  padding: 0 40px 56px;
}
.cta-band h2 { font-size: 2rem; margin: 0 0 28px; color: var(--navy); }

/* === FOOTER PLACEHOLDER (pre-injection) === */
#footer {
  min-height: 120px;
  background: var(--navy);
  color: #8a93a6;
  text-align: center;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  header nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 900px) {
  .hero.split {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }
  .hero.split .hero-text h1 { font-size: 2.5rem; }
  .hero-media, .hero-video { margin-top: 32px; max-width: 100%; }
  .hero-stack { width: 100%; max-width: 440px; margin: 32px auto 0; height: 360px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  header { padding: 16px 20px; }
  .logo { font-size: 1.3rem; }
  .logo img { height: 32px; }
  nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  nav.active { max-height: 500px; opacity: 1; padding: 24px 20px; }
  nav a { padding: 12px 0; font-size: 1.1rem; }
  .menu-toggle { display: flex; }
  .hero h1, .hero.split .hero-text h1 { font-size: 2.2rem; }
  .content { padding: 0 24px; margin: 48px auto; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 28px; font-size: 1rem; }
}
