/* ArcFX Test Site — Modern Forensic Engineering */

:root {
  --navy: #14395a;
  --navy-light: #1a4a72;
  --accent: #b8962f;
  --accent-hover: #d4ad3a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-500: #6c757d;
  --gray-700: #444444;
  --gray-900: #1b1b1b;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.7;
  font-size: 16px;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

.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: var(--transition);
}

/* ===== HERO ===== */
.hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

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

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ===== STRENGTHS (3 columns) ===== */
.strengths {
  background: var(--gray-50);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.strength-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.strength-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.strength-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.strength-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 20px;
}

/* ===== ABOUT ===== */
.about { background: var(--gray-50); }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===== EXPERTS ===== */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.expert-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.expert-header {
  background: var(--navy);
  padding: 2.5rem 2rem;
  text-align: center;
}

.expert-avatar {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.expert-header h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.expert-header .title {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.expert-body {
  padding: 2rem;
}

.expert-body p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.expert-details {
  list-style: none;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
}

.expert-details li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.expert-details .label {
  font-weight: 600;
  color: var(--navy);
  min-width: 100px;
}

/* ===== CASE STUDIES ===== */
.case-studies { background: var(--gray-50); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.case-card .case-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== CREDENTIALS ===== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.credential-group {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 8px;
}

.credential-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.credential-group ul {
  list-style: none;
}

.credential-group li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ===== BLOG PREVIEW ===== */
.blog { background: var(--gray-50); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

a.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.blog-card-img {
  height: 180px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body .date {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== CONTACT / CTA ===== */
.cta-section {
  background: var(--navy);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-section {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.contact-form h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.contact-info { padding-top: 0.5rem; }

.contact-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 3rem 2rem 1.5rem;
}

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

.footer-brand h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand h3 span { color: var(--accent); }

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .strengths-grid,
  .cases-grid,
  .blog-grid,
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 2rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

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

  .strengths-grid,
  .services-grid,
  .experts-grid,
  .cases-grid,
  .blog-grid,
  .credentials-grid,
  .contact-grid { grid-template-columns: 1fr; }

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

  section { padding: 3rem 1.5rem; }
}
