/* ============================================
   BHM SOLUTIONS - Website Styles
   Navy + Gold, Light Theme, Outfit Font
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --navy: #1b2a4a;
  --navy-dark: #0f1a30;
  --navy-light: #2c3e66;
  --gold: #d4a017;
  --gold-light: #e8be4a;
  --gold-dark: #b8880e;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --light-gray: #eef0f4;
  --mid-gray: #d1d5de;
  --text: #2d3348;
  --text-light: #5a6070;
  --text-muted: #8a8f9e;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
.text-gold { color: var(--gold); }

.label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-intro {
  text-align: center;
  margin-bottom: 60px;
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

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

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; z-index: 1001; }
.nav-logo img { height: 36px; width: auto; }

/* Show white logo by default (hero is dark), hide dark logo */
.logo-dark { display: none; }
.logo-light { display: block; }

/* When scrolled, show dark logo, hide white */
.navbar.scrolled .logo-dark { display: block; }
.navbar.scrolled .logo-light { display: none; }

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 4px 0;
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

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

/* Scrolled nav colors */
.navbar.scrolled .nav-link {
  color: var(--text-light);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--navy);
}

.nav-link-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: 6px;
}

.nav-link-cta::after { display: none !important; }
.nav-link-cta:hover { background: var(--gold-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--navy);
}

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

/* ---------- HERO ---------- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 160px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-text {
  max-width: 640px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 520px;
}

.hero-taglines {
  margin-bottom: 32px;
  min-height: 36px;
}

.tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.typed-cursor {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gold-light);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-stat:last-child { border-right: none; }

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- ABOUT / PROCESS ---------- */
.about {
  padding: 100px 0;
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  background: var(--white);
  transition: all var(--transition);
}

.process-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.06);
  transform: translateY(-3px);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

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

/* ---------- QUOTE ---------- */
.quote-section {
  padding: 80px 0;
  background: var(--off-white);
}

.quote-section blockquote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.quote-section blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
}

.quote-section cite {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.06);
  transform: translateY(-3px);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(27, 42, 74, 0.06);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

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

/* ---------- TEAM ---------- */
.team {
  padding: 100px 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  background: var(--white);
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.06);
  transform: translateY(-3px);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--light-gray);
}

.team-card:hover .team-avatar {
  border-color: var(--gold);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.team-tags span {
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  color: var(--text-light);
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 100px 0;
  background: var(--off-white);
}

.cta-inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-inner .btn { position: relative; }

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--gold);
}

.contact-item svg {
  color: var(--gold);
  min-width: 20px;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
  font-size: 0.92rem;
  color: var(--text);
}

.contact-item a:hover { color: var(--gold); }

/* Contact Form */
.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8f9e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--white);
  color: var(--text);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 280px; }
.footer-brand img { height: 32px; margin-bottom: 14px; }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 8px;
  color: var(--gold);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.35s ease;
    z-index: 1000;
  }

  .nav-menu.active { right: 0; }

  .nav-menu .nav-link {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--white);
  }

  .hamburger { display: flex; }
  /* force hamburger lines white when menu is open */
  .hamburger.active span { background: var(--white) !important; }

  .hero { padding: 130px 0 60px; }

  .hero-stats-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat {
    flex: 1 1 40%;
    border-right: none;
    padding: 0;
    text-align: left;
  }

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

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

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .cta-inner {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}