/* Sun Logistics Inc. site styles.
   Every measure is in rem. The root font size steps up at wide breakpoints,
   so type, spacing, gutters and the container all retune together on
   2K and 4K displays instead of the content column stretching. */

:root {
  --sun: #F8C800;        /* the disc of the logo */
  --sun-deep: #E0B300;   /* hover state for the disc colour */
  --sun-wash: #FFF4C2;   /* tinted panel */
  --flag: #E01508;       /* the arrow of the logo, darkened a step for small text */
  --ink: #15171B;
  --ink-2: #3D4148;
  --ink-3: #6B7078;
  --line: #D9DAD6;
  --line-soft: #E8E8E4;
  --ground: #F3F3EF;
  --panel: #FFFFFF;
  --ink-ground: #15171B;
  --ink-panel: #1E2126;
  --ink-line: #34373D;
  --ink-text: #F3F3EF;
  --ink-muted: #A7ABB2;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;

  --container: 80rem;
  --gutter: 1.25rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 40em) { :root { --gutter: 2rem; } }
@media (min-width: 64em) { :root { --gutter: 3rem; } }

/* Root font stepping for large displays. 16 / 18 / 22 / 28 / 32 px. */
@media (min-width: 1920px) { html { font-size: 112.5%; } }
@media (min-width: 2560px) { html { font-size: 137.5%; } }
@media (min-width: 3440px) { html { font-size: 175%; } }
@media (min-width: 3840px) { html { font-size: 200%; } }

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--flag);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 0.25rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--sun);
}
.btn-sun:hover { background: var(--sun-deep); border-color: var(--sun-deep); }

.btn-ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-ink:hover { background: #2A2D33; border-color: #2A2D33; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: var(--ink-text);
  border-color: var(--ink-muted);
}
.btn-outline-light:hover { border-color: var(--ink-text); background: rgba(255, 255, 255, 0.06); }

.btn-sm { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: 0.9375rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--sun); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 0.25rem;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--line);
}
.nav-drawer[data-open="true"] { display: flex; }
.nav-drawer a:not(.btn) {
  padding: 0.85rem 0;
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .btn { margin-top: 1rem; }

@media (min-width: 64em) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-drawer { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-ground);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
/* Scrim: heavy on the text side, lighter on the seal side, and a fade at
   the foot so the credentials card reads as sitting on the photograph. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 23, 27, 0.35) 0%, rgba(21, 23, 27, 0.15) 45%, rgba(21, 23, 27, 0.75) 100%),
    linear-gradient(90deg, rgba(21, 23, 27, 0.96) 0%, rgba(21, 23, 27, 0.88) 45%, rgba(21, 23, 27, 0.55) 100%);
}

.hero .container {
  padding-block: 2.5rem 6.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.seal {
  order: -1;
  width: 7.5rem;
  height: 7.5rem;
  flex: none;
  filter: drop-shadow(0 1rem 1.5rem rgba(0, 0, 0, 0.35));
}

.hero-copy { max-width: 48rem; }

.hero-name {
  font-size: clamp(2.5rem, 9.5vw, 4.75rem);
  font-weight: 800;
  font-variation-settings: "wdth" 104;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.95;
  color: #fff;
}
.hero-name .inc { color: var(--sun); }

.hero-role {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: #fff;
  text-wrap: pretty;
}

.hero-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgba(243, 243, 239, 0.8);
  max-width: 34rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 20rem;
}
.hero-actions .btn { width: 100%; }

@media (min-width: 40em) {
  .hero .container { padding-block: 3.5rem 7rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
  .hero-actions { max-width: none; flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .hero-name { font-size: clamp(2.5rem, 6vw, 4.75rem); }
  .seal { order: 0; width: 11rem; height: 11rem; }
}

@media (min-width: 48em) {
  .seal { width: 14rem; height: 14rem; }
}

@media (min-width: 64em) {
  .hero .container { padding-block: 5rem 8.5rem; }
  .hero-grid { gap: 4rem; }
  .hero-name { font-size: clamp(3rem, 5.2vw, 4.75rem); }
  .seal { width: 20rem; height: 20rem; }
}

@media (min-width: 80em) {
  .hero .container { padding-block: 6rem 9.5rem; }
  .seal { width: 23rem; height: 23rem; }
}

/* ---------- Credentials strip ---------- */

.creds {
  position: relative;
  z-index: 1;
  margin-top: -4rem;
}
.creds-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 1.25rem 2.5rem rgba(21, 23, 27, 0.14);
  padding: 0.5rem 1.5rem;
}
.creds-list {
  display: grid;
  grid-template-columns: 1fr;
}
.creds-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.creds-list li:last-child { border-bottom: 0; }
.creds-list .icon { color: var(--flag); margin-top: 0.15em; }
.creds-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.creds-list span { color: var(--ink-2); }
.creds-list .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 40em) {
  .creds-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .creds-list li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .creds { margin-top: -4.5rem; }
  .creds-card { padding: 0 2rem; }
  .creds-list { grid-template-columns: repeat(5, 1fr); column-gap: 0; }
  .creds-list li {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.75rem 1.5rem 1.75rem 0;
    margin-right: 1.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
  }
  .creds-list li:last-child { grid-column: auto; border-right: 0; margin-right: 0; padding-right: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: 4rem; }
@media (min-width: 64em) { .section { padding-block: 6.5rem; } }

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-variation-settings: "wdth" 92;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 64em) { .section-head { margin-bottom: 3.5rem; } }

