/* Design System Variables - Following Facebook/Google Standards */
:root {
  /* Primary Brand Colors */
  --color-primary: #8b4513;
  --color-primary-hover: #a0522d;
  --color-primary-light: #8b6a55;

  /* Neutral Colors */
  --color-text-primary: #2f2f2f;
  --color-text-secondary: #333333;
  --color-text-muted: #666666;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-bg-lighter: #fafafa;
  --color-bg-lightest: #fbfaf9;
  --color-border-light: #eeeeee;
  --color-border-lighter: #d8cfc8;

  /* Semantic Colors */
  --color-success: #90ee90;
  --color-success-dark: #2d5016;
  --color-success-light: #e8f5e9;
  --color-warning: #fff5ea;
  --color-warning-border: #d6a36c;

  /* Overlay Colors */
  --overlay-dark: rgb(0 0 0 / 75%);
  --overlay-medium: rgb(0 0 0 / 60%);
  --overlay-light: rgb(0 0 0 / 40%);
  --overlay-lighter: rgb(0 0 0 / 28%);
  --overlay-lightest: rgb(0 0 0 / 20%);
  --overlay-gradient-start: rgb(14 18 20 / 72%);
  --overlay-gradient-mid: rgb(14 18 20 / 45%);
  --overlay-gradient-end: rgb(14 18 20 / 85%);

  /* Floating Action Colors */
  --color-phone: #4a90e2;
  --color-phone-hover: #3a7bc8;
  --color-email: #d4a574;
  --color-email-hover: #c8965a;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20ba5a;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-accent: Quicksand, Manrope, system-ui, sans-serif;
  --font-hand: Kalam, 'Comic Sans MS', cursive;

  /* Font Sizes */
  --font-size-h1: clamp(2.6rem, 5.5vw, 4.8rem);
  --font-size-h2: clamp(2.8rem, 5vw, 3.6rem);
  --font-size-h3: clamp(1.8rem, 3vw, 2.4rem);
  --font-size-h4: clamp(1.4rem, 2vw, 1.8rem);
  --font-size-body-lg: 1.4rem;
  --font-size-body: 1.15rem;
  --font-size-body-sm: 0.95rem;
  --font-size-eyebrow: 0.82rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  --spacing-section: 6rem;
  --spacing-section-lg: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgb(0 0 0 / 15%);
  --shadow-md: 0 10px 24px rgb(0 0 0 / 15%);
  --shadow-lg: 0 20px 60px rgb(0 0 0 / 40%);
  --shadow-hover: 0 12px 28px rgb(0 0 0 / 20%);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Progressive Image Loading Styles */
.progressive-image,
.progressive-bg {
  opacity: 0.8;
  will-change: filter, opacity;
}

.progressive-image.progressive-loaded,
.progressive-bg.progressive-loaded {
  opacity: 1;
  filter: none !important;
}

/* Prevent phone number detection on mobile */
.no-phone {
  -webkit-tap-highlight-color: transparent;
}

a[href^='tel:'] {
  -webkit-tap-highlight-color: rgb(139 69 19 / 30%);
}

html {
  scroll-behavior: smooth;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-bg-white);
  padding: var(--spacing-xs) var(--spacing-md);
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  font-family: var(--font-accent);
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

/* Primary Headings */
h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacing-md);
  line-height: 1.05;
}

/* Section Headings */
h2 {
  font-size: var(--font-size-h2);
  margin-bottom: 1.25rem;
}

/* Sub-section Headings */
h3 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

