/* ============================================================
   HS Vegetables - Main Stylesheet
   Author: Antigravity
   Version: 1.0.0
   Description: Complete styles for HS Vegetables website
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

/* ─── CSS Custom Properties / Design Tokens ────────────────── */
:root {
  /* Colors */
  --primary:       #2d7a2d;   /* deep green */
  --primary-light: #3ea03e;
  --primary-dark:  #1f5c1f;
  --accent:        #c0392b;   /* warm red */
  --accent-light:  #e74c3c;
  --accent-dark:   #962d22;
  --brown:         #8b6914;   /* light brown */
  --brown-light:   #c49a25;
  --cream:         #fdf6e3;   /* warm cream */
  --cream-dark:    #f5e6c0;
  --white:         #ffffff;
  --off-white:     #f9fbf7;
  --text-dark:     #1a2e1a;
  --text-mid:      #3d5c3d;
  --text-light:    #6b8f6b;
  --border:        #d4e8c2;
  --shadow-color:  rgba(45, 122, 45, 0.12);

  /* Typography */
  --font-body:     'Outfit', sans-serif;
  --font-heading:  'Playfair Display', serif;

  /* Spacing */
  --section-pad:   5rem 0;
  --container:     1200px;

  /* Radius */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:     0 2px 8px var(--shadow-color);
  --shadow-md:     0 6px 24px var(--shadow-color);
  --shadow-lg:     0 16px 48px rgba(45, 122, 45, 0.18);

  /* Transitions */
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll globally */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ─── Utility Classes ───────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section-alt {
  background-color: var(--off-white);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.section-cream {
  background-color: var(--cream);
}

/* Headings */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(45, 122, 45, 0.1);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: var(--white);
}

.section-dark .section-heading .label {
  background: rgba(255,255,255,0.15);
  color: var(--cream);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
  white-space: nowrap;    /* prevent button text breaking to new line */
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,122,45,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.35);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;   /* never let the card button be squashed */
}

/* Text helpers */
.text-center { text-align: center; }
.text-green   { color: var(--primary); }
.text-red     { color: var(--accent); }
.text-brown   { color: var(--brown); }

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin: 1rem auto;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green  { background: rgba(45,122,45,0.12); color: var(--primary-dark); }
.badge-red    { background: rgba(192,57,43,0.12); color: var(--accent-dark); }
.badge-brown  { background: rgba(139,105,20,0.12); color: var(--brown); }

/* ─── Page Loader ───────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.loader-logo span {
  color: var(--brown-light);
}

.loader-bar {
  width: 160px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--brown-light));
  border-radius: var(--radius-full);
  animation: loaderFill 1.2s ease forwards;
}

@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;        /* allow logo to shrink on small screens */
  flex: 1;             /* take available space but yield to hamburger */
  overflow: hidden;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;        /* allow text to truncate rather than overflow */
  overflow: hidden;
}

.nav-logo-text strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;        /* never wrap onto a second line */
  overflow: hidden;
  text-overflow: ellipsis;    /* graceful clip instead of overflow */
  max-width: 100%;
}

.nav-logo-text span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;        /* prevent tagline wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#navbar.scrolled .nav-logo-text strong { color: var(--primary-dark); }
#navbar.scrolled .nav-logo-text span   { color: var(--text-light); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--brown-light);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 1.8rem);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

#navbar.scrolled .nav-links a {
  color: var(--text-mid);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: rgba(45,122,45,0.08);
}

#navbar.scrolled .nav-links a::after {
  background: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

#navbar.scrolled .nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;   /* never let the hamburger be squeezed off-screen */
  margin-left: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition);
  transform-origin: center;
}

#navbar.scrolled .nav-hamburger span { background: var(--text-dark); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  width: 100%;          /* never wider than the viewport */
  box-sizing: border-box;
  left: 0;
  right: 0;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(45,122,45,0.07);
  color: var(--primary);
  border-left-color: var(--primary);
}

.nav-mobile .nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  text-align: center;
  margin-top: 0.5rem;
  border-left: none !important;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 40, 15, 0.82) 0%,
    rgba(25, 60, 25, 0.65) 50%,
    rgba(15, 40, 15, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  width: 100%;
  box-sizing: border-box;   /* padding never adds to width */
  overflow-x: hidden;       /* hero children cannot cause horizontal scroll */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease forwards;
  /* ── Overflow prevention (root cause fix) ── */
  max-width: 100%;          /* never wider than its container */
  min-width: 0;             /* allow flex shrinking */
  box-sizing: border-box;   /* padding counted inside max-width */
  flex-wrap: wrap;          /* text can wrap if letter-spacing makes it too wide */
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-title .highlight {
  color: var(--brown-light);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brown-light);
  border-radius: var(--radius-full);
  opacity: 0.6;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  width: 100%;            /* don't exceed parent on mobile */
  box-sizing: border-box;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.9s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  animation: fadeUp 0.9s ease 0.8s both;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: left;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat .num span {
  color: var(--brown-light);
}

.hero-stat .lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* ─── Products Section ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  flex-wrap: nowrap;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 0;      /* allow price to shrink and yield space to the button */
  flex: 1;           /* take remaining space without overflowing */
}