/* ---------- Services bento ---------- */

.services-grid {
  display: grid;
  gap: 1rem;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  overflow: hidden;
}
.svc-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.svc h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-variation-settings: "wdth" 95;
}
.svc h3 .icon { width: 1.35rem; height: 1.35rem; color: var(--flag); }
.svc p { color: var(--ink-2); font-size: 0.975rem; text-wrap: pretty; }

.svc-list {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.svc-list li {
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--ink-2);
  background: var(--ground);
}

.svc-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }

.svc-sun { background: var(--sun-wash); border-color: #EBD98A; }
.svc-sun .svc-list li { background: rgba(255, 255, 255, 0.7); border-color: #E6D27E; }

.svc-ink { background: var(--ink-panel); border-color: var(--ink-line); color: var(--ink-text); }
.svc-ink h3 { color: var(--ink-text); }
.svc-ink p { color: var(--ink-muted); }
.svc-ink .svc-list li { background: rgba(255, 255, 255, 0.06); border-color: var(--ink-line); color: var(--ink-text); }

@media (min-width: 48em) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .svc-air, .svc-sea { grid-column: span 3; }
  .svc-domestic, .svc-project, .svc-warehouse { grid-column: span 2; }
}
@media (min-width: 64em) {
  .services-grid { gap: 1.25rem; }
  .svc-photo { aspect-ratio: 2 / 1; }
}

/* ---------- Compliance ---------- */

.compliance {
  background: var(--ink-ground);
  color: var(--ink-text);
}
.compliance .section-head h2 { color: #fff; }
.compliance .section-head p { color: var(--ink-muted); }

.licence-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink-line);
  border-left: 4px solid var(--sun);
  border-radius: 0.25rem;
  background: var(--ink-panel);
  font-size: 0.95rem;
}
.licence-line .icon { color: var(--sun); }
.licence-line b { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }

.comp-groups {
  display: grid;
  gap: 2.5rem;
}
.comp-group h3 {
  font-size: 1.15rem;
  font-variation-settings: "wdth" 95;
  color: #fff;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--sun);
  margin-bottom: 0.75rem;
}
.comp-group li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-text);
  line-height: 1.45;
}
.comp-group li:last-child { border-bottom: 0; }
.comp-group li .icon { color: var(--sun); width: 1.1rem; height: 1.1rem; margin-top: 0.25em; }

@media (min-width: 48em) {
  .comp-groups { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
}
.about-copy h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-variation-settings: "wdth" 92;
}
.about-copy p {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: 1.05rem;
  text-wrap: pretty;
}
.about-copy .mission {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
}

.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}
.about-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

@media (min-width: 64em) {
  .about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
}

/* ---------- Contact ---------- */

.contact { background: var(--panel); border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-variation-settings: "wdth" 92;
}
.contact-head > p { margin-top: 1rem; color: var(--ink-2); font-size: 1.05rem; text-wrap: pretty; }

.contact-rows { margin-top: 2rem; display: grid; gap: 1.25rem; }
.contact-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-row .icon { color: var(--flag); margin-top: 0.35rem; }
.contact-row .k {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.contact-row a.v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
  border-bottom: 2px solid transparent;
}
.contact-row a.v:hover { border-bottom-color: var(--sun); }
.contact-row address { color: var(--ink-2); line-height: 1.5; }
.contact-row .maplink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid var(--sun);
}

.quote-card {
  border: 1px solid var(--line);
  border-top: 5px solid var(--sun);
  border-radius: 0.5rem;
  padding: 1.75rem;
  background: var(--ground);
}
.quote-card h3 { font-size: 1.3rem; font-variation-settings: "wdth" 95; }
.quote-card > p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.975rem; }
.quote-card ol {
  margin-top: 1.25rem;
  counter-reset: item;
  display: grid;
  gap: 0.5rem;
}
.quote-card ol li {
  counter-increment: item;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.975rem;
}
.quote-card ol li::before {
  content: counter(item);
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  align-self: center;
}
.quote-card .btn { margin-top: 1.5rem; width: 100%; }

@media (min-width: 64em) {
  .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
  .quote-card { padding: 2.25rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-ground);
  color: var(--ink-muted);
  padding-block: 3.5rem 1.5rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--ink-muted); }
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 26rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-col li { padding: 0.25rem 0; font-size: 0.95rem; }
.footer-col a { border-bottom: 1px solid transparent; }
.footer-col a:hover { color: #fff; border-bottom-color: var(--sun); }
.footer-col address { line-height: 1.55; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a, .footer-col a { transition: none; }
}
