/* Sol Logistics website — component and page styles.
   Layout values come from the "Sol Logistics Website" Claude Design prototype;
   mobile breakpoint is 860px. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--sol-ember-600); }

:root {
  --pad-x: 64px;
  --hero-pad: 96px var(--pad-x) 32px;
  --section-pad: 88px var(--pad-x);
  --section-bottom-pad: 88px;
  --stats-pad: 48px var(--pad-x);
  --footer-pad: 64px var(--pad-x) 40px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface-page);
  color: var(--text-primary);
  padding: 12px 20px;
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--sol-orange-500); outline-offset: 2px; }

body.has-modal-open, body.has-menu-open { overflow: hidden; }

/* Breadcrumbs */
.crumbs {
  padding: 20px var(--pad-x) 0;
  font-size: 14px;
  color: var(--text-tertiary);
}
.crumbs .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--text-brand); }
.crumbs__sep { color: var(--border-strong); }

/* Long-form copy on service and about pages */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-secondary); text-wrap: pretty; }
.prose h2 { margin: 16px 0 0; }

.section--stack { display: flex; flex-direction: column; gap: 40px; }
.section--pad-bottom { padding-bottom: var(--section-bottom-pad); }
.section__head .body-copy { max-width: 640px; }

/* FAQ — also the source for FAQPage structured data */
.faq { display: flex; flex-direction: column; gap: 32px; }
.faq__list { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.faq__item { border-top: 1px solid var(--border-default); padding: 4px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border-default); }
.faq__q {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 18px 32px 18px 0;
  position: relative;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: var(--weight-regular);
  color: var(--text-brand);
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: '–'; }
.faq__a { padding: 0 32px 20px 0; }
.faq__a p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty; }

/* Inline form status messages */
.form-status { font-size: 14px; color: var(--text-secondary); }
.form-status--error { color: var(--error-600); }

.nav-phone { font-size: 15px; font-weight: var(--weight-semibold); color: var(--text-brand); white-space: nowrap; }
.home-hero__meta { font-size: 15px; color: var(--text-tertiary); margin: 0; }
.cta-card__phone { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text-brand); text-align: center; }
.site-footer__address { font-style: normal; }
.site-footer__address a { color: var(--text-inverse); }
.contact-info__value { font-style: normal; }

.overline {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-brand);
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.002em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--md { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn--block { width: 100%; }

/* Primary is orange fill with ink text (orange-on-white text fails AA;
   ink-on-orange fill is the documented accessibility decision). */
.btn--primary { background-color: var(--action-primary); color: var(--text-primary); }
.btn--primary:hover { background-color: var(--action-primary-hover); color: var(--text-primary); }
.btn--primary:active { background-color: var(--action-primary-active); }

.btn--secondary { background-color: transparent; color: var(--text-brand); box-shadow: inset 0 0 0 1.5px var(--border-brand); }
.btn--secondary:hover { background-color: var(--surface-brand-tint); color: var(--text-brand); }

.btn--ghost { background-color: transparent; color: var(--text-primary); }
.btn--ghost:hover { background-color: var(--surface-muted); color: var(--text-primary); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- TextField ---------- */

.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field__label { font-size: 14px; font-weight: var(--weight-medium); color: var(--text-primary); }
.field__input {
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background-color: var(--surface-page);
  box-shadow: inset 0 0 0 1px var(--border-default);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
}
.field__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--border-brand); }
.field__input:disabled { background-color: var(--surface-muted); opacity: 0.6; }
.field__input::placeholder { color: var(--text-tertiary); }
textarea.field__input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field__helper { font-size: 13px; color: var(--text-secondary); min-height: 20px; }
.field--error .field__input { box-shadow: inset 0 0 0 1.5px var(--error-500); }
.field--error .field__helper { color: var(--error-600); }

/* Honeypot: visually hidden anti-spam field; real users never see or fill it. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- StatusBadge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge--in-transit { color: var(--info-500); background: var(--info-bg); }
.badge--at-port { color: var(--warning-600); background: var(--warning-bg); }
.badge--delivered { color: var(--success-600); background: var(--success-bg); }
.badge--exception { color: var(--error-600); background: var(--error-bg); }
.badge--received { color: var(--text-secondary); background: var(--surface-muted); }

/* ---------- Card ---------- */