/* Component Headings */
h4 {
  font-size: var(--font-size-h4);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

/* Text Styles */
p {
  font-size: var(--font-size-body);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  color: inherit;
}

/* Accent font usage (whimsical layer) */
.typo-accent,
.btn-primary,
.btn-secondary,
.btn-outline,
.hero-subtitle,
.nav-link {
  font-family: var(--font-accent);
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* Optional hand-drawn Indian craft accent — use sparingly */
.typo-hand {
  font-family: var(--font-hand);
}

/* Text Variants */
.text-lg {
  font-size: var(--font-size-body-lg);
  line-height: 1.5;
  font-weight: 300;
}

.text-md {
  font-size: var(--font-size-body);
  line-height: 1.6;
  font-weight: 400;
}

.text-sm {
  font-size: var(--font-size-body-sm);
  line-height: 1.5;
  font-weight: 400;
}

/* Section eyebrow (small uppercase intro lines) */
.section-eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--font-size-eyebrow);
  color: var(--color-primary-light);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Section spacing */
.section-spacing {
  padding: 8rem 0;
}

.section-spacing-sm {
  padding: 6rem 0;
}

/* Text colors for dark/light backgrounds */
.text-white {
  color: var(--color-bg-white);
}

.text-white-90 {
  color: rgb(255 255 255 / 90%);
}

.text-dark {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px; /* friendlier pill */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-outline:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
}

/* Translucent button variant for image backgrounds */
.btn-translucent,
.btn-secondary.btn-translucent {
  background: rgb(0 0 0 / 45%) !important; /* More visible than overlay-lighter (28%) */
  color: var(--color-bg-white) !important;
  border-color: rgb(255 255 255 / 90%) !important;
  text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}

.btn-translucent:hover,
.btn-secondary.btn-translucent:hover {
  background: rgb(0 0 0 / 55%) !important; /* Darker on hover for better contrast */
  color: var(--color-bg-white) !important;
  border-color: var(--color-bg-white) !important;
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}

/* Quality section button matches Values section styling */
.quality-section .btn-translucent,
.quality-section .btn-secondary.btn-translucent {
  /* Use same styling as Values section - no overrides needed */
}

/* ============================================
   Card Component
   ============================================ */
.card {
  background: var(--color-bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.card--translucent {
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  backdrop-filter: blur(10px);
}

/* ============================================
   Navigation Header - Rewritten from Scratch
   ============================================ */

/* Base Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--color-bg-lightest);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px rgb(0 0 0 / 3%);
  opacity: 1;

  /* Smooth transitions for all properties */
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* Navbar Container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem; /* Reduced from 1.25rem for more compact header */
  max-width: 1320px;
  margin: 0 auto;
  transition: padding var(--transition-normal);
}

/* Nav Brand Container */
.nav-brand {
  display: flex;
  align-items: center;
}

/* Logo Link */
.logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0; /* Remove extra space below image */
  vertical-align: middle;
}

/* Logo Image - Desktop (Full Size) */
.logo-image {
  display: block;
  height: auto;
  width: auto;
  max-width: 240px;
  max-height: 84px;
  object-fit: contain;
  margin-bottom: 0;
  vertical-align: middle;
  transition:
    max-width var(--transition-normal),
    max-height var(--transition-normal),
    margin-bottom var(--transition-normal);
}

/* ============================================
   Hidden State - Minimize to Zero
   ============================================ */

.navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   Compact State - Minimized Header (for future use)
   ============================================ */

.navbar.compact {
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}

.navbar.compact .nav-container {
  padding: 0.5rem 2rem; /* Reduced vertical padding for compact state */
}

.navbar.compact .logo-image {
  max-width: 180px;
  max-height: 64px;
  margin-bottom: 0;
}

/* ============================================
   Navigation Menu
   ============================================ */

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: gap var(--transition-normal);
}

.navbar.compact .nav-list {
  gap: 2rem;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
  position: relative;
  font-size: 1.05rem; /* slight increase for balance */
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  line-height: 1.3;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown menu for Our Growers */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.dropdown-arrow {
  transition: transform var(--transition-normal);
  display: block;
  margin-top: 0; /* nudge into vertical alignment with text */
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition:
    opacity var(--transition-normal),
    visibility var(--transition-normal),
    transform var(--transition-normal);
  z-index: 1001;
  pointer-events: none;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu,
.nav-item-dropdown .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Create hover bridge between link and dropdown */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
  z-index: 1002;
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-bg-white);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);

  /* Don't transition transform to avoid position shift */
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgb(0 0 0 / 20%);

  /* Transform is handled by positioning, don't override it here */
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary); /* Dark brown matching page style */
  transition:
    color var(--transition-normal),
    transform var(--transition-normal);
}

.nav-toggle:hover .nav-toggle-icon {
  color: var(--color-bg-white); /* White icon on brown background when hovered */
}

.nav-toggle.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle.active .nav-toggle-icon {
  color: var(--color-bg-white); /* White icon when menu is active */
  transform: rotate(180deg); /* Rotate chevron when menu is open */
}

