/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Custom styles for Bushman Business Solutions homepage */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header-container {
  max-width: none; /* Remove max-width constraint */
  margin: 0;
  padding: 0 1.5rem 0 2rem; /* Very small left padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 0;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #2a4d69;
  margin: 0;
  margin-left: 0.5rem; /* Reduce margin even further */
}
.site-logo {
  height: 100px;
  width: auto;
  display: block;
}
@media (max-width: 800px) {
  .site-logo {
    height: 65px;
  }
}
@media (max-width: 600px) {
  .site-logo {
    height: 48px;
  }
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}
.main-nav ul > li {
  display: flex;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: #2a4d69;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: #4b86b4;
}

/* Dropdown Menu Styles */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.main-nav li {
  position: relative;
}
.dropdown {
  position: relative;
}
.dropbtn {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-weight: 500;
  color: #2a4d69;
  vertical-align: middle;
  font-family: inherit;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.dropbtn:hover {
  color: #4b86b4;
}
/* Dropdown Menu Styles - fix flex inheritance */
.dropdown-content {
  display: none !important;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  padding: 0;
}
.dropdown-content li {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #222;
  text-decoration: none;
  transition: background 0.2s;
  margin: 0;
}
.dropdown-content a:hover {
  background-color: #f0f0f0;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block !important;
}

.hero {
  background: url('../img/truck_plane_train_barge.png') center center/cover no-repeat;
  color: #fff;
  min-height: 900px;
  padding: 0;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,77,105,0.45);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}
.cta-btn {
  display: inline-block;
  background: #4b86b4;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: #2a4d69;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .hero {
    min-height: 500px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 300px;
  }
}
.solutions {
  background: #fff;
  padding: 3rem 0;
}
.solutions h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 3rem;
  font-weight: 800;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 1.5em;
  margin-top: 2em;
}
.solution-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eff6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0.5em 0.5em;
  min-height: unset;
  height: 3em;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s;
}
.solution-card h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}
.solution-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  background: #e9f5ff;
}
.empty-card {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  min-height: 0;
  height: 0;
}
.solutions-summary {
  text-align: center;
  margin-bottom: 2rem;
}
.summary-text {
}
.summary-text p {
  font-size: 1.35rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}
.summary-image {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}
.summary-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .solutions-summary {
    margin-bottom: 1.5rem;
  }
  .summary-image {
    margin-bottom: 2rem;
  }
}
.clients {
    padding: .5rem 0 3rem 0;
  background: #e9eff6;
  text-align: center;
}
.clients h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
}
.contact {
  padding: 3rem 0;
  background: #fff;
}
.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.contact form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact input,
.contact textarea {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact button {
  background: #2a4d69;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact button:hover {
  background: #4b86b4;
}
.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-align: center;
}
.form-feedback.success {
  background: #e6f9e6;
  color: #218838;
  border: 1px solid #218838;
}
.form-feedback.error {
  background: #ffeaea;
  color: #c82333;
  border: 1px solid #c82333;
}
.site-footer {
  background: #2a4d69;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}
@media (max-width: 800px) {
  .solution-list {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 0.5rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .solution-card {
    padding: 1rem;
  }
}

/* Carousel styles */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.carousel .solution-list {
  display: flex;
  flex-wrap: nowrap !important;
  transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
  justify-content: flex-start !important;
  gap: 1.5rem;
}
.carousel .solution-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3); /* 3 cards, 2 gaps */
  box-sizing: border-box;
  max-width: none;
  min-width: 0;
}
@media (max-width: 900px) {
  .carousel .solution-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Client logo carousel styles */
.client-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}
.client-list {
  display: flex;
  flex-wrap: nowrap !important;
  transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
  justify-content: flex-start !important;
  gap: 1.5rem;
}
.client-card {
  flex: 0 0 calc((100% - 4 * 1.5rem) / 5); /* 5 cards, 4 gaps */
  box-sizing: border-box;
  max-width: none;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem;
  height: 140px;
}
.client-card img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  display: block;
}
@media (max-width: 1200px) {
  .client-card {
    flex: 0 0 calc((100% - 2 * 1.5rem) / 3); /* 3 cards on medium screens */
  }
}
@media (max-width: 900px) {
  .client-card {
    flex: 0 0 100%;
    max-width: 100%;
    height: 120px;
    padding: 1rem;
  }
  .client-list {
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .client-card {
    height: 80px;
    padding: 0.5rem;
  }
  .client-list {
    gap: 0.5rem;
  }
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 1.5em;
  margin-top: 2em;
}
.solution-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eff6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0.5em 0.5em;
  min-height: unset;
  height: 3em;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s;
}
.solution-card h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}
.solution-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  background: #e9f5ff;
}
.empty-card {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  min-height: 0;
  height: 0;
}
@media (max-width: 900px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(12, 1fr);
  }
  .solution-card {
    min-width: 180px;
    font-size: 1em;
    height: 3em;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.edge-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 0.25em;
  transition: background 0.2s;
}
.edge-nav:hover {
  background: #e9eff6;
}
.edge-prev {
  left: 0.5em;
}
.edge-next {
  right: 0.5em;
}
@media (max-width: 600px) {
  .edge-nav img {
    height: 28px;
  }
  .edge-prev {
    left: 0.1em;
  }
  .edge-next {
    right: 0.1em;
  }
}

