@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-strong: #e9f1f7;
  --ink: #132238;
  --muted: #607086;
  --line: #d7e2ec;
  --surface: #ffffff;
  --surface-2: #f8fbfd;
  --primary: #1f5f99;
  --primary-strong: #16476f;
  --accent: #138071;
  --accent-2: #c58b2b;
  --danger: #b83232;
  --shadow: 0 22px 55px rgba(19, 34, 56, 0.11);
  --soft-shadow: 0 12px 28px rgba(19, 34, 56, 0.08);
  --radius: 8px;
  --content: 1180px;
}

:root[data-theme="ocean"] {
  color-scheme: light;
  --bg: #eef8f7;
  --bg-strong: #d9efed;
  --ink: #102f35;
  --muted: #557176;
  --line: #c7dddf;
  --surface: #ffffff;
  --surface-2: #f3fbfa;
  --primary: #16796f;
  --primary-strong: #0f574f;
  --accent: #245f9d;
  --accent-2: #be8427;
  --shadow: 0 22px 55px rgba(16, 47, 53, 0.12);
  --soft-shadow: 0 12px 28px rgba(16, 47, 53, 0.09);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1726;
  --bg-strong: #132238;
  --ink: #edf5ff;
  --muted: #a9b8ca;
  --line: #28384d;
  --surface: #172337;
  --surface-2: #111d2f;
  --primary: #6bb6ff;
  --primary-strong: #96ccff;
  --accent: #4fd1bd;
  --accent-2: #f0bd5d;
  --danger: #ff8a8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, var(--bg-strong), transparent 430px),
    var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", Aptos, "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "Source Sans 3", Aptos, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.75rem);
  line-height: 0.98;
  margin-bottom: 1.15rem;
  max-width: 1020px;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

p {
  margin-bottom: 1rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-header {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

@supports (backdrop-filter: blur(14px)) {
  .site-header {
    backdrop-filter: blur(14px);
  }
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--content);
  padding: 0.85rem 1.25rem;
  position: relative;
}

.brand,
.nav-links,
.actions,
.form-row,
.theme-options {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.brand {
  flex: 0 0 auto;
  font-weight: 950;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.nav-links {
  margin-left: auto;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  padding: 0.5rem 0.7rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-strong);
}

.nav-toggle {
  display: none;
}

.theme-switcher {
  align-items: center;
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 0.2rem;
  padding: 0.22rem;
}

.theme-option {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  min-height: 2rem;
  padding: 0.28rem 0.58rem;
}

.theme-option.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.hero,
.section {
  margin: 0 auto;
  max-width: var(--content);
  padding: clamp(3rem, 7vw, 5.6rem) 1.25rem;
}

.hero {
  align-items: end;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  max-width: 760px;
}

.hero-panel,
.panel,
.feature-grid article,
.service-grid article,
.map-card,
.process-list li,
.timeline li {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
}

.hero-panel::before {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat strong {
  color: var(--primary-strong);
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.stat span,
.eyebrow,
.helper,
.form-status {
  color: var(--muted);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
}

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

.button.primary {
  background: var(--primary);
  box-shadow: 0 14px 25px color-mix(in srgb, var(--primary) 22%, transparent);
  color: #fff;
}

.button.secondary {
  background: var(--accent);
  box-shadow: 0 14px 25px color-mix(in srgb, var(--accent) 20%, transparent);
  color: #fff;
}

.button.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.section-heading {
  margin-bottom: clamp(1.35rem, 3vw, 2.4rem);
  max-width: 890px;
}

.section-heading p {
  color: var(--muted);
}

.feature-grid,
.service-grid,
.three-column {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.service-grid article,
.panel {
  padding: clamp(1.05rem, 2.4vw, 1.55rem);
}

.feature-grid article,
.service-grid article {
  position: relative;
}

.feature-grid article::before,
.service-grid article::before {
  background: var(--accent-2);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.28rem;
  margin-bottom: 1rem;
  width: 2.4rem;
}

.service-icon {
  color: var(--accent-2);
  font-weight: 950;
}

.service-grid a {
  color: var(--primary-strong);
  font-weight: 950;
}

.map-section {
  padding-top: 1rem;
}

.map-card {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.map-copy {
  align-self: center;
}

.map-copy p {
  color: var(--muted);
}

.lane-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.lane-list span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: 0.94rem;
  font-weight: 800;
  padding: 0.62rem 0.8rem;
}

.trade-map {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 11%, transparent), transparent),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 360px;
  min-height: 280px;
  overflow: hidden;
}

.trade-map .leaflet-container,
.leaflet-container {
  font-family: "Source Sans 3", Aptos, "Segoe UI", sans-serif;
}

.trade-map .leaflet-control-attribution {
  font-size: 0.72rem;
}

.map-marker {
  align-items: center;
  background: var(--primary);
  border: 3px solid var(--surface);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 10px 18px rgba(19, 34, 56, 0.28);
  display: flex;
  height: 1.55rem;
  justify-content: center;
  transform: rotate(-45deg);
  width: 1.55rem;
}

.map-marker span {
  background: #fff;
  border-radius: 50%;
  display: block;
  height: 0.42rem;
  transform: rotate(45deg);
  width: 0.42rem;
}

.map-marker.destination {
  background: var(--accent-2);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--ink);
}

.leaflet-popup-content {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.leaflet-popup-content strong {
  color: var(--ink);
  display: block;
  font-family: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
  margin-bottom: 0.2rem;
}

.split,
.two-column {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.process-list,
.timeline {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li,
.timeline li {
  padding: 1rem;
}

.process-list strong,
.timeline strong {
  display: block;
}

.process-list span,
.timeline span {
  color: var(--muted);
}

.page {
  min-height: calc(100vh - 150px);
}

.form {
  display: grid;
  gap: 1rem;
}

.form.wide {
  max-width: 940px;
}

.form-row {
  align-items: start;
}

label {
  color: var(--ink);
  display: grid;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.4rem;
}

input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  min-height: 2.95rem;
  padding: 0.74rem 0.8rem;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.result-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  min-height: 4rem;
  padding: 1rem;
}

.quote-page .section-heading {
  max-width: 760px;
}

.quote-page h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 820px;
}

.quote-page .two-column {
  align-items: start;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
}

.quote-page .panel {
  box-shadow: var(--shadow);
}

.form-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
  padding-bottom: 0.85rem;
}

.form-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.form-heading h2 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  margin-bottom: 0.35rem;
}

.form-heading p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.quote-page input,
.quote-page select,
.quote-page textarea {
  font-size: 1.02rem;
}

.calculator-report {
  display: grid;
  gap: 1rem;
}

.report-total {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  color: #fff;
  padding: 1rem;
}

.report-total span,
.report-note {
  display: block;
  font-size: 0.86rem;
  font-weight: 850;
  opacity: 0.82;
}

.report-total strong {
  display: block;
  font-family: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 0.35rem;
}

.report-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.report-item span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
}

.report-item strong {
  display: block;
  font-family: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

.report-note {
  color: var(--muted);
  opacity: 1;
}

.check-list {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .two-column,
  .map-card,
  .feature-grid,
  .service-grid,
  .three-column {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .theme-switcher {
    order: 3;
    width: 100%;
  }

  .theme-option {
    flex: 1;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-toggle {
    background: var(--primary);
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 950;
    min-height: 2.4rem;
    padding: 0.55rem 0.82rem;
  }

  .nav-links {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 0.75rem 1.25rem 1rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .form-row,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    padding: 1rem;
  }

  .trade-map {
    height: 300px;
    min-height: 240px;
  }
}
