/* ========================================
   NEHEMIAH SOLUTIONS - Component Styles
   ======================================== */

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-medium);
}

.header--scrolled {
  background: rgba(12, 21, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

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

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-medium);
  padding: 8px;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-link:hover {
  background: var(--neutral-light);
  color: var(--navy-primary);
}

.nav-cta {
  margin-left: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    transition: right var(--transition-medium);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    transition: max-height var(--transition-medium);
  }

  .nav-item.dropdown-open .nav-dropdown {
    max-height: 300px;
    padding: 8px;
  }

  .nav-dropdown-link {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 24px;
  }

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: var(--gradient-navy);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(54, 67, 77, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(54, 67, 77, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
  opacity: 0.08;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* Hero - Page variant (shorter) */
.hero--page {
  min-height: 50vh;
}

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }

  .hero--page {
    min-height: 40vh;
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy-primary);
  padding: 48px 0;
  border-bottom: 3px solid var(--accent-steel);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 0 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ===== SERVICE CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

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

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--navy-primary);
  stroke-width: 1.8;
  fill: none;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-primary);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* Card - Centered variant */
.card--centered {
  text-align: center;
}

.card--centered .card-icon {
  margin: 0 auto 24px;
}

/* ===== FEATURE GRID ===== */
.feature-item {
  text-align: center;
}

.feature-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-check svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  stroke-width: 2.5;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-primary);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--accent-steel);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

/* ===== STEP CARDS ===== */
.steps-section {
  padding: var(--section-padding) 0;
  background: var(--navy-primary);
  position: relative;
}

.steps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--transition-medium);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

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

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.faq-item:first-child {
  border-top: 1px solid var(--neutral-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 48px 24px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-primary);
  line-height: 1.4;
  position: relative;
  transition: color var(--transition-fast);
}

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

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent-steel);
  transition: transform var(--transition-medium);
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  padding: 0 0 0 0;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 0 24px 0;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--accent-steel);
  line-height: 1.8;
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 120px 0;
  background: var(--gradient-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(54, 67, 77, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(54, 67, 77, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

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

.cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-tone);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-steel);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

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

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-steel);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-steel);
  box-shadow: 0 0 0 3px rgba(54, 67, 77, 0.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--accent-steel);
  opacity: 0.6;
}

/* Contact Form specific */
.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .contact-form {
    padding: 32px 24px;
  }
}

/* ===== COMPATIBILITY LOGOS ===== */
.compat-section {
  padding: 80px 0;
  background: var(--neutral-offwhite);
}

.compat-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.compat-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.compat-icon svg {
  width: 36px;
  height: 36px;
}

.compat-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-primary);
}

@media (max-width: 640px) {
  .compat-logos {
    gap: 32px;
  }
}

/* ===== BLOG/INSIGHTS CARDS ===== */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  background: var(--neutral-light);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 28px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--accent-steel);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a:hover {
  color: var(--accent-steel);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--accent-steel);
  line-height: 1.7;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
  color: var(--white);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: var(--section-padding) 0;
}

.page-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

.page-content h2 {
  margin-top: 48px;
  margin-bottom: 24px;
}

.page-content h3 {
  margin-top: 36px;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.page-content ul li {
  list-style-type: disc;
}

.page-content ol li {
  list-style-type: decimal;
}
