﻿:root {
  /* Brand palette */
  --primary: #005242;
  --secondary: #729F89;
  --accent: #AACCA8;
  --bg: #F5F9F7;
  --sand: #E7E3D7;
  --cta: #C05621;
  --neutral: #5F6B7A;

  /* Light neutral used for timeline connector */
  --neutral-light: #E4ECE9;

  /* Type + spacing */
  --radius: 16px;
  --container: 1200px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  /* Hero motion */
  --blob-a: #005242;
  --blob-b: #AACCA8;
  --blob-c: #729F89;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--neutral);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus {
  left: var(--s3);
  top: var(--s3);
  background: #fff;
  color: #000;
  padding: var(--s2) var(--s3);
  border-radius: 6px;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(120%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s2);
  position: relative;
}
.nav {
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { text-decoration: underline; }
/* Active nav state */
.nav a[aria-current="page"] { color: var(--cta); text-decoration: underline; }

/* Dropdown menu in header nav for tools */
.nav-item.tool-dropdown {
  position: relative;
}
.nav-item.tool-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: var(--s2);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  min-width: 200px;
  z-index: 40;
}
.nav-item.tool-dropdown:hover .dropdown-menu,
.nav-item.tool-dropdown:focus-within .dropdown-menu {
  display: block;
}
.nav-item.tool-dropdown .dropdown-menu a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 0;
  font-size: 14px;
}
.nav-item.tool-dropdown .dropdown-menu a:hover {
  text-decoration: underline;
}

/* Hero */
.hero { position: relative; min-height: 82vh; overflow: clip; }
/* Option C: thin line waves */
.hero-waves { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.hero-waves .wave { position:absolute; left:-25%; width:150%; height:36%; will-change: transform; }
.hero-waves .w1 { top:12%; }
.hero-waves .w2 { top:44%; }
.hero-waves .w3 { top:72%; }
.hero-waves svg { width:100%; height:100%; display:block; }
.hero-waves path { stroke-linecap: round; stroke-dasharray: 6 12; animation: wave-dash 14s linear infinite; }
.hero-waves .w2 path { animation-duration: 18s; stroke-opacity: .7; }
.hero-waves .w3 path { animation-duration: 22s; stroke-opacity: .55; }
@keyframes wave-dash { from { stroke-dashoffset: 0 } to { stroke-dashoffset: -1000 } }
.hero-overlay {
  position: relative;
  z-index: 1;
  background: none;
  color: #fff;
}
.hero-copy {
  padding-block: clamp(96px, 12vh, 160px);
}
.hero h1 {
  margin: 0 0 var(--s2);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero .sub {
  max-width: 60ch;
  margin: 0 0 var(--s4);
  font-size: clamp(17px, 2.5vw, 21px);
  color: #eef6f3;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.hero-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* Sections */
.section { padding-block: var(--s6); }
.section.alt {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.section-title {
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary);
  margin: 0 0 var(--s4);
}

/* Grid + Cards */
.grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap: var(--s3);
}
.card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: var(--s3);
  display: grid;
  gap: var(--s2);
}
.icon { width: 48px; height: 48px; }
.card-title {
  margin: 0;
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}
.card-text { margin: 0; }

/* Figures */
.figure { margin: 0; }
.figure-caption {
  color: #6b7686;
  font-size: 14px;
  margin-top: var(--s2);
}

/* CTA band */
.section.cta {
  background: var(--primary);
  color: #eaf4f1;
}
.cta-inner {
  display: grid;
  gap: var(--s3);
  align-items: center;
}
@media (min-width: 800px) {
  .cta-inner { grid-template-columns: 1fr auto; }
}
.cta-title {
  margin: 0 0 var(--s1);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
}
.cta-sub { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s3);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .02s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 6px 16px rgba(192,86,33,0.3);
}
.btn-cta:hover { background: #a64a1d; }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--sand);
}
.btn-inverse {
  background: #fff;
  color: var(--primary);
}

/* Route map interactive markers */
.route-map-container {
  position: relative;
  max-width: 100%;
  margin-bottom: var(--s4);
}
.route-map {
  display: block;
  width: 100%;
  height: auto;
  /* Make the underlying map image transparent to pointer events so markers remain clickable */
  pointer-events: none;
}
.route-map-container .marker {
  position: absolute;
  display: block;
  /* Increase marker size to improve click/tap hit area */
  width: 20px;
  height: 20px;
  background: var(--cta);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

/* Show port names above each marker */
.route-map-container .marker .marker-label {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.route-map-container .marker:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translate(-50%, -100%);
  top: -4px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

/* Animated dotted routes overlay */
.route-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* underlying map interactions go through */
  z-index: 5;
}
.route-lines path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  animation-name: dash-move;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: auto; /* allow hover to highlight */
}
.route-lines path:hover {
  stroke-width: 4;
}