/* Hero Section with Background Image */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
  filter: none !important;
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(139 69 19 / 35%) 0%,
    rgb(160 82 45 / 28%) 50%,
    rgb(139 69 19 / 45%) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 2rem;
  color: white;
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
  letter-spacing: -0.03em; /* tighter for large display text */
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgb(255 255 255 / 95%);
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
  font-weight: 300;
  line-height: 1.5;
}

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

/* Scroll indicators */
.scroll-indicator,
.section-arrow {
  --chev-size: 26px;

  width: var(--chev-size);
  height: var(--chev-size);
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 18%);
  border: 1.5px solid rgb(255 255 255 / 60%);
  box-shadow: 0 4px 10px rgb(0 0 0 / 8%);
}

.scroll-indicator::before,
.section-arrow::before,
.scroll-indicator::after {
  content: '⌄'; /* down chevron */
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  position: absolute;
  animation: chev-bounce 1.6s infinite ease-in-out;
}

.scroll-indicator::after {
  top: 6px;
  opacity: 0.8;
  animation-delay: 0.2s;
}

.scroll-indicator::before {
  top: 2px;
}

/* Section arrow sits at bottom center of sections on light/dark backgrounds */
.section-arrow {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 20%);
  border-color: rgb(255 255 255 / 70%);
}

.values-section .section-arrow,
.origin-section .section-arrow {
  border-color: rgb(255 255 255 / 70%);
}

.quality-section .section-arrow,
.team .section-arrow {
  background: rgb(0 0 0 / 4%);
  border-color: rgb(0 0 0 / 20%);
}

.quality-section .section-arrow::before,
.team .section-arrow::before {
  color: var(--color-primary);
}

/* Make section arrows simple chevrons (no circular background) */
.section-arrow {
  width: var(--chev-size);
  height: auto;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-block;
  padding: 0;
}

.section-arrow::before {
  color: var(--color-primary);
  font-size: 18px;
  top: 0;
  position: relative;
  animation: chev-bounce 1.6s infinite ease-in-out;
}

@keyframes chev-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }

  50% {
    transform: translateY(4px);
    opacity: 0.65;
  }
}

/* About Section with Background */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/pages/home/about-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(139 69 19 / 35%) 0%,
    rgb(160 82 45 / 28%) 50%,
    rgb(139 69 19 / 45%) 100%
  );
  z-index: 2;
}

.about-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.about-text h2 {
  color: white;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.about-text p {
  color: rgb(255 255 255 / 95%);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
  line-height: 1.5;
}

/* Values Section with Background */
.values-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow: hidden;
}

.values-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/pages/home/values-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.values-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgb(14 18 20 / 72%) 0%,
    rgb(14 18 20 / 45%) 35%,
    rgb(14 18 20 / 85%) 100%
  );
  z-index: 2;
}

.values-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.values-text h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.values-text p {
  color: rgb(255 255 255 / 95%);
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 38ch;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  /* This class is now primarily for scoping children styles */
}

.value-item h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

.value-item p {
  color: rgb(255 255 255 / 92%);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

/* Origin Section with Background */
.origin-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow: hidden;
}

.origin-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/pages/home/origin-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.origin-bg-naga {
  background-image: url('/assets/images/pages/nagaland/naga.jpg');
}

/* Our Growers Carousel */

/* Our Growers - Simple */
.growers-simple {
  position: relative;
  padding: 6rem 0;
  background: #ffffff;
}

.growers-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.growers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.grower-card {
  text-align: center;
}

.grower-thumb {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  cursor: zoom-in;
  margin-bottom: 1rem;
}

.grower-card h3 {
  margin-bottom: 0.5rem;
}

.grower-card p {
  margin-bottom: 1rem;
}

.grower-cta {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 0.5rem;
  transition:
    color var(--transition-normal),
    transform var(--transition-fast);
  font-family: var(--font-accent);
}

.grower-cta:hover {
  color: var(--color-primary-hover);
  transform: translateX(4px);
}

.grower-cta:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.img-modal {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 75%);
  display: grid;
  place-items: center;
  z-index: 1200;
}

