/* ==========================================================================
   Avenzaio — Transportation & Logistics
   Core stylesheet
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-light: #13315C;
  --navy-dark: #081A33;
  --orange: #FF6B35;
  --orange-dark: #E6551F;
  --gray-50: #F7F8FA;
  --gray-100: #EEF1F5;
  --gray-200: #E2E6EC;
  --gray-300: #CBD3DD;
  --gray-500: #6B7685;
  --gray-700: #3A4150;
  --dark: #15181E;
  --white: #FFFFFF;
  --success: #1E8E5A;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 37, 69, 0.18);
  --container: 1200px;
  --font-head: 'Poppins', Arial, Helvetica, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

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

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-tight { padding: 56px 0; }

.bg-light { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: #C9D4E3; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy a:not(.btn) { color: #C9D4E3; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ===== Header ===== */
.topbar {
  background: var(--navy-dark);
  color: #AEB9C9;
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #D7DEE8; }
.topbar a:hover { color: var(--orange); }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts span, .topbar-contacts a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 14px; }

.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav li.active > a { color: var(--orange); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { padding: 10px 14px; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--gray-50); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--white);
    z-index: 600;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--gray-100); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 14px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(8,26,51,.5); z-index: 550; }
  .nav-backdrop.open { display: block; }
  .header-cta .btn-sm-hide { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,26,51,.94) 0%, rgba(11,37,69,.86) 45%, rgba(11,37,69,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 130px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead { font-size: 1.18rem; color: #D7DEE8; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--orange); }
.hero-stats div span { font-size: 0.85rem; color: #AEB9C9; }

.page-hero { padding: 72px 0; }
.page-hero .hero-inner { padding: 0; }
.breadcrumbs { font-size: 0.85rem; color: #AEB9C9; margin-top: 10px; }
.breadcrumbs a { color: #C9D4E3; }
.breadcrumbs a:hover { color: var(--orange); }

/* ===== Quote strip ===== */
.quote-strip {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: -64px;
  position: relative;
  z-index: 10;
  padding: 32px;
}
.quote-strip form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.quote-strip label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 992px) { .quote-strip form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quote-strip form { grid-template-columns: 1fr; } .quote-strip { margin-top: 24px; } }

/* ===== Cards & Grids ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: all .22s ease;
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--orange); font-size: 1.5rem;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 14px; }
.service-card .link-more { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.service-card .link-more:hover { color: var(--orange); }

.media-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.media-card img { width: 100%; height: 220px; object-fit: cover; }
.media-card .body { padding: 22px; }

.feature-row { display: flex; gap: 18px; margin-bottom: 26px; }
.feature-row .num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-100); color: var(--navy); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.feature-row h4 { margin-bottom: 6px; }
.feature-row p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--gray-700); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange);
}
.check-list li::after {
  content: "";
  position: absolute; left: 6px; top: 7px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

/* ===== Stats band ===== */
.stats-band { background: var(--navy); color: var(--white); }
.stats-band .grid-4 { text-align: center; }
.stats-band strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--orange); }
.stats-band span { color: #AEB9C9; font-size: 0.92rem; }

/* ===== Process / timeline ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 10px; }
.process-step .step-num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--gray-50); border: 2px solid var(--orange); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.testimonial-card .stars { color: var(--orange); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--gray-700); font-style: italic; margin-bottom: 18px; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.testimonial-card .person strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-card .person span { font-size: 0.8rem; color: var(--gray-500); }

/* ===== CTA Band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white); border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #C9D4E3; margin-bottom: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Forms ===== */
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s ease;
}
.form-control:focus { outline: none; border-color: var(--orange); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--navy); margin-bottom: 7px; }
.form-group .req { color: var(--orange); }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 6px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.95rem; }
.alert-success { background: #E6F4EC; color: var(--success); border: 1px solid #B9E3C9; }
.alert-error { background: #FBE7E4; color: #B3331B; border: 1px solid #F3BDB2; }

.contact-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius-md);
  padding: 34px; height: 100%;
}
.contact-card h3 { color: var(--white); margin-bottom: 18px; }
.contact-card .item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-card .item .ic { color: var(--orange); font-size: 1.2rem; width: 24px; flex-shrink: 0; }
.contact-card .item strong { display: block; font-size: 0.82rem; color: #AEB9C9; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-card .item a, .contact-card .item span { color: var(--white); font-size: 0.98rem; }

/* ===== FAQ Accordion ===== */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:first-child { border-top: 1px solid var(--gray-200); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.accordion-trigger .plus { font-size: 1.4rem; color: var(--orange); transition: transform .2s ease; flex-shrink: 0; margin-left: 14px; }
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel .inner { padding: 0 4px 22px; color: var(--gray-500); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #AEB9C9; }
.footer-top { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 18px; letter-spacing: 0.3px; }
.site-footer p { color: #92A0B5; font-size: 0.92rem; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul a { color: #AEB9C9; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.85rem;
}
.footer-social a:hover { background: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #92A0B5; }
.footer-bottom a:hover { color: var(--orange); }
.footer-newsletter { display: flex; gap: 10px; margin-top: 10px; }
.footer-newsletter input { flex: 1; min-width: 0; }

/* ===== Legal pages ===== */
.legal-content { max-width: 860px; }
.legal-content h2 { margin-top: 42px; margin-bottom: 14px; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.1rem; }
.legal-content p, .legal-content li { color: var(--gray-700); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--gray-200); }
.legal-content th { background: var(--gray-50); font-family: var(--font-head); color: var(--navy); }
.legal-meta { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 36px; }
.legal-toc { background: var(--gray-50); border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 40px; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 12px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--gray-700); font-size: 0.93rem; }
.legal-toc a:hover { color: var(--orange); }
.legal-sidebar { position: sticky; top: 100px; }
.legal-sidebar .card { background: var(--gray-50); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.legal-sidebar h4 { margin-bottom: 10px; font-size: 0.95rem; }
.legal-sidebar p { font-size: 0.88rem; color: var(--gray-500); }
.layout-legal { display: grid; grid-template-columns: 2.4fr 1fr; gap: 50px; }
@media (max-width: 900px) { .layout-legal { grid-template-columns: 1fr; } .legal-sidebar { position: static; } }

/* ===== Misc utility ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.badge {
  display: inline-block; background: var(--gray-100); color: var(--navy);
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin: 0 6px 10px 0;
}
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); text-align: left; font-size: 0.92rem; }
.data-table th { font-family: var(--font-head); color: var(--navy); background: var(--gray-50); }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s ease; z-index: 400; border: none; cursor: pointer; font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); }

.error-page { text-align: center; padding: 140px 0; }
.error-page .code { font-family: var(--font-head); font-size: 7rem; font-weight: 700; color: var(--navy); line-height: 1; }
.error-page .code span { color: var(--orange); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--white);
  padding: 12px 20px; z-index: 2000; font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