/* Tooltip for interactive routes on the route page */
.route-map-container .route-info {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 90%;
  text-align: center;
}
.route-map-container .route-info.active {
  opacity: 1;
}
.route-lines .sea-route {
  /* Highlight the WFL sea route with the accent colour and a thicker line */
  stroke: var(--cta);
  stroke-width: 4;
  animation-duration: 4s;
}
.route-lines .land-route {
  /* De-emphasise the overland route with a lighter colour and thinner line */
  stroke: #cccccc;
  stroke-width: 2;
  animation-duration: 12s;
  stroke-opacity: 0.6;
}
@keyframes dash-move {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}

/* Modal overlay styles for route page */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  z-index: 50;
}

/* When a modal is open, flexbox centers the content */
.modal-overlay.open {
  display: flex;
}

/* When a modal is targeted via URL fragment, show it */
.modal-overlay:target {
  display: flex;
}

/* The modal content container */
.modal-content {
  background: #fff;
  color: var(--neutral);
  border-radius: var(--radius);
  padding: var(--s4);
  max-width: 600px;
  width: 100%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Heading inside modal */
.modal-content h3 {
  margin-top: 0;
  color: var(--primary);
}

/* List styling inside modals */
.modal-content ul {
  list-style-type: disc;
  margin: var(--s2) 0 0;
  padding-left: var(--s3);
}
.modal-content li {
  margin-bottom: var(--s1);
}

/* Close button for modals */
.modal-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  border: none;
  background: none;
  font-size: 24px;
  color: var(--neutral);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--primary);
}

/* Accordion styles for process steps */
.process-accordion details {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
}
.process-accordion details + details {
  margin-top: var(--s2);
}
.process-accordion summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  outline: none;
}
.process-accordion summary::-webkit-details-marker {
  display: none;
}
.process-accordion summary::after {
  content: '+';
  float: right;
  transition: transform .2s ease;
}
.process-accordion details[open] summary::after {
  content: '–';
}
.process-accordion details p {
  margin-top: var(--s2);
}

/* Lists for route notes & process details */
.route-notes,
.process-details {
  list-style: none;
  padding: 0;
  margin: var(--s3) 0;
  display: grid;
  gap: var(--s2);
}
.route-notes li,
.process-details li {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: var(--s2);
  border-radius: 6px;
}

/* Process figure */
.process-figure img {
  border: 1px solid var(--sand);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  padding-block: var(--s4);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-inner {
  display: flex;
  gap: var(--s3);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-meta {
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.footer-meta a {
  color: var(--primary);
  text-decoration: none;
}
.footer-meta a:hover { text-decoration: underline; }

/* Forms */
.form-grid { display: grid; gap: var(--s2); grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) ); }
.field { display: grid; gap: 6px; }
.label { font-size: 14px; color: #44505e; }
.input {
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 var(--s2);
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: #fff;
  color: #1b2430;
}
textarea.input { height: auto; padding: var(--s2); resize: vertical; }
.badge { display:inline-block; background: var(--accent); color: #0d2a24; border-radius: 999px; padding: 2px 8px; font-size: 12px; margin-left: 6px; }

/* Risk meter badge variants */
.badge-low {
  background: #2b8c28;
  color: #fff;
}
.badge-medium {
  background: #e6a700;
  color: #000;
}
.badge-high {
  background: #c0392b;
  color: #fff;
}

/* Tool navigation styling */
.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.tool-nav a {
  padding: 6px 12px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.tool-nav a:hover {
  background: var(--sand);
}

/* Chat widget styles */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 280px;
  max-height: 400px;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 99;
}
.chat-box.open {
  display: flex;
}
.chat-header {
  background: var(--primary);
  color: #fff;
  padding: 8px;
  font-weight: 600;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  font-size: 14px;
}
.chat-input {
  border: 1px solid var(--sand);
  border-top: none;
  padding: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
.chat-msg {
  margin-bottom: 6px;
}
.chat-msg.user {
  text-align: right;
  color: var(--primary);
}
.chat-msg.bot {
  text-align: left;
  color: var(--cta);
}

/* Footer nav */
.footer-nav { display:flex; gap: var(--s2); flex-wrap: wrap; }
.footer-nav a { color: var(--neutral); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* Chatbot styles */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.chat-box {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 300px;
  max-height: 400px;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 50;
}
.chat-box.open {
  display: flex;
}
.chat-header {
  background: var(--primary);
  color: #fff;
  padding: var(--s2);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-weight: 600;
}
.chat-messages {
  flex: 1;
  padding: var(--s2);
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.4;
}
.chat-input {
  border: none;
  border-top: 1px solid var(--sand);
  padding: var(--s2);
  font-size: 14px;
  outline: none;
}
.chat-msg {
  margin-bottom: var(--s1);
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
  max-width: 90%;
  word-wrap: break-word;
}
.chat-msg.user {
  background: var(--accent);
  color: #0d2a24;
  align-self: flex-end;
}
.chat-msg.bot {
  background: var(--bg);
  color: var(--primary);
  align-self: flex-start;
}

/* Brand element with icon and stacked text */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 600;
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--neutral);
}

/* Timeline styles */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 3rem 0;
  /* allow items to fit within the available width without scrolling */
  overflow: hidden;
  padding: 0;
  --timeline-count: 5;
}

/* Progress bar to show exploration across the timeline */
.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background-color: var(--primary);
  width: 0%;
  transform: translateY(-50%);
  transition: width 0.4s ease, opacity 0.3s ease;
  z-index: 0;
  opacity: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--neutral-light);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item {
  position: relative;
  text-align: center;
  /* 5 items across the width */
  flex: 0 0 calc(100% / var(--timeline-count));
  z-index: 1;
  cursor: pointer;
  min-width: 0;
  transition: color 0.3s ease;
}

.timeline-item .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #E9F2EF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
}

