/* ============================================
   ALL SQUARE CONSULTING — DARK FUTURISTIC THEME
   Brand: Navy #1B3A6B → Accent Blue #3B82F6 (bright for dark bg)
   Silver #8A9BB0 → #94A3B8
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0B0F1A;
  --bg-secondary: #111827;
  --bg-surface: #1A2332;
  --bg-elevated: #1F2B3D;
  --accent: #3B82F6;
  --accent-bright: #60A5FA;
  --accent-dim: #1B3A6B;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-glow-soft: rgba(59, 130, 246, 0.12);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(59, 130, 246, 0.25);
  --max-width: 1100px;

  /* Legacy mappings for inline styles */
  --navy: #3B82F6;
  --silver: #94A3B8;
  --light-gray: #111827;
  --dark-text: #F1F5F9;
  --white: #0B0F1A;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-bright);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  flex: 1;
  margin-left: 3rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* CTA Buttons */
.cta-button {
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 0 20px var(--accent-glow-soft);
  position: relative;
}

.cta-button:hover {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  box-shadow: 0 0 30px var(--accent-glow);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.cta-button-secondary:hover {
  background: var(--accent-glow-soft);
  border-color: var(--accent);
  color: var(--accent-bright);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 8rem 2rem 6rem;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

/* Radial glow behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-scroll-link {
  color: var(--accent);
  font-weight: 600;
  margin-top: 2rem;
  display: block;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero-scroll-link:hover {
  color: var(--accent-bright);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 5rem 2rem;
}

.section-light {
  background-color: var(--bg-secondary);
}

.section-white {
  background-color: var(--bg-primary);
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   CARDS — GLASSMORPHISM
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-soft), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow-soft);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.card-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.card-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-featured {
  border: 1px solid var(--border-accent);
  background: rgba(59, 130, 246, 0.05);
  transform: scale(1.02);
}

.card-featured:hover {
  transform: scale(1.02) translateY(-4px);
}

/* ============================================
   VERTICALS
   ============================================ */
.verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
}

.vertical-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  color: var(--accent-bright);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-accent);
  transition: all 0.3s ease;
}

.vertical-badge:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.1) 100%);
  box-shadow: 0 0 20px var(--accent-glow-soft);
}

/* ============================================
   PROOF / CASE STUDY
   ============================================ */
.proof-content {
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
}

.proof-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.case-study {
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.case-study h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.case-study-section {
  margin-bottom: 2rem;
}

.case-study-section h4 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.case-study-quote {
  background: rgba(59, 130, 246, 0.08);
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.coming-soon {
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
  margin: 2rem 0;
}

/* Metric boxes (results.html inline style overrides) */
.metric-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-accent);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-box:hover {
  box-shadow: 0 0 25px var(--accent-glow-soft);
  border-color: var(--accent);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}

.metric-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.faq-question {
  background: transparent;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.03);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 1.5rem;
  margin: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-photo {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
}

.about-bio p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.value-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px var(--accent-glow-soft);
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--accent-bright);
}

.value-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 2rem auto;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.required::after {
  content: " *";
  color: var(--accent);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block {
  padding: 1.5rem;
  background: rgba(26, 35, 50, 0.6);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-block:hover {
  border-color: var(--border-accent);
}

.contact-block h3 {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-block p {
  margin-bottom: 0.25rem;
}

.contact-block a {
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-block a:hover {
  color: var(--accent-bright);
}

.calendly-placeholder {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
}

.calendly-placeholder p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 4rem 2rem 2rem;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact p {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom p {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 4rem 2rem 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .cta-button,
  .cta-button-secondary {
    width: 100%;
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .verticals {
    flex-direction: column;
  }

  .vertical-badge {
    width: 100%;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }
}
