/* EazyMiles — standalone landing (BISMAN layout structure, unique logistics visual language) */

:root {
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  /* Brand from logo: deep navy + orange */
  --brand-navy: #002050;
  --brand-navy-deep: #001538;
  --brand-navy-soft: #083060;
  --brand-orange: #f06000;
  --brand-orange-hot: #f86000;
  --navy-900: var(--brand-navy-deep);
  --navy-800: var(--brand-navy);
  --navy-700: var(--brand-navy-soft);
  --ink: #0a1a30;
  --muted: #5a6b7c;
  --paper: #f4f6f9;
  --white: #ffffff;
  --accent: var(--brand-orange);
  --accent-deep: #d95500;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-800);
}

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

/* Loading */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header — light bar so navy/orange logo stays visible */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 32, 80, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.page.is-scrolled .header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 32, 80, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, var(--container));
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav a {
  color: rgba(0, 32, 80, 0.72);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  display: block;
}

.nav a:hover {
  color: var(--brand-navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn--header {
  background: var(--brand-orange);
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
}

.btn--header:hover {
  color: #fff;
  background: var(--accent-deep);
}

.nav-login-mobile {
  display: none;
}

.btn--primary {
  background: var(--brand-orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.page.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.page.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.page.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero — full-bleed, brand first */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 21, 56, 0.92) 0%, rgba(0, 32, 80, 0.78) 48%, rgba(0, 32, 80, 0.4) 100%),
    linear-gradient(to top, rgba(0, 21, 56, 0.8), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__brand {
  height: 88px;
  width: auto;
  margin: 0 0 28px;
  display: block;
  /* Soft light edge so dark navy mark stays readable on dark hero — no solid box */
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 2px 14px rgba(255, 255, 255, 0.45));
  animation: brandIn 0.9s var(--ease) both;
}

.quality img,
.footer__brand img {
  height: 64px;
  width: auto;
  margin: 0 auto 18px;
  display: block;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 2px 12px rgba(255, 255, 255, 0.35));
}

@keyframes brandIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero .accent {
  color: var(--brand-orange);
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--paper);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 12px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 10px;
}

.hero .eyebrow,
.testimonial .eyebrow,
.final-cta .eyebrow {
  color: #ffb06b;
}

/* Service rows — product-section style, no card clutter */
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.service-row--flip {
  direction: rtl;
}

.service-row--flip > * {
  direction: ltr;
}

.service-row__copy h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 14px;
}

.service-row__copy p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 36rem;
}

.service-row__visual {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--navy-800);
}

.service-row__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-row:hover .service-row__visual img {
  transform: scale(1.04);
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--accent-deep);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about__copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.about__copy p {
  color: var(--muted);
  margin-bottom: 14px;
}

.pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pillars li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid rgba(18, 50, 74, 0.12);
  padding: 8px 14px;
}

.about__aside {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.85);
  padding: 0 0 28px;
}

.about__aside img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 22px;
}

.about__aside h3 {
  color: #fff;
  font-size: 1.25rem;
  padding: 0 24px;
  margin-bottom: 10px;
}

.about__aside p {
  padding: 0 24px;
  font-size: 0.95rem;
}

.about__aside a {
  color: var(--accent);
}

.about__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

/* Action strips */
.action-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(18, 50, 74, 0.1);
  border: 1px solid rgba(18, 50, 74, 0.1);
}

.action-item {
  background: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  min-height: 160px;
  transition: background 0.25s ease;
}

.action-item:hover {
  background: var(--navy-800);
  color: #fff;
}

.action-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.action-item span {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.action-item:hover span {
  color: rgba(255, 255, 255, 0.7);
}

.action-item em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.action-item:hover em {
  color: var(--accent);
}

/* Testimonial */
.testimonial {
  position: relative;
  padding: 100px 0;
  color: #fff;
  overflow: hidden;
}

.testimonial__bg {
  position: absolute;
  inset: 0;
}

.testimonial__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.testimonial__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 20px;
}

.testimonial footer {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Banner */
.banner-link__frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy-800);
}

.banner-link__frame img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.6s var(--ease), opacity 0.3s ease;
}

.banner-link__frame:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.banner-link__frame span {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* News */
.news__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}

.news-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.news-item time {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.news-item h3 {
  font-size: 1.15rem;
  margin: 6px 0 8px;
}

.news-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.quality {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.88);
  padding: 36px 28px;
  text-align: center;
}

.quality p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.quality strong {
  color: var(--brand-orange);
}

/* Clients */
.clients .section-head {
  margin-bottom: 0;
}

/* Our Presence */
.presence-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.presence-map {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.presence-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.presence-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.presence-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--brand-navy);
  padding: 14px 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-left: 3px solid var(--brand-orange);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.presence-list li:hover,
.presence-list li.is-hot {
  background: var(--brand-navy);
  color: #fff;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  flex-shrink: 0;
}

.presence-list li:hover .presence-dot,
.presence-list li.is-hot .presence-dot {
  background: #fff;
}

.presence-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 28px;
}

/* Final CTA */
.final-cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(26, 166, 184, 0.25), transparent 50%),
    linear-gradient(145deg, var(--navy-900), var(--navy-700));
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.footer {
  background: #050e16;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
  margin-top: 4px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer a:hover {
  color: #fff;
}

.footer address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer__cta p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.footer__copy {
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Scroll top */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 900;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-row,
  .service-row--flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }

  .about__grid,
  .news__grid,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 12px;
    margin: 0;
  }

  .page.nav-open .nav {
    display: block;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav a {
    color: var(--ink);
    padding: 14px 16px;
  }

  .nav-login-mobile {
    display: list-item;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 32, 80, 0.1);
    padding-top: 4px;
  }

  .nav-login-mobile a {
    color: var(--brand-orange) !important;
    font-weight: 700;
  }

  .btn--header {
    display: inline-flex;
    padding: 7px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header__inner {
    gap: 10px;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    align-items: center;
    padding-bottom: 56px;
  }

  .hero__brand {
    height: 56px;
  }

  .about__grid,
  .news__grid,
  .footer__grid,
  .action-list,
  .news-item,
  .presence-grid {
    grid-template-columns: 1fr;
  }

  .presence-list {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .presence-list {
    grid-template-columns: 1fr;
  }
}