.timeline-item:hover .icon-wrap {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item .step-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: normal;
  line-height: 1.2;
}

/* Completed or active steps are tinted to indicate progress */
.timeline-item.completed .icon-wrap {
  background-color: var(--primary);
}

.timeline-item.completed .icon-wrap img {
  filter: brightness(0) invert(1);
}

.timeline-item.completed .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* Modal for timeline details */
.timeline-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.timeline-modal.active {
  display: flex;
}

.timeline-modal .modal-card {
  background: #fff;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--neutral);
}

.timeline-modal .modal-card h2 {
  margin-top: 0;
  color: var(--primary);
}

.timeline-modal .modal-card p {
  margin-top: 0.5rem;
  line-height: 1.5;
}

.timeline-modal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
}

/* Show baseline and progress only when user hovers over the timeline */
.timeline:hover::before {
  opacity: 1;
}
.timeline:hover .timeline-progress {
  opacity: 1;
}

/* Icon masking (currentColor) */
/* Custom icons: use background images instead of SVG masks */
.icon-mask {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.icon-reefer {
  background-image: url('assets/icons/reefer.png');
}
.icon-teu {
  background-image: url('assets/icons/teu.png');
}
.icon-transit_time {
  background-image: url('assets/icons/transit_time.png');
}
.icon-warehouse {
  background-image: url('assets/icons/warehouse.png');
}
.icon-hse {
  background-image: url('assets/icons/hse.png');
}
.icon-compliance {
  background-image: url('assets/icons/compliance.png');
}
.icon-local_content {
  background-image: url('assets/icons/local_content.png');
}

/* Bars */
.bar { height: 10px; background: #e7ecea; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); }

/* Flag list styling for AI red flags */
.flag-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.flag-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.flag-badge {
  background: rgba(192, 86, 33, 0.15);
  color: var(--cta);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.flag-detail {
  flex: 1;
  color: var(--neutral);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container { padding-inline: var(--s2); }
  .site-header { position: sticky; }
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }
  .hero { min-height: auto; }
  .hero-copy { padding-block: var(--s4); }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .section { padding-block: var(--s4); }
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tool-nav {
    overflow-x: auto;
    padding-bottom: 8px;
    gap: var(--s1);
  }
  .tool-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .timeline {
    flex-direction: column;
    gap: var(--s3);
  }
  .timeline::before,
  .timeline-progress {
    display: none;
  }
  .timeline-item {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    text-align: left;
    gap: var(--s2);
  }
  .timeline-item .icon-wrap {
    margin: 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: var(--s2);
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: var(--s1);
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero .sub {
    font-size: 1rem;
  }
  .btn,
  .btn-cta,
  .btn-secondary {
    width: 100%;
  }
  .brand-text {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Mobile Navigation ─────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 100;
  color: var(--primary);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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); }

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

  .site-header {
    position: relative;
  }

  .site-header .nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column !important;
    padding: 12px 16px 20px;
    border-top: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,82,66,0.12);
    z-index: 99;
    gap: 0 !important;
  }

  .site-header .nav.nav-open {
    display: flex !important;
  }

  .site-header .nav a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--neutral-light);
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
  }

  .site-header .nav a:last-child {
    border-bottom: none;
  }

  .site-header .nav .btn-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 8px;
  }

  /* Tools dropdown on mobile — toggle on tap */
  .site-header .nav .nav-item.tool-dropdown {
    border-bottom: 1px solid var(--neutral-light);
  }

  .site-header .nav .nav-item.tool-dropdown > a {
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-header .nav .nav-item.tool-dropdown > a::after {
    content: '›';
    font-size: 1.2rem;
    transition: transform 0.2s;
    opacity: 0.5;
  }

  .site-header .nav .nav-item.tool-dropdown.open > a::after {
    transform: rotate(90deg);
  }

  .site-header .nav .dropdown-menu {
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-radius: 8px;
    margin: 4px 0 8px;
    padding: 4px 0;
    position: static !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .site-header .nav .nav-item.tool-dropdown.open .dropdown-menu {
    display: flex;
  }

  .site-header .nav .dropdown-menu a {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-bottom: none;
    color: var(--neutral);
  }
}
