/* === Reset & Variables === */
:root {
  --primary: #1a5ce0;
  --primary-dark: #083999;
  --dark: #1a1a1a;
  --darker: #000f23;
  --gray: #67757f;
  --light-bg: #f7f8f8;
  --white: #ffffff;
  --footer-bg: #242a36;
  --black: #000000;
  --border: #dddddd;
  --max-w: 1240px;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--gray);
  background: var(--light-bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--darker);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8em 20px;
}

.header-logo img { height: 50px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 0; }

.header-nav a {
  color: var(--white);
  padding: 0.5em 1.2em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.header-nav a:hover { color: var(--primary); }
.header-nav a.active { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5em 0;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: var(--white);
  padding: 0.6em 1.2em;
  font-size: 0.9rem;
}
.dropdown-menu a { color: var(--darker); }
.dropdown-menu a:hover { color: var(--primary); background: var(--light-bg); }

.dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
}

.btn-quote {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--primary);
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}
.btn-quote:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: white; margin: 4px 0; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, rgba(0,15,35,0.85), rgba(26,92,224,0.7)),
              url('/static/images/hero-bg.jpg') center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: var(--white);
}

.hero h1 { color: var(--white); margin-bottom: 0.5em; font-size: 3.5rem; }
.hero h5 { color: rgba(255,255,255,0.85); font-weight: 400; margin-bottom: 1em; max-width: 600px; line-height: 1.6; }
.hero p { color: rgba(255,255,255,0.7); margin-bottom: 2em; }

.hero-buttons { display: flex; gap: 1em; margin-bottom: 2em; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  padding: 1em 2em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white) !important; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white) !important;
  padding: 1em 2em;
  border: 2px solid var(--white);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--white); color: var(--darker) !important; }

.hero-badges { display: flex; gap: 1.5em; flex-wrap: wrap; }
.hero-badges span {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.hero-badges .icon { color: #4caf50; }

/* === Services Grid === */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}

.service-card {
  text-align: center;
  padding: 1.5em;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 8px;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.service-card h5 { margin-bottom: 1em; color: var(--darker); }
.service-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
  transition: transform 0.3s;
}
.service-card:hover img { transform: scale(0.95); }

.btn-sm {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--primary-dark); color: var(--white) !important; }

/* === How to Work === */
.how-section { padding: 40px 0 0; }
.how-section h2 { text-align: center; margin-bottom: 0; }

.how-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  background: var(--light-bg);
  padding: 60px 0;
}

.how-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-steps { padding: 2em 3em; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 2em;
}
.step-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.step p { font-size: 0.9rem; color: var(--gray); }

/* === CTA Section === */
.cta-section {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1em; }
.cta-section .btn-sm {
  background: var(--white);
  color: var(--primary) !important;
  padding: 0.8em 2em;
  font-size: 0.95rem;
}
.cta-section .btn-sm:hover {
  background: var(--light-bg);
}

/* === FAQ === */
.faq-section {
  padding: 80px 0;
  background: var(--light-bg);
}
.faq-section > .container > h2 { text-align: center; margin-bottom: 2em; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}
.faq-item h4 { margin-bottom: 0.5em; font-size: 1.05rem; }
.faq-item hr { border: none; border-top: 2px solid var(--primary); margin-bottom: 0.8em; width: 60px; }
.faq-item p { font-size: 0.95rem; color: var(--gray); }

/* === Why Choose Us === */
.why-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,15,35,0.9), rgba(36,42,54,0.95)),
              url('/static/images/factory-bg.jpg') center/cover no-repeat;
  color: var(--white);
}
.why-section h2 { color: var(--white); text-align: center; margin-bottom: 2em; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}
.why-card {
  text-align: center;
  padding: 2em 1.5em;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: background 0.3s;
}
.why-card:hover { background: rgba(255,255,255,0.12); }

