/*
Theme Name: AYB FREIGHT
Theme URI: https://aybfreight.com
Author: AYB FREIGHT
Description: Premium freight brokerage and logistics website for AYB FREIGHT. Built to be managed from WordPress.
Version: 1.0.34
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ayb-freight
*/

:root {
  --ink: #071a32;
  --navy: #0b2345;
  --blue: #08a8df;
  --blue-dark: #087ca9;
  --paper: #f6f8fb;
  --white: #fff;
  --muted: #65758a;
  --line: #dce4ee;
  --dark-muted: rgba(255,255,255,.68);
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute!important; width: 1px; word-wrap: normal!important; }
.screen-reader-text:focus { background: #fff; clip: auto!important; clip-path: none; color: var(--ink); display: block; font-size: 14px; height: auto; left: 10px; line-height: normal; padding: 12px 16px; top: 10px; width: auto; z-index: 99999; }
.container-wide { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.06em; line-height: .98; margin: 0; }
.eyebrow { color: var(--blue); font: 700 10px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.mono { font-family: var(--font-mono); }
.section { padding: clamp(72px, 10vw, 142px) 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-blue { background: var(--blue); color: var(--ink); }
.section-head { align-items: end; display: flex; gap: 50px; justify-content: space-between; margin-bottom: 55px; }
.section-head .display { font-size: clamp(2.7rem, 6vw, 5.2rem); }
.section-head p { color: var(--muted); max-width: 360px; margin: 0; }
.section-dark .section-head p { color: var(--dark-muted); }

.nav-bar { background: transparent; color: #fff; left: 0; position: absolute; right: 0; top: 0; z-index: 20; }
.nav-inner { align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); display: flex; justify-content: space-between; min-height: 82px; }
.brand { align-items: center; color: inherit; display: inline-flex; gap: 12px; text-decoration: none; }
.brand-logo { display: block; height: 72px; object-fit: contain; width: auto; }
.brand-mark { align-items: center; background: var(--blue); color: var(--ink); display: inline-flex; font: 800 12px var(--font-display); height: 34px; justify-content: center; letter-spacing: -.04em; width: 34px; }
.brand-copy { display: block; font: 700 14px var(--font-display); letter-spacing: .04em; }
.brand-sub { color: rgba(255,255,255,.55); display: block; font: 6px var(--font-mono); letter-spacing: .18em; margin-top: 3px; }
.nav-links { align-items: center; display: flex; gap: 30px; }
.nav-links li { display: inline-block; list-style: none; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--blue); }
.nav-actions { align-items: center; display: flex; gap: 24px; }
.language-switcher { align-items: center; display: flex; }
.language-switcher select { appearance: none; background: transparent; border: 0; color: rgba(255,255,255,.88); cursor: pointer; font: 500 11px var(--font-mono); max-width: 145px; padding: 8px 2px; }
.language-switcher select option { background: var(--white); color: var(--ink); }
.lang-select { appearance: none; background: transparent; border: 0; color: rgba(255,255,255,.88); cursor: pointer; font: 500 11px var(--font-mono); padding: 8px 2px; }
.lang-select option { background: var(--white); color: var(--ink); }
.menu-toggle { background: transparent; border: 0; color: #fff; cursor: pointer; display: none; padding: 8px; }

.button { align-items: center; border: 1px solid transparent; display: inline-flex; font: 800 11px var(--font-body); gap: 12px; justify-content: center; padding: 15px 19px; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--ink); }
.button-primary:hover { background: #31b9ea; }
.button-outline { border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--ink); color: #fff; }
.button-ghost { border-color: rgba(255,255,255,.44); color: #fff; }
.button-ghost:hover { background: #fff; color: var(--ink); }
.button-light { background: #fff; color: var(--ink); }

.hero { background: var(--ink); color: #fff; min-height: 735px; overflow: hidden; position: relative; }
.hero-media, .hero-media:after { inset: 0; position: absolute; }
.hero-media:after { background: linear-gradient(90deg, rgba(7,26,50,.97) 0%, rgba(7,26,50,.78) 45%, rgba(7,26,50,.28) 100%), linear-gradient(0deg, rgba(7,26,50,.82), transparent 45%); content: ""; }
.hero-media img { height: 100%; object-fit: cover; width: 100%; }
.hero-content { display: flex; flex-direction: column; justify-content: center; min-height: 735px; padding-top: 92px; position: relative; z-index: 1; }
.hero-kicker { margin-bottom: 36px; }
.hero-kicker:before { background: var(--blue); content: ""; display: inline-block; height: 1px; margin: 0 10px 3px 0; width: 30px; }
.hero h1 { font-size: clamp(4rem, 9vw, 8rem); max-width: 760px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { color: rgba(255,255,255,.72); font-size: 15px; margin: 38px 0 0; max-width: 550px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-rule { border-bottom: 1px solid rgba(255,255,255,.16); margin-top: 48px; width: 100%; }
.trust-strip { background: #12243b; color: #fff; }
.trust-inner { align-items: center; display: flex; justify-content: space-between; min-height: 110px; }
.trust-label { color: rgba(255,255,255,.6); font: 700 10px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.trust-list { display: flex; gap: clamp(25px, 8vw, 110px); }
.trust-list span { color: rgba(255,255,255,.82); font: 700 11px var(--font-mono); text-transform: uppercase; }
.trust-list span:before { color: var(--blue); content: "—"; margin-right: 8px; }

.split { align-items: center; display: grid; gap: clamp(45px, 8vw, 120px); grid-template-columns: 1fr 1fr; }
.split-copy .display { font-size: clamp(2.7rem, 6vw, 5.2rem); margin: 18px 0 28px; }
.split-copy p, .story-grid p, .form-intro > p { color: var(--muted); font-size: 14px; max-width: 530px; }
.split-copy .button { margin-top: 18px; }
.metric-grid { border-top: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin-top: 46px; padding-top: 20px; }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric strong { color: var(--blue-dark); font: 700 11px var(--font-mono); }
.metric span { color: var(--muted); font-size: 12px; }
.image-card { min-height: 470px; overflow: hidden; position: relative; }
.image-card:after { background: linear-gradient(0deg, rgba(7,26,50,.75), transparent 55%); content: ""; inset: 0; position: absolute; }
.image-card img { height: 100%; object-fit: cover; width: 100%; }
.image-card-tag { bottom: 24px; color: #fff; font: 700 10px var(--font-mono); left: 24px; letter-spacing: .12em; position: absolute; text-transform: uppercase; z-index: 1; }
.process-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.process-card { border: 1px solid rgba(255,255,255,.14); min-height: 260px; padding: 24px; }
.section:not(.section-dark) .process-card { border-color: var(--line); }
.process-number { color: var(--blue); display: flex; font: 700 10px var(--font-mono); justify-content: space-between; letter-spacing: .1em; text-transform: uppercase; }
.process-card h3 { font: 500 24px var(--font-display); letter-spacing: -.04em; margin: 80px 0 12px; }
.process-card p { color: var(--dark-muted); font-size: 13px; margin: 0; }
.section:not(.section-dark) .process-card p { color: var(--muted); }
.route-panel { background: var(--navy); border-radius: 8px; color: #fff; overflow: hidden; padding: clamp(28px, 6vw, 70px); position: relative; }
.route-panel:after { border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.025); content: ""; height: 520px; position: absolute; right: -170px; top: -210px; width: 520px; }
.route-panel h2 { font-size: clamp(2.7rem, 6vw, 5.2rem); margin: 15px 0 25px; max-width: 650px; }
.route-panel p { color: var(--dark-muted); font-size: 14px; max-width: 480px; }
.route-line { align-items: center; display: flex; gap: 0; margin: 46px 0; max-width: 760px; position: relative; }
.route-line:before { background: linear-gradient(90deg, var(--blue), rgba(255,255,255,.25), var(--blue)); content: ""; height: 1px; left: 6px; position: absolute; right: 6px; top: 50%; }
.route-stop { align-items: center; color: #fff; display: flex; flex: 1; font-size: 11px; font-weight: 800; gap: 8px; z-index: 1; }
.route-stop:last-child { justify-content: end; }
.route-dot { background: var(--blue); border: 3px solid var(--navy); border-radius: 50%; box-shadow: 0 0 0 1px var(--blue); height: 12px; width: 12px; }
.route-stop:last-child .route-dot { order: 2; }
.quote-band { align-items: center; display: flex; gap: 60px; justify-content: space-between; padding: 56px 0; }
.quote-band h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); margin-top: 16px; max-width: 600px; }
.quote-band p { max-width: 330px; }

.page-hero { background: var(--ink); color: #fff; padding: 180px 0 90px; }
.page-hero h1 { font-size: clamp(3.5rem, 8vw, 7rem); margin: 22px 0; max-width: 850px; }
.page-hero p { color: var(--dark-muted); font-size: 16px; max-width: 540px; }
.content-section { padding: clamp(70px, 9vw, 125px) 0; }
.story-grid { display: grid; gap: 80px; grid-template-columns: 1.5fr .7fr; }
.story-grid h2 { font-size: clamp(2.7rem, 6vw, 5rem); margin: 18px 0 30px; max-width: 800px; }
.story-grid h3 { font: 500 30px/1.1 var(--font-display); letter-spacing: -.04em; margin: 42px 0 16px; max-width: 700px; }
.story-grid h4 { font: 700 16px/1.3 var(--font-display); letter-spacing: -.02em; margin: 25px 0 0; max-width: 700px; }
.policy-section { padding-top: clamp(55px, 7vw, 90px); }
.policy-copy { background: #fff; border: 1px solid var(--line); box-shadow: 0 15px 50px rgba(7,26,50,.04); padding: clamp(26px, 5vw, 58px); }
.policy-copy p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 0 24px; max-width: 930px; }
.policy-copy p:last-child { margin-bottom: 0; }
.side-note { border-left: 1px solid var(--blue); height: fit-content; padding: 4px 0 4px 24px; }
.side-note strong { font: 500 24px/1.1 var(--font-display); letter-spacing: -.04em; }
.side-note p { color: var(--muted); font-size: 13px; margin-top: 17px; }

.form-layout { display: grid; gap: 80px; grid-template-columns: .8fr 1.2fr; }
.form-intro h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); margin: 18px 0 25px; }
.contact-details { display: grid; gap: 20px; margin-top: 33px; }
.contact-item { align-items: start; display: flex; gap: 14px; }
.contact-icon { align-items: center; background: #e7eef6; color: var(--blue-dark); display: grid; flex: 0 0 auto; height: 34px; justify-content: center; width: 34px; }
.contact-item strong { display: block; font-size: 12px; margin-bottom: 4px; }
.contact-item a, .contact-item span { color: var(--muted); font-size: 13px; line-height: 1.5; text-decoration: none; }
.contact-item a:hover { color: var(--blue-dark); text-decoration: underline; }
.form-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 15px 50px rgba(7,26,50,.06); padding: clamp(24px, 4vw, 46px); }
.field-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 800; }
.field input, .field textarea, .field select { background: #fbfcfe; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 14px var(--font-body); padding: 13px 14px; width: 100%; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .lang-select:focus, .menu-toggle:focus, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-card > .button { margin-top: 26px; }
.privacy-consent-field { margin-top: 24px; }
.privacy-consent { align-items: flex-start; color: var(--muted); cursor: pointer; display: flex; font-size: 12px; font-weight: 500; gap: 11px; line-height: 1.7; }
.privacy-consent input { accent-color: var(--blue-dark); flex: 0 0 auto; height: 16px; margin: 2px 0 0; width: 16px; }
.privacy-consent a { color: var(--blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.privacy-consent a:hover { color: var(--ink); }
.error-text { color: #b42318; font-size: 11px; }
.notice { border-left: 3px solid var(--blue); margin-bottom: 22px; padding: 12px 15px; }
.notice-error { border-color: #b42318; }
.success-state { text-align: center; }
.success-mark { align-items: center; background: #d9f8e5; border-radius: 50%; color: #14854b; display: inline-flex; height: 52px; justify-content: center; width: 52px; }
.success-state h2 { font: 500 34px var(--font-display); letter-spacing: -.04em; }
.success-state p { color: var(--muted); font-size: 14px; }
.map-card { min-height: 370px; overflow: hidden; position: relative; }
.map-card img { height: 100%; min-height: 370px; object-fit: cover; width: 100%; }
.map-label { background: #fff; bottom: 25px; display: flex; flex-direction: column; left: 25px; padding: 15px 18px; position: absolute; }
.map-label strong { font: 500 21px var(--font-display); }
.map-label span { color: var(--muted); font: 10px var(--font-mono); margin-top: 4px; text-transform: uppercase; }
.packet-note { color: var(--muted); font-size: 12px; margin-top: 15px; }

.footer { background: var(--ink); color: #fff; padding: 78px 0 25px; }
.footer-grid { display: grid; gap: 45px; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-brand .brand-logo { height: 88px; }
.footer .brand-sub { display: none; }
.footer-brand p, .footer-grid p, .footer-grid a:not(.brand) { color: var(--dark-muted); font-size: 12px; line-height: 1.7; }
.footer-brand p { max-width: 260px; }
.footer-grid h3 { color: var(--blue); font: 700 10px var(--font-mono); letter-spacing: .14em; margin: 5px 0 18px; text-transform: uppercase; }
.footer-grid a:not(.brand) { display: block; margin: 7px 0; text-decoration: none; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.45); display: flex; font: 10px var(--font-mono); justify-content: space-between; margin-top: 65px; padding-top: 18px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

@media (max-width: 920px) {
  .nav-links { gap: 18px; }
  .nav-actions { gap: 14px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .story-grid, .form-layout { gap: 45px; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand .brand-logo { height: 70px; }
}
@media (max-width: 700px) {
  .container-wide { width: min(100% - 32px, 1180px); }
  .brand-logo { height: 56px; }
  .nav-links { display: none; }
  .nav-actions .button { display: none; }
  .menu-toggle { display: block; }
  .nav-bar.menu-open { background: var(--ink); min-height: 100dvh; position: fixed; }
  .nav-bar.menu-open .nav-inner { align-items: flex-start; }
  .nav-bar.menu-open .nav-links { align-items: flex-start; display: flex; flex-direction: column; gap: 0; left: 16px; position: absolute; right: 16px; top: 98px; }
  .nav-bar.menu-open .nav-links li { display: block; width: 100%; }
  .nav-bar.menu-open .nav-links a { border-bottom: 1px solid rgba(255,255,255,.13); font-size: 19px; padding: 17px 0; width: 100%; }
  .nav-bar.menu-open .nav-actions { left: 16px; position: absolute; top: 360px; }
  .nav-bar.menu-open .nav-actions .button { display: inline-flex; }
  .hero, .hero-content { min-height: 680px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 6rem); }
  .trust-inner, .quote-band, .footer-bottom { align-items: flex-start; flex-direction: column; gap: 25px; }
  .trust-list { flex-wrap: wrap; gap: 15px 24px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 220px; }
  .process-card h3 { margin-top: 55px; }
  .image-card { min-height: 330px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto!important; transition-duration: .01ms!important; }
}