:root {
    --primary-blue: #0267B1;
    --primary-white: #fff9f9;
    --primary-black: #232321;
    --accent-grey: #e2e2e2;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--primary-black);
    margin: 0;
    padding: 0;
}

.topbar {
  background-color: #fff9f9;
}

.links .fab,
.center-text-topbar .tagline,
.end-text-topbar {
  color: #fff;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Domine', serif;
}

.content-container {
    padding: 0 80px;
    max-width: 1920px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background-color: #B7DAF3;
    position: relative;
    max-width: 1920px;
    height: auto;
    min-height: 977px;
    margin: 0 auto;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
}


.hero-card {
    background-color: var(--primary-blue);
    border-radius: 5px;
    padding: 40px;
    position: absolute;
    bottom: 130px;
    left: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card h1 {
    color: var(--primary-white);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0px;
}

.hero-card p {
    color: var(--primary-white);
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 20px;
}

.btn-brochure {
    background-color: var(--primary-white) !important;
    color: var(--primary-blue) !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 12px;
    width: 168px;
    height: 40px;
    padding: 7px 26px;
    border-radius: 5px;
    border: none;
}

.hero-thumbnails {
    position: absolute;
    bottom: 80px;
    right: 80px;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.hero-thumbnail {
    width: 214px;
    height: 214px;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Description */
.product-section {
    padding: 80px 0;
}

.product-title {
    font-family: 'Domine', serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--primary-black);
    margin-bottom: 42px;
}

.product-description {
    margin-bottom: 80px;
}

.product-description ul {
    list-style: none;
    padding: 0;
}

.product-description li {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--primary-black);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    margin-left: 0;
}

.product-description li:before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-size: 24px;
}
        
.see-all-btn {
    background-color: var(--primary-black);
    color: var(--primary-white);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    width: 168px;
    height: 40px;
    padding: 7px 26px;
    border-radius: 5px;
    border: none;
}

/* More Machines Section */
.more-machines {
    padding: 80px 0;
    background-color: var(--primary-white);
}
        
.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Domine', serif;
    font-weight: 700;
    font-size: 56px;
    color: var(--primary-black);
    margin: 0;
}

.product-card-row {
    display: flex;
    justify-content: flex-start;
    gap: 21px;
    /* width: 1760px; */
}

.product-card {
    width: 424px;
    height: 466px;
    background-color: var(--accent-grey);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05);
}
        
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-card .title-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 8px 8px;
}

.product-card .title-strip h3 {
    color: var(--primary-white);
    font-family: 'Domine', serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
}

/* ============================
   📱 MOBILE RESPONSIVENESS FIX
   ============================ */
@media (max-width: 991.98px) {

  /* --- Hero Section --- */
  .hero-section {
    height: auto;                      /* allow it to grow naturally */
    padding: 2rem 1rem 4rem;           /* spacing inside */
    background-size: cover;            /* fill instead of contain */
    background-position: center;       /* center the bg image */
  }

  /* --- Hero Card --- */
  .hero-card {
    position: static;                  /* remove absolute positioning */
    width: 100%;
    border-radius: 8px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-card h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-card p {
    font-size: 14px;
  }

  /* --- Hero Thumbnails --- */
  .hero-thumbnails {
    position: static;                  /* stack below hero card */
    flex-direction: row;               /* side-by-side thumbnails */
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
  }

  .hero-thumbnail {
    width: 140px;
    height: 140px;
  }

  /* --- More Machines Section --- */
  .more-machines {
    padding: 40px 16px;                /* narrower padding for small screens */
  }

  .section-title-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .section-title {
    font-size: 32px;
  }

  .product-card-row {
    flex-wrap: wrap;                   /* stack product cards vertically */
    justify-content: center;
    gap: 16px;
  }

  .product-card {
    width: 90%;                        /* fill most of screen width */
    height: auto;
  }

  .product-card img {
    height: auto;
  }

  .product-card .title-strip h3 {
    font-size: 18px;
  }
}
  .product-section {
	padding-top: 20px;
	padding-bottom: 20px;
}

/* Force backdrop to cover the full viewport */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0,0,0,0.6) !important;
  z-index: 1040 !important;
}

/* Keep modal above everything */
.modal {
  z-index: 1050 !important;
}

/* Optional: tweak vertical centering */
.modal-dialog {
  margin-top: 10vh;
}




/* ========================================
   📱 MOBILE FIXES — HERO + GLOBAL PADDING
   ======================================== */
@media (max-width: 991.98px) {

  /* --- Global page padding --- */
  body,
  .hero-section,
  .more-machines,
  .content-container,
  .product-main-wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* --- Hero Section Layout --- */
  .hero-section {
    display: flex;
    flex-direction: column;         /* stack vertically */
    align-items: center;
    justify-content: flex-start;
    height: auto !important;        /* remove fixed height */
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    background-position: center;
    background-size: cover;
  }

  /* --- Main Hero Image --- */
  .hero-section img.main-hero-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;          /* gap before thumbnails */
  }

  /* --- Thumbnails --- */
  .hero-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;          /* gap before hero-card */
    position: static;
  }

  .hero-thumbnail {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
  }

  .hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- Hero Card --- */
  .hero-card {
    position: static !important;    /* stop overlapping */
    width: 100%;
    height: auto;
    max-height: 800px;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--primary-blue, #0267B1);
    color: #fff;
    align-self: center;
  }

  .hero-card h1 {
    font-size: 26px;
    margin-bottom: 0.75rem;
  }

  .hero-card p {
    font-size: 14px;
  }
}
/* ========================================
   📱 MOBILE HERO IMAGE BEHAVIOR
   ======================================== */

/* Hide hero background on mobile */
@media (max-width: 991.98px) {
  .hero-section {
    background: none !important;     /* removes background fill */
    background-image: none !important;
  }

  /* Hide the desktop hero image element if any */
  .hero-section img.main-hero-image {
    display: none !important;
  }

  /* Mobile-only image block visible only on small screens */
  .mobile-hero-image {
    display: block !important;
    padding-top:20px;
    
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .mobile-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}

/* Hide mobile-only image on desktop */
@media (min-width: 992px) {
  .mobile-hero-image {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .product-card-row {
      padding: 0 !important;
      margin: 0 !important;
      width: 100% !important;
  }

  .product-card {
      width: calc(100% - 20px) !important;
      margin: 0 auto 20px auto !important;
  }
}
