/* ============================================
   RAINTEX - Modern Design System
   ============================================ */

/* Google Fonts loaded via <link> in HTML for non-blocking load */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #006b3c;
  --color-primary-light: #008c4e;
  --color-primary-dark: #004d2b;
  --color-accent: #00b3b3;
  --color-accent-light: #00d4d4;
  --color-accent-dark: #008f8f;
  --color-white: #ffffff;
  --color-off-white: #f8faf9;
  --color-gray-50: #f0f4f2;
  --color-gray-100: #e2e8e5;
  --color-gray-200: #c5d1cb;
  --color-gray-300: #a8b9b0;
  --color-gray-400: #7a8f83;
  --color-gray-500: #5a6e62;
  --color-gray-600: #3d4d44;
  --color-gray-700: #2a3630;
  --color-gray-800: #1a2420;
  --color-gray-900: #0d1210;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-gray-700);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--color-off-white);
  text-shadow: var(--color-white);
}

.blur {
  /* backdrop-filter: blur(30px); */
    background-color: rgb(255 255 255 / 100%);
  backdrop-filter: blur(10px);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-100);
  text-shadow: 2px 2px 2px black;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  /* color: var(--color-gray-100); */
  text-shadow: #000000af 3px 1px 1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-off-white);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container,
.products-wrapper {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 107, 60, 0.08);
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100vw;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-gray-50);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--color-primary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 107, 60, 0.3);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-700);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;

}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-content .section-label {
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 24px 0 20px;
  line-height: 1.1;
  text-shadow: 1px 1px 2px black;
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  text-shadow:  #000000 1px 0 10px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0, 179, 179, 0.08);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-accent {
  background: var(--color-primary);
  color: var(--color-white);
  margin-top: 30px;
}

.btn-accent:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 107, 60, 0.3);
}


.filter-toggle {
  display: none;
}

/* --- Sections --- */


.section {
  padding: 10px 0;
  position: relative;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            background-attachment: fixed;
            background-image:  linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0)), url(./images/background_bush.svg);
            background-position: center bottom 20%;
            background-size: cover;
            background-repeat: no-repeat;
            width: 100%;
            padding: 40px 0px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-alt {
  background: var(--color-off-white);
  padding: 20px 0;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: var(--transition-base);
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gray-800);
}

.card p {
  color: var(--color-gray-900);
  line-height: 1.7;
  font-size: 0.95rem;
}

.glass-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 20px;
  padding: 30px 30px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);

  max-width: 700px;
  margin: 0 auto;
}

.glass-box:hover {
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  transform: translateY(-3px);
  transition: 0.3s;
}

.glass-box h2 {
  color: #008c4e;
  /* text-shadow:#000000; */
  font-weight: 600;
  margin-bottom: 12px;
}

.glass-box p {
  color: #f0f4f2;
  line-height: 1.6;
  text-shadow: 3px 1px 1px black;
}


/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Feature Rows (alternating image+text) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reversed {
  direction: rtl;
}

.feature-row.reversed > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.feature-row:hover .feature-image img {
  transform: scale(1.03);
}

.feature-text h2 {
  font-family: var(--font-display);
  text-shadow: 2px 2px 2px black;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--color-gray-100);
  text-shadow: 2px 2px 2px black;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  /* text-shadow: 1px 1px 2px black; */
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-gray-900);
  text-shadow: 1px 1x 5px black;
  font-weight: 500;
}

/* --- section divider ---*/

.section-divider {
  height: 30px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.4)
  );
}

.glass-box-wrapper {
  margin-bottom: 40px; /* adjust the space as needed */
}

/* --- Products --- */

.products,
.products-wrapper {
  min-width: 0;
}

.products-wrapper {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;

  padding: 0 20px;
}

.products-section {
  padding: 100px 0;
  position: relative;

            display: flex;
            align-items: flex-start;
            gap: 30px;
            
            background-attachment: fixed;
            background-image:  linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0)), url(./images/background_bush.svg);
            background-position: center bottom 20%;
            background-size: cover;
            background-repeat: no-repeat;
            width: 100%;
            padding: 40px 20px;

          /* display: grid; */
  grid-template-columns: 260px 1fr;
  gap: 32px;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 40px 20px;
}

