/* 
 * Hami Packages Corporate Website - Styling System (Vanilla CSS)
 * Brand Colors: Primary: Dark green #1a6b3c | Accent: #2d8653 | Backgrounds: White and Light grey #f5f5f5
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Design Tokens (CSS Variables) */
:root {
  --primary: #1a6b3c;
  --primary-light: #d4edda;
  --primary-soft: #eaf6ec;
  --accent: #2d8653;
  --accent-hover: #21663e;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text-dark: #222222;
  --text-medium: #555555;
  --text-light: #777777;
  --text-white: #ffffff;
  --font-body: 'Inter', sans-serif;
  --font-headings: 'Outfit', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 30px;
  --transition: all 0.3s ease;
  --navbar-height: 80px;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: var(--navbar-height);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-medium);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Spacing */
.section {
  padding: 80px 0;
}

.section-grey {
  background-color: var(--bg-light);
}

.section-title-center {
  text-align: center;
  margin-bottom: 25px;
}

.section-title-center h2 {
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-title-center h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.section-title-left {
  margin-bottom: 40px;
}

.section-title-left h2 {
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-title-left h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Global Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #333333;
  padding: 8px 14px;
  border-radius: 4px;
  display: block;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(26, 107, 60, 0.04);
}

.nav-link.active {
  color: var(--primary);
  background-color: #f5f5f5;
  font-weight: 600;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Global Footer */
.footer {
  background-color: #cef4da;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr;
  gap: 40px;
  margin-bottom: 35px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #2c3e35;
  margin-bottom: 20px;
  text-align: left;
}

#footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#footer-links h3 {
  color: #222222;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #2c3e35;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

#footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#footer-contact h3 {
  color: #222222;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #2c3e35;
  line-height: 1.4;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  fill: #444444;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact li strong {
  font-weight: 700;
  color: #222222;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: #2c3e35;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

#social-fb svg { fill: #1877f2; }
#social-tw svg { fill: #1da1f2; }
#social-ig svg { fill: #e1306c; }
#social-li svg { fill: #0077b5; }

.social-icon:hover {
  transform: translateY(-2px);
  filter: brightness(0.85);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 999999 !important;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: pulse 2s infinite;
  border: none;
  outline: none;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: var(--text-white);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Hero Section Base */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--text-white);
  overflow: hidden;
}

/* Hero text entrance animation */
.hero-content {
  animation: heroFadeUp 1.2s ease forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-single-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 650px;
  opacity: 0;
  will-change: transform, opacity;
  padding-left: 60px;
}

.hero h1 {
  color: var(--text-white);
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero .subtext {
  font-size: 1.4rem;
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Home Hero Custom styling */
.hero-home::after {
  background-image: url('assets/slider/aluminium foil manufacturing.jpg');
}

/* About Hero Custom styling */
.hero-about {
  justify-content: flex-end;
  text-align: right;
}

.hero-about::after {
  display: none !important;
}

.hero-about::before {
  background-color: rgba(0, 0, 0, 0.12) !important;
}

.hero-about .hero-content {
  margin-left: auto;
}

.hero-qc::after {
  display: none !important;
}

.hero-qc::before {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

.hero-career-page::after {
  display: none !important;
}

.hero-career-page::before {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

.hero-contact-page::after {
  display: none !important;
}

.hero-contact-page::before {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 1024px) {
  .hero-about {
    justify-content: center;
    text-align: center;
  }
  .hero-about .hero-content {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Products Hero Custom styling */
.hero-products::after {
  background-image: url('assets/products/alu alu blister.jpg');
}

/* Rice Hero Custom styling */
.hero-rice-page::after {
  background-image: url('assets/hero_rice.png');
}

/* QC Hero Custom styling */
.hero-qc::after {
  background-image: url('assets/qc/qc.jpg');
}

/* Career Hero Custom styling */
.hero-career-page::after {
  background-image: url('assets/hero_career.png');
}

/* Contact Hero Custom styling */
.hero-contact-page::after {
  background-image: url('assets/hero_contact.png');
}

/* Scrolling Client Logos Strip (Marquee) */
.logo-strip-section {
  padding: 30px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.logo-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 25px;
  animation: scroll 35s linear infinite;
  width: max-content;
  align-items: center;
}

.logo-item {
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 300%;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: var(--transition);
}

.logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Intro Section (2-columns text & media) */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.intro-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.intro-media video {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  display: block;
}

.intro-media img:hover {
  transform: scale(1.03);
}

.intro-text h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.intro-text p {
  font-size: 1.05rem;
  text-align: justify;
}

/* Stats Bar */
.stats-card-container {
  margin-top: 0;
  position: relative;
  z-index: 5;
  padding: 20px 0;
  background-color: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.stats-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 107, 60, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stats-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.stats-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

.stats-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.stats-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-medium);
}

/* Alternating Grid (Expertise / Quality) */
.split-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.split-section-image img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.split-section-image img:hover {
  transform: scale(1.02);
}

.split-section-content p {
  text-align: justify;
}

/* Grid & Cards Systems */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-image-container {
  height: 400px;
  position: relative;
  overflow: hidden;
  background-color: #eaeaea;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Watermark for Packaging products */
.watermark-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-headings);
  color: var(--primary);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.watermark-overlay img {
  height: 12px;
  width: auto;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.product-info p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-info .btn {
  width: 100%;
}

/* About Page specific layout */
.about-intro-center {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-intro-center p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-info-box {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-info-box h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.about-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.about-photo-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 250px;
}

.about-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-photo-item img:hover {
  transform: scale(1.05);
}

/* QC & RD Layout */
.text-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.text-grid-item {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.text-grid-item h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.text-grid-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
  text-align: justify;
}

.proven-track-record {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  align-items: center;
  margin-top: 20px;
}

.proven-track-record-text h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.proven-track-record-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.proven-track-record-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.qc-images-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.qc-image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 250px;
}

.qc-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.qc-image-card img:hover {
  transform: scale(1.03);
}

/* Forms (Career & Contact) */
.career-vacancy-status {
  background-color: #fff9e6;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 40px;
}

.career-vacancy-status span {
  font-weight: 700;
  text-transform: uppercase;
}

.form-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 700px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-medium);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dddddd;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 134, 83, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Contact Details */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-detail-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.contact-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-detail-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-detail-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.contact-detail-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-detail-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.map-section {
  width: 100%;
  height: 450px;
  margin-bottom: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile Responsive */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .intro-media img {
    height: 300px;
  }
  
  .split-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .split-section-image {
    order: 2;
  }
  
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-photo-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid-2col {
    grid-template-columns: 1fr;
  }
  
  .text-grid-2col {
    grid-template-columns: 1fr;
  }
  
  .proven-track-record {
    grid-template-columns: 1fr;
  }
  
  .proven-track-record-image {
    margin-top: 20px;
  }
  
  .qc-images-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  :root {
    --navbar-height: 70px;
  }
  
  .logo img {
    height: 42px;
  }
  
  .hamburger {
    display: block;
  }
  
  /* Mobile Navigation overlay drawer style */
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    gap: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  /* Hamburger cross animation */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .hero {
    height: 100vh;
    min-height: 100vh;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .subtext {
    font-size: 1.1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-card-container {
    margin-top: -20px;
  }
  
  .grid-3col {
    grid-template-columns: 1fr;
  }
  
  .about-photo-row {
    grid-template-columns: 1fr;
  }
  
  .qc-images-row {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 25px 20px;
  }
}

/* -------------------------------------------------------------------------- */
/* EYE-CATCHING ANIMATIONS & TRANSITIONS                                      */
/* -------------------------------------------------------------------------- */

/* Global page load animation */
body {
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ken Burns background zoom keyframes */
@keyframes kenburns {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1%, -1%);
  }
}

/* Scroll reveal engine styles */
.reveal {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) !important;
}

/* Staggered delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
/* Elegant hover transitions on links */

/* Elevate and shadow sweep effects on product cards */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
  transform: skewX(-25deg);
  z-index: 3;
  pointer-events: none;
}

.product-card:hover::before {
  animation: sweep 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sweep {
  100% {
    left: 125%;
  }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 134, 83, 0.2);
}

/* Floating WhatsApp button tilt/bounce */
.whatsapp-float {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Stats icons bounce */
.stats-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stats-card:hover .stats-icon {
  transform: scale(1.15) rotate(-5deg);
  background-color: var(--primary-light);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.stats-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Buttons shimmer glow */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: none;
  z-index: -1;
}

.btn:hover::before {
  left: 150%;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Zoom for Split Sections images */
.split-section-image img, .intro-media img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-section-image:hover img, .intro-media:hover img {
  transform: scale(1.05);
}

/* Premium WhatsApp Widget Styles */
.whatsapp-widget-container {
  position: fixed !important;
  bottom: 105px !important;
  right: 30px !important;
  width: 350px;
  max-width: calc(100vw - 60px);
  background-color: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000000 !important;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-widget-container.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.whatsapp-chat-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.whatsapp-chat-avatar-container {
  position: relative;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.whatsapp-chat-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 4px;
}

.whatsapp-chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #25d366;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.4);
  animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-chat-header-info {
  flex-grow: 1;
}

.whatsapp-chat-header-info h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.whatsapp-chat-header-info span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  display: block;
}

.whatsapp-chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
  position: absolute;
  top: 15px;
  right: 15px;
}

.whatsapp-chat-close:hover {
  color: var(--text-white);
  transform: scale(1.1);
}

/* Chat Body */
.whatsapp-chat-body {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0),
                    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  padding: 24px 18px;
  max-height: 200px;
  overflow-y: auto;
}

.whatsapp-chat-bubble {
  background-color: #ffffff;
  border-radius: 0 12px 12px 12px;
  padding: 12px 14px;
  max-width: 88%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.whatsapp-chat-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent #ffffff transparent transparent;
}

.whatsapp-chat-sender {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.whatsapp-chat-bubble p {
  color: #333333;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

.whatsapp-chat-time {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  text-align: right;
}

/* Chat Footer */
.whatsapp-chat-footer {
  padding: 16px 18px;
  background-color: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.whatsapp-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: var(--text-white);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-chat-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
  color: var(--text-white);
}

.whatsapp-chat-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

/* Badge on Floating Button */
.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background-color: #e1306c;
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: badgePop 0.5s ease-out forwards, floatWiggle 4s infinite 2s;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Tooltip on Floating Button */
.whatsapp-tooltip {
  position: absolute;
  right: 76px;
  background-color: var(--text-dark);
  color: var(--text-white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Trigger Button Periodic Attention-Grabber */
@keyframes floatWiggle {
  0%, 100% { transform: rotate(0); }
  8%, 24% { transform: rotate(-10deg); }
  16%, 32% { transform: rotate(10deg); }
  40% { transform: rotate(0); }
}

.whatsapp-float-attention {
  animation: pulse 2s infinite, floatWiggle 4s infinite;
}

/* Mobile Media Queries */
@media (max-width: 480px) {
  .whatsapp-widget-container {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 95px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
  
  .whatsapp-tooltip {
    display: none; /* Hide tooltips on mobile/touch screens */
  }
}



/* =============================================
   CINEMATIC HERO SLIDESHOW (replaces video)
   JS-driven (see main.js -> initHeroSliders)
   ============================================= */

.hero-slides {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s cubic-bezier(0.45, 0, 0.2, 1);
  z-index: 0;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
  animation: kenBurnsIn 7s ease-out forwards;
}

/* Alternate zoom direction on every other slide for a more dynamic, less
   repetitive cinematic feel */
.hero-slide.active.zoom-out {
  animation-name: kenBurnsOut;
}

@keyframes kenBurnsIn {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

@keyframes kenBurnsOut {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

/* Dot navigation (progress-fill style, like premium hero sliders) */
.hero-slider-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-slider-dot {
  position: relative;
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-slider-dot .dot-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent, #ffffff);
  border-radius: 3px;
}

.hero-slider-dot.active .dot-fill {
  animation: dotFill linear forwards;
  animation-duration: var(--slide-duration, 6s);
}

@keyframes dotFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Prev / Next arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-slider-arrow.prev { left: 24px; }
.hero-slider-arrow.next { right: 24px; }

@media (max-width: 768px) {
  .hero-slider-arrow { display: none; }
  .hero-slider-dots { bottom: 22px; }
  .hero-slider-dot { width: 22px; }
}

/* Remove old ::after background when slides present */
.has-slides::after {
  display: none !important;
}
.has-slides::before {
  display: none !important;
}

/* Remove old video wrap if any */
.hero-video-wrap { display: none; }
.hero-overlay { display: none; }

/* =============================================
   ABOUT PAGE HERO - RICH LAYOUT
   ============================================= */

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  animation: heroFadeUp 1.2s ease forwards;
}

.about-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.about-hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.about-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-hero-divider {
  width: 1px;
  height: 45px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .about-hero-divider {
    display: none;
  }
  .about-hero-stat {
    align-items: center;
  }
  .about-hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about-hero-title { font-size: 2.5rem; }
  .about-hero-stats { gap: 18px; flex-wrap: wrap; }
  .stat-num { font-size: 1.5rem; }
}

/* ABOUT HERO - Simple Attractive */
.about-hero-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px 0;
  border-radius: 2px;
}

.about-hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1.5px;
  font-weight: 400;
  margin: 0;
}

/* ============================================================
   PREMIUM ANIMATION LAYER — Hami Packages
   ============================================================ */

/* --- Navbar: shrink + glass effect on scroll --- */
.navbar {
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  height: 62px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}
.navbar .logo img {
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.navbar.scrolled .logo img {
  height: 38px;
}

/* --- Nav link animated underline --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1), left 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}

/* --- Hero: animated gradient shimmer overlay --- */
.hero-slide-overlay {
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,0.10) 100%
  );
  background-size: 200% 100%;
}

/* --- Hero content: staggered word entrance --- */
.hero-content h1 {
  animation: heroH1 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
.hero-content .subtext {
  animation: heroH1 1s cubic-bezier(0.16,1,0.3,1) 0.45s both;
}
.hero-content .btn {
  animation: heroH1 1s cubic-bezier(0.16,1,0.3,1) 0.7s both;
}
@keyframes heroH1 {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ken Burns zoom is handled by the .hero-slide.active rule above
   (JS-driven via main.js -> initHeroSliders), so no extra rule needed here. */

/* --- Scroll progress bar at top --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #4ecf8b, var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --- Logo strip: pause on hover, fade edges --- */
.logo-strip-section {
  position: relative;
}
.logo-strip-section::before,
.logo-strip-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-strip-section::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.logo-strip-section::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}
.logo-item {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), filter 0.35s ease;
  filter: grayscale(40%) opacity(0.8);
}
.logo-item:hover {
  transform: scale(1.12);
  filter: grayscale(0%) opacity(1);
}

/* --- Section headings: animated underline grow --- */
.section-title-center h2::after,
.section-title-left h2::after {
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
  width: 0;
}
.section-title-center.visible h2::after,
.section-title-left.visible h2::after {
  width: 80px;
}
.section-title-left.visible h2::after {
  width: 60px;
}

/* --- Stats cards: number counter shimmer + icon spin --- */
.stats-card {
  background: var(--bg-white);
  border: 1px solid rgba(26,107,60,0.08);
  position: relative;
  overflow: hidden;
}
.stats-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(45,134,83,0.06) 60%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.stats-card:hover::after {
  transform: translateX(100%);
}
.stats-icon svg {
  transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}
.stats-card:hover .stats-icon svg {
  transform: rotate(15deg) scale(1.2);
}

/* --- Product cards: image zoom + colour tint --- */
.product-image-container {
  overflow: hidden;
}
.product-image-container img {
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

/* --- Intro & split section images: subtle float --- */
.intro-media,
.split-section-image {
  animation: floatY 6s ease-in-out infinite;
}
.split-section-grid:nth-child(even) .split-section-image {
  animation-delay: -3s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
/* Pause float on hover so zoom-in works cleanly */
.intro-media:hover,
.split-section-image:hover {
  animation-play-state: paused;
}

/* --- Buttons: magnetic ripple on click --- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Footer: reveal from below --- */
.footer {
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #4ecf8b, var(--accent));
}

/* --- Back to Top button --- */
#back-to-top {
  position: fixed;
  bottom: 105px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s;
  box-shadow: 0 4px 14px rgba(26,107,60,0.35);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px) scale(1.1);
}
#back-to-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* --- Contact & about info boxes: border glow on hover --- */
.about-info-box,
.contact-detail-card,
.text-grid-item {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.about-info-box:hover,
.contact-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(26,107,60,0.13);
  border-color: rgba(45,134,83,0.25);
}
.text-grid-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(26,107,60,0.10);
}

/* --- Reduced motion safety --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE FIXES — Complete Mobile/Tablet Polish
   ============================================================ */

/* ---- Large Tablet (991px) ---- */
@media (max-width: 991px) {
  /* Stats grid → single column on tablet */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 20px;
  }

  /* Contact details → 2 cols on tablet */
  .contact-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Proven track record → single col */
  .proven-track-record {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  /* Logo item smaller on tablet */
  .logo-item {
    width: 140px;
    height: 70px;
  }
}

/* ---- Mobile (767px) ---- */
@media (max-width: 767px) {
  /* Section padding cut in half */
  .section {
    padding: 50px 0;
  }

  /* Contact details → 1 col on mobile */
  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  /* Stats grid → 1 col */
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  /* About hero title */
  .about-hero-title {
    font-size: 2.2rem;
  }

  /* Form container full width */
  .form-container {
    max-width: 100%;
    padding: 24px 16px;
  }

  /* Proven track record padding */
  .proven-track-record {
    padding: 24px 18px;
  }

  /* Back to top — keep visible from edge */
  #back-to-top {
    left: 20px;
    bottom: 95px;
  }

  /* Split section image — show above content on mobile */
  .split-section-image {
    order: -1;
  }

  /* Intro media height smaller */
  .intro-media img {
    height: 240px;
  }

  /* Logo strip smaller items */
  .logo-item {
    width: 110px;
    height: 60px;
  }

  /* Hero h1 */
  .hero h1 {
    font-size: 1.9rem;
  }

  /* About hero stats wrap */
  .about-hero-stats {
    gap: 14px;
  }

  /* Footer grid → already 1col, just tighten */
  .footer {
    padding: 40px 0 16px;
  }

  /* Unify footer column alignment on mobile (About block was left-aligned
     while Links/Contact were centered — creates jarring mismatch when stacked) */
  .footer-grid {
    text-align: center;
  }
  .footer-col#footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-desc {
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-contact li {
    text-align: left;
  }

  /* Map section height */
  .map-section {
    height: 300px;
    margin-bottom: 40px;
  }

  /* QC images row → 1 col */
  .qc-images-row {
    grid-template-columns: 1fr;
  }

  /* About photo row → 1 col */
  .about-photo-row {
    grid-template-columns: 1fr;
  }

  /* Justified text looks bad on narrow mobile columns (uneven word
     spacing / rivers of whitespace) — switch to left-aligned for
     readability. Overrides both CSS classes and inline styles in HTML. */
  .intro-text p,
  .split-section-content p,
  .text-grid-item p,
  .about-info-box p,
  .proven-track-record-text p,
  p[style*="text-align: justify"],
  p[style*="text-align:justify"] {
    text-align: left !important;
  }
}

/* ---- Small Mobile (480px) ---- */
@media (max-width: 480px) {
  :root {
    --navbar-height: 64px;
  }

  .container {
    padding: 0 14px;
  }

  /* Hero */
  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.15;
  }
  .hero .subtext {
    font-size: 0.95rem;
  }
  .hero-content {
    max-width: 100%;
    padding-left: 0;
  }

  /* About hero */
  .about-hero-title {
    font-size: 1.85rem;
  }
  .about-hero-sub {
    font-size: 0.95rem;
  }
  .stat-num {
    font-size: 1.3rem;
  }
  .about-hero-stats {
    gap: 10px;
  }
  .about-hero-divider {
    height: 32px;
  }

  /* Section title */
  .section {
    padding: 40px 0;
  }

  /* Stats */
  .stats-card {
    padding: 20px 16px;
  }

  /* Product cards grid */
  .grid-3col {
    grid-template-columns: 1fr;
  }

  /* Product image */
  .product-image-container {
    height: 180px;
  }

  /* About info box */
  .about-info-box {
    padding: 24px 18px;
  }

  /* Form */
  .form-container {
    padding: 20px 14px;
  }
  .form-control {
    font-size: 1rem; /* Prevent iOS zoom-in on focus */
  }

  /* Contact detail card */
  .contact-detail-card {
    padding: 28px 20px;
  }

  /* Map */
  .map-section {
    height: 250px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 14px;
  }
  .footer-grid {
    gap: 24px;
  }
  .footer-logo img {
    height: 42px;
  }
  .copyright {
    font-size: 0.8rem;
    text-align: center;
  }

  /* Back to top */
  #back-to-top {
    width: 38px;
    height: 38px;
    left: 14px;
    bottom: 88px;
  }
  #back-to-top svg {
    width: 16px;
    height: 16px;
  }

  /* Proven track record */
  .proven-track-record {
    padding: 20px 14px;
  }
  .proven-track-record-image img {
    height: 200px;
  }

  /* Text grid items */
  .text-grid-item {
    padding: 20px 16px;
  }

  /* Logo strip */
  .logo-item {
    width: 90px;
    height: 50px;
  }

  /* QC image card */
  .qc-image-card {
    height: 200px;
  }

  /* About photo item */
  .about-photo-item {
    height: 200px;
  }

  /* Buttons */
  .btn {
    padding: 11px 22px;
    font-size: 0.85rem;
  }

  /* Nav menu font on open drawer */
  .nav-link {
    font-size: 1.05rem;
  }
}

/* ---- Extra small (360px) ---- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.45rem;
  }
  .about-hero-title {
    font-size: 1.6rem;
  }
  .container {
    padding: 0 10px;
  }
  .stats-grid {
    padding: 0 10px;
  }
}

/* ---- Short / Landscape mobile screens ----
   A rigid 100vh hero on a landscape phone (often ~375-415px tall) leaves
   very little room for h1 + subtext + button, causing cramped or clipped
   content. Relax the height so the hero just fits its content instead. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: 90px 0 40px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero .subtext {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .about-hero-tagline {
    font-size: 0.95rem;
  }
}