/* ===========================================================
   CSS RESET + NORMALIZE (MOBILE-FIRST MINIMALIST FOUNDATION)
   =========================================================== */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1A4563;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
ul, ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1A4563;
  margin-bottom: 18px;
  line-height: 1.2;
}
h1 {font-size: 2.375rem;}
h2 {font-size: 1.75rem;}
h3 {font-size: 1.25rem;}
h4 {font-size: 1.1rem;}

/* ==============================================
   BASE SPACING & FLEXBOX LAYOUTS (MANDATORY)
   ============================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =======================
   NAVIGATION & HEADER
   ======================= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #F2F4F6;
  position: relative;
  z-index: 101;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 20px 0;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #43B47A;
  font-weight: 500;
  transition: color 0.18s;
  padding: 8px 10px;
  border-radius: 6px;
  position: relative;
}
.main-nav > a:hover,
.main-nav > a:focus {
  color: #43B47A;
  background: rgba(67,180,122,0.07);
}
.main-nav .primary-btn {
  margin-left: auto;
}
header img[alt="Compact Horizon Logistics"] {
  height: 38px;
  width: auto;
}

/* =====================
   BUTTONS & LINKS
   ===================== */
.primary-btn, .secondary-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  text-align: center;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 1px 8px rgba(26,69,99,0.03);
  letter-spacing: 0.01em;
}
.primary-btn {
  background: #1A4563;
  color: #fff;
  box-shadow: 0 2px 12px rgba(26,69,99,0.10);
}
.primary-btn:hover, .primary-btn:focus {
  background: #43B47A;
  color: #fff;
  box-shadow: 0 4px 20px rgba(67,180,122,0.10);
}
.secondary-btn {
  background: #fff;
  color: #1A4563;
  border: 2px solid #43B47A;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: #43B47A;
  color: #fff;
  border-color: #43B47A;
}
.learn-more-link {
  font-size: 15px;
  color: #43B47A;
  font-weight: 600;
  position: relative;
}
.learn-more-link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #43B47A;
  position: absolute;
  left: 0;
  bottom: -2px;
  opacity: 0.13;
  transition: opacity 0.2s;
}
.learn-more-link:hover, .learn-more-link:focus {
  color: #1A4563;
}
.learn-more-link:hover::after {
  opacity: 1;
}

/* =======================
   HERO & SECTION LAYOUTS
   ======================= */
h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
section h1, section h2, section h3 {
  margin-bottom: 14px;
}
section > .container > .content-wrapper > p,
section > .container > .content-wrapper > .text-section > p {
  color: #425164;
  font-size: 17px;
  margin-bottom: 18px;
}

/* =============================
   FLEXBOX LAYOUTS - MANDATORY
   ============================= */
.card-container,
.card-grid,
.feature-grid,
.highlights-grid,
.service-card-list,
.service-overview-grid,
.delivery-types-list,
.industry-grid,
.article-list,
.case-study-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/**** Testimonials ****/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.testimonial-card {
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 400px;
  background: #fff;
  color: #1A4563;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(26,69,99,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(67,180,122,0.12);
}
.testimonial-card span {
  font-size: 15px;
  color: #43B47A;
  font-style: italic;
  font-weight: 600;
  margin-top: 8px;
}

/**** Cards, Feature Items, Articles ****/
.card, .article-list > article, .industry-grid > div, .service-card-list > div, .feature-grid > div, .case-study-summaries > div, .delivery-types-list > div, .service-overview-grid > div, .highlights-grid > div {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 22px 24px;
  box-shadow: 0 1px 12px rgba(26,69,99,0.065);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border 0.15s;
  border: 1px solid #F2F4F6;
}
.card:hover, .industry-grid > div:hover, .service-card-list > div:hover, .case-study-summaries > div:hover, .feature-grid > div:hover, .delivery-types-list > div:hover, .service-overview-grid > div:hover {
  box-shadow: 0 6px 32px rgba(67,180,122,0.09), 0 1.5px 12px rgba(26,69,99,0.07);
  border: 1px solid #43B47A33;
}
.card img, .industry-grid img, .service-card-list img, .feature-grid img, .delivery-types-list img, .case-study-summaries img, .service-overview-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: #F7F7F2;
  object-fit: contain;
}
.article-list > article {
  min-width: 220px;
  flex: 1 1 240px;
  padding: 24px 20px 16px 20px;
}
.resource-category {
  display: inline-block;
  background: #F7F7F2;
  color: #43B47A;
  font-size: 13px;
  border-radius: 7px;
  padding: 3px 12px;
  font-weight: 600;
  margin-top: 7px;
}