/* =============================================================
   Service Detail Base + Experimental Variants (A/B concepts)
   ============================================================= */
.service-detail {
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.service-detail h2 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  margin: 0 0 1.25rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.service-detail .service-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 900px;
}
.service-detail ul {
  font-size: 1.05rem;
  line-height: 1.55;
  padding-left: 2.0rem;
}
.service-detail ul ul {
  margin-top: 0.35rem;
}

/* Variant 2: Dark Split Panel (Logistics) */
.variant-dark-split {
  /*--split-left: #1e3142;*/
  /*--split-right: #10202b;*/
  --split-left: #10202b;
  --split-right: #2a4d69;
  background: linear-gradient(110deg,var(--split-left) 0%, var(--split-right) 70%);
  color: #dde7ef;
}
.variant-dark-split .container {
  display: grid;
  grid-template-columns: minmax(0,420px) minmax(0,1fr);
  gap: 3.5rem;
  align-items: start;
}
.variant-dark-split .service-media {
  position: sticky; /* subtle anchor when scrolling text */
  top: 6rem;
  align-self: start;
}
.variant-dark-split .service-media .service-image {
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.55), 0 4px 10px -2px rgba(0,0,0,0.35);
  outline: 2px solid rgba(255,255,255,0.08);
  outline-offset: -2px;
  background: #fff;
  padding: 0.75rem;
}
.variant-dark-split h2 {
  color: #fff;
  position: relative;
  padding-bottom: 0.75rem;
}
.variant-dark-split h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 94px; height: 5px;
  background: linear-gradient(90deg,#ffb347,#ffd97a,#fff);
  border-radius: 3px;
}
.variant-dark-split .service-subtitle {
  background: rgba(255,255,255,0.06);
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 18px -8px rgba(0,0,0,0.5);
}
.variant-dark-split ul > li {
  margin-bottom: 0.65rem;
}
.variant-dark-split ul ul li {
  opacity: 0.88;
}
.variant-dark-split ul {
  padding-left: 2.5rem;
}
.variant-dark-split a { color: #ffd97a; }
.variant-dark-split a:hover { color: #fff; }

@media (max-width: 980px) {
  .variant-dark-split .container {
    grid-template-columns: 1fr;
  }
  .variant-dark-split .service-media { position: relative; top: auto; }
}

/* Variant 3: Light Accent + Floating Image (Quality Control) */
.variant-light-accent {
  background: linear-gradient(180deg,#f0f7ff 0%, #ffffff 70%);
}
.variant-light-accent h2 {
  background: linear-gradient(90deg,#2a4d69 0%, #4b86b4 40%, #2a4d69 100%);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
  padding-bottom: 0.15rem;
}
.variant-light-accent .service-image.floating-circle {
  float: right;
  max-width: 320px;
  margin: 0 0 1.5rem 2rem;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  shape-outside: circle(50%);
  outline: 6px solid #fff;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.08);
  background: #fff;
  padding: 0.5rem;
}
.variant-light-accent .service-subtitle {
  font-size: 1.18rem;
  background: rgba(255,255,255,0.85);
  padding: 1rem 1.25rem 1.25rem;
  border-left: 6px solid #4b86b4;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.12);
}
.variant-light-accent ul {
  list-style: disc;
  padding-left: 3rem;
  margin: 2rem 0 0;
  columns: 1;
  column-gap: 2rem;
}
.variant-light-accent ul > li {
  background: transparent;
  break-inside: avoid;
  margin: 0 0 0.5rem;
  padding: 0;
  border-radius: 0;
  position: relative;
  font-weight: normal;
  box-shadow: none;
  border: none;
}
.variant-light-accent ul > li::before {
  display: none;
}
@media (max-width: 880px) {
  .variant-light-accent .service-image.floating-circle {
    float: none;
    margin: 0 auto 2rem;
    display: block;
  }
  .variant-light-accent ul { columns: 1; }
}

/* Variant 4: About Page - Darker Background */
.variant-about-dark {
  background: linear-gradient(180deg, #dae6f2 0%, #f0f4f7 70%);
}
.variant-about-dark h2 {
  background: linear-gradient(90deg,#2a4d69 0%, #4b86b4 40%, #2a4d69 100%);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
  padding-bottom: 0.15rem;
}
.variant-about-dark h3 {
  color: #2a4d69;
}
.variant-about-dark .service-subtitle {
  font-size: 1.18rem;
  background: rgba(255,255,255,0.9);
  padding: 1rem 1.25rem 1.25rem;
  border-left: 6px solid #4b86b4;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.15);
  margin-bottom: 1.5rem;
}
.variant-about-dark ul {
  list-style: disc;
  padding-left: 3rem;
  margin: 2rem 0 0;
  columns: 1;
  column-gap: 2rem;
}
.variant-about-dark ul > li {
  background: transparent;
  break-inside: avoid;
  margin: 0 0 0.5rem;
  padding: 0;
  border-radius: 0;
  position: relative;
  font-weight: normal;
  box-shadow: none;
  border: none;
}
.variant-about-dark ul > li::before {
  display: none;
}
@media (max-width: 880px) {
  .variant-about-dark ul {
    columns: 1;
  }
}

/* End experimental variants */
