/* =============================================
   BSA Reviews — Custom Design System
   ============================================= */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-mid: #334155;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-darker: #115e59;
  --teal-light: #f0fdfa;
  --teal-muted: #ccfbf1;
  --cream: #faf8f5;
  --cream-dark: #f1ede6;
  --gold: #c9953c;
  --gold-light: #fef3c7;
  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.1);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 350;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; letter-spacing: -0.02em; }

p { max-width: 68ch; }

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--teal); }

/* ---- Header / Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.75rem 0;
}

.site-header.scrolled .nav-link { color: var(--navy-mid); }
.site-header.scrolled .nav-link:hover { color: var(--teal); }
.site-header.scrolled .site-logo { color: var(--navy); }
.site-header.scrolled .logo-dot { color: var(--teal); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.logo-dot {
  color: var(--gold);
  transition: color var(--transition);
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 420;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover { color: var(--white); }
.site-header.scrolled .nav-link:hover { color: var(--teal); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--teal);
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.nav-cta::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a3a4a 100%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.6) 1px, transparent 0);
  background-size: 32px 32px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 149, 60, 0.08) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 100px;
  color: var(--teal-muted);
  font-size: 0.825rem;
  font-weight: 450;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-optical-sizing: auto;
}

.hero h1 .text-teal { color: var(--teal-muted); }

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 330;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Page Hero (interior pages) ---- */
.page-hero {
  position: relative;
  padding: 10rem 2rem 5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
}

.page-hero .hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.6) 1px, transparent 0);
  background-size: 32px 32px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 480;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--cream);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Sections ---- */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-light);
  max-width: 600px;
  font-weight: 350;
}

.section-alt { background: var(--white); }
.section-dark {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .section-label { color: var(--teal-muted); }
.section-dark .section-label::before { background: var(--teal-muted); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.card-icon-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.card-icon-gold {
  background: var(--gold-light);
  color: var(--gold);
}

.card-icon-navy {
  background: rgba(15, 23, 42, 0.06);
  color: var(--navy);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Featured card style */
.card-featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent;
  color: rgba(255,255,255,0.8);
}

.card-featured h3 { color: var(--white); }
.card-featured p { color: rgba(255,255,255,0.65); }

.card-featured .card-icon {
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal-muted);
}

/* ---- Industry Cards ---- */
.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.industry-card-header {
  padding: 2.5rem 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.industry-card-header.msb-header {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
}

.industry-card-header.pmd-header {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.industry-card-header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.8) 1px, transparent 0);
  background-size: 20px 20px;
}

.industry-card-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.industry-card-header p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.industry-card-body {
  padding: 2rem 2.25rem 2.5rem;
}

.industry-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.industry-card-body li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.industry-card-body li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

/* ---- Process Steps ---- */
.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.process-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.process-connector {
  width: 2px;
  height: 40px;
  background: var(--border);
  margin-left: 23px;
}

/* ---- Stats ---- */
.stat-item { text-align: center; }

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-dark .stat-number { color: var(--teal-muted); }

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.section-dark .stat-label { color: rgba(255,255,255,0.55); }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a3a4a 100%);
  position: relative;
  overflow: hidden;
}

.cta-section .hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.6) 1px, transparent 0);
  background-size: 32px 32px;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1.08rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ---- Contact Form ---- */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 480;
  color: var(--navy-mid);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 370;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- Check List ---- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ---- Values / Approach Cards ---- */
.value-card {
  padding: 2rem;
  border-left: 3px solid var(--teal);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.925rem;
  color: var(--text-light);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid .nav-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.65rem; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--teal-muted); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-icon {
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* Hero entrance */
.hero-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEnter 0.8s ease forwards;
}

.hero-enter-delay-1 { animation-delay: 0.15s; }
.hero-enter-delay-2 { animation-delay: 0.3s; }
.hero-enter-delay-3 { animation-delay: 0.45s; }
.hero-enter-delay-4 { animation-delay: 0.6s; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Decorative Elements ---- */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3.5rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }

  .nav-links.open { right: 0; }

  .nav-links .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.05rem;
  }

  .nav-links .nav-cta {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle { display: block; }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero { min-height: 85vh; }
  .hero-content { padding: 7rem 1.5rem 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .process-step { gap: 1.25rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
