/* ═══════════════════════════════════════════════════════════════
   consultantsbw.com — Shared Design System
   Design spec: v5 (black/gold · Playfair Display + DM Sans + Bebas Neue)
   Colors: black and gold per Mike
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --gold: #d4a843; --gold-light: #e8c46a; --gold-dark: #b8922e;
  --accent: #c9a96e; --accent-light: #ddc9a0;
  --black: #111111; --black-deep: #0a0a0a; --black-soft: #1a1a1a;
  --white: #ffffff; --off-white: #f7f6f4;
  --gray-100: #f0eeeb; --gray-200: #ddd9d3; --gray-400: #8c8578;
  --gray-600: #5a554d; --gray-700: #3d3a35; --gray-800: #252320;
  --red: #c0392b; --green: #16a34a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-label: 'Bebas Neue', sans-serif;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.22);
  --shadow-gold: 0 8px 32px rgba(212,168,67,0.30);
}

body { font-family: var(--font-body); background: var(--white); color: var(--gray-800); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 600; }

/* ─── LAYOUT CONTAINERS ─── */
.container    { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 640px;  margin: 0 auto; padding: 0 24px; }

/* ─── TYPOGRAPHY ─── */
.section-label {
  font-family: var(--font-label);
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; line-height: 1.2; padding: 17px 36px;
  border-radius: var(--radius-md); cursor: pointer; border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--black); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 12px 40px rgba(212,168,67,0.45); }
.btn-teal { background: var(--accent); color: var(--black); box-shadow: 0 8px 24px rgba(201,169,110,0.30); }
.btn-teal:hover { background: var(--accent-light); }
.btn-outline-gold { background: transparent; border: 2px solid rgba(212,168,67,0.6); color: var(--gold); }
.btn-outline-gold:hover { background: rgba(212,168,67,0.1); }
.btn-lg { font-size: 1.15rem; padding: 20px 44px; }
.btn-sm { font-size: 0.9rem; padding: 12px 24px; }

/* ─── TOPBAR ─── */
.topbar { background: var(--black-deep); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 0; text-align: center; }
.topbar p { font-size: 0.85rem; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }
.topbar strong { color: var(--gold); }

/* ─── NAVIGATION ─── */
.nav { background: var(--black); padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 44px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-link {
  font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.6);
  padding: 7px 10px; border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--gold); background: rgba(212,168,67,0.1); }
.nav-cta { font-size: 0.82rem; padding: 10px 18px; flex-shrink: 0; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform 0.2s ease; }

/* ─── DIVIDERS ─── */
.divider-gold { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.4; }

/* ─── SCROLL ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── PULSE DOT ─── */
.pulse-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse-anim 2s ease-in-out infinite; }
@keyframes pulse-anim { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

/* ─── PAGE HERO (Reusable across service pages) ─── */
.page-hero {
  background: var(--black); padding: 80px 0 72px; position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 78% 15%, rgba(212,168,67,.08) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 90%, rgba(201,169,110,.06) 0%, transparent 52%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .section-label { text-align: center; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--white); line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.68); line-height: 1.7;
  max-width: 580px; margin: 0 auto 32px;
}

/* ─── CONTENT SECTIONS (Alternating backgrounds) ─── */
.section-white { background: var(--white); padding: 90px 0; }
.section-light { background: var(--off-white); padding: 90px 0; border-top: 1px solid var(--gray-100); }
.section-dark {
  background: var(--black); padding: 90px 0; position: relative; overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 10%, rgba(212,168,67,.08) 0%, transparent 55%),
              radial-gradient(ellipse at 5% 90%, rgba(201,169,110,.06) 0%, transparent 55%);
  pointer-events: none;
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ─── SERVICE CARDS (Homepage + reusable) ─── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.service-card-icon.gold { background: rgba(212,168,67,0.12); }
.service-card-icon.teal { background: rgba(201,169,110,0.15); }
.service-card-icon.navy { background: rgba(17,17,17,0.08); }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  color: var(--black); margin-bottom: 12px; line-height: 1.3;
}
.service-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
.service-card .btn { width: 100%; }

/* ─── FEATURE ROWS (Service page pattern) ─── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-list { display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item-icon {
  width: 38px; height: 38px; background: rgba(212,168,67,0.1);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.feature-item-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--black); margin-bottom: 3px; }
.feature-item-text p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

/* ─── GALLERY (Tabbed screenshots) ─── */
.gallery-block { background: var(--black); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.gallery-tabs { display: flex; overflow-x: auto; scrollbar-width: none; background: var(--black-deep); border-bottom: 1px solid rgba(255,255,255,0.08); }
.gallery-tabs::-webkit-scrollbar { display: none; }
.gallery-tab-btn {
  flex: 1 1 0; padding: 10px 12px; font-size: 0.72rem; font-weight: 600;
  font-family: var(--font-body); color: rgba(255,255,255,0.45); background: none;
  border: none; border-bottom: 2px solid transparent; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.18s ease, border-color 0.18s ease; white-space: nowrap;
  text-align: center;
}
.gallery-tab-btn:hover { color: rgba(255,255,255,0.75); }
.gallery-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.gallery-frame { padding: 12px; min-height: 200px; }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }
.gallery-img { width: 100%; display: block; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.07); }
.gallery-caption { margin-top: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.5; }

/* ─── HOW IT WORKS (3-step pattern) ─── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step-card {
  background: var(--off-white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card.s-gold { border-top: 3px solid var(--gold); }
.step-card.s-teal { border-top: 3px solid var(--accent); }
.step-card.s-navy { border-top: 3px solid var(--black); }
.step-num { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.s-gold .step-num { color: rgba(212,168,67,0.5); }
.s-teal .step-num { color: rgba(201,169,110,0.45); }
.s-navy .step-num { color: rgba(17,17,17,0.18); }
.step-tag { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--gray-400); margin-bottom: 8px; display: block; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 10px; }
.step-body { font-size: 0.87rem; color: var(--gray-600); line-height: 1.7; }

/* ─── CTA BANNER (Dark, centered) ─── */
.cta-banner {
  background: var(--black); padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,168,67,0.1) 0%, transparent 55%),
              radial-gradient(ellipse 50% 50% at 80% 100%, rgba(201,169,110,0.08) 0%, transparent 50%);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--white); line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.cta-banner p { font-size: 1.05rem; color: rgba(255,255,255,0.65); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { margin-top: 8px; }
.cta-note { margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ─── FOOTER ─── */
.footer { background: var(--black-deep); padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }

/* ─── STICKY MOBILE BAR ─── */
.sticky-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--black); border-top: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; z-index: 200; text-align: center; }
.sticky-bar .btn { width: 100%; font-size: 0.92rem; padding: 14px 20px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse { direction: ltr; }
  .steps-grid { grid-template-columns: 1fr; }
  .btn-lg { font-size: 1rem; padding: 16px 28px; }
  .sticky-bar { display: block; }
  body { padding-bottom: 72px; }

  /* Nav: mobile layout */
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black-deep); padding: 16px 24px; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }
}

@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .section-title { font-size: 1.6rem; }
  .container { padding: 0 16px; }
  .page-hero { padding: 60px 0 52px; }
  .section-white, .section-light { padding: 60px 0; }
  .cta-banner { padding: 72px 0; }
}
