:root {
  --bg: #f8f9fb;
  --bg-dark: #0b1437;
  --text: #1b1f3b;
  --muted: #5b618a;
  --accent: #ff7b3f;
  --accent-dark: #ff5b1c;
  --border: #e3e6f0;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(11, 20, 55, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.primary-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  color: black;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(15, 18, 63, 0.08);
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

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

.logo-copy {
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-mark {
  font-size: 1.1rem;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--muted);
}

.primary-header .logo-subtitle {
  color: var(--muted);
}

.primary-header .logo-mark {
  color: black;
}

.primary-header .menu-toggle span {
  background: black;
}

.primary-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.primary-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease;
  color: black;
}

.products-grid-img {
  width: auto;
  height: 150px;
  margin: 0 auto;
}

.products-grid-title {
  min-height: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white !important;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn--ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

.btn--ghost:hover {
  color: white;
}

.btn--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.banner-slider {
  position: relative;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  height: 315px;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  /* inset: 0; */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
  height: 100%;
}

/* .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 30, 0.05),
    rgba(7, 10, 30, 0.8)
  );
} */

.slide.slide--active {
  opacity: 1;
  position: relative;
}

.slide-content {
  position: relative;
  padding: 3rem;
  color: white;
  max-width: 600px;
}

.slide-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.5rem 0 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.slider-btn--prev {
  left: 1.5rem;
}

.slider-btn--next {
  right: 1.5rem;
}

.slider-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: 0.75rem 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
  color: var(--muted);
}

.hero-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.stats {
  background: white;
  padding: 2.5rem 0;
  box-shadow: inset 0 -1px 0 var(--border);
}

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

.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: white;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-quote {
  margin: 2rem 0 0;
  padding: 1.5rem 2rem;
  border-radius: 18px;
  background: rgba(255, 123, 63, 0.08);
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  box-shadow: 0 15px 35px rgba(12, 18, 51, 0.08);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid article,
.solutions-grid article,
.products-grid article,
.testimonial-grid article,
.timeline article {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(14, 23, 54, 0.04);
}

.card-grid article h3 {
  margin-top: 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  position: relative;
}

.timeline article {
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  width: 2px;
  height: 1rem;
  background: var(--accent);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.project-gallery figure {
  background: linear-gradient(135deg, #0b1437, #233068);
  color: white;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  font-weight: 600;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

#clients {
  overflow: hidden;
}

.clients-header {
  max-width: 760px;
}

.clients-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.2;
}

.clients-subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.clients-showcase {
  margin-top: 1.75rem;
}

.clients-showcase::before {
  content: none;
}

.clients-showcase > * {
  position: static;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: center;
}

.partner-logos img {
  width: 100%;
  max-width: 300px;
  height: 96px;
  object-fit: contain;
  justify-self: center;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(14, 23, 54, 0.08);
  filter: none;
  opacity: 1;
  will-change: transform, box-shadow;
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.partner-logos img:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(255, 123, 63, 0.08);
  border-color: rgba(255, 123, 63, 0.45);
  box-shadow: 0 22px 55px rgba(14, 23, 54, 0.14);
}

.partner-logos img:active {
  transform: translateY(-2px) scale(1.01);
}

.partner-logos img:focus-visible {
  outline: 3px solid rgba(255, 123, 63, 0.45);
  outline-offset: 3px;
  background: rgba(255, 123, 63, 0.08);
  border-color: rgba(255, 123, 63, 0.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 0.35rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.form-status[data-state="pending"] {
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: #1f7a4d;
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: #cc2a2a;
  font-weight: 600;
}

.regions ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info article {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: white;
  box-shadow: 0 12px 25px rgba(9, 15, 41, 0.05);
}

.contact-info h3 {
  margin-top: 0;
}

.regions li {
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  margin-top: 0;
  color: white;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.newsletter {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.2rem;
}

.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  padding: 0.6rem 1rem;
}

.newsletter button {
  border: none;
  background: var(--accent);
  color: white;
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.legal {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    top: 60px;
    right: 10px;
    background: #0d0d0d;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 200px;
    gap: 0;

    .btn {
      margin: 1rem;
      width: calc(100% - 2rem);
      border-radius: 999px;
      border: none;
    }

    a {
      color: white !important;
      padding: 1rem;
      width: 100%;
      border-bottom: 1px solid #ccc;
      border-radius: 0;
    }


  }

  .primary-nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 4rem;
  }

  .slider-wrapper {
    height: 50vh;
  }

  .slide-content {
    padding: 2rem;
  }

  .hero-card {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-logos {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

