/* ==========================================================================
   ESBI V Belts — site stylesheet
   Hand-written replacement for the Nicepage-generated CSS.
   ========================================================================== */

:root {
  --blue: #2b94cc;
  --blue-light: #4fb3e8;
  --blue-dark: #1d7db1;
  --navy: #07406b;
  --slate: #20303f;
  --ink: #0e1c29;
  --ticker-text: #0e70a4;
  --grey-5: #f2f2f2;
  --grey-80: #333333;
  --panel-bg: #f3f6f8;
  --panel-border: #d7dee5;
  --muted: #5c6b77;
  --font-body: "Open Sans", sans-serif;
  --font-heading: Roboto, sans-serif;
  --header-h: 138px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Page container — same widths as the original layout sheet */
.container {
  position: relative;
  width: 1140px;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 1199px) { .container { width: 940px; } }
@media (max-width: 991px)  { .container { width: 720px; } }
@media (max-width: 767px)  { .container { width: 540px; } }
@media (max-width: 575px)  { .container { width: 340px; } }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--slate);
}

.site-header .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 12px 0;
}

.site-logo img {
  width: 143px;
  height: 113px;
}

.site-nav {
  display: flex;
  margin-top: 48px;
}

.site-nav a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 22px;
  height: 30px;
  margin: 48px 0 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--blue);
}

.menu-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 991px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

/* Off-canvas menu (mobile) */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}

.offcanvas-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.offcanvas-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  padding: 20px 45px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.95);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.offcanvas.is-open {
  visibility: visible;
  pointer-events: auto;
}

.offcanvas.is-open .offcanvas-overlay { opacity: 1; }
.offcanvas.is-open .offcanvas-panel { transform: none; }

.offcanvas-close {
  display: block;
  width: 22px;
  height: 28px;
  margin: 0 0 20px -20px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 28px;
  color: #ffffff;
}

.offcanvas-nav {
  text-align: center;
}

.offcanvas-nav a {
  display: block;
  padding: 8px 0;
  font-size: 1.25rem;
  line-height: 1;
  color: #ffffff;
}

.offcanvas-nav a:hover {
  color: var(--blue);
}

/* ---------- Tagline ticker ---------- */

.ticker {
  width: 100%;
  overflow: hidden;
  background-color: var(--ink);
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  padding: 9px 0;
  animation: ticker-scroll 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: inline-block;
}

.ticker-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ticker-text);
}

