/* ============================================================
   RMS Logistics — stylesheet
   Palette: navy #0d1b2a / #142236 · brand blue #63a5f4 / #2f7de1
   Type: Space Grotesk (display) · Inter (body) · Space Mono (labels)
   ============================================================ */

:root {
  --navy-900: #0b1622;
  --navy-800: #0d1b2a;
  --navy-700: #142236;
  --navy-600: #1c3050;
  --blue: #63a5f4;
  --blue-strong: #2f7de1;
  --ink: #16202e;
  --ink-soft: #45566a;
  --line: #e4e9f1;
  --paper: #ffffff;
  --paper-tint: #f5f7fb;

  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Inter", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.06), 0 8px 24px rgba(13, 27, 42, 0.05);
  --shadow-md: 0 12px 40px rgba(13, 27, 42, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-strong);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.light { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary {
  background: var(--blue-strong);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 125, 225, 0.32);
}
.btn-primary:hover { background: #2670cf; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue-strong); color: var(--blue-strong); transform: translateY(-2px); }
.btn-ghost.light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost.light:hover { border-color: var(--blue); color: var(--blue); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 6px 26px rgba(13, 27, 42, 0.08);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--blue-strong);
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--blue-strong); }
.nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #17304f 0%, rgba(23, 48, 79, 0) 55%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #eaf1fb;
  padding: 150px 0 70px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 165, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 165, 244, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 80% at 30% 20%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--blue); }

/* Hero bento collage */
.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hm {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(6, 12, 20, 0.45);
  aspect-ratio: 4 / 3;
}
.hm-lg { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hm img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hm::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 34, 0) 45%, rgba(11, 22, 34, 0.72) 100%);
}
.hm figcaption {
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #eaf1fb;
  display: inline-flex; align-items: center; gap: 7px;
}
.hm figcaption::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(99, 165, 244, 0.22);
}
.hm:hover img { transform: scale(1.06); }
.hero-title {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title .accent {
  color: var(--blue);
  background: linear-gradient(120deg, var(--blue), #9cc6ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: #b9c8dc;
  max-width: 620px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.pillars {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #cdd9ea;
}
.pillars span { display: inline-flex; align-items: center; gap: 9px; }
.pillars .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(99, 165, 244, 0.16);
}

/* Stats */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 70px 0 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: rgba(13, 27, 42, 0.6); padding: 26px 24px; text-align: center; }
.stat dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff; letter-spacing: -0.02em;
}
.stat dd {
  margin: 6px 0 0;
  font-size: 0.86rem; color: #9fb2c9;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(70px, 9vw, 118px) 0; }
.section-tint { background: var(--paper-tint); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

/* ---------- About ---------- */
.about-top {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start;
}
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { color: var(--ink-soft); margin: 0 0 18px; max-width: 56ch; }

.founder {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.founder-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-700); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder figcaption {
  padding: 20px 22px; display: flex; flex-direction: column; gap: 3px;
  border-top: 3px solid var(--blue-strong);
}
.founder-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.founder-role { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }

.about-more {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
  padding-top: 48px; border-top: 1px solid var(--line);
}
.about-more p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ---------- Services ---------- */
.services-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 52px;
}
.services-intro p { color: var(--ink-soft); margin: 0; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-code {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: #a9b6c8;
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 13px;
  background: linear-gradient(150deg, rgba(99, 165, 244, 0.16), rgba(47, 125, 225, 0.1));
  color: var(--blue-strong);
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.16rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Work / gallery ---------- */
.work-head { margin-bottom: 44px; max-width: 620px; }
.work-head h2 { margin-bottom: 14px; }
.work-head p { color: var(--ink-soft); margin: 0; }

.masonry { column-count: 4; column-gap: 18px; }
.shot {
  position: relative;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-tint);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shot img { width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.shot::after {
  content: attr(data-cap);
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; padding: 6px 11px; border-radius: 7px;
  background: rgba(13, 27, 42, 0.72); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shot:hover img { transform: scale(1.05); }
.shot:hover::after { opacity: 1; transform: translateY(0); }

/* ---------- Clients ---------- */
#clients h2 { margin-bottom: 40px; }
.client-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 30px 56px;
}
.client {
  display: flex; align-items: center; justify-content: center;
  height: 92px; padding: 14px 26px; min-width: 150px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.client img {
  max-height: 62px; width: auto; object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.client:hover img { transform: scale(1.04); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(100% 120% at 90% 0%, #17304f 0%, rgba(23, 48, 79, 0) 55%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #e7eefa;
  padding: clamp(70px, 9vw, 118px) 0;
}
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.contact-left h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.contact-lead { color: #b9c8dc; max-width: 48ch; margin: 0 0 36px; }

.contact-details { display: flex; flex-direction: column; gap: 22px; margin-bottom: 34px; }
.detail { display: flex; gap: 16px; align-items: flex-start; }
.detail-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(99, 165, 244, 0.14); color: var(--blue);
  border: 1px solid rgba(99, 165, 244, 0.22);
}
.detail-icon svg { width: 22px; height: 22px; }
.detail-label {
  display: block;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8ba1bd; margin-bottom: 3px;
}
.detail-value { font-style: normal; color: #eaf1fb; font-size: 1rem; line-height: 1.55; transition: color 0.2s var(--ease); }
a.detail-value:hover { color: var(--blue); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 40px 34px; text-align: center;
}
.contact-logo {
  background: #fff; border-radius: 12px; padding: 22px 24px; margin-bottom: 22px;
}
.contact-logo img { width: 100%; height: auto; max-width: 260px; margin-inline: auto; }
.slogan {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  color: var(--blue); margin: 0; letter-spacing: -0.01em;
}

/* ---------- Copyright ---------- */
.copyright { background: var(--navy-900); color: #7f93ac; padding: 22px 0; }
.copyright-inner {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.copyright-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #5f748f; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 15, 24, 0.92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.28s var(--ease);
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox.show { opacity: 1; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb-stage img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#lbCap { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b9c8dc; }
.lb-close {
  position: absolute; top: 22px; right: 26px;
  background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
  opacity: 0.8; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.lb-close:hover { opacity: 1; transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.lb-nav:hover { background: rgba(99, 165, 244, 0.35); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 560px; }
  .about-top { grid-template-columns: 1fr; gap: 40px; }
  .founder { max-width: 420px; }
  .about-more { grid-template-columns: 1fr; gap: 20px; }
  .services-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 3; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 22px;
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 20px 40px rgba(13, 27, 42, 0.1);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: flex; }

  .hero { padding: 120px 0 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; column-gap: 14px; }
  .shot { margin-bottom: 14px; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lightbox { padding: 20px; }
}

@media (max-width: 440px) {
  .client-row { gap: 20px; }
}

/* ---------- Motion / accessibility ---------- */
:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
