:root {
  --bg: #1a0e02;
  --card: #241305;
  --card-alt: #321a07;
  --text: #fff4e6;
  --muted: #ffe0bf;
  --accent: #ff6600;
  --accent-soft: rgba(255, 102, 0, 0.35);
  --border: rgba(255, 244, 230, 0.12);
  --pill: rgba(255, 102, 0, 0.4);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

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

body {
  margin: 0;
  background: radial-gradient(
      circle at top,
      rgba(255, 102, 0, 0.6),
      transparent 50%
    ),
    var(--bg);
  min-height: 100vh;
}

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

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

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

ul {
  padding-left: 1.1rem;
}

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

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

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  height: 3rem;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.nav-links li {
  display: flex;
  align-items: center;
}

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

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

.hero-copy h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
  max-width: 22ch;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9933, #ff6600);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
  border: 1px solid var(--border);
}

.btn-link {
  background: none;
  color: var(--muted);
  padding-left: 0;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.metrics dt {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
}

.metrics dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.hero-visual {
  background: linear-gradient(
    160deg,
    rgba(255, 102, 0, 0.28),
    rgba(36, 19, 5, 0.95)
  );
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  margin-left: 0;
}

@media (min-width: 960px) {
  .hero-visual {
    margin-left: clamp(1rem, 2vw, 2.5rem);
  }
}

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

.card-grid article {
  background: linear-gradient(
    180deg,
    rgba(50, 26, 7, 0.9),
    rgba(36, 19, 5, 0.95)
  );
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
}

/* Hide empty tool spans in hero cards */
.card-grid article span[data-i18n*="tools"]:empty {
  display: none;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: rgba(50, 26, 7, 0.78);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.service-grid,
.solution-grid,
.pricing-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.service-grid article,
.solution-grid article,
.pricing-grid article,
.testimonial-grid article {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill-grid span {
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  background: var(--pill);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.process-steps li {
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

.pricing-grid .highlight {
  border: 1px solid var(--accent);
  box-shadow: 0 20px 50px rgba(255, 102, 0, 0.45);
}

/* Center text in pricing articles */
.pricing-grid article {
  text-align: center;
}

.pricing-grid article ul {
  list-style: disc;
  padding-left: 0;
  margin: 1rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 90%;
}

.pricing-grid article li {
  text-align: center;
  list-style-position: inside;
}

.testimonials article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hide third testimonial when empty */
.testimonial-grid
  article:nth-child(3):has(p[data-i18n="testimonials.three.quote"]:empty),
.testimonial-grid
  article:nth-child(3):has(
    p[data-i18n="testimonials.three.quote"]:not(:has-text)
  ) {
  display: none;
}

.contact {
  background: linear-gradient(
    135deg,
    rgba(50, 26, 7, 0.94),
    rgba(24, 12, 3, 0.95)
  );
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: inherit;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: #150a01;
}

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

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  /* Mobile Navigation Layout - Match Screenshot */
  .nav-container {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0rem;
    align-items: center;
    padding: 0.3rem 0;
  }

  .logo {
    grid-column: 1;
    margin-left: 102px;
    grid-row: 1;
  }

  .logo img {
    height: 3rem;
    width: auto;
  }

  .nav-container > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    width: 110%;
    gap: 0rem;
  }

  /* Top row: Position buttons (Talk to us, Français) in top right - positioned relative to container */
  .nav-links li:nth-child(5),
  .nav-links li:nth-child(6) {
    position: relative;
    display: flex;
    margin: 0.4rem 0 0 0;
    justify-content: center;
    width: auto;
  }

  /* Language toggle - positioned to the left of "Talk to us" with more spacing */
  .nav-links li:nth-child(6) {
    right: 0rem; /* Move further left to prevent overlap */
  }

  /* Talk to us button - positioned on the far right */
  .nav-links li:nth-child(5) {
    right: -11rem;
  }

  /* Bottom row: Navigation links (Services, Industries, Solutions, Pricing) */
  .nav-links li:nth-child(1),
  .nav-links li:nth-child(2),
  .nav-links li:nth-child(3),
  .nav-links li:nth-child(4) {
    flex: 0 1 auto;
  }

  /* Bottom row: Navigation links (Services, Industries, Solutions, Pricing) */
  .nav-links li:nth-child(1),
  .nav-links li:nth-child(2),
  .nav-links li:nth-child(3),
  .nav-links li:nth-child(4) {
    flex: 0 1 auto;
  }

  /* Style navigation links */
  .nav-links li:nth-child(1) a,
  .nav-links li:nth-child(2) a,
  .nav-links li:nth-child(3) a,
  .nav-links li:nth-child(4) a {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }

  /* Style buttons */
  .nav-links .btn-secondary,
  .nav-links .btn-ghost {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .metrics {
    grid-template-columns: 1fr;
  }

  .nav-links li:nth-child(-n + 4) {
    margin-left: -5px; /* adjust pixels as needed */
  }

  /* Adjust gap between header and hero headline in mobile */
  .hero {
    padding-top: 1rem; /* Change this value to adjust the gap */
  }

  /* Adjust scroll offset for anchor links in mobile */
  html {
    scroll-padding-top: 6rem; /* Adjust this value for mobile scroll offset */
  }

  /* Center footer content on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid .logo {
    display: flex;
    margin-left: -3px;
    justify-content: center;
  }

  .footer-grid nav {
    display: flex;
    justify-content: center;
  }

  .footer-grid ul {
    align-items: center;
    text-align: center;
  }

  .footer-meta {
    justify-content: center;
    text-align: center;
  }
}

/* Modal Styles */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  width: 500px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: auto;
  transform: translate(0, 0);
}

.modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.modal-content .btn {
  margin: 0 auto;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
    width: 85%;
  }

  .modal-content p {
    font-size: 1rem;
  }
}
