:root {
  /* Brand Colors */
  --primary: #1F5E3B;
  --primary-dark: #143e26;
  --accent: #B6E21D;
  --accent-blue: #2563EB;
  --text: #102015;
  --text-light: #4A5B50;
  --bg: #F6F8F7;
  --white: #FFFFFF;
  --border: #E2E8E5;
  --shadow: 0 4px 12px rgba(31, 94, 59, 0.08);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Font */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
}

p {
  color: var(--text-light);
}

.service-section {
  background: linear-gradient(rgba(30, 50, 80, 0.5), rgba(30, 50, 80, 0.5)), url('assets/7.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.service-section h2 {
  color: var(--white);
}

/* Service Cards Glassmorphism */
.service-section .card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-section .card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.service-section .card h3,
.service-section .card p {
  color: var(--white);
}

.service-section .icon-circle {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.section-padding.shop-background {
  background: linear-gradient(rgba(30, 50, 80, 0.5), rgba(30, 50, 80, 0.5)), url('assets/5.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding-top: 180px;
  /* Clear fixed header */
}

.section-padding.shop-background h2 {
  color: var(--white);
}

.section-padding.contact-background {
  background: linear-gradient(rgba(30, 50, 80, 0.5), rgba(30, 50, 80, 0.5)), url('assets/1.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding-top: 180px;
  /* Clear fixed header */
}

.section-padding.contact-background h1 {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--white);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.btn-icon:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(246, 248, 247, 0.60); /* Off-white with 60% opacity */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: var(--spacing-sm) 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-weight: 500;
  color: var(--white);
  /* Default white text for transparent header */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-links a {
  color: var(--text);
  /* Dark text on scrolled white header */
  text-shadow: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Inputs */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 94, 59, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .grid-2-col,
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr !important;
  }

  .flex.wrap-mobile {
    flex-wrap: wrap;
  }

  .hero-image {
    order: -1;
    margin-bottom: var(--spacing-md);
  }
}

/* Grids */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

/* Animation */
.hover-up {
  transition: transform 0.2s;
}

.hover-up:hover {
  transform: translateY(-5px);
}

/* Features */
.icon-circle {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--spacing-sm);
}

/* Steps */
.step {
  text-align: center;
  padding: var(--spacing-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 60px;
  }

  /* Space for sticky bar */
}

/* --- New Styles from Refactor --- */

/* Logo */
.logo-container {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
}

/* Badges */
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sections */
.section-padding {
  padding: var(--spacing-xl) 0;
}

.bg-white {
  background-color: var(--white);
}

.bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

/* Hero */
.hero-section {
  background: linear-gradient(to right, rgba(16, 32, 50, 0.9), rgba(16, 32, 50, 0.8)), url('assets/team.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: 200px; /* Added padding to clear the glass header */
}

.hero-section h1,
.hero-section .hero-sub,
.hero-section p {
  color: var(--white);
}

.hero-image-container {
  height: 400px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding-left: var(--spacing-md);
}

.hero-sub {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  opacity: 0.9;
}

.hero-content .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.hero-content .btn-secondary:hover {
  background-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
  border-color: var(--accent-blue);
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: var(--spacing-xl) 0 1rem 0;
}

.footer-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-text {
  color: #aaa;
}

.footer-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--bg);
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-logo-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Mobile Bar Links */
.mobile-bar-btn {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
}

.mobile-bar-primary {
  background: var(--primary);
  color: var(--white);
}

.mobile-bar-secondary {
  background: var(--white);
  color: var(--text);
  border-top: 1px solid var(--border);
}

/* Spacers */
.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* --- Shop Styles --- */

/* Filters */
.filter-scroll {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  height: 180px;
  background: #f0f4f2;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.product-cat {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.product-price {
  font-weight: 700;
  color: var(--text);
  margin-top: auto;
  /* Push to bottom of detail area */
  padding-top: var(--spacing-sm);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-btn {
  background: var(--white);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  padding: 0;
  font-weight: 600;
  pointer-events: none;
  /* simple read-only */
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-open .cart-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cart-open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  padding: var(--spacing-md);
  flex: 1;
  overflow-y: auto;
}

.cart-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-item {
  display: flex;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

/* --- Contact Page --- */

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .contact-layout {
    flex-direction: row;
    align-items: start;
  }

  .contact-sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
  }

  .contact-main {
    flex: 2;
  }
}

.contact-details-card {
  background: rgba(246, 248, 247, 0.40); /* Off-white with 40% opacity */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(31, 94, 59, 0.08);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  color: var(--text);
}

.contact-details-card h3 {
  color: var(--primary);
}

.contact-details-card p,
.contact-details-card strong {
  color: var(--text);
}

.map-container {
  height: 250px;
  background: #eee;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.form-section {
  background: rgba(246, 248, 247, 0.40); /* Off-white with 40% opacity */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(31, 94, 59, 0.08);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  scroll-margin-top: 120px;
  color: var(--text);
}

.form-section h2 {
  color: var(--primary);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* label color reverted */

.form-group {
  margin-bottom: var(--spacing-md);
}

/* Glass Inputs removed */

/* Contact page button overrides removed for visibility */

.checkbox-scan {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  padding: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--white);
  color: var(--text);
}

.checkbox-scan:hover {
  border-color: var(--primary);
  background: rgba(31, 94, 59, 0.05);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 600px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Burst Text Animation */
.hero-burst-text {
  min-height: 1.5em;
  /* Prevent layout shift */
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  /* allow wrap on small screens if needed, mostly inline */
}

.burst-letter {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5);
  filter: blur(4px);
  animation: burstIn 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes burstIn {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  /* Hidden initially */
}

.reveal-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: revealIn 0.3s forwards ease-out;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Success Animation */
@keyframes btnSuccessPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  50% { transform: scale(0.95); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.btn-success-anim {
  animation: btnSuccessPulse 0.4s ease-out !important;
  background-color: var(--accent-blue) !important;
  color: var(--white) !important;
  border-color: var(--accent-blue) !important;
}

/* Gallery Carousel */
.gallery-section {
  background: var(--white);
}

.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(31, 94, 59, 0.14);
}

.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(31, 94, 59, 0.35);
}

.gallery-btn-prev { left: 1.25rem; }
.gallery-btn-next { right: 1.25rem; }

.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-md);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.gallery-dot.active {
  background: var(--primary);
  width: 28px;
}

@media (max-width: 768px) {
  .gallery-slide {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .gallery-btn {
    width: 36px;
    height: 36px;
  }

  .gallery-btn-prev { left: 0.75rem; }
  .gallery-btn-next { right: 0.75rem; }
}