.card {
  border-radius: var(--radius-lg);
  background: var(--surface-page);
  box-shadow: inset 0 0 0 1px var(--border-default);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--raised { box-shadow: inset 0 0 0 1px var(--border-default), var(--shadow-md); }
.card--link { color: inherit; cursor: pointer; transition: box-shadow 120ms ease; }
.card--link:hover { color: inherit; box-shadow: inset 0 0 0 1px var(--border-default), var(--shadow-md); }
.card__title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 20px; color: var(--text-primary); }
.card__body { font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.card__more { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text-brand); margin-top: 8px; }

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

.site-header {
  width: 100%;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header--static { position: static; }
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
}
.site-header__logo { height: 40px; display: block; }
.site-header__logo img { height: 100%; display: block; }
.site-header__logo--sm { height: 36px; }

.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 15px; font-weight: var(--weight-medium); color: var(--text-primary); }
.nav-links a:hover { color: var(--sol-ember-600); }
.nav-links a.is-active { color: var(--text-brand); }

.nav-actions { display: flex; gap: 24px; align-items: center; }
.nav-login { font-size: 15px; font-weight: var(--weight-semibold); color: var(--text-brand); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); display: block; }

.mobile-menu {
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--surface-page);
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  overflow-y: auto;
}
[hidden] { display: none !important; }
.mobile-menu a:not(.btn) {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-default);
}
.mobile-menu a.is-active, .mobile-menu a.nav-login { color: var(--text-brand); }
.mobile-menu .btn { margin-top: 16px; }

.signed-in-as { font-size: 14px; color: var(--text-secondary); }
.signed-in-as strong { color: var(--text-primary); }

/* ---------- Page sections ---------- */

.hero { padding: var(--hero-pad); display: flex; flex-direction: column; gap: 20px; max-width: var(--container-max); margin: 0 auto; }
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; text-wrap: pretty; }

.section { padding: var(--section-pad); }
.section__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0;
}
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section--subtle { background: var(--surface-subtle); }

.h3 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 24px; color: var(--text-primary); }
.h4 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 20px; color: var(--text-primary); }
.body-copy { font-size: 16px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

/* Home hero */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: var(--hero-pad);
  max-width: 800px;
  margin: 0 auto;
}
.home-hero__logo { height: 220px; }
.home-hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.home-hero__lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 560px; text-wrap: pretty; }
.home-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Stats bar */
.stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
  padding: var(--stats-pad);
  background: var(--neutral-900);
}
.stats--contained { max-width: var(--container-max); margin: 0 auto; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 32px; color: var(--text-inverse); }
.stat__label { font-size: 14px; color: var(--text-inverse); opacity: 0.75; }

/* Card grids */
/* Grid rather than flex so a row with fewer cards keeps them at their normal
   width instead of stretching the last one across the row. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}
.card-grid .card, .card-grid--fixed .card { width: auto; max-width: none; }

.feature-cols { display: flex; gap: 24px; flex-wrap: wrap; }
.feature-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }

/* Two-column split (portal teaser, about, contact, service detail) */
.split { display: flex; gap: 48px; align-items: center; }
.split--wide { gap: 60px; align-items: flex-start; }
.split__main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Dark gradient-strip promo card */
.promo-card { flex: 1 1 380px; border-radius: var(--radius-xl); background: var(--neutral-900); overflow: hidden; }
.promo-card__strip { height: 8px; background: var(--gradient-sol-horizontal); }
.promo-card__body { padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; }
.promo-card__eyebrow { font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: 0.08em; color: var(--sol-orange-400); }
.promo-card__title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 22px; color: var(--text-inverse); }
.promo-card__text { font-size: 14px; line-height: 1.6; color: var(--text-inverse); opacity: 0.7; }

/* Service detail */
.back-link { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text-brand); }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.feature-list__item { display: flex; gap: 10px; align-items: flex-start; }
.feature-list__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sol-orange-500); margin-top: 8px; flex-shrink: 0; }
.feature-list__text { font-size: 15px; line-height: 1.5; color: var(--text-primary); }

.cta-card {
  width: 340px;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border-default);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
}

