/* ============================================
   SHIPDASH WEBSITE - MAIN STYLESHEET
   Mobile-First Responsive Design
   ============================================ */

:root {
  /* Color palette — from Figma design reference */
  --navy: #001f3f;
  --blue: #1e488f;
  --lime: #dbe64c;
  --green: #74c365;
  --green-dark: #00804c;
  --bg-subtle: #e1e8f4;
  --white: #ffffff;
  --cream: #f6f7ed;
  --offwhite: #f7f7f8;
  --body-gray: #5c6670;
  --timeline-gray: #dde0e4;

  /* Typography */
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'Scada', 'Courier New', monospace;

  /* Spacing */
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(3rem, 8vw, 6.25rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ============================================
   SHARED
   ============================================ */

.eyebrow {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow--navy { color: var(--navy); }
.eyebrow--lime { color: var(--lime); }

.section__header {
  max-width: 700px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  margin-top: 0.75rem;
}
.section__title--navy { color: var(--navy); }
.section__title--cream { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--accent {
  background: var(--lime);
  color: var(--navy);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--navy {
  background: var(--navy);
  color: var(--cream);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 31, 63, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.logo__word {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  white-space: nowrap;
}
.logo__ship { color: var(--navy); }
.logo__dash { color: var(--blue); }
.logo__mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--green-dark);
  transform: rotate(-90deg);
}

.nav {
  display: none;
}
.nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.nav__list a {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.15s ease;
}
.nav__list a:hover {
  color: var(--blue);
}

.header__cta {
  display: none;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile nav panel */
.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(0, 31, 63, 0.1);
  padding: 1.5rem var(--gutter) 2rem;
}
.nav.is-open .nav__list {
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.nav.is-open .nav__list a {
  display: block;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 3.5rem var(--gutter);
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,31,63,0.92) 0%, rgba(0,31,63,0.78) 42%, rgba(0,31,63,0.35) 75%, rgba(0,31,63,0.15) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 34rem;
}
.hero__headline {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}
.hero__accent { color: var(--lime); }
.hero__light { color: var(--offwhite); }
.hero__body {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--cream);
  max-width: 32rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee {
  background: var(--bg-subtle);
  padding: 1.25rem 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
}
.marquee__group span {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--blue);
}
.marquee .dot {
  color: var(--blue);
  opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */

.process {
  background: var(--navy);
  padding: clamp(2.5rem, 5vw, 3rem) var(--gutter);
}
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 78rem;
  margin: 0 auto;
}
.process__step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.process__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--bg-subtle);
  flex-shrink: 0;
  margin-top: 0.4rem;
}
.process__eyebrow {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.process__title {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
}
.process__text {
  font-size: 0.9rem;
  color: var(--timeline-gray);
  max-width: 16rem;
}

/* ============================================
   CARD GRID (What We Do)
   ============================================ */

.what-we-do {
  background: var(--bg-subtle);
  padding: var(--section-y) var(--gutter);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 78rem;
  margin: 0 auto;
}
.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card__number {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--green-dark);
}
.card__title {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
}
.card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--body-gray);
  flex-grow: 1;
}
.card__tag {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
}

/* ============================================
   STORY
   ============================================ */

.story {
  background: var(--blue);
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 90rem;
  margin: 0 auto;
}
.story__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 34rem;
}
.story__paragraph {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream);
}
.story__quote {
  border-left: 3px solid var(--lime);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--cream);
}
.story__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.story__point-num {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--lime);
  margin-bottom: 0.5rem;
}
.story__point-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.story__point-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cream);
  max-width: 20rem;
}

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial {
  background: var(--green);
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.testimonial__stars {
  font-size: 1.25rem;
  color: var(--navy);
}
.testimonial__quote {
  font-weight: 500;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  line-height: 1.45;
  color: var(--navy);
  max-width: 51rem;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-align: left;
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial__author span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.testimonial__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}
.testimonial__role {
  font-size: 0.75rem;
  color: var(--navy);
}

/* ============================================
   TECHNOLOGY
   ============================================ */

.technology {
  background: var(--bg-subtle);
  padding: var(--section-y) var(--gutter);
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
}
.tech-card {
  background: var(--white);
  border-radius: 0.875rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tech-card__label {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  text-transform: uppercase;
}
.tech-card__name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.tech-card__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body-gray);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  background: var(--white);
  padding: var(--section-y) var(--gutter);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: 78rem;
  margin: 0 auto;
}
.step__num {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--green);
  line-height: 1;
}
.step__eyebrow {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 0.75rem;
}
.step__title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-top: 0.5rem;
}
.step__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body-gray);
  margin-top: 0.5rem;
  max-width: 18rem;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta {
  background: var(--lime);
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.cta__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--navy);
}
.cta__text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--navy);
  max-width: 36rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy);
  padding: 4rem var(--gutter) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 82rem;
  margin: 0 auto;
}
.footer__mark {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--green);
  transform: rotate(-90deg);
}
.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cream);
  max-width: 20rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer__heading {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.footer__col a,
.footer__col span {
  font-size: 0.875rem;
  color: var(--cream);
}
.footer__col a:hover {
  color: var(--green);
}
.footer__divider {
  border: none;
  border-top: 1px solid rgba(246, 247, 237, 0.2);
  max-width: 82rem;
  margin: 2.5rem auto 1.5rem;
}
.footer__bottom {
  max-width: 82rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cream);
}
.footer__subsidiary {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer__bottom a:hover {
  color: var(--green);
}

/* ============================================
   BREAKPOINTS
   ============================================ */

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .story__points { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: start;
  }
  .footer__mark { grid-column: 1; grid-row: 1; }
  .footer__tagline { grid-column: 1; grid-row: 2; max-width: 18rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero__inner { max-width: 40rem; }
  .hero__scrim { background: linear-gradient(90deg, rgba(0,31,63,0.92) 0%, rgba(0,31,63,0.75) 38%, rgba(0,31,63,0.2) 68%, rgba(0,31,63,0.05) 100%); }

  .process__grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }

  .story { flex-direction: row; align-items: center; justify-content: space-between; gap: 5rem; }
  .story__main { flex: 0 0 34rem; }
  .story__points { flex: 1; gap: 2.5rem 2.5rem; }
}