.product-price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
  display: block;    /* force / Bulk Price onto its own sub-line, not pushed sideways */
}

/* ─── Why Choose Us ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: rgba(45,122,45,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Trust / Stats Strip ───────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: var(--primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255,255,255,0.08);
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-num span {
  color: var(--brown-light);
}

.stat-lbl {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '🌿';
  position: absolute;
  top: -20px;
  right: 5%;
  font-size: 8rem;
  opacity: 0.07;
  transform: rotate(-20deg);
}

.cta-banner::after {
  content: '🌿';
  position: absolute;
  bottom: -20px;
  left: 5%;
  font-size: 8rem;
  opacity: 0.07;
  transform: rotate(160deg);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Gallery Grid ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,40,15,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 1;
}

/* ─── Services Cards ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}

.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon { transform: scale(1.15) rotate(5deg); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.service-list li::before {
  content: '✓';
  font-size: 0.75rem;
  background: rgba(45,122,45,0.15);
  color: var(--primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── About Page ────────────────────────────────────────────── */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-stack {
  position: relative;
  height: 480px;
}

.about-img-main {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -1.5rem;
  right: -1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge-stack {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-badge-stack .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge-stack .lbl {
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-text .label {
  display: inline-block;
  background: rgba(45,122,45,0.1);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.about-value .icon { font-size: 1.4rem; flex-shrink: 0; }

.about-value h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.about-value p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
}

/* Team / Owner Card */
.team-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.team-info .role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.team-info p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── Contact & Order Page ──────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: sticky;
  top: 6rem;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-info-card > p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  min-width: 0;       /* allow children to shrink */
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.contact-item-body p,
.contact-item-body a {
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0.95;
  line-height: 1.4;
  word-break: break-word;   /* prevent email / phone overflow */
  overflow-wrap: break-word;
  min-width: 0;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}

.social-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45,122,45,0.08);
}

.form-control:hover { border-color: var(--primary-light); }

.form-control::placeholder { color: #b0bfb0; }

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8f6b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(45,122,45,0.06);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(45,122,45,0.2);
  margin-top: 1rem;
}

.form-success.visible { display: block; }
.form-success .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.form-success h4 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 0.4rem; }
.form-success p { color: var(--text-light); font-size: 0.9rem; }