/* Technology live-status card */
.status-card {
  width: 480px;
  max-width: 100%;
  border-radius: var(--radius-xl);
  background: var(--surface-page);
  box-shadow: inset 0 0 0 1px var(--border-default), var(--shadow-lg);
  overflow: hidden;
}
.status-card__body { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px 28px; }
.status-card__eyebrow { font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: 0.08em; color: var(--text-tertiary); }
.status-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
.status-row__id { font-family: var(--font-mono); font-size: 14px; font-weight: var(--weight-medium); color: var(--text-primary); }
.status-row__meta { font-size: 13px; color: var(--text-tertiary); }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item { display: flex; flex-direction: column; gap: 4px; }
.contact-info__label { font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.contact-info__value { font-size: 16px; color: var(--text-primary); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-success {
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border-default);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

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

.site-footer {
  width: 100%;
  background: var(--surface-inverse);
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--footer-pad);
  font-family: var(--font-body);
}
.site-footer__cols { display: flex; gap: 80px; max-width: var(--container-max); margin: 0 auto; width: 100%; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; width: 184px; }
.site-footer__brand img { height: 48px; align-self: flex-start; }
.site-footer__address { opacity: 0.7; font-size: 14px; line-height: 1.6; color: var(--text-inverse); }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14px; opacity: 0.85; color: var(--text-inverse); }
.site-footer__col a:hover { opacity: 1; color: var(--text-inverse); }
.site-footer__copyright { opacity: 0.5; font-size: 13px; color: var(--text-inverse); max-width: var(--container-max); margin: 0 auto; width: 100%; }

/* ---------- Quote modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 41, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--surface-page);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 400px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 24px; color: var(--text-primary); margin: 0; }
.modal__text { font-size: 14px; color: var(--text-secondary); }
.modal__actions { display: flex; gap: 12px; margin-top: 8px; }

/* ---------- Portal ---------- */

.portal-split { width: 100%; min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--surface-page); }

.portal-brand {
  position: relative;
  flex: 1 1 420px;
  max-width: 760px;
  min-height: 100vh;
  background: var(--neutral-900);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 72px);
}
.portal-brand::before { content: ''; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--gradient-sol); }
.portal-brand__logo { height: 48px; align-self: flex-start; }
.portal-brand__logo img { height: 100%; display: block; }
.portal-brand__copy { display: flex; flex-direction: column; gap: 20px; max-width: 480px; margin: 32px 0; }
.portal-brand__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-inverse);
  margin: 0;
}
.portal-brand__text { font-size: 16px; line-height: 1.55; opacity: 0.75; color: var(--text-inverse); }
.portal-brand__ticker { font-family: var(--font-mono); font-size: 13px; color: var(--sol-orange-400); }

.portal-form {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  padding: clamp(24px, 6vw, 120px);
  min-width: 0;
}
.portal-form__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 32px; letter-spacing: -0.005em; color: var(--text-primary); margin: 0; }
.portal-form__hint { font-size: 15px; color: var(--text-secondary); }
.portal-form__forgot { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text-link); cursor: pointer; align-self: flex-start; }
.portal-form__note { font-size: 12px; color: var(--text-tertiary); }

/* Dashboard */
.dashboard { padding: var(--section-pad); display: flex; flex-direction: column; gap: 28px; max-width: var(--container-max); margin: 0 auto; }
.dashboard__head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.dashboard__eyebrow { font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: 0.08em; color: var(--text-tertiary); }
.dashboard__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 28px; color: var(--text-primary); margin: 0; }

.select {
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border-default);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-page);
  cursor: pointer;
}
.select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--border-brand); }

.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--border-default); }
.track-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.track-table thead tr { background: var(--surface-subtle); }
.track-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  white-space: nowrap;
}
.track-table th.is-sortable { cursor: pointer; user-select: none; }
.track-table tbody tr { border-top: 1px solid var(--border-default); }
.track-table td { padding: 16px 20px; font-size: 14px; color: var(--text-secondary); }
.track-table td.cell-id { font-family: var(--font-mono); font-weight: var(--weight-medium); color: var(--text-primary); }
.track-table__empty { text-align: center; color: var(--text-tertiary); }

/* ---------- Responsive (mobile ≤ 860px) ---------- */

@media (max-width: 860px) {
  :root {
    --pad-x: 20px;
    --hero-pad: 48px var(--pad-x) 32px;
    --section-pad: 48px var(--pad-x);
    --section-bottom-pad: 48px;
    --stats-pad: 40px var(--pad-x);
    --footer-pad: 48px var(--pad-x) 32px;
  }

  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero__title, .home-hero__title { font-size: 34px; }
  .section__title { font-size: 28px; }
  .home-hero__logo { height: 120px; }

  .stats { flex-direction: column; gap: 24px; }
  .split, .split--wide { flex-direction: column; align-items: stretch; }

  .portal-brand { min-height: auto; }
  .portal-brand__title { font-size: 32px; }

  .dashboard__head { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}
