:root {
  --color-primary: #111827;
  --color-dark: #0b1220;
  --color-secondary: #374151;
  --color-light: #f3f4f6;
  --color-white: #ffffff;
  --color-accent: #d97706;
  --color-accent-dark: #b45309;
  --border-radius: 6px;
  --font-base: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 16px 40px rgba(17, 24, 39, 0.16);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-base);
  color: var(--color-secondary);
  background: var(--color-white);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

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

.container { max-width: 1240px; }

/* Buttons */
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--border-radius);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }

.btn-outline-dark-custom {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.6rem 1.45rem;
  border-radius: var(--border-radius);
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-dark-custom:hover { background: var(--color-primary); color: #fff; }

.btn-outline-light-custom {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.45rem;
  border-radius: var(--border-radius);
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-light-custom:hover { background: #fff; color: var(--color-primary); }

/* ===== Header ===== */
.topbar {
  background: var(--color-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar a { color: #cbd5e1; margin-right: 1.25rem; }
.topbar a:last-child { margin-right: 0; }
.topbar a:hover { color: var(--color-accent); }
.topbar-social a { margin-left: 0.9rem; margin-right: 0; font-size: 1rem; }

.main-nav {
  background: #fff;
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 rgba(17,24,39,0.06);
  z-index: 1030;
}
.main-nav .nav-link {
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--color-accent); }

.mobile-menu { width: 300px; }
.mobile-menu .nav-link { color: var(--color-primary); font-weight: 600; padding: 0.6rem 0; border-bottom: 1px solid var(--color-light); }

/* ===== Desktop dropdown submenu (hover to reveal, click to navigate) ===== */
.nav-item.has-submenu { position: relative; }
.submenu-caret { font-size: 0.65rem; margin-left: 0.3rem; vertical-align: middle; transition: transform 0.2s ease; }
.nav-item.has-submenu:hover .submenu-caret { transform: rotate(180deg); }
.nav-item.has-submenu .submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}
.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-item.has-submenu .submenu li a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-item.has-submenu .submenu li a:hover { background: var(--color-light); color: var(--color-accent); }
.nav-item.has-submenu .submenu-divider { height: 1px; background: #e5e7eb; margin: 0.4rem 0.75rem; }
.nav-item.has-submenu .submenu-viewall { color: var(--color-accent) !important; font-weight: 700 !important; }

/* ===== Mobile submenu (tap chevron to expand, tap label to navigate) ===== */
.mobile-has-submenu { border-bottom: 1px solid var(--color-light); }
.mobile-has-submenu .nav-link { border-bottom: none; }
.mobile-submenu-toggle {
  background: none; border: none; color: var(--color-primary);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.mobile-submenu-toggle i { transition: transform 0.2s ease; }
.mobile-submenu { padding-left: 0.75rem; }
.mobile-submenu ul { padding: 0 0 0.5rem; }
.mobile-submenu li a { display: block; padding: 0.45rem 0; color: var(--color-secondary); font-size: 0.9rem; font-weight: 500; }
.mobile-submenu li a:hover { color: var(--color-accent); }

/* ===== Hero / Slider ===== */
.hero-slider { position: relative; background: var(--color-dark); overflow: hidden; }
.hero-slide {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,18,32,0.92) 20%, rgba(11,18,32,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 680px; }
.hero-content h1 { color: #fff; font-size: 2.75rem; margin-bottom: 1.1rem; }
.hero-content p { color: #d1d5db; font-size: 1.15rem; margin-bottom: 1.8rem; }
.hero-eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}
.hero-slider .carousel-indicators { bottom: 1.5rem; }
.hero-slider .carousel-indicators [data-bs-target] { background-color: var(--color-accent); width: 32px; height: 3px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 5%; opacity: 0.6; }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-dark { background: var(--color-primary); color: #d1d5db; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-light { background: var(--color-light); }

.section-eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  display: block;
}
.section-title { font-size: 2.1rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--color-secondary); max-width: 680px; }
.section-header { margin-bottom: 3rem; }

/* ===== Stats ===== */
.stat-item { text-align: center; padding: 1.5rem 1rem; }
.stat-icon { font-size: 2rem; color: var(--color-accent); margin-bottom: 0.75rem; }
.stat-value { font-size: 2.6rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { color: var(--color-secondary); font-weight: 500; margin-top: 0.5rem; }
.section-dark .stat-value { color: #fff; }
.section-dark .stat-label { color: #9ca3af; }

/* ===== Cards ===== */
.service-card, .product-card, .project-card, .news-card {
  background: #fff;
  border-radius: var(--border-radius);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}
.service-card:hover, .product-card:hover, .project-card:hover, .news-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--color-light); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-card .card-body, .product-card .card-body, .project-card .card-body, .news-card .card-body { padding: 1.6rem; }
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,119,6,0.1);
  color: var(--color-accent);
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.card-meta { font-size: 0.82rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.card-link { font-weight: 600; font-size: 0.92rem; }

.badge-featured {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2;
  background: var(--color-accent); color: #fff;
  padding: 0.3rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #e5e7eb; }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.5rem; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-accent); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-year { font-size: 1.6rem; font-weight: 800; color: var(--color-accent); }
.timeline-title { margin: 0.25rem 0 0.5rem; }

/* ===== References ===== */
.reference-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--border-radius);
  height: 110px; filter: grayscale(100%); opacity: 0.75; transition: all 0.25s ease;
}
.reference-logo:hover { filter: none; opacity: 1; box-shadow: var(--shadow-soft); }
.reference-logo img { max-height: 60px; }

/* ===== Certifications ===== */
.certification-card { text-align: center; padding: 2rem 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--border-radius); height: 100%; }
.certification-card img { height: 90px; margin-bottom: 1rem; }

/* ===== Forms ===== */
.form-section { background: var(--color-light); }
.form-card { background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); padding: 2.5rem; }
.form-label { font-weight: 600; color: var(--color-primary); }
.form-control, .form-select { border-radius: var(--border-radius); padding: 0.65rem 0.9rem; border-color: #d1d5db; }
.form-control:focus, .form-select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 0.2rem rgba(217,119,6,0.15); }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== Breadcrumb / Page header ===== */
.page-header {
  background: var(--color-primary);
  padding: 3.5rem 0 2.5rem;
  color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.breadcrumb-nav a { color: #9ca3af; }
.breadcrumb-nav a:hover { color: var(--color-accent); }
.breadcrumb-nav .current { color: #fff; }
.breadcrumb-nav .separator { color: #4b5563; margin: 0 0.4rem; }

/* ===== Product detail specs ===== */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid #e5e7eb; }
.spec-table td { padding: 0.75rem 0; }
.spec-table td:first-child { font-weight: 600; color: var(--color-primary); width: 45%; }

/* ===== Footer ===== */
.site-footer { background: var(--color-dark); color: #9ca3af; padding-top: 4rem; }
.footer-top { padding-bottom: 3rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1.1rem; font-size: 1rem; }
.footer-about { font-size: 0.92rem; max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #9ca3af; font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 0.75rem; font-size: 0.92rem; }
.footer-contact i { color: var(--color-accent); margin-right: 0.5rem; width: 16px; }
.footer-contact a { color: #9ca3af; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); color: #fff; margin-right: 0.5rem;
}
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; margin-top: 1rem; font-size: 0.85rem; }
.footer-legal a { color: #9ca3af; margin-left: 1.25rem; }
.footer-legal a:hover { color: var(--color-accent); }

/* ===== Misc ===== */
.cta-band { background: linear-gradient(120deg, var(--color-primary), var(--color-dark)); color: #fff; }
.cta-band h2 { color: #fff; }
.empty-state { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: #d1d5db; }
.pagination .page-link { color: var(--color-primary); }
.pagination .page-item.active .page-link { background: var(--color-accent); border-color: var(--color-accent); }

@media (max-width: 991.98px) {
  .hero-slide { min-height: 480px; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
}