.category-box {
  position: sticky;
  top: 100px;

  height: fit-content;

  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;

  border: 1px solid var(--color-gray-100);
  box-shadow: var(--shadow-md);
}

.category-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-box li {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-gray-900);
    transition: all 0.2s ease;
}

/* hover */
.category-box li:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

/* active */
.category-box li.active {
  background: rgba(0, 107, 60, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.category h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  margin-bottom: 16px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.products .card {
    width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.products .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.products .card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.products .card p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.price {
  font-weight: 700;
  color: var(--color-primary);
}

.product {
  margin: 0;
  padding: 0;
}


.product-category{
    display: none;
}

.product-category.active {
  display: grid;
  opacity: 1;
}

.footer-links li {
  cursor: pointer;
  padding: 8px;
  transition: 0.2s;
}

.footer-links li:hover {
  color: var(--color-primary);
}

.footer-links li.active {
  font-weight: bold;
  color: var(--color-primary);
}


/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
  padding: 40px;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: var(--transition-slow);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.contact-card:not(:last-child) {
  border-bottom: 1px solid var(--color-gray-100);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-card-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 4px;
}

.contact-card-text p {
  font-size: 0.9rem;
  color: var(--color-gray-500);
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-gray-700);
  background: var(--color-off-white);
  border: 1.5px solid var(--color-gray-100);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
  /* -webkit-appearance: none; */
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 107, 60, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Footer --- */
.footer {
  background: var(--color-gray-800);
  color: var(--color-gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-gray-400);
  max-width: 320px;
}

.footer-brand img {
  height: 36px;
  width: auto;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-200);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

.filter-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;

  padding: 0;
  color: var(--color-gray-700);

  display: none; /* hidden on desktop */
}

.copy-phone {
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.footer-links .copy-phone {
  white-space: nowrap;
  display: inline-block;
}

.footer-links li {
  margin: 5px 10px;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }

  .filter-close {
    display: block;
  }

  .filter-close:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

  .products-section {
    grid-template-columns: 1fr;
  }

    .filter-toggle {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;

    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
  }

  /* hide by default */
  .category-box {
    display: none;
      transition: all 0.3s ease;
  }

  .category-box.open {
    display: block;
  }

  .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .category-header h3 {
  margin: 0;
}

  .filter-close {
  margin-left: auto; /* extra safety */
}

 .products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .category-box {
    position: relative;
    top: 0;
    width: 100%;
  }

  .category-box ul {
    display: flex;
    flex-direction: column; /* 👈 IMPORTANT */
    gap: 6px;
  }

  .category-box li {
    white-space: nowrap;
  }

  .products {
    width: 100%;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; /* equal spacing in all directions */
    padding: 0;
  }

  .footer-links li {
    flex: 0 1 auto;        /* prevent stretching */
    text-align: center;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.reversed {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  

  
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

    .filter-close {
    display: block;
  }

  .hero {
    min-height: 80vh;
    padding: calc(var(--nav-height) + 20px) 20px 60px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .category-box {
    width: 100%;
    padding: 16px;
      transition: all 0.3s ease;
  }

  .category-box ul {
    display: flex;
    flex-direction: column; /* 👈 IMPORTANT */
    gap: 6px;
  }

  .category-box li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .products {
    width: 100%;
    grid-template-columns: repeat(2, 1fr); /* clean 2-column mobile */
    gap: 12px;
  }

  /* SHOW BUTTON */
  .filter-toggle {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;

    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
  }

  /* SIDEBAR AS DRAWER */
  .category-box {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;

    background: white;
    z-index: 1001;

    padding: 20px;
    box-shadow: var(--shadow-xl);

    transition: var(--transition-base);
  }

  .category-box.open {
    left: 0;
  }

  /* HEADER */
  .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .filter-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
  }

  /* OVERLAY */
  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);

    opacity: 0;
    pointer-events: none;

    transition: var(--transition-base);
    z-index: 1000;
  }

  .filter-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

}

/* 
 overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
