/* International Cargo: matches the look of the current intlcargo.us (YOOtheme Avanti):
   navy header and footer, Lato, uppercase menu, full-width photography, square buttons. */
:root {
  --navy: #244264;        /* buttons, footer, headings */
  --navy-dark: #203b59;   /* header bar */
  --navy-hover: #1a3049;
  --text: #3a3a3a;
  --muted: #777;
  --paper: #fff;
  --light: #f5f5f5;
  --line: #e5e5e5;
  --field: #cfd4da;
  --error: #b42318;
  --wrap: 1200px;
  --font: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/26px var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
:focus-visible { outline: 2px solid #5b9bd5; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); font-weight: 400; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: 42px; line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: 8px 16px; z-index: 20; }
.skip:focus { left: 16px; }

/* Preview banner */
.preview-banner { background: #f2b33d; color: #1f2d3d; text-align: center; font-size: 13px; padding: 4px 16px; }

/* Header */
.site-header { background: var(--navy-dark); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav > a, .nav summary { color: #fff; text-decoration: none; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; padding: 0 12px; line-height: 80px; cursor: pointer; white-space: nowrap; }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { color: #c9d6e6; }
.nav > a[aria-current='page'] { box-shadow: inset 0 -3px 0 #fff; }
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav .menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--navy-dark); padding: 8px 0; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }
.nav .menu a { display: block; padding: 8px 20px; color: #fff; text-decoration: none; font-size: 13px; }
.nav .menu a:hover, .nav .menu a[aria-current='page'] { background: rgb(255 255 255 / 0.08); }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 64px; gap: 8px; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 0; color: #fff; padding: 14px 10px; cursor: pointer; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ''; }
  .menu-toggle span::before { position: absolute; top: -7px; }
  .menu-toggle span::after { position: absolute; top: 7px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 12px; }
  .nav.open { display: flex; }
  .nav > a, .nav summary { line-height: 44px; padding: 0 4px; border-top: 1px solid rgb(255 255 255 / 0.1); }
  .nav > a[aria-current='page'] { box-shadow: inset 3px 0 0 #fff; padding-left: 12px; }
  .nav .menu { position: static; box-shadow: none; padding: 0 0 8px 16px; background: transparent; }
}

/* Home slideshow */
.slideshow { position: relative; height: min(700px, 78vh); min-height: 380px; overflow: hidden; background: var(--navy-dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; background: center / cover no-repeat; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide:nth-child(1) { background-image: url('/images/yootheme/demo/default/home-slideshow-01.png'); }
.slide:nth-child(2) { background-image: url('/images/yootheme/demo/default/home-slideshow-03.png'); }
.slide:nth-child(3) { background-image: url('/images/yootheme/demo/default/home-slideshow-02.png'); }
.slide .wrap { padding-left: 40px; }
.slide h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; max-width: 12em; text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); margin-bottom: 28px; }
.slide-nav { position: absolute; inset: auto 0 24px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.slide-nav button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slide-nav button[aria-current='true'] { background: #fff; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgb(0 0 0 / 0.25); color: #fff; border: 0; width: 44px; height: 44px; font-size: 24px; cursor: pointer; }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }
@media (max-width: 640px) { .slide .wrap { padding-left: 0; } .slide-arrow { display: none; } }

/* Buttons */
.button { display: inline-block; background: var(--navy); color: #fff; font: 400 12px/1 var(--font); letter-spacing: 1px; padding: 16px 33px; border: 0; border-radius: 0; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--navy-hover); color: #fff; }

/* Home welcome */
.section { padding-block: 60px; }
.welcome { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 60px; align-items: start; }
@media (max-width: 800px) { .welcome { grid-template-columns: 1fr; gap: 32px; } }
.welcome-side h2 { font-size: 42px; line-height: 1.05; text-transform: uppercase; margin-bottom: 20px; }
.welcome-side hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 20px; }
.welcome-side .side-buttons, .welcome-side .partners { display: grid; gap: 14px; justify-items: start; }
.welcome-side .side-buttons img { width: 260px; }
.welcome-side .partners { margin-top: 28px; }
.welcome-side .partners img { max-width: 260px; }
.welcome-text h2 { margin-top: 1.2em; }

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile h3 { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 1px 10px rgb(0 0 0 / 0.5); }

/* Inner pages */
.banner img { width: 100%; height: clamp(160px, 26vw, 360px); object-fit: cover; }
.page-title { padding-top: 40px; }
.page-title h1 { margin-bottom: 0.4em; }
.page-title p { color: var(--muted); margin: 0; }
.page-body { padding-block: 24px 60px; }
.note { border-left: 3px solid var(--navy); background: var(--light); padding: 12px 18px; margin: 0 0 24px; max-width: 760px; }
.note p:last-child { margin: 0; }
.service-list { columns: 2; column-gap: 0; padding: 0; margin: 0 0 24px; list-style: none; max-width: 640px; }
.service-list li { break-inside: avoid; padding: 10px 14px; background: var(--light); border-bottom: 2px solid #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .service-list { columns: 1; } }

/* Forms */
.form { max-width: 760px; background: var(--light); padding: 28px 32px; }
@media (max-width: 600px) { .form { padding: 20px 16px; } }
.form fieldset { border: 0; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 18px; }
.form legend { font-size: 20px; color: var(--navy); padding: 0; margin-bottom: 4px; float: left; width: 100%; grid-column: 1 / -1; }
.field { grid-column: span 6; display: grid; gap: 4px; align-content: start; }
.field.half { grid-column: span 3; }
.field.third { grid-column: span 2; }
@media (max-width: 560px) { .field.half, .field.third { grid-column: span 6; } }
.field > label, .field > .label { font-size: 15px; }
.req { color: var(--error); }
.req-note { color: var(--muted); font-size: 14px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--field); border-radius: 0; padding: 8px 10px; min-height: 40px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #5b9bd5; outline-offset: 0; border-color: var(--navy); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; }
.choices input { width: 16px; height: 16px; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 8px; }
.counter { color: var(--muted); font-size: 13px; }

/* Tracking */
.track-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .track-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .track-groups { grid-template-columns: 1fr; } }
.track-group h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.track-list a { text-decoration: none; }
.track-list a:hover { text-decoration: underline; }
.track-list a::after { content: ' \2197'; font-size: 0.8em; color: var(--muted); }
.track-note { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.track-foot { margin-top: 32px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--light); cursor: zoom-in; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / 0.88); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox-bar { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.lightbox-bar button { background: #fff; color: var(--navy); border: 0; padding: 8px 16px; font: 400 14px var(--font); cursor: pointer; }

/* Terms */
.terms { max-width: 900px; }
.terms img { max-width: 240px; margin-bottom: 16px; }

/* Inventory */
.embed { width: 100%; min-height: 640px; border: 1px solid var(--line); }

/* Notice pages (form handler) */
.notice { padding-block: 60px; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e6; text-align: center; padding: 50px 20px 40px; font-size: 14px; line-height: 24px; }
.site-footer img { height: 40px; width: auto; margin: 0 auto 18px; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