/* Order form extras */
.order-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--off-white);
  border: 2px solid var(--border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.qty-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.qty-input {
  width: 70px !important;
  text-align: center;
  flex-shrink: 0;
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px dashed var(--border);
  overflow: hidden;
  position: relative;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

.map-placeholder-inner {
  text-align: center;
}

.map-placeholder-inner .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.map-placeholder-inner h4 { color: var(--text-mid); font-size: 1rem; margin-bottom: 0.25rem; }
.map-placeholder-inner p { color: var(--text-light); font-size: 0.85rem; }

/* ─── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.4); }

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── WhatsApp Float Button ─────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.whatsapp-tooltip {
  background: var(--white);
  color: var(--text-dark);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-btn-circle {
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: waPulse 3s infinite;
  text-decoration: none;
  color: var(--white);
  font-size: 1.8rem;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn-circle:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

@keyframes waPulse {
  0%  { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 40px rgba(37,211,102,0.65), 0 0 0 12px rgba(37,211,102,0.1); }
  100%{ box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.85);
}

.footer-main {
  padding: 4rem 0 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.footer-logo-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-contact-item a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--primary-light); }

/* ─── Scroll to Top ─────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 490;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-stack {
    height: 360px;
    max-width: 500px;
  }

  /* Product card buttons – slightly smaller on tablet so they never overflow */
  .product-card-footer .btn,
  .product-card-footer .btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .product-price {
    font-size: 0.9rem;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-stats { gap: 1.5rem; }

  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-item + .stat-item::before {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    position: static;
  }

  .form-row { grid-template-columns: 1fr; }

  .about-values { grid-template-columns: 1fr; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner {
    padding: 3rem 2rem;
  }

  .about-img-accent { display: none; }
  .about-badge-stack { left: 0; top: 0.5rem; }
}

@media (max-width: 480px) {
  /* ── Hero badge: prevent overflow on 425px / 480px ── */
  .hero-badge {
    font-size: 0.72rem;       /* shrink text so letter-spacing doesn't bloat width */
    letter-spacing: 0.06em;  /* reduce from 0.1em – saves ~12px at 25 chars */
    padding: 0.35rem 0.875rem;
    gap: 0.375rem;
    max-width: 100%;
  }

  .hero-content {
    padding: 5.5rem 1.25rem 3rem; /* tighten horizontal padding on small screens */
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .stats-strip { grid-template-columns: 1fr; }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-btn-circle {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  #scroll-top {
    right: 1rem;
    bottom: 5rem;   /* sit above WhatsApp button */
  }
}

/* ═══════════════════════════════════════════════════════
   NAVBAR — MOBILE RESPONSIVE FIXES
   Targets: 768px → 320px  (desktop untouched)
   ═══════════════════════════════════════════════════════ */

/* ── 768px: switch to hamburger, tighten nav ── */
@media (max-width: 768px) {

  /* Core overflow guard for the entire navbar */
  #navbar {
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
  }

  /* Inner row: never overflow the viewport */
  .nav-inner {
    width: 100%;
    max-width: 100%;
    padding: 0.95rem 1.25rem;
    gap: 0;           /* let flex children control their own spacing */
    overflow: hidden;
  }

  /* Logo: take available space, shrink if needed, no overflow */
  .nav-logo {
    flex: 1 1 0%;       /* grow & shrink */
    min-width: 0;       /* critical — allows flex child to shrink below content size */
    max-width: calc(100% - 52px); /* reserve hamburger zone (button ~44px + margin) */
    overflow: hidden;
  }

  /* Logo icon: fixed size, never squishes */
  .nav-logo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* Logo text wrapper: clip rather than overflow */
  .nav-logo-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  /* Brand name: single line, ellipsis on tiny screens */
  .nav-logo-text strong {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }

  /* Tagline: hide on ≤768px to save horizontal space */
  .nav-logo-text span {
    display: none;
  }

  /* Hamburger: always visible, never squeezed */
  .nav-hamburger {
    display: flex;
    flex-shrink: 0;
    flex-grow: 0;
    margin-left: 0.75rem;
    padding: 5px;
  }

  /* Mobile drawer: clamp to viewport, no overflow */
  .nav-mobile {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0.875rem 1.25rem 1.5rem;
  }

  /* Mobile menu links: full-width tap targets */
  .nav-mobile a {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ── 480px / 425px: compact navbar ── */
@media (max-width: 480px) {

  .nav-inner {
    padding: 0.875rem 1rem;
  }

  .nav-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .nav-logo-text strong {
    font-size: 0.98rem;
  }

  .nav-hamburger {
    margin-left: 0.6rem;
  }

  .nav-mobile {
    padding: 0.75rem 1rem 1.25rem;
  }
}

/* ── 375px: small phones ── */
@media (max-width: 375px) {

  .nav-inner {
    padding: 0.8rem 0.875rem;
  }

  .nav-logo {
    gap: 0.5rem;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-logo-text strong {
    font-size: 0.9rem;
  }

  .nav-hamburger {
    margin-left: 0.5rem;
  }

  .nav-hamburger span {
    width: 22px;
  }

  .nav-mobile {
    padding: 0.75rem 0.875rem 1.25rem;
  }
}

/* ── 320px: minimum supported width ── */
@media (max-width: 320px) {

  .nav-inner {
    padding: 0.7rem 0.75rem;
  }

  .nav-logo {
    gap: 0.375rem;
  }

  .nav-logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .nav-logo-text strong {
    font-size: 0.82rem;
  }

  .nav-hamburger span {
    width: 20px;
  }

  .nav-mobile {
    padding: 0.6rem 0.75rem 1rem;
  }

  /* ── Hero badge: absolute minimum for 320px (272px content area) ── */
  .hero-badge {
    font-size: 0.68rem;
    letter-spacing: 0.04em;  /* nearly no extra spacing — saves ~8px */
    padding: 0.3rem 0.75rem;
    gap: 0.3rem;
    max-width: 100%;
  }

  .hero-badge .dot {
    width: 6px;
    height: 6px;
  }

  .hero-content {
    padding: 5rem 1rem 2.5rem; /* 1rem sides = 272px content on 320px screen */
  }

  .hero-title {
    font-size: clamp(1.75rem, 11vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE — MOBILE RESPONSIVE FIXES
   Targets: 768px · 480px · 425px · 375px · 320px
   ═══════════════════════════════════════════════════════ */

/* ── 768px: stack contact layout, fix card ── */
@media (max-width: 768px) {

  /* Contact grid → single column */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact info card — full-width, reduced padding */
  .contact-info-card {
    position: static;
    width: 100%;
    box-sizing: border-box;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  /* Force long email / phone text to wrap */
  .contact-item-body a,
  .contact-item-body p {
    font-size: 0.9rem;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  /* Contact icon: keep a sensible minimum */
  .contact-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }

  /* Form card — full-width */
  .form-card {
    width: 100%;
    box-sizing: border-box;
    padding: 1.75rem;
  }

  /* Quick-contact feature cards → single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Map address grid → single column */
  .map-placeholder {
    height: 260px;
  }

  /* Footer bottom links: wrap on mobile */
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* Prevent footer text being clipped */
  .footer-bottom p {
    text-align: center;
  }
}

/* ── 480px / 425px: smaller padding & font tweaks ── */
@media (max-width: 480px) {

  /* Global container: tighten horizontal padding on mobile.
     IMPORTANT: use explicit padding-left/right — NOT the shorthand
     'padding: 0 1rem' which would reset padding-top on elements that
     carry both .container AND .hero-content classes (index.html:87). */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile menu: tighter padding so it never exceeds viewport */
  .nav-mobile {
    padding: 0.75rem 1rem 1.25rem;
  }

  /* Page hero: less top padding (fits below fixed nav) */
  .page-hero {
    padding: 6rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  /* Contact info card */
  .contact-info-card {
    padding: 1.25rem;
  }

  .contact-info-card h3 {
    font-size: 1.3rem;
  }

  .contact-info-card > p {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  /* Contact items: tighter gap */
  .contact-item {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .contact-item-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }

  .contact-item-body h4 {
    font-size: 0.75rem;
  }

  .contact-item-body a,
  .contact-item-body p {
    font-size: 0.85rem;
  }

  /* Social buttons row */
  .contact-socials {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  /* Form card */
  .form-card {
    padding: 1.25rem;
  }

  .form-title {
    font-size: 1.4rem;
  }

  .form-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  /* WhatsApp float: pull away from edge so it never clips */
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-btn-circle {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  #scroll-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    right: 1rem;
    bottom: 4.5rem;
  }

  /* Footer: single-column, centered */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .footer-bottom p,
  .footer-bottom-links a {
    font-size: 0.78rem;
  }

  .footer-bottom-links {
    gap: 0.6rem;
  }

  /* CTA banner: tighter on mobile */
  .cta-banner {
    padding: 2.5rem 1.25rem;
  }

  /* Feature cards: full-width stack */
  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ── 375px: ultra-small phones ── */
@media (max-width: 375px) {

  /* (navbar handled in dedicated NAVBAR section above) */

  /* Contact info card: minimal padding */
  .contact-info-card {
    padding: 1rem 0.875rem;
  }

  .contact-info-card h3 {
    font-size: 1.15rem;
  }

  .contact-item-body a,
  .contact-item-body p {
    font-size: 0.8rem;
    word-break: break-all;
  }

  /* Form card */
  .form-card {
    padding: 1rem 0.875rem;
  }

  .form-title {
    font-size: 1.25rem;
  }

  /* Footer links: wrap tightly */
  .footer-bottom-links {
    gap: 0.4rem;
  }

  .footer-bottom-links a {
    font-size: 0.72rem;
  }

  /* Page hero heading */
  .page-hero h1 {
    font-size: clamp(1.4rem, 9vw, 2rem);
  }
}

/* ── 320px: smallest supported viewport ── */
@media (max-width: 320px) {

  /* (navbar handled in dedicated NAVBAR section above) */

  .contact-info-card {
    padding: 0.875rem;
    border-radius: var(--radius-md);
  }

  .contact-info-card h3 {
    font-size: 1.05rem;
  }

  .contact-item-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.9rem;
  }

  .form-card {
    padding: 0.875rem;
    border-radius: var(--radius-lg);
  }

  .form-title {
    font-size: 1.1rem;
  }

  .form-control {
    padding: 0.7rem 0.875rem;
    font-size: 0.88rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
  }

  .whatsapp-float {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .whatsapp-btn-circle {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  #scroll-top {
    width: 36px;
    height: 36px;
    right: 0.75rem;
    bottom: 4rem;
  }

  .page-hero h1 {
    font-size: 1.3rem;
  }

  .page-hero p {
    font-size: 0.88rem;
  }
}