.img-modal[hidden] {
  display: none;
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgb(255 255 255 / 90%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 44px;
  text-align: center;
}

/* Fullscreen modal content: image as background and overlayed text */
.img-modal-content {
  /* Centered card that takes ~70% of viewport on desktop, responsive on small screens */
  width: 70vw;
  height: 70vh;
  max-width: 1100px;
  max-height: 780px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end; /* text sits near bottom */
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 30px 80px rgb(0 0 0 / 60%);
  transform: scale(0.98);
  opacity: 0;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.img-modal.open .img-modal-content {
  transform: scale(1);
  opacity: 1;
}

.img-modal-content img {
  display: none;
}

.img-modal-info {
  width: 100%;
  max-width: 980px;
  margin: 0 20px 32px;
  background: linear-gradient(to top, rgb(0 0 0 / 64%), rgb(0 0 0 / 28%));
  color: #ffffff;
  padding: 28px 30px;
  border-radius: 10px;
}

.img-modal-info h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #ffffff;
}

.img-modal-info p {
  margin: 0 0 16px;
  color: rgb(255 255 255 / 95%);
  line-height: 1.7;
  font-size: 1.05rem;
}

.img-modal-info p:last-child {
  margin-bottom: 0;
}

.img-modal-info #img-modal-desc {
  display: none; /* Hide description, only show title */
}

.img-modal-info #img-modal-desc p {
  margin: 0 0 16px;
  color: rgb(255 255 255 / 95%);
  line-height: 1.7;
  font-size: 1.05rem;
}

.img-modal-info #img-modal-desc p:last-child {
  margin-bottom: 0;
}

/* Scrollbar styling for modal description */
.img-modal-info #img-modal-desc::-webkit-scrollbar {
  width: 8px;
}

.img-modal-info #img-modal-desc::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 20%);
  border-radius: 4px;
}

.img-modal-info #img-modal-desc::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 30%);
  border-radius: 4px;
}

.img-modal-info #img-modal-desc::-webkit-scrollbar-thumb:hover {
  background: rgb(255 255 255 / 40%);
}

@media (max-width: 900px) {
  .img-modal-content {
    width: 94vw;
    height: 64vh;
    border-radius: 10px;
  }

  .img-modal-info {
    margin: 0 12px 18px;
    padding: 18px;
  }

  .img-modal-info h3 {
    font-size: 1.25rem;
  }

  .img-modal-info #img-modal-desc {
    max-height: 50vh;
  }

  .img-modal-info #img-modal-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
}

/* Translucent panel used for captions and contact blocks over imagery */
.translucent-panel {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 1.5rem;
  padding: 22px 28px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgb(14 18 20 / 18%) 0%, rgb(14 18 20 / 12%) 100%);
  border: 1px solid rgb(255 255 255 / 16%);
  box-shadow: 0 18px 36px rgb(6 8 10 / 15%);
  backdrop-filter: blur(12px) saturate(1.1);
}

.translucent-panel h2 {
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.translucent-panel p {
  color: rgb(255 255 255 / 95%);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.translucent-panel .contact-list li {
  color: rgb(255 255 255 / 95%);
}

.translucent-panel .contact-list a {
  color: #ffe6cc;
}

/* Quality-specific tweaks */
.quality-panel {
  text-align: center;
}

.quality-panel h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

/* Contact-specific tweaks */
.contact-panel {
  text-align: left;
}

.contact-panel > p {
  text-align: center;
}

@media (max-width: 900px) {
  .img-modal-content {
    width: 94vw;
    height: 64vh;
    border-radius: 10px;
  }

  .img-modal-info {
    margin: 0 12px 18px;
    padding: 18px;
  }

  .img-modal-info h3 {
    font-size: 1.25rem;
  }

  .img-modal-info #img-modal-desc {
    max-height: 50vh;
  }

  .img-modal-info #img-modal-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  .growers-grid {
    grid-template-columns: 1fr;
  }

  .grower-thumb {
    height: 200px;
  }
}

.origin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(139 69 19 / 35%) 0%,
    rgb(160 82 45 / 28%) 50%,
    rgb(139 69 19 / 45%) 100%
  );
  z-index: 2;
}

.origin-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 1000px;
  margin: 0 auto;
}