/**** Value & Feature Lists ****/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.value-list > div {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F7F7F2;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
}
.value-list img {
  width: 32px;
  height: 32px;
}

/**** FAQ ACCORDION****/
.faq-accordion > div {
  background: #F7F7F2;
  border-radius: 11px;
  padding: 17px 20px;
  transition: box-shadow 0.18s;
  box-shadow: 0 1px 5px rgba(26,69,99,0.035);
}
.faq-accordion h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 600;
}
.faq-content {
  color: #425164;
  font-size: 16px;
  line-height: 1.6;
}

/**** TEXT IMAGE SECTIONS ****/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/**** COOKIE CONSENT & MODAL ****/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(26,69,99,0.07);
  border-top: 1px solid #F2F4F6;
  padding: 22px 14px 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 111;
  animation: cookie-banner-in 0.38s cubic-bezier(0.55, 0, 0.1, 1);
}
@keyframes cookie-banner-in {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  color: #1A4563;
  font-size: 15px;
  margin-bottom: 9px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 22px;
  border: none;
  padding: 7px 20px;
  margin: 0 0 0 0;
  background: #43B47A;
  color: #fff;
  transition: background 0.17s, box-shadow 0.16s;
  box-shadow: 0 1px 8px rgba(67,180,122,0.04);
}
.cookie-btn.secondary {
  background: #fff;
  color: #1A4563;
  border: 2px solid #43B47A;
}
.cookie-btn.settings {
  background: #1A4563;
  color: #fff;
  border: none;
  margin-left: 8px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #43B47A;
  color: #fff;
  box-shadow: 0 3px 14px rgba(26,69,99,0.07);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #43B47A;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #43B47A;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 112;
  inset: 0;
  background: rgba(26,69,99,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-bg 0.4s ease;
}
@keyframes cookie-modal-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  max-width: 400px;
  width: 93vw;
  padding: 34px 30px 26px 30px;
  border-radius: 19px;
  box-shadow: 0 6px 32px rgba(26,69,99,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-in 0.38s cubic-bezier(0.55,0,0.1,1);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.94); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  font-size: 1.6rem;
  color: #1A4563;
  border: none;
  cursor: pointer;
  padding: 0 3px;
  transition: color 0.2s;
}
.cookie-modal-close:hover {
  color: #43B47A;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-modal-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #43B47A;
}
/* Essential disabled look */
.cookie-modal-category input[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/**** MOBILE BURGER MENU ****/
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #1A4563;
  background: none;
  border: none;
  padding: 6px 12px;
  z-index: 120;
  position: absolute;
  right: 20px;
  top: 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 7px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7F7F2;
  color: #43B47A;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom:0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 0 0 100vmax rgba(26,69,99,0.11);
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  color: #1A4563;
  background: none;
  border: none;
  padding: 0 7px;
  border-radius: 7px;
  transition: color 0.18s, background 0.14s;
  z-index: 180;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #43B47A;
  background: #F7F7F2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  margin-top: 35px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #1A4563;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 9px 0;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F7F2;
  color: #43B47A;
}