.why-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1em;
  font-size: 1.5rem;
  color: var(--white);
  transition: transform 0.3s;
}
.why-card:hover .why-icon { transform: scale(1.1); }
.why-card h4 { color: var(--white); margin-bottom: 0.8em; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* === Footer === */
.site-footer-main {
  background: var(--footer-bg);
  color: #cad0db;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2em;
}

.footer-col h4 { color: var(--white); margin-bottom: 1em; font-size: 1.1rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; color: #cad0db; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5em; }
.footer-col ul li a { color: #cad0db; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-logo { height: 45px; margin-bottom: 1em; }

.social-links { display: flex; gap: 0.6em; margin-top: 1em; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
.social-links a:hover { opacity: 0.8; }
.social-links .fb { background: #3b5998; }
.social-links .tw { background: #1da1f2; }
.social-links .li { background: #0077b5; }
.social-links .yt { background: #cd201f; }
.social-links .ig { background: #262626; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .header-nav, .header-inner > .btn-quote { display: none; }
  .menu-toggle { display: block; }

  .hero { min-height: 70vh; padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }

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

  .how-content { grid-template-columns: 1fr; }
  .how-image { display: none; }
  .how-steps { padding: 2em 1.5em; }

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

  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5em; }
}

@media (max-width: 480px) {
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* === Page Banner (subpages) === */
.page-banner {
  background: linear-gradient(135deg, #000f23 0%, #1a5ce0 100%);
  padding: 140px 0 60px;
  color: var(--white);
}
.page-banner h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 0.3em; }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--white); }

/* === Section Label === */
.section-label {
  color: var(--primary);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

/* === About Page === */
.about-intro { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
}
.about-text h2 { margin-bottom: 0.8em; }
.about-text p { margin-bottom: 1em; color: var(--gray); line-height: 1.8; }
.about-image img { border-radius: 12px; width: 100%; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
}
.stat-label { font-size: 0.85rem; color: var(--gray); }

/* Values */
.values-section {
  padding: 80px 0;
  background: var(--light-bg);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}
.value-card {
  background: var(--white);
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(26,92,224,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1em;
}
.value-card h4 { margin-bottom: 0.6em; }
.value-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* Capabilities Grid */
.capabilities-section { padding: 80px 0; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}
.cap-item {
  padding: 2em;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cap-item:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(26,92,224,0.08); }
.cap-item i { font-size: 2rem; color: var(--primary); margin-bottom: 0.8em; display: block; }
.cap-item h4 { margin-bottom: 0.5em; }
.cap-item p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* === Services Page === */
.services-overview { padding: 80px 0; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  margin-bottom: 5em;
}
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-row-image img { border-radius: 12px; width: 100%; }
.service-row-content h3 { margin-bottom: 0.6em; font-size: 1.8rem; }
.service-row-content p { color: var(--gray); line-height: 1.8; margin-bottom: 1em; }

.check-list { list-style: none; margin-bottom: 1.5em; }
.check-list li {
  padding: 0.4em 0;
  font-size: 0.95rem;
  color: var(--gray);
}
.check-list li i { color: var(--primary); margin-right: 8px; font-size: 0.8rem; }

/* === Contact Page === */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4em;
}
.contact-form-wrap h2 { margin-bottom: 0.5em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; }
.form-group { margin-bottom: 1.5em; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--darker);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,224,0.1);
}
.form-group textarea { resize: vertical; }

.contact-info-sidebar { display: flex; flex-direction: column; gap: 1.5em; }
.info-card {
  padding: 1.5em;
  background: var(--light-bg);
  border-radius: 8px;
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26,92,224,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.8em;
}
.info-card h4 { margin-bottom: 0.4em; font-size: 1rem; }
.info-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }
.info-card a { color: var(--primary); }

/* === Service Detail Page === */
.service-intro { padding: 80px 0; }
.service-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
}
.service-intro-text h2 { margin-bottom: 0.8em; }
.service-intro-text p { color: var(--gray); line-height: 1.8; }
.service-intro-image img { border-radius: 12px; width: 100%; }

.service-capabilities {
  padding: 80px 0;
  background: var(--light-bg);
}

.specs-section { padding: 80px 0; }
.specs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2em;
}
.spec-card {
  padding: 2em;
  border: 1px solid #eee;
  border-radius: 8px;
  background: var(--white);
}
.spec-card h4 { margin-bottom: 1em; font-size: 1.1rem; }
.spec-card ul { list-style: none; }
.spec-card ul li {
  padding: 0.4em 0;
  font-size: 0.9rem;
  color: var(--gray);
  border-bottom: 1px solid #f5f5f5;
}
.spec-card ul li:last-child { border: none; }
.spec-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.other-services {
  padding: 60px 0;
  background: var(--light-bg);
}
.other-services .services-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* === Mobile Nav Open State === */
.header-nav.nav-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--white);
  padding: 80px 30px 30px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1001;
}
.header-nav.nav-open a {
  color: var(--darker);
  padding: 0.8em 0;
  border-bottom: 1px solid #eee;
}
.header-nav.nav-open a:hover { color: var(--primary); }
.header-nav.nav-open .dropdown-menu {
  position: static;
  box-shadow: none;
  padding-left: 1em;
}
.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* === Subpage Responsive === */
@media (max-width: 768px) {
  .about-grid,
  .service-row,
  .service-row.reverse,
  .service-intro-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .service-row.reverse { direction: ltr; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .other-services .services-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .about-image { order: -1; }
  .page-banner h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .other-services .services-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