.origin-text h2 {
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.origin-text p {
  color: rgb(255 255 255 / 92%);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

.origin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  background: rgb(255 255 255 / 10%);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 20%);
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.stat-item p {
  color: rgb(255 255 255 / 92%);
  font-size: 1.05rem;
  margin: 0;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

/* Quality Section */
.quality-section {
  padding: 8rem 0;
  position: relative;
  text-align: center;
  background: url('/assets/images/pages/home/quality.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.quality-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(14 18 20 / 72%) 0%,
    rgb(14 18 20 / 45%) 35%,
    rgb(14 18 20 / 85%) 100%
  );
  pointer-events: none;
}

.quality-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quality-content h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}

.quality-content p {
  color: rgb(255 255 255 / 95%);
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 3.5rem;
  max-width: 38ch;
  font-weight: 300;
  text-align: center;
}

.certifications {
  display: block;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Certification logo cards */
.cert-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  padding: 0 1rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 170px;
}

.cert-card.upcoming {
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  backdrop-filter: blur(10px);
  justify-content: center;
}

.cert-logo-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cert-logo-wrapper .cert-logo {
  margin: 0;
}

.cert-logo {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 0 0.5rem;

  /* make logos slightly more vivid */
  filter: saturate(1.12) contrast(1.06);
}

.cert-status {
  display: inline-block;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-warning-border);
  color: var(--color-primary);
  background: var(--color-warning);
  margin-top: auto; /* push to bottom for alignment across cards */
}

.cert-status.applied::before {
  content: '';
}

.cert-status.issued {
  border: 1px solid var(--color-success);
  color: var(--color-success-dark);
  background: var(--color-success-light);
}

.cert-status.issued::before {
  content: '';
}

.cert-more {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.1rem;
}

.cert-upcoming-list {
  color: #7a6d63;
  font-size: 0.95rem;
  text-align: center;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background-color: var(--color-bg-lighter);
}

.faq-section h2 {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
}

.faq-item h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

.testimonials-section h2 {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.testimonial-item {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
}

.testimonial-item p {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-item h5 {
  color: var(--color-primary);
  font-weight: 600;
  margin: 0;
}

/* Team Section */
.sourcing-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow: hidden;
}

.sourcing-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/pages/coorg/coorg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.sourcing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(139 69 19 / 35%) 0%,
    rgb(160 82 45 / 28%) 50%,
    rgb(139 69 19 / 45%) 100%
  );
  z-index: 2;
}

.sourcing-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  margin: 0 auto;
}

.sourcing-content h2 {
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.sourcing-content p {
  color: rgb(255 255 255 / 95%);
  font-size: 1.15rem;
}

.team {
  padding: 8rem 0;
  position: relative;
  background: url('/assets/images/pages/home/origin-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(14 18 20 / 72%) 0%,
    rgb(14 18 20 / 45%) 35%,
    rgb(14 18 20 / 85%) 100%
  );
  pointer-events: none;
}

.team .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 0 0 4px rgb(255 255 255 / 90%),
    0 8px 24px rgb(0 0 0 / 25%);
}

.team-member h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

.team-member .role,
.team-member .role a {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 30%);
  transition: border-color 0.2s ease;
}

.team-member .role a:hover {
  border-color: #ffffff;
}

.linkedin-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0.9;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.team-member .role a:hover .linkedin-icon {
  opacity: 1;
  transform: scale(1.1);
}

.team-member .blurb {
  color: #ffffff;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgb(0 0 0 / 30%);
}

/* Contact Section */
.contact-section {
  position: relative;
  padding: 8rem 0;
  color: white;
  background: url('/assets/images/pages/home/contact.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(14 18 20 / 75%) 0%,
    rgb(14 18 20 / 55%) 35%,
    rgb(14 18 20 / 88%) 100%
  );
}

.contact-hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.contact-map {
  width: 100%;
  height: 240px; /* Reduced to 60% of original 400px */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  background: rgb(255 255 255 / 10%);
  position: relative;
  z-index: 10;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* Ensure Leaflet controls and popups are visible */
#map .leaflet-container {
  z-index: 1;
}

#map .leaflet-control-container {
  z-index: 1000;
}

#map .leaflet-popup {
  z-index: 1001;
}

#map .leaflet-marker-pane {
  z-index: 600 !important;
}

