@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #020617;
  --bg-elevated: #050816;
  --bg-muted: #0b1120;
  --accent: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --accent-strong: #38bdf8;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #f97373;
  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.6);
  --max-width: 1120px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #111827, #020617 55%, #000000 100%);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, var(--accent), var(--accent-strong));
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.75);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-lang .tag {
  font-size: 0.75rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020617;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(1.1);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.65), transparent 55%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
  z-index: -1;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  padding: 3.5rem 1.25rem 4.5rem;
  align-items: center;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: min(420px, 95%);
  height: auto;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,0.55));
  border-radius: 12px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3rem);
  line-height: 1.1;
  margin: 0.4rem 0 0.6rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: radial-gradient(circle at top right, #020617, #020617 35%, #020617);
}

.section-accent {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(30, 64, 175, 0.9));
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0.15rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mt-lg {
  margin-top: 2.5rem;
}

/* Cards */
.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.75);
}

/* Services section */
.section.services {
  padding: 5rem 0;
  background: radial-gradient(circle at top left, #050816 0, #020617 55%, #000 100%);
  color: #f5f5f5;
}

/* ===== SERVICES: image left, 2 stacked cards right ===== */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center; /* ← THIS IS THE IMPORTANT PART */
  margin-top: 2.5rem;
}



/* Left image block */
.services-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  background: rgba(15, 23, 42, 0.7);

  /* IMPORTANT */
  min-height: 620px;   /* smaller than before */
  max-height: 680px;   /* prevents over-stretch */
}


.services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* Right column cards */
.services-cards {
  display: grid;
  gap: 1.25rem;
}

/* Optional: slightly tighten these consolidated cards */
.service-card-wide {
  padding: 1.5rem 1.4rem;
}


/* Equipment cards: add a photo slot that matches the theme */
.equipment-card {
  padding: 1.1rem 1.1rem 1.25rem; /* slightly tighter so image + text fits nicely */
}

.equip-photo {
  border-radius: calc(var(--radius-md) - 0.1rem);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.65);
  height: 170px;              /* adjust: 150–200 */
  margin-bottom: 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.equip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Optional: tighten text spacing to keep cards even */
.equipment-card h3 {
  margin-top: 0;
}


/* Responsive: stack image above cards */
@media (max-width: 900px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-media {
    min-height: 320px;
  }
}


.section.services .section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section.services h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section.services .section-intro {
  font-size: 0.98rem;
  color: #cccccc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: rgba(15, 15, 15, 0.9);
  border-radius: 1.25rem;
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    border-color 180ms ease-out;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7);
  border-color: rgba(37, 99, 235, 0.7);
}

.service-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
}

.service-card h3 {
  font-size: 1.25rem;
  margin: 0.25rem 0;
}

.service-text {
  font-size: 0.95rem;
  color: #d4d4d4;
}

.service-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #c1c1c1;
}

.service-bullets li + li {
  margin-top: 0.25rem;
}

.service-outcome {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.services-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}

.services-highlight {
  max-width: 640px;
  font-size: 0.92rem;
  color: #d0d0d0;
}

.services-highlight ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.services-highlight li + li {
  margin-top: 0.25rem;
}

/* Safety items */
.safety-item {
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-soft);
}

.safety-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.safety-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== ABOUT: 3 cards + long countries card (matches your sketch) ===== */
.about-stack {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

/* Narrow the 3-card row without changing the rest of the site */
.about-narrow {
  max-width: 980px;
  margin: 0 auto;
}

/* ===== ABOUT: image + content (matches Services styling) ===== */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2.25rem;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  background: rgba(15, 23, 42, 0.7);
  min-height: 520px;
  max-height: 640px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Responsive: stack image above content */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 320px;
    max-height: 420px;
  }
}

/* Countries card uses the same visual language as safety-item */
.coverage-card.coverage-wide {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.3rem 1.25rem;
}

.coverage-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

/* 3 columns inside the long card */
.coverage-groups.coverage-groups-wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem 2rem;
}

.coverage-groups h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.coverage-groups ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coverage-groups li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coverage-groups li:last-child {
  border-bottom: none;
}

.coverage-footnote {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Inventory / Portal */
.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.portal-filters select {
  max-width: 220px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.inventory-empty {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
  padding: 1.5rem 0;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow: hidden;
}

/* ================== FORM SUCCESS MODAL ================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 2rem));
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.65rem;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.modal.is-error .modal-icon {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fee2e2;
}

.modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.modal-text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* prevent background scroll when modal open */
body.modal-open {
  overflow: hidden;
}


/* ================== INDUSTRIAL OUTLINE BUTTON ================== */
.btn-industrial {
  background: transparent;
  color: #f9fafb;
  border: 2px solid rgba(249, 115, 22, 0.7);
  transform: skew(-15deg);
}

.btn-industrial span {
  display: inline-block;
  transform: skew(15deg);
  position: relative;
  z-index: 2;
}

.btn-industrial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f97316;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 1;
}

.btn-industrial:hover::before {
  transform: translateX(0);
}

.btn-industrial:hover {
  color: #0b1020;
  border-color: #f97316;
}

.btn-primary {
  background: #f97316;
  color: #0b0b0b;
}

.btn-primary:hover {
  background: #ff8a38;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: #f9fafb;
  border: 2px solid rgba(249, 115, 22, 0.7);
}

.btn-outline:hover {
  border-color: #ffb078;
  color: #ffb078;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-nav {
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  transform: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.btn-nav span {
  transform: none;
}

.btn-nav::before {
  display: none;
}

.nav-cta .btn-nav {
  background: #f97316;
  color: #0b1020;
}

.nav-cta .btn-nav:hover {
  background: #ff8a38;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Tags & forms */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

.tag-pill {
  font-size: 0.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

input,
select,
textarea {
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

textarea {
  resize: vertical;
}

.small-text {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mt-sm {
  margin-top: 0.5rem;
}

.contact-grid {
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, #020617, #020617 60%, #000000);
  padding: 1.5rem 0 1.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ================= PAGE CONTENT REVEAL ================= */
.reveal-on-load {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

body.page-ready .reveal-on-load {
  animation: fadeUpSoft 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.35s;
}

body.page-ready .hero.reveal-on-load {
  animation-duration: 1.9s;
  animation-delay: 0.45s;
}

@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-logo img {
    width: min(320px, 95%);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* countries card columns stack */
  .coverage-groups.coverage-groups-wide {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.7rem 1.25rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .inventory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-video {
    display: none;
  }

  .hero {
    background:
      radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 55%),
      radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 60%),
      url("img/hero-machinery.jpg");
    background-size: cover;
    background-position: center;
  }
}
