/* Base styles for the Lancing packaging website */

/* Import a modern, sans‑serif font to enhance readability and give the site
   a contemporary feel.  Montserrat is free and widely used for its clean
   appearance.  The font is loaded from Google Fonts via an @import. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Reset margins and paddings and ensure border‑box sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f7f9fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header and navigation */
header {
  background: linear-gradient(90deg, #052f6d, #0C5ADB);
  color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  /* Add a subtle shadow to distinguish the header from the page content */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 64px;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Brand mark */
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  transition: max-height 0.3s ease;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  display: block;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #cbdcff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero section */
/* Hero section
   Expanded height and gradient background for a more immersive feel */
.hero {
  /* White base with Lancing blue overlay */
  background-color: #ffffff;
  background-image: linear-gradient(90deg,
    rgba(5,47,109,0.96) 0%,
    rgba(5,47,109,0.78) 44%,
    rgba(5,47,109,0.15) 72%,
    rgba(255,255,255,0.00) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 80px 20px;
  min-height: 60vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
}


.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 30px;
}

.hero-text .btn {
  display: inline-block;
  background: #1E80FB;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 10px;
  transition: background 0.3s ease;
}

.hero-text .btn.secondary {
  background: #fff;
  color: #0C5ADB;
  border: 2px solid #0C5ADB;
}

.hero-text .btn:hover {
  background: #0c4db8;
}

.hero img {
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Standalone feature images (e.g., product range illustration on the home page) */
.feature-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* General container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

.section {
  padding: 40px 0;
}

.section h2 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
  color: #052f6d;
  font-size: 2.2rem;
}

.section p {
  margin-bottom: 10px;
}

/* Features and Trust Bar */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feature {
  background: #fff;
  padding: 1.5rem;
  flex: 1;
  min-width: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: #0C5ADB;
}

.trust-bar {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.trust-item {
  flex: 1;
  background: #fff;
  padding: 1.2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.trust-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0C5ADB;
  margin-bottom: 0.3rem;
}

.trust-label {
  font-size: 0.85rem;
  color: #052f6d;
}

/* Series Section */
.section-series .series-grid {
  /* Use a responsive grid for machine series cards */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.series-card {
  flex: 1;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

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

.series-card .series-body {
  padding: 1rem;
  flex-grow: 1;
}

.series-card h3 {
  color: #0C5ADB;
  margin-bottom: 0.5rem;
}

.series-card p {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.series-cta {
  display: inline-block;
  margin-top: auto;
  font-weight: 600;
  color: #0C5ADB;
  border: 2px solid #0C5ADB;
  border-radius: 30px;
  padding: 0.5rem 1rem;
}

.series-card:hover {
  transform: translateY(-5px);
}

/* Machine series introduction styling */
.section-series .section-intro p {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

/* Product Range Grid */
.section-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

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

.product-card .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #073a8f;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-card h4 {
  margin: 1rem 1rem 0.5rem;
  color: #052f6d;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
}

.product-card:hover {
  transform: translateY(-5px);
}

.grid-cta {
  text-align: center;
  margin-top: 40px;
}

.grid-cta .btn {
  margin: 0 10px;
}

/* Industries Section */
.section-industries .industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.industry-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.industry-icon {
  background: #0C5ADB;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card h3 {
  color: #052f6d;
  margin-bottom: 4px;
}

.industry-card p {
  font-size: 0.85rem;
}

/* Call To Action Section */
.section:last-of-type {
  padding-top: 80px;
  padding-bottom: 80px;
  background: #eef4fc;
  text-align: center;
}

.section:last-of-type h2 {
  color: #052f6d;
  margin-bottom: 12px;
}

.section:last-of-type p {
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section:last-of-type .btn {
  margin-top: 10px;
}
/* Footer styles */
.footer {
  background: #0C5ADB;
  color: #fff;
  padding: 20px 0;
}

.footer .footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 20px;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 5px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

/* Contact form */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

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

button {
  background: #0C5ADB;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
  background: #1E80FB;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  nav {
    flex-wrap: wrap;
    min-height: auto;
    height: auto;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #0C5ADB;
  }
  nav ul.open {
    max-height: 800px;
  }
  .menu-toggle {
    display: block;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .features .feature {
    flex: 1 1 100%;
  }
  .hero {
    text-align: center;
  }
  .hero img {
    margin-top: 30px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}



/* Product section framing */
.section-products {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  padding: 90px 0;
}

/* Section intro */
.section-intro {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-intro h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #052f6d;
  margin-bottom: 12px;
}

.section-intro p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Product grid spacing fix */
.product-grid {
  margin-top: 10px;
}

/* Card balance fix */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card h4 {
  margin-top: 16px;
}

.product-card p {
  margin-top: 8px;
  flex-grow: 1;
}

/* Image-to-text balance */
.product-card img {
  height: 190px;
  object-fit: cover;
}

/* Hover refinement */
.product-card:hover {
  transform: translateY(-6px);
}



/* Product grid enhancements */
.card-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(5,47,109,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}

.product-card{
  position: relative;
}

.grid-cta{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Industries section */
.section-industries{
  background: #ffffff;
  padding: 90px 0;
}

.industry-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.industry-card{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(2,18,46,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.industry-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2,18,46,0.10);
}

.industry-icon{
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #052f6d;
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  border: 1px solid #dbe7ff;
}

.industry-body h3{
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #052f6d;
}

.industry-body p{
  margin: 0;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.45;
}



/* Series section */
.section-series{
  background: #ffffff;
  padding: 90px 0;
}
.series-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.series-card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e4eaf2;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(2,18,46,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.series-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(2,18,46,0.10);
}
.series-card img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.series-body{
  padding: 18px;
  display:flex;
  flex-direction: column;
  height: 100%;
}
.series-body h3{
  margin: 0 0 8px;
  color: #052f6d;
  font-size: 1.25rem;
  font-weight: 700;
}
.series-body p{
  margin: 0 0 14px;
  color: #555;
  line-height: 1.55;
  font-size: 0.95rem;
  flex-grow: 1;
}
.series-cta{
  display: inline-block;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(12,90,219,0.10);
  border: 1px solid rgba(12,90,219,0.18);
  color: #052f6d;
}

/* Trust bar */
.trust-bar{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e4eaf2;
}
.trust-item{
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(2,18,46,0.05);
}
.trust-number{
  font-weight: 800;
  color: #052f6d;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.trust-label{
  color: #555;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Floating quote button */
.floating-quote{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  background: #0C5ADB;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(2,18,46,0.20);
  border: 1px solid rgba(255,255,255,0.25);
}
.floating-quote:hover{
  background: #052f6d;
}


/* --- Machine product pages (generated) --- */
.section-title{
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #052f6d;
}
.section-title.center{ text-align: center; }

.machine-overview{
  gap: 24px;
  align-items: flex-start;
}
.machine-desc-title{
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #052f6d;
  margin: 0 0 10px 0;
}
.machine-desc-text{
  color: #111;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.machine-overview-text{
  color: #111;
}

.machine-overview-image{
  display:flex;
  align-items:center;
  justify-content:center;
}

.fit-image{
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4eaf2;
}

.specs-section{
  margin-top: 12px;
}
.table-wrap{
  overflow-x: auto;
}
.specs-table{
  width: 100%;
}

.image-strip{
  margin-top: 24px;
}
.image-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.image-cell{
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  padding: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.fit-image.square{
  aspect-ratio: 1 / 1;
  max-height: 220px;
  object-fit: contain;
}

@media (max-width: 900px){
  .image-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .image-grid{ grid-template-columns: 1fr; }
}


/* Hero image variants */
.hero-home {
  background-image:
    linear-gradient(90deg,
      rgba(5,47,109,0.96) 0%,
      rgba(5,47,109,0.78) 44%,
      rgba(5,47,109,0.18) 70%,
      rgba(255,255,255,0.00) 100%),
    url("../images/slider/home-hero.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, contain;
  background-position: left center, right center;
}

.hero-services {
  background-image:
    linear-gradient(90deg,
      rgba(5,47,109,0.96) 0%,
      rgba(5,47,109,0.78) 44%,
      rgba(5,47,109,0.18) 70%,
      rgba(255,255,255,0.00) 100%),
    url("../images/slider/hs21.png");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, contain;
  background-position: left center, right center;
}

.hero-basic {
  /* No image, just the overlay */
  background-image: linear-gradient(90deg,
    rgba(5,47,109,0.96) 0%,
    rgba(5,47,109,0.75) 55%,
    rgba(5,47,109,0.10) 80%,
    rgba(255,255,255,0.00) 100%);
}

@media (max-width: 900px) {
  .hero-home,
  .hero-services {
    background-size: cover, cover;
    background-position: left center, center center;
  }
}



/* Product range filters (Products pages) */
.range-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 22px;
}
.range-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}
.range-pill:hover {
  background: #e5e7eb;
}
.range-pill.active {
  background: #1E80FB;
  color: #fff;
  border-color: #1E80FB;
}

/* Products landing view toggle (Browse by category / All machines) */
.mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mode-pill:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.mode-pill.active {
  background: #0f2c59;
  color: #fff;
  border-color: #0f2c59;
}

/* Make long range lists feel cleaner (horizontal scroll rather than a big wrap) */
.range-filters.scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.range-filters.scrollable .range-pill { white-space: nowrap; }
.range-filters.scrollable::-webkit-scrollbar { height: 10px; }
.range-filters.scrollable::-webkit-scrollbar-thumb {
  background: rgba(15,44,89,.18);
  border-radius: 999px;
}