#map .leaflet-shadow-pane {
  z-index: 500 !important;
}

#map .leaflet-overlay-pane {
  z-index: 400 !important;
}

/* Map pin marker styling */
.map-pin-marker {
  z-index: 1000 !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
}

.map-pin-marker > div {
  z-index: 1000 !important;
  position: relative !important;
}

/* Ensure Leaflet marker pane is visible */
.leaflet-marker-pane {
  z-index: 600 !important;
}

.leaflet-marker-pane img,
.leaflet-marker-pane svg {
  z-index: 1000 !important;
}

.contact-hero h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 8px rgb(0 0 0 / 40%);
}

.contact-hero p {
  color: rgb(255 255 255 / 98%);
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 3.5rem;
  font-weight: 300;
  max-width: 38ch;
  text-align: center;
  text-shadow: 0 1px 4px rgb(0 0 0 / 30%);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
}

.contact-item-with-icon {
  color: rgb(255 255 255 / 98%);
  font-size: 1.2rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  text-align: left;
  text-shadow: 0 1px 3px rgb(0 0 0 / 30%);
  margin: 0;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-icon-phone {
  background: var(--color-phone);
}

.contact-icon-email {
  background: var(--color-email);
}

.contact-icon-location {
  background: var(--color-primary);
}

.contact-icon {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 40%);
  transition: border-color 0.2s ease;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact-text a:hover {
  border-color: #ffffff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 40%);
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  margin-top: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

.social-link-whatsapp {
  background: #25d366; /* WhatsApp green */
}

.social-link-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 30%);
}

.social-link-linkedin {
  background: #0077b5; /* LinkedIn blue */
}

.social-link-linkedin:hover {
  background: #006399;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 30%);
}

.social-link-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 30%);
}

