:root {
  --navy: #0b1f3a;
  --navy-deep: #071526;
  --navy-soft: #143056;
  --teal: #00c2a8;
  --teal-dark: #00a38e;
  --red: #e10613;
  --red-dark: #c10510;
  --off: #f6f7f9;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5b6775;
  --line: #e4e8ee;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
  --header-h: 92px;
  --radius: 16px;
  --container: 1180px;
  --font-head: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
}

.section {
  padding: 90px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-quote,
.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-quote:hover,
.btn-red:hover {
  background: var(--red-dark);
}

.btn-teal {
  background: var(--teal);
  color: var(--navy-deep);
}

.btn-teal:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-soft);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(7, 21, 38, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.header-inner {
  height: 100%;
  width: min(calc(100% - 40px), 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo span {
  color: var(--teal);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
  padding: 6px 0;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active {
  color: var(--red);
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-contact {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.header-contact a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 38, 0.28) 0%, rgba(7, 21, 38, 0.22) 42%, rgba(7, 21, 38, 0.78) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(7, 21, 38, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 150px;
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 6.2vw, 4.7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.social-rail {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-rail a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: 0.2s ease;
}

.social-rail a:hover {
  background: var(--red);
  border-color: var(--red);
}

.social-rail svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Track bar */
.track-wrap {
  position: relative;
  z-index: 4;
  margin-top: -78px;
}

.track-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 28px;
  align-items: center;
}

.track-card h2 {
  font-size: 1.55rem;
}

.track-card p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

.track-form,
.form-grid {
  display: grid;
  gap: 12px;
}

.track-form {
  grid-template-columns: 1fr 1fr auto;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--off);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--red);
  font-size: 0.85rem;
}

.form-success {
  display: none;
  background: #e8fbf6;
  color: #0a6b5c;
  border: 1px solid #b7efe3;
  padding: 14px 16px;
  border-radius: 10px;
}

.form-success.is-visible,
.track-result.is-visible,
.track-empty.is-visible {
  display: block;
}

/* About home */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 20px;
}

.experience-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--red);
  color: var(--white);
  padding: 22px 20px;
  border-radius: 12px;
  min-width: 130px;
  text-align: center;
}

.experience-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-points {
  display: grid;
  gap: 14px;
  margin: 22px 0 28px;
}

.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-points svg {
  flex: 0 0 22px;
  color: var(--teal);
  margin-top: 3px;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.service-card .body {
  padding: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card .more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Stats */
.stats {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat h3 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.stat h3 span {
  color: var(--teal);
}

.stat p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card .copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  background: linear-gradient(transparent, rgba(7, 21, 38, 0.92));
  color: var(--white);
}

.project-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.project-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.project-card .more {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 10px;
}

/* Testimonials */
.testimonials {
  background: var(--off);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
}

.testimonial p {
  color: var(--muted);
  margin-bottom: 22px;
}

.person {
  display: flex;
  gap: 12px;
  align-items: center;
}

.person img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.person strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy);
}

.person span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Quote */
.quote-band {
  background:
    linear-gradient(105deg, rgba(7, 21, 38, 0.88), rgba(11, 31, 58, 0.72)),
    url("../assets/images/page-banner.jpg") center/cover;
  color: var(--white);
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.quote-band h2,
.quote-band p {
  color: var(--white);
}

.quote-band p {
  opacity: 0.82;
  margin-top: 12px;
}

.quote-form {
  background: var(--white);
  color: var(--text);
  padding: 28px;
  border-radius: 18px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-grid.two .full {
  grid-column: 1 / -1;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card .body {
  padding: 22px;
}

.news-card time {
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.news-card h3 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

.news-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.site-footer a:hover {
  color: var(--teal);
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: 320px;
  margin-top: var(--header-h);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.55), rgba(7, 21, 38, 0.78));
}

.page-hero .copy {
  position: relative;
  z-index: 1;
  padding: 48px 20px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crumbs {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.crumbs a:hover {
  color: var(--teal);
}

.why-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card,
.process-card {
  background: var(--off);
  border-radius: 16px;
  padding: 24px;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.why-card h3,
.process-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.why-card p,
.process-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-num {
  font-family: var(--font-head);
  color: var(--red);
  font-weight: 800;
  font-size: 1.4rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail > * {
  direction: ltr;
}

.service-detail img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.service-detail p {
  color: var(--muted);
  margin-top: 10px;
}

.service-detail ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.service-detail li {
  padding-left: 18px;
  position: relative;
  color: var(--text);
}

.service-detail li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

/* Tracking */
.track-page {
  max-width: 760px;
  margin: 0 auto;
}

.track-page .track-form {
  grid-template-columns: 1fr 1fr auto;
  margin-top: 24px;
}

.track-result,
.track-empty {
  display: none;
  margin-top: 32px;
  background: var(--off);
  border-radius: 16px;
  padding: 24px;
}

.timeline {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.timeline li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
}

.timeline .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--line);
  margin-top: 4px;
  position: relative;
}

.timeline .dot::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  width: 2px;
  height: 34px;
  background: var(--line);
}

.timeline li:last-child .dot::after {
  display: none;
}

.timeline li.is-done .dot {
  background: var(--teal);
}

.timeline li.is-current .dot {
  background: var(--red);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 32px;
}

.info-card h2,
.info-card p,
.info-card a {
  color: var(--white);
}

.info-card p,
.info-card a {
  opacity: 0.86;
}

.info-card li {
  margin: 16px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-scale {
  transform: scale(0.96);
}

.lazy-img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 0.75s ease;
}

.lazy-img.is-loaded {
  opacity: 1;
  transform: none;
}

.reveal.is-in .lazy-img.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .lazy-img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .service-grid,
  .project-grid,
  .why-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .quote-grid,
  .track-card,
  .footer-grid,
  .service-detail,
  .service-detail:nth-child(even),
  .contact-layout {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .about-media img {
    height: 380px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open {
    height: auto;
    background: rgba(7, 21, 38, 0.98);
  }

  .site-header.is-open .header-inner {
    grid-template-rows: 92px auto auto;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 18px;
    gap: 14px;
  }

  .site-header.is-open .header-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .social-rail {
    display: none;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  .track-form,
  .form-grid.two,
  .stats-grid,
  .testimonial-grid,
  .news-grid,
  .track-page .track-form {
    grid-template-columns: 1fr;
  }

  .experience-badge {
    left: 16px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .project-grid,
  .why-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .track-card,
  .quote-form {
    padding: 20px;
  }
}