/* Hide main-nav & show burger on mobile */
@media (max-width: 1080px) {
  .main-nav > a:not(.primary-btn) {
    font-size: 15px;
    padding: 5px 7px;
    gap: 7px;
  }
}
@media (max-width: 900px) {
  .main-nav > a {
    font-size: 14.5px;
  }
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============== FOOTER ============= */
footer {
  background: #F7F7F2;
  border-top: 1px solid #F2F4F6;
  padding: 36px 0 17px 0;
  margin-top: 68px;
  font-size: 15px;
}
.footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content > a img {
  height: 35px;
  margin-right: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #1A4563;
  opacity: 0.75;
  font-size: 15px;
  transition: opacity 0.16s, color 0.16s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #43B47A;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  color: #425164;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 7px;
  vertical-align: middle;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
  .card-container, .card-grid, .feature-grid, .highlights-grid,
  .service-card-list, .industry-grid, .article-list,.service-overview-grid,.delivery-types-list {
    gap: 18px;
  }
  .footer-content {
    flex-wrap: wrap;
    gap: 19px;
  }
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 26px 5vw;
  }
  .main-nav,
  .footer-content {
    flex-direction: column;
    gap: 19px;
  }
  .content-wrapper {
    gap: 14px;
    padding: 0 0 0 0;
  }
  .container {
    padding: 0 2.2vw;
  }
  .card-container, .card-grid, .feature-grid, .highlights-grid,
  .service-card-list, .industry-grid, .article-list, .case-study-summaries, .service-overview-grid, .delivery-types-list {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 3px;
  }
  .card, .feature-grid > div, .highlights-grid > div, .service-card-list > div, .industry-grid > div, .article-list > article,
  .case-study-summaries > div, .delivery-types-list > div, .service-overview-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 99vw;
    padding: 20px 10px 18px 10px;
  }
  .testimonial-slider {
    gap: 16px;
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 15px 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}
@media (max-width: 440px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  .primary-btn, .secondary-btn {
    min-width: unset;
    padding: 9px 15px;
    font-size: 15px;
  }
  .container {
    padding: 0 1vw;
  }
  section {
    padding: 14px 2vw;
  }
}

/* ==================================================
   ADDITIONAL SPACING & TYPOGRAPHY CONSISTENCY
   ================================================== */
.text-section p, .content-wrapper p, address {
  color: #425164;
  font-size: 16px;
  margin-bottom: 12px;
}
ul, ol {
  margin-bottom: 12px;
}
ul > li, ol > li {
  color: #425164;
  margin-bottom: 7px;
  font-size: 15.5px;
}
address {
  font-style: normal;
}

/* ================ MICRO-INTERACTIONS & EFFECTS ================ */
a, .primary-btn, .secondary-btn, .cookie-btn, .footer-nav a, .mobile-nav a, .learn-more-link {
  transition: color 0.19s, background 0.18s, border 0.16s, box-shadow 0.16s, opacity 0.12s;
}

/* ============ VISUAL HIERARCHY ============ */
h1 {
  font-size: 2.375rem;
}
h2 {
  font-size: 1.45rem;
}
h3 {
  font-size: 1.08rem;
}

/* ========== UTILITY CLASSES ========== */
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom: 0 !important;}
.flex-center {display: flex; align-items: center; justify-content: center;}
.flex-between {display: flex; align-items: center; justify-content: space-between;}

/* ========== ACCESSIBLE, MINIMAL FORM ELEMENTS ========== */
input, textarea, select {
  border-radius: 7px;
  border: 1px solid #e7eaee;
  padding: 11px 13px;
  margin-bottom: 16px;
  font-size: 15px;
  background: #fff;
  color: #1A4563;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #43B47A;
}
label {
  font-weight: 500;
  color: #1A4563;
  margin-bottom: 5px;
  display: inline-block;
  font-size: 15.5px;
}

/* ========== CTA SECTION ========== */
section:last-of-type {
  margin-bottom: 0;
}

/* ========== RESOURCE CATEGORIES ========= */
.resource-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.resource-categories span {
  background: #F7F7F2;
  color: #43B47A;
  border-radius: 7px;
  padding: 5px 13px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.resource-categories span:hover, .resource-categories span:focus {
  background: #43B47A;
  color: #fff;
}

/* ===================== PRINT MINIMALISM for LEGAL PAGES ==================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 13px; }
}