.social-icon {
  width: 24px;
  height: 24px;
  opacity: 0.95;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.social-link:hover .social-icon {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .contact-hero {
    text-align: center;
  }

  .contact-wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  .social-links {
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }
}

/* Footer */
.footer {
  /* match the brown used by floating contact */
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem 2.5rem;
  margin-bottom: 2.25rem;
  align-items: start;
}

.footer-section h4 {
  color: var(--color-bg-white);
  margin-bottom: 0.9rem;
  font-size: 1.06rem;
  letter-spacing: 0.06em; /* subtle editorial touch */
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
  font-size: 0.98rem;
}

.footer-section ul li a {
  color: rgb(255 255 255 / 90%);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-section:last-child ul li a {
  font-weight: 600;
}

.footer-section:last-child ul li {
  color: rgb(255 255 255 / 95%);
}

.footer-section:last-child ul li:nth-child(3) {
  line-height: 1.7;
}

.footer-section ul li a:hover {
  color: rgb(255 255 255 / 100%);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgb(255 255 255 / 90%);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
}

.footer-company-ids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-separator {
  display: inline;
}

.footer-cin,
.footer-gstin,
.footer-fssai {
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-separator {
    display: none;
  }

  .footer-company-ids {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Floating Actions Container - Vertical Stack */
.floating-actions {
  position: fixed;
  bottom: 24px; /* Start at bottom right when page first loads */
  right: 20px; /* Aligned with hamburger icon position */
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Equal spacing between all buttons */
  align-items: flex-end;
  justify-content: flex-end;
  transition: bottom 0.3s ease; /* Smooth transition when moving up */
}

/* Move up when back-to-top button is visible */
.back-to-top-active,
body.back-to-top-visible .floating-actions {
  bottom: 84px !important; /* Move up: 24px (button bottom) + 48px (button height) + 12px (gap) = 84px */
}

.navbar.compact ~ .floating-actions {
  bottom: 24px; /* Start at bottom */
}

.navbar.hidden ~ .floating-actions {
  bottom: 24px; /* Start at bottom */
}

/* Floating Phone badge - circular button with expand animation */
.floating-contact {
  background: #4a90e2; /* Vibrant blue */
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 24px rgb(0 0 0 / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.floating-contact:hover {
  background: #3a7bc8; /* Slightly darker blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
}

.floating-contact.expanded {
  width: auto;
  padding: 12px 22px;
  border-radius: 999px;
  justify-content: flex-start;
}

.floating-contact .phone-icon {
  color: #ffffff;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.floating-contact.expanded .phone-icon {
  margin-right: 8px;
}

.floating-contact .phone-number-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.3s ease 0.1s,
    width 0s ease 0.4s;
  font-size: 1rem;
}

.floating-contact.expanded .phone-number-text {
  opacity: 1;
  width: auto;
  transition:
    opacity 0.3s ease 0.2s,
    width 0s ease 0s;
}

/* Floating Email badge - circular button */
.floating-email {
  background: #d4a574; /* Ochre/yellow-orange */
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  margin: 0;
  box-shadow: 0 10px 24px rgb(0 0 0 / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.floating-email:hover {
  background: #c8965a; /* Slightly darker ochre on hover */
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
}

.floating-email .email-icon {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

/* Floating WhatsApp badge - circular button */
.floating-whatsapp {
  background: #25d366; /* WhatsApp green */
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  margin: 0;
  box-shadow: 0 10px 24px rgb(0 0 0 / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.floating-whatsapp:hover {
  background: #20ba5a; /* Slightly darker green on hover */
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
}

.floating-whatsapp .whatsapp-icon {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
  .floating-actions {
    bottom: 16px; /* Start at bottom right on mobile when page first loads */
    right: 12px; /* Slightly adjusted for mobile but still aligned with hamburger */
    gap: 12px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
  }

  /* Move up when back-to-top button is visible on mobile */
  .back-to-top-active,
  body.back-to-top-visible .floating-actions {
    bottom: 76px !important; /* Move up: 16px (button bottom) + 44px (button height) + 12px (gap) + 4px (spacing) = 76px */
  }

  .floating-contact,
  .floating-whatsapp,
  .floating-email {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .floating-contact.expanded {
    padding: 12px 18px;
    width: auto;
    min-width: 48px;
  }

  .floating-contact .phone-icon,
  .floating-whatsapp .whatsapp-icon,
  .floating-email .email-icon {
    width: 24px;
    height: 24px;
  }

  .floating-contact.expanded .phone-number-text {
    font-size: 0.95rem;
  }
}

/* Back to Top Button — center-aligned with floating actions and hamburger menu */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px; /* Aligned with hamburger icon position */
  z-index: 1100;
  background: rgb(0 0 0 / 28%);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 2px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px); /* Slide up on show */
}

.back-to-top:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* No vertical offset */
}

.back-to-top:hover {
  background: rgb(0 0 0 / 42%);
  border-color: #ffffff;
  transform: translateY(-2px); /* Lift on hover */
  box-shadow: 0 6px 16px rgb(0 0 0 / 20%);
}

.back-to-top .arrow-icon {
  color: #ffffff;
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-container {
    padding: 0.625rem 1.75rem; /* Reduced from 1rem for more compact header */
  }

  .navbar.compact .nav-container {
    padding: 0.45rem 1.75rem; /* Reduced for compact state */
  }

  /* Logo remains full size on tablet */
  .logo-image {
    max-width: 220px;
    max-height: 78px;
    margin-bottom: 0;
  }

  .navbar.compact .logo-image {
    max-width: 180px;
    max-height: 64px;
    margin-bottom: 0;
  }

  .nav-menu {
    gap: 1.75rem;
  }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */

/* Standard hamburger menu: Show all items on desktop, hide all on mobile */
@media (max-width: 1024px) {
  /* Show hamburger menu toggle */
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 20px; /* Aligned with floating buttons and scroll-to-top */
    top: 50%;
    transform: translateY(-50%); /* Center vertically in header */
    z-index: 1001;
    transition:
      background var(--transition-normal),
      border-color var(--transition-normal),
      box-shadow var(--transition-normal);
  }

  .nav-toggle:hover {
    transform: translateY(calc(-50% - 1px)); /* Maintain centering while lifting slightly */
  }

  /* Adjust nav-container to accommodate absolutely positioned hamburger */
  .nav-container {
    position: relative;
    padding-right: 88px; /* Space for hamburger button (48px) + gap (20px) + margin (20px) */
  }

  /* Hide all nav items from the nav bar - they'll be shown in hamburger menu */
  .nav-item-1,
  .nav-item-2,
  .nav-item-3,
  .nav-item-4,
  .nav-item-5,
  .nav-item-6,
  .nav-item-7 {
    display: none;
  }

  /* Mobile flyout menu anchored to the toggle */
  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    left: auto;
    width: 320px;
    max-width: calc(100% - 40px);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0.75rem 0.25rem;
    transition:
      opacity var(--transition-normal),
      transform var(--transition-normal),
      visibility var(--transition-normal);
    box-shadow: 0 12px 28px rgb(0 0 0 / 12%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.25rem 0.5rem;
    list-style: none;
    margin: 0;
  }

  .nav-item {
    width: 100%;
    list-style: none;
  }

  /* When menu is active, show all items */
  .nav-menu.active .nav-item-1,
  .nav-menu.active .nav-item-2,
  .nav-menu.active .nav-item-3,
  .nav-menu.active .nav-item-4,
  .nav-menu.active .nav-item-5,
  .nav-menu.active .nav-item-6,
  .nav-menu.active .nav-item-7 {
    display: block;
  }

  .nav-menu.active .nav-item-dropdown {
    display: flex;
  }

  /* Adjust menu position when navbar is compact */
  .navbar.compact .nav-menu {
    top: calc(100% + 8px); /* Slightly tighter when compact */
  }

  /* Mobile menu link styles */
  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    display: block;
    border-radius: var(--radius-md);
  }

  /* Mobile dropdown menu */
  .nav-item-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .nav-link-dropdown {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 0.9rem 1rem;
    gap: 0.5rem;
  }

  /* Hide dropdown arrow and submenu on mobile/narrow screens */
  .nav-link-dropdown .dropdown-arrow {
    display: none;
  }

  .dropdown-menu {
    display: none !important;
  }

  .dropdown-menu li {
    list-style: none;
    text-align: center;
  }

  .dropdown-link {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0;
    display: block;
    text-align: center;
    width: 100%;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: background-color var(--transition-fast);
  }

  .dropdown-link:hover,
  .dropdown-link:active {
    background: var(--color-bg-light);
    color: var(--color-primary);
  }
}

@media (max-width: 768px) {
  /* slightly reduced overlay on small screens too for better imagery */
  .quality-section::before {
    background: linear-gradient(135deg, rgb(255 255 255 / 48%) 0%, rgb(255 255 255 / 38%) 100%);
  }

  .nav-container {
    padding: 0.55rem 1.25rem;
  }

  /* Mobile Logo - Full size */
  .logo-image {
    max-width: 170px;
    max-height: 58px;
    margin-bottom: 0;
  }

  /* Mobile Compact State */
  .navbar.compact .logo-image {
    max-width: 140px;
    max-height: 50px;
    margin-bottom: 0;
  }

  .navbar.compact .nav-container {
    padding: 0.5rem 1.5rem; /* Reduced padding on mobile */
  }

  .back-to-top {
    bottom: 16px;
    right: 12px; /* Aligned with hamburger icon position on mobile */
    width: 44px;
    height: 44px;
  }

  /* Mobile Nav Container */
  .nav-container {
    padding: 0.625rem 1.5rem; /* Reduced from 1rem for more compact header */
  }

  .navbar.compact .nav-container {
    padding: 0.4rem 1.5rem; /* Reduced for compact state */
  }

  /* Keep flyout aligned on very small screens */
  .nav-menu {
    right: 12px;
    max-width: calc(100% - 24px);
    width: 300px;
    padding: 0.65rem 0.2rem;
  }

  .nav-list {
    padding: 0.25rem 0.35rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 1rem 15px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 2.6rem);
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .about-section,
  .values-section,
  .origin-section {
    padding: 3rem 0;
  }

  .quality-section,
  .faq-section,
  .testimonials-section,
  .contact-section {
    padding: 3rem 0;
  }
}

/* Ensure anchored sections are visible below fixed header */

/* Note: scroll-margin-top removed - handled by JavaScript for precise control */
section[id] {
  scroll-margin-top: 0;
}

/* Brand Book Link in Footer */
.footer-bottom {
  position: relative;
}

.brand-book-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--color-text-muted);
  transition: color var(--transition-duration);
}

.brand-book-link:hover,
.brand-book-link:focus {
  color: var(--color-primary);
}

.brand-book-link svg {
  width: 20px;
  height: 20px;
}