.ticker-sep {
  margin: 0 26px;
  color: var(--ticker-text);
  opacity: 0.75;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Hero slider ---------- */

.hero {
  position: relative;
  height: 756px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide .container {
  height: 100%;
}

.hero-caption {
  position: relative;
  width: 853px;
  max-width: 100%;
  min-height: 228px;
  margin-top: 368px;
  padding: 30px 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.hero-caption h2 {
  margin: 25px 114px 0 20px;
  font-size: 3rem;
  line-height: 1.1;
  color: #ffffff;
}

.hero-caption span {
  color: var(--blue);
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  margin: 0 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--blue);
}

.hero-dots button.is-active {
  background-color: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 338px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background-color: var(--blue);
  color: #ffffff;
}

.hero-arrow svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero-arrow--prev { left: calc((100% - 1140px) / 2 - 85px); }
.hero-arrow--next { right: calc((100% - 1140px) / 2 - 85px); }

@media (max-width: 1350px) {
  .hero-arrow { display: none; }
}

@media (max-width: 1199px) {
  .hero { height: 623px; }
  .hero-caption h2 { margin-right: 201px; }
}

@media (max-width: 991px) {
  .hero { height: 477px; }
  .hero-caption { width: 720px; margin-top: 200px; }
  .hero-caption h2 { margin-right: 20px; }
}

@media (max-width: 767px) {
  .hero { height: 358px; }
  .hero-caption { width: 540px; min-height: 0; margin-top: 140px; }
}

@media (max-width: 575px) {
  .hero { height: 607px; }
  .hero-caption {
    width: auto;
    min-height: 150px;
    margin-top: 367px;
    padding-bottom: 0;
  }
  .hero-caption h2 {
    margin: 0 20px;
    font-size: 1.875rem;
  }
}

/* ---------- Contact CTA band ---------- */

.cta {
  background-color: var(--blue);
  color: var(--slate);
}

.cta .container {
  display: flex;
  align-items: center;
  min-height: 176px;
  padding: 12px 0;
}

.cta-text {
  flex: 0 0 60%;
  padding: 0 18px;
}

.cta-text h3 {
  margin: 15px 20px 0;
  font-size: 1.25rem;
}

.cta-text h2 {
  margin: 19px 20px 0;
  font-size: 2.25rem;
  color: #ffffff;
}

.cta-action {
  flex: 0 0 40%;
  padding-left: 24px;
  text-align: right;
}

.btn-outline {
  display: inline-block;
  margin: 37px 23px 3px 0;
  padding: 10px 30px;
  border: 2px solid #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--blue-light);
  border-color: var(--blue-light);
  color: #ffffff;
}

@media (max-width: 1199px) {
  .cta .container { min-height: 200px; }
  .cta-text { padding: 0 49px; }
  .cta-text h3, .cta-text h2 { margin-left: 16px; margin-right: 16px; }
  .cta-action { padding-left: 0; }
  .btn-outline { margin: 52px 0 55px; }
}

@media (max-width: 991px) {
  .cta-text { padding: 0 38px; }
  .cta-text h3, .cta-text h2 { margin-left: 13px; margin-right: 13px; }
  .cta-action { padding-left: 15px; }
}

@media (max-width: 767px) {
  .cta .container { flex-direction: column; align-items: flex-start; }
  .cta-text, .cta-action { flex: 0 0 auto; width: 100%; padding: 0 18px; text-align: left; }
  .cta-text h3 { margin: 22px 6px 0; }
  .cta-text h2 { margin: 11px 6px 20px; font-size: 1.5rem; }
  .btn-outline { margin: 0 0 20px; }
}

/* ---------- Products ---------- */

.products {
  background-color: #ffffff;
  color: var(--navy);
}

.products .container {
  padding: 109px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.product-card img {
  width: 100%;
  height: 264px;
  object-fit: cover;
}

.product-card h3 {
  margin: 20px 20px 0;
  font-size: 1.25rem;
}

.product-card p {
  margin: 10px 20px 0;
  font-size: 0.875rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: auto 20px 20px;
  padding-top: 18px;
}

.btn-pill {
  display: inline-block;
  padding: 9px 16px;
  border: 2px solid var(--blue);
  border-radius: 25px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-pill--outline {
  background-color: transparent;
  color: var(--blue);
}

.btn-pill--outline:hover,
.btn-pill--outline:focus-visible,
.btn-pill--outline[aria-expanded="true"] {
  background-color: var(--blue-light);
  border-color: var(--blue-light);
  color: #ffffff;
}

.btn-pill--solid {
  background-color: var(--blue);
  color: #ffffff;
}

.btn-pill--solid:hover,
.btn-pill--solid:focus-visible {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #ffffff;
}

.spec-caret {
  display: inline-block;
  transition: transform 0.2s ease;
}

[aria-expanded="true"] .spec-caret {
  transform: rotate(180deg);
}

/* Spec panels sit in the DOM right after their card. On desktop the grid
   `order` pulls the three panels of a row below that row; on mobile the
   order is reset so each panel opens directly under its own card. */
.product-card:nth-of-type(-n + 3) { order: 1; }
.spec-panel:nth-of-type(-n + 3)   { order: 2; }
.product-card:nth-of-type(n + 4)  { order: 3; }
.spec-panel:nth-of-type(n + 4)    { order: 4; }

.spec-panel {
  display: none;
  grid-column: 1 / -1;
  margin: 0 0 30px;
  padding: 25px 30px;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 6px 6px;
}

.spec-panel.is-open {
  display: block;
}

.spec-panel h4 {
  margin: 0 0 15px;
  font-size: 1.125rem;
  color: var(--slate);
}

.spec-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.spec-table-wrap {
  flex: 1.5;
  min-width: 0;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

.spec-table th {
  padding: 8px 12px;
  background-color: var(--blue);
  font-size: 0.875rem;
  text-align: left;
  white-space: nowrap;
  color: #ffffff;
}

.spec-table td {
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  font-size: 0.875rem;
}

.spec-table tbody tr:nth-child(even) {
  background-color: var(--panel-bg);
}

.spec-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.spec-side {
  flex: 1;
  text-align: center;
}

.spec-side img {
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
}

.spec-order {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 36px;
  border-radius: 25px;
  background-color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.spec-order:hover,
.spec-order:focus-visible {
  background-color: var(--blue-dark);
  color: #ffffff;
}

.products-note {
  margin: 20px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--blue);
}

@media (max-width: 1199px) {
  .product-card { min-height: 0; }
}

@media (max-width: 767px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-grid .product-card, .product-grid .spec-panel { order: 0; }
  .spec-panel { margin-bottom: 20px; padding: 18px 15px; }
  .spec-grid { flex-direction: column; }
  .spec-side { width: 100%; }
}

/* ---------- Clients ---------- */

.clients {
  text-align: center;
}

.clients .container {
  padding: 50px 0 55px;
}

.clients h2 {
  margin: 0;
  font-size: 2.25rem;
  color: var(--blue);
}

.clients .intro {
  max-width: 716px;
  margin: 20px auto 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.client-logo {
  padding: 30px;
  opacity: 0;
  backface-visibility: visible;
}

/* Flip-in with overshoot ("jiggle") once the logo scrolls into view */
.client-logo.is-visible {
  animation: flip-in-x 1s both;
}

@keyframes flip-in-x {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
    opacity: 1;
  }
}

.client-logo img {
  width: 100%;
  height: 226px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .clients h2 { font-size: 1.5rem; }
  .client-grid { grid-template-columns: 1fr; }
  .client-logo { padding: 30px 10px; }
  .client-logo img { height: 150px; }
}

/* ---------- About ---------- */

.about {
  background-color: var(--grey-5);
  color: var(--navy);
}

.about .container {
  display: flex;
  padding: 60px 0;
}

.about-text {
  flex: 0 0 60%;
  padding: 0 20px;
}

.about-text h3 {
  margin: 9px 0 0;
  font-size: 1.25rem;
}

.about-text h2 {
  margin: 0;
  font-size: 3rem;
}

.about-text p {
  margin: 25px 0 0;
  font-size: 0.875rem;
}

.about-image {
  flex: 0 0 40%;
  min-height: 492px;
  background-image: url("images/Moiz.jpg");
  background-position: 50% 50%;
  background-size: cover;
}

@media (max-width: 767px) {
  .about .container { flex-direction: column; }
  .about-text, .about-image { flex: 0 0 auto; }
  .about-text { padding: 0; }
  .about-image { min-height: 360px; margin-top: 30px; }
}

/* ---------- Stats ---------- */

.stats {
  background-color: var(--blue);
  color: var(--slate);
  text-align: center;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 36px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 232px;
  padding: 0 30px;
}

.stat-number {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  margin: 20px 0 0;
  font-size: 0.875rem;
}

@media (max-width: 991px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .stats .container { grid-template-columns: 1fr; padding: 22px 11px; }
}

/* ---------- Contact ---------- */

.contact {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("images/af2df946b8cbfed0d38584420cc64a92.jpeg");
  background-position: 50% 50%;
  background-size: cover;
  color: #ffffff;
}

.contact .container {
  display: flex;
  padding: 60px 0;
}

.contact-info {
  flex: 0 0 45%;
  padding: 30px;
}

.contact-info h2 {
  margin: 0;
  font-size: 2.25rem;
}

.contact-list {
  max-width: 417px;
  margin-top: 25px;
}

.contact-list li {
  padding: 20px 30px 15px 0;
}

.contact-list h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 1px 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.contact-list h3 svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  fill: var(--blue);
}

.contact-list p {
  margin: 21px 1px 0;
}

.contact-list a {
  color: #ffffff;
}

.contact-list a:hover {
  color: var(--blue-light);
}

.contact-form-wrap {
  flex: 0 0 55%;
  padding: 30px 30px 30px 60px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0;
  padding: 10px;
}

.form-group {
  margin-bottom: 30px;
  padding-left: 30px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid #ffffff;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ffffff;
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--blue-light);
}

.form-group textarea {
  height: 124px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px 0 15px;
  border: 0;
  border-radius: 50px;
  background-color: #ffffff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: var(--blue-light);
  color: #ffffff;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-message {
  display: none;
  grid-column: 1 / -1;
  margin: 20px 0 0 30px;
  padding: 20px;
  color: #ffffff;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  background-color: #62c584;
}

.form-message--error {
  background-color: #f95d51;
}

@media (max-width: 991px) {
  .contact-info { flex: 0 0 48%; }
  .contact-form-wrap { flex: 0 0 52%; padding-left: 30px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-group { padding-left: 10px; }
  .form-message { margin-left: 10px; }
}

@media (max-width: 767px) {
  .contact .container { flex-direction: column; }
  .contact-info, .contact-form-wrap { flex: 0 0 auto; }
  .contact-info { padding: 30px 10px; }
  .contact-form-wrap { padding: 30px 0 30px 10px; }
  .contact-form { padding: 10px 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--grey-80);
  color: #ffffff;
  text-align: center;
}

.site-footer .container {
  padding: 49px 0;
}

.site-footer p {
  font-size: 0.875rem;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: #1ebe5b;
  color: #ffffff;
  transform: scale(1.08);
}

@media (max-width: 575px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-slide { transition: none; }
  .client-logo { opacity: 1; }
  .client-logo.is-visible { animation: none; }
}
