/* BIMwave Solutions - Modern Professional Styles */
:root {
  --primary: #1a4d2e;
  --primary-dark: #0f2e1c;
  --primary-light: #2d6a4f;
  --accent: #40916c;
  --cream: #f8f5f0;
  --cream-dark: #e8e2d9;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(26, 77, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 77, 46, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--primary-dark); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 720px; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark p { opacity: 0.9; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.logo img {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}
.logo svg { width: 42px; height: 42px; }
.logo span { letter-spacing: -0.02em; }
.logo .tag { font-size: 0.65rem; font-weight: 600; color: var(--accent); display: block; margin-top: -4px; letter-spacing: 0.08em; }
.footer .logo img { height: 40px; filter: brightness(1.15); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
}
.header .btn-primary {
  color: #ffffff !important;
  background: var(--primary);
}
.header .btn-primary:hover {
  color: #ffffff !important;
  background: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-light:hover {
  background: var(--cream);
  color: var(--primary-dark);
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: #0a1f14;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 31, 20, 0.92) 0%, rgba(10, 31, 20, 0.75) 45%, rgba(10, 31, 20, 0.45) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; color: #fff; }
.hero-content h1 { color: #fff; }
.hero-content .lead { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 580px; }
.hero .hero-badge { background: var(--accent); }
.hero .stat-item strong { color: #7dcea0; }
.hero .stat-item span { color: rgba(255,255,255,0.75); }
.hero .hero-stats { border-top-color: rgba(255,255,255,0.2); }
.hero .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.hero-stats .stat-item {
  flex: 0 0 auto;
  min-width: 0;
}
@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}
.stat-item strong {
  display: block;
  font-size: 1.85rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}
.stat-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cream-dark);
}
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; margin-bottom: 1rem; }
.card-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  font-size: 0.75rem;
  background: var(--cream);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Service cards special */
.service-card {
  padding: 2rem;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.service-card h3 { color: var(--primary-dark); }
.service-card ul {
  margin: 1rem 0;
  flex-grow: 1;
}
.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Case study cards */
.case-card .card-img { height: 220px; }
.case-metrics {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.case-metrics div {
  text-align: center;
}
.case-metrics strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}
.case-metrics span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Blog */
.blog-card .card-img { height: 180px; }
.blog-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
  background-size: cover;
  background-position: center;
}
.values-list { margin-top: 1.5rem; }
.values-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.values-list .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
}

/* Process / Timeline */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.testimonial p { font-style: italic; margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; color: var(--primary-dark); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 1.75rem; }

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Blog article */
.article-header {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.article-content {
  max-width: 760px;
  margin: 0 auto;
}
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 1.75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}
.article-content li { margin-bottom: 0.5rem; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.article-img {
  border-radius: var(--radius);
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-img img { width: 100%; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: white; }
.footer ul li { margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
}
.social-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-links a:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: white;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}
.breadcrumb a { color: white; }
.breadcrumb span { opacity: 0.6; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 1.25rem 0;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.75rem; padding-right: 2rem; }

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Responsive */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { height: 320px; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-toggle { display: block; }
  .hero { min-height: 70vh; padding: 3rem 0; }
  .hero-stats { gap: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}