/* Custom ZIVDA Styles Matching Bosch Aesthetic */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #121212;
}

.zivda-top-bar {
  height: 4px;
  width: 100%;
  background: #00c853; /* ZIVDA signature green */
}

.fw-black {
  font-weight: 900;
}

.fs-7 {
  font-size: 0.8125rem;
}

.max-h-120 {
  max-height: 120px;
  object-fit: contain;
}

.hover-green:hover {
  color: #0080ff !important;
}

.hover-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-card{
  width: 300px;
}
.dig {
  display: flex;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
}

@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid #dee2e6;
  }
  .logo img {
    width: 70px;
  }
}


/* Offcanvas Full-Screen Customizations */
.offcanvas.w-100 {
  width: 100vw !important;
}

.offcanvas-body .list-group-item {
  background-color: transparent;
  transition: background-color 0.15s ease-in-out;
}

.offcanvas-body .list-group-item:active,
.offcanvas-body .list-group-item:hover {
  background-color: #f8f9fa;
}

.offcanvas-header .btn-close {
  opacity: 1;
  font-size: 1.25rem;
}
.car img {
  width: 400px;
}

.offcanvas-header .logo img {
  width: 70px;
}
/* =========================================================
   RESPONSIVE MOBILE FIXES
   Optimized for small phones (320px - 576px)
   ========================================================= */

/* Prevent media and long content from creating horizontal overflow */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}
.prod1 {
  display: flex;
  width: 78rem;
  padding: 1rem 0 !important;
  gap: 0.5rem;
  margin-left: 5rem;
}

.prod1 img {
  width: 250px;
  height: 150px;
  border-radius: 8px;
}

/* Keep custom content blocks fluid */
.dig,
.mission {
  max-width: 100%;
  box-sizing: border-box;
}

.product-card {
  max-width: 100%;
  box-sizing: border-box;
}

.val {
  max-width: 100%;
  box-sizing: border-box;
}

.car img {
  max-width: 100%;
  height: auto;
}

/* Tables and wide content can scroll instead of breaking the page */
.table-responsive,
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Buttons and links should wrap naturally */
.btn-zivda-outline,
a {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  /* Smaller page gutters on phones */
  .container,
  .container-fluid {
    --bs-gutter-x: 1rem;
  }

  .container-fluid.px-4,
  .container-fluid.px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Header */
  .zivda-header {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
  }

  .zivda-logo-text img,
  .offcanvas-header .zivda-logo-text img {
    width: 125px;
    max-width: 45vw;
    height: auto;
  }

  .zivda-logo-text {
    font-size: 1.5rem;
  }

  .nav-icon-link {
    font-size: 1.05rem;
  }

  .zivda-header .d-flex.align-items-center.gap-3,
  .offcanvas-header .d-flex.align-items-center.gap-3 {
    gap: .65rem !important;
  }

  /* Full-screen mobile menu */
  .offcanvas-fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .offcanvas-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .offcanvas-body .list-group-item {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Main custom layouts */
  .prod {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.25rem 0 !important;
    gap: 1rem;
  }

  .product-card {
    width: 100% !important;
    min-width: 0;
  }

  .dig,
  .mission {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  
  .car img {
    width: 100% !important;
    max-width: 100%;
  }

  /* Make Bootstrap rows/columns safer around custom content */
  .row {
    --bs-gutter-x: 1rem;
    max-width: 100%;
  }

  /* Prevent long headings/text from forcing the viewport wider */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Responsive typography */
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .stat-number {
    font-size: 2rem;
  }

  .eyebrow {
    font-size: .72rem;
  }

  /* Cards and sections */
  .stat-box {
    padding: 1.25rem 1rem;
  }

  .p-4 {
    padding: 1rem !important;
  }

  /* Keep CTA buttons usable on narrow screens */
  .btn-zivda-outline,
  .btn-zivda-primary {
    max-width: 100%;
    white-space: normal;
  }

  /* Footer */
  .footer-zivida {
    overflow-x: clip;
  }

  .offcanvas-header .logo img {
    width: 70px;
  }
  .prod1 img {
    width: 30rem;
  }
}

@media (max-width: 380px) {
  .container-fluid.px-4,
  .container-fluid.px-lg-5 {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .zivda-logo-text img,
  .offcanvas-header .zivda-logo-text img {
    width: 105px;
  }

  .zivda-header .d-flex.align-items-center.gap-3,
  .offcanvas-header .d-flex.align-items-center.gap-3 {
    gap: .45rem !important;
  }

  .nav-icon-link {
    font-size: .95rem;
  }

  .nav-icon-link .fs-2 {
    font-size: 1.5rem !important;
  }

  .offcanvas-body a.fs-5 {
    font-size: 1rem !important;
  }

  .offcanvas-header .logo img {
    width: 70px;
  }
}


/* Sustainability page images */
.sustainability-image-wrap img {
  height: 380px;
  width: 520px;
  border-radius: 8px;
}


@media (max-width: 576px) {
  .sustainability-image-wrap {
    width: 100%;
    margin: 0 auto;
  }

  .sustainability-image {
    width: 100% !important;
    height: auto !important;
  }

  #sustainable-technology .row > [class*="col-"],
  #responsible-technology .row > [class*="col-"],
  #responsible-solutions .row > [class*="col-"],
  #our-sustainability .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
  }

  .logo img {
    width: 70px;
  }
}


/* Strong mobile image rules for Careers page */
.career-image-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 0 1rem;
}
.career-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  object-fit: contain;
  box-sizing: border-box;
}
.footer-logo-wrap { max-width: 100%; overflow: hidden; }
.footer-logo { display: block; max-width: 100%; width: auto; height: auto; }

@media (max-width: 576px) {
  .career-image-wrap { width: 100%; margin-left: 0; margin-right: 0; }
  .career-image { width: 100% !important; height: auto !important; }
  #careers-section, #partnerships-section, #contact-section {
    min-width: 0;
    max-width: 100%;
  }

  .logo img {
    width: 70px;
  }
}

@media (max-width: 380px) {
  .career-image-wrap { margin-bottom: .75rem; }
  .logo img {
    width: 70px;
  }
}


/* Contact page responsive fixes */
.contact-main {
  width: 100%;
  overflow-x: clip;
}

.contact-form-wrap {
  width: 100%;
  max-width: 900px;
  min-width: 0;
}

.contact-form-wrap .form-control,
.contact-form-wrap textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.zivda-header-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.zivda-logo-img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .contact-main .container {
    max-width: 100%;
  }

  .contact-main h1.display-3 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
    line-height: 1.05;
  }

  .contact-main h2.display-6 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
    line-height: 1.15;
  }

  .contact-form-wrap {
    width: 100%;
    max-width: 100%;
  }

  .zivda-logo-img {
    width: 125px;
    max-width: 45vw;
  }

  .zivda-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .zivda-tab-btn {
    white-space: nowrap;
    margin-right: .75rem;
    padding-right: 1rem;
  }

  .btn-zivda-primary {
    width: 100%;
    max-width: 220px;
  }

  .logo img {
    width: 70px;
  }
}

@media (max-width: 380px) {
  .logo img {
    width: 70px;
  }

  .contact-main .container {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .contact-main h1.display-3 {
    font-size: 2.15rem;
  }

  .contact-main h2.display-6 {
    font-size: 1.55rem;
  }

  .zivda-input-field {
    padding: .85rem;
  }
}

/* =========================================================
   ZIVDA GLOBAL STICKY NAVBAR
   Applied consistently to every page
   ========================================================= */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

/* Keep the main navigation pinned to the top while scrolling. */
.zivda-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
  width: 100%;
  align-self: start;
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.zivda-header.is-scrolling {
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.ve-social { display:flex; gap:10px; margin-bottom:30px; margin-top: 30px;}
.ve-social a {
  width:38px; height:38px; border-radius:8px;
  background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.6);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; text-decoration:none; transition:var(--ve-trans);
  border:1px solid rgba(255,255,255,0.08);
}
.ve-social a:hover { background: #0080ff; color:var(--ve-dark); border-color:var(--ve-gold); }

/* Newsletter section — styled to match the supplied reference */
.newsletter-section {
  background: #121417;
  color: #fff;
  padding: 14px 5% 25px;
  border-bottom: 2px solid #242424;
  margin-top: 30px;
  border-radius: 7px;
}
.newsletter-container {
  width: min(1200px, 100%);
  margin: 0 auto;
}
.newsletter-container h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -.7px;
  margin: 0 0 14px;
  text-align: center;
}
.newsletter-container > p:not(.newsletter-message) {
  color: #f5f5f5;
  font-size: clamp(13px, 2.1vw, 16px);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 1150px;
  text-align: center;
}
.newsletter-form {
  display: flex;
  width: 100%;
  border: 2px solid #454545;
  border-radius: 11px;
  overflow: hidden;
  background: #252525;
}
.newsletter-form input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  padding: 10px 16px;
  color: #fff;
  background: #252525;
  border: 0;
  outline: none;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: #c5c5c5; opacity: 1; }
.newsletter-form input:focus-visible { box-shadow: inset 0 0 0 2px #0080ff; }
.newsletter-form button {
  flex: 0 0 auto;
  padding: 0 10px;
  color: #fff;
  background: #0080ff;
  border: 0;
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.newsletter-form button:hover { background: #fff; color: #000; }
.newsletter-form button:disabled { opacity: .7; cursor: wait; }
.newsletter-message {
  display: none;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  flex-basis: 100%;
}
.newsletter-message.is-visible { display: block; }
.newsletter-message.is-error { color: #ff9696; }
.newsletter-message.is-success { color: #0080ff; }
.newsletter-privacy {
  display: block;
  margin-top: 12px;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 768px) {
  .newsletter-section { padding: 24px 5%; }
  .newsletter-container h2 { margin-bottom: 14px; }
  .newsletter-container > p:not(.newsletter-message) { margin-bottom: 20px; }
  .newsletter-form { min-height: 10px; }
  .newsletter-form input { padding: 10px 12px; font-size: 13px; }
  .newsletter-form button { padding: 0 18px; font-size: 14px; }
}
@media (max-width: 380px) {
  .newsletter-form button { padding: 0 18px; font-size: 13px; }
  .newsletter-form input { font-size: 12px; }
}


/* Cookie consent and preferences */
.zivda-cookie-banner {
  position: fixed; z-index: 1090; left: 20px; right: 20px; bottom: 20px;
  max-width: 1100px; margin: 0 auto; background: #fff; color: #161616;
  border: 1px solid #d7d7d7; box-shadow: 0 12px 45px rgba(0,0,0,.22);
  padding: 22px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  font-family: inherit;
}
.zivda-cookie-banner[hidden], .zivda-cookie-modal[hidden] { display: none !important; }
.zivda-cookie-copy { flex: 1; min-width: 0; }
.zivda-cookie-copy h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; color: #111; }
.zivda-cookie-copy p { margin: 0 0 8px; line-height: 1.5; font-size: .93rem; }
.zivda-cookie-links a { color: #0080ff; text-decoration: underline; }
.zivda-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.zivda-cookie-actions button, .zivda-cookie-save { border: 1px solid #0080ff; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.zivda-cookie-actions button, .zivda-cookie-save:hover { background: #0080ff; color: #fff; }
.zivda-cookie-actions [data-cookie-accept], .zivda-cookie-save { background: #0080ff; color: #fff; }
.zivda-cookie-actions [data-cookie-accept]:hover, .zivda-cookie-save { background: #fff; color: #111; }
.zivda-cookie-actions [data-cookie-reject], .zivda-cookie-actions [data-cookie-customize] { background: #fff; color: #111; }
.zivda-cookie-actions [data-cookie-reject]:hover, .zivda-cookie-actions [data-cookie-customize]:hover { background: #0080ff; color: #fff; }
.zivda-cookie-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.62); display: grid; place-items: center; padding: 18px; }
.zivda-cookie-dialog { background: #fff; color: #161616; width: min(100%, 560px); max-height: 90vh; overflow: auto; padding: 28px; position: relative; box-shadow: 0 15px 50px rgba(0,0,0,.3); }
.zivda-cookie-dialog h2 { font-size: 1.5rem; font-weight: 700; margin: 0 35px 12px 0; }
.zivda-cookie-close { position: absolute; right: 15px; top: 12px; background: transparent; border: 0; font-size: 30px; cursor: pointer; }
.zivda-cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ddd; padding: 16px 0; }
.zivda-cookie-option span { display: grid; gap: 4px; }
.zivda-cookie-option small { color: #555; }
.zivda-cookie-save { width: 100%; margin-top: 12px; }
.newsletter-message { margin: 10px 0 0; font-size: .9rem; color: #fff; }
.site-search-results-list { display: grid; gap: 10px; }
.site-search-result { display: grid; gap: 5px; color: #111; background: #fff; border: 1px solid #ddd; padding: 14px 16px; text-decoration: none; }
.site-search-result:hover, .site-search-result:focus { border-color: #0080ff; }
.site-search-result span { font-size: .9rem; color: #444; }
@media (max-width: 760px) {
  .zivda-cookie-banner { left: 10px; right: 10px; bottom: 10px; display: block; padding: 16px; max-height: 78vh; overflow: auto; }
  .zivda-cookie-actions { display: grid; grid-template-columns: 1fr; margin-top: 12px; }
  .zivda-cookie-actions button { width: 100%; }
}


/* Keep the full-screen menu/search above the sticky page header.
   Bootstrap uses backdrop 1040 and offcanvas 1045 by default. */
.offcanvas {
  z-index: 1045 !important;
}
.offcanvas-backdrop {
  z-index: 1040 !important;
}


/* Keep the full-screen menu/search above the sticky page header. */
.offcanvas { z-index: 1045 !important; }
.offcanvas-backdrop { z-index: 1040 !important; }


/* Homepage uses the same natural sticky header and top accent stripe
   behaviour as the other pages. The stripe scrolls away; the header sticks
   to the top of the viewport. */
