/* assets/css/style.css - Floral Aromatics Premium Pastel Light Theme & Glassmorphism System */

:root {
  --bg-pastel-cream: #FDF8EB;  /* Chiffon Gold */
  --bg-pastel-ivory: #F5F7F2;  /* Botanical Ivory */
  --bg-pastel-mist: #FAFBF7;   /* Morning Mist */
  --text-charcoal: #2A2C38;    /* Deep Muted Botanical Charcoal for AAA Readability */
  --text-muted: #525566;       /* Muted Body Text */
  --accent-sage: #166534;      /* Botanical Emerald Green */
  --accent-sage-hover: #14532d;
  --accent-gold: #D9A74A;      /* Pale Gold Highlight */
  --glass-bg: rgba(230, 245, 235, 0.55);
  --glass-bg-card: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(22, 101, 52, 0.3);
  --glass-shadow: 0 10px 30px 0 rgba(42, 44, 56, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  --glass-shadow-lg: 0 18px 44px 0 rgba(42, 44, 56, 0.12), 0 0 0 1px rgba(22, 101, 52, 0.5) inset;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-charcoal);
  background: linear-gradient(135deg, var(--bg-pastel-cream) 0%, var(--bg-pastel-ivory) 50%, var(--bg-pastel-mist) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100vw;
}

p, span, a, input, button, select, textarea, label {
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Cormorant Garamond', serif !important;
  color: var(--text-charcoal);
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* REMOVED FULL-WIDTH BACKDROP BAR */
.header-backdrop-bar {
  display: none !important;
}

/* HEADER DYNAMIC ISLAND (BACKEND CMS NOTCH) */
.notch-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 80rem; /* max-w-7xl */
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(22, 101, 52, 0.35);
  box-shadow: 0 16px 40px -8px rgba(42, 44, 56, 0.08), 
              0 0 0 1px rgba(255, 255, 255, 0.95) inset, 
              0 1px 3px rgba(74, 222, 128, 0.25) inset;
  border-radius: 9999px; /* Floating Island Capsule */
  padding: 0.55rem 1.25rem;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notch-header:hover {
  border-color: rgba(22, 101, 52, 0.65);
  box-shadow: 0 20px 46px -6px rgba(42, 44, 56, 0.12), 
              0 0 0 1px rgba(255, 255, 255, 1) inset;
}

@media (max-width: 640px) {
  .notch-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: 1.25rem;
    padding: 0.5rem 0.85rem;
  }
}

.notch-badge {
  background: rgba(22, 101, 52, 0.08);
  border: 1px solid rgba(22, 101, 52, 0.2);
  box-shadow: 0 2px 8px rgba(42, 44, 56, 0.04);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  color: var(--text-charcoal);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* APPLE MAC OS FROSTED GLASS BLUR CARDS & PANELS */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(22, 101, 52, 0.35);
  box-shadow: 0 16px 40px -8px rgba(42, 44, 56, 0.08), 
              0 0 0 1px rgba(255, 255, 255, 0.9) inset, 
              0 1px 2px rgba(255, 255, 255, 0.6) inset;
  border-radius: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.35s ease, 
              border-color 0.35s ease, 
              background 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 101, 52, 0.65);
  box-shadow: 0 24px 48px -10px rgba(42, 44, 56, 0.14), 
              0 0 0 1.5px rgba(22, 101, 52, 0.5) inset, 
              0 1px 3px rgba(255, 255, 255, 0.8) inset;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* POST-HERO INVERTED GREEN BANNER */
.banner-green-card {
  background: linear-gradient(135deg, #124d29 0%, #166534 50%, #0e3b20 100%) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 45px -10px rgba(18, 77, 41, 0.4), 
              0 0 0 1px rgba(255, 255, 255, 0.12) inset, 
              0 1px 2px rgba(255, 255, 255, 0.18) inset !important;
  border-radius: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.35s ease, 
              border-color 0.35s ease;
}

.banner-green-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 26px 52px -10px rgba(18, 77, 41, 0.55), 
              0 0 0 1.5px rgba(255, 255, 255, 0.25) inset, 
              0 1px 3px rgba(255, 255, 255, 0.25) inset !important;
  background: linear-gradient(135deg, #15572f 0%, #1b7a3f 50%, #114525 100%) !important;
}

.banner-green-card h1,
.banner-green-card h2,
.banner-green-card h3,
.banner-green-card p,
.banner-green-card span {
  color: #FFFFFF !important;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1.5px solid rgba(22, 101, 52, 0.3);
  box-shadow: 0 10px 28px -6px rgba(42, 44, 56, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  border-radius: 1.25rem;
}

/* REMOVED FULL-WIDTH GLASS BACKDROP BAR */
.dock-backdrop-bar {
  display: none !important;
}

/* ROUNDED RECTANGLE BORDERED NAVIGATION DOCK (LIQUID GLASS & GREEN BORDER) */
.macos-dock {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 2px solid #16a34a;
  box-shadow: 0 18px 48px -4px rgba(22, 101, 52, 0.22), 
              0 4px 12px rgba(0, 0, 0, 0.06), 
              0 0 0 1px rgba(255, 255, 255, 0.95) inset,
              0 1px 3px rgba(74, 222, 128, 0.3) inset;
  border-radius: 1.35rem;
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.macos-dock:hover {
  border-color: #15803d;
  box-shadow: 0 22px 54px -4px rgba(22, 101, 52, 0.3), 
              0 4px 14px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(74, 222, 128, 0.4) inset;
}

.macos-dock::-webkit-scrollbar {
  display: none;
}

/* 1. Logo Tab Button (Squircle Icon Box on Left) */
.dock-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.85rem;
  background: #f1f3f5;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  cursor: pointer;
}

.dock-logo-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

/* 2. Menu Item Tabs (Icon on Top, Label Below) */
.dock-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.45rem 0.95rem;
  min-width: 3.65rem;
  height: 3.15rem;
  border-radius: 0.85rem;
  background: #f1f3f5;
  color: #2A2C38;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex: 0 1 auto;
}

.dock-item .dock-icon,
.dock-item > i {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dock-item .dock-label,
.dock-item > span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.dock-item:hover {
  background: #e5e7eb;
  color: #166534;
  transform: translateY(-2px);
}

.dock-item:hover .dock-icon,
.dock-item:hover > i {
  transform: scale(1.1);
  color: #166534;
}

/* Active Item Tab (Dark Green / Charcoal Rounded Rectangle) */
.dock-item.active {
  background: #1a382b;
  color: #ffffff;
  border-color: #1a382b;
  box-shadow: 0 4px 14px rgba(26, 56, 43, 0.28);
}

.dock-item.active .dock-icon,
.dock-item.active > i {
  color: #4ade80;
}

.dock-item.active .dock-label,
.dock-item.active > span {
  color: #ffffff;
  font-weight: 700;
}

.dock-item.active:hover {
  background: #142e23;
  color: #ffffff;
  transform: translateY(-1px);
}

.dock-item.active:hover .dock-icon,
.dock-item.active:hover > i {
  transform: scale(1.08);
}

/* Language Button Tab */
.dock-lang-btn {
  background: #f1f3f5;
  padding: 0.45rem 0.85rem;
}

/* RESPONSIVE DOCK DESIGN */
@media (max-width: 768px) {
  .macos-dock {
    padding: 0.35rem 0.4rem;
    gap: 0.25rem;
    bottom: 0.75rem;
    border-radius: 1.1rem;
    max-width: calc(100vw - 1rem);
  }
  .dock-logo-item {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.75rem;
  }
  .dock-item {
    padding: 0.35rem 0.65rem;
    min-width: 3rem;
    height: 2.65rem;
    border-radius: 0.75rem;
    gap: 0.15rem;
  }
  .dock-item .dock-icon,
  .dock-item > i {
    font-size: 0.92rem;
  }
  .dock-item .dock-label,
  .dock-item > span {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .macos-dock {
    padding: 0.25rem 0.3rem;
    gap: 0.18rem;
    bottom: 0.5rem;
    border-radius: 1rem;
    max-width: calc(100vw - 0.5rem);
  }
  .dock-logo-item {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
  }
  .dock-item {
    padding: 0.3rem 0.45rem;
    min-width: 2.5rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    gap: 0.12rem;
  }
  .dock-item .dock-icon,
  .dock-item > i {
    font-size: 0.82rem;
  }
  .dock-item .dock-label,
  .dock-item > span {
    font-size: 0.58rem;
  }
}

@media (max-width: 360px) {
  .macos-dock {
    gap: 0.1rem;
    padding: 0.2rem;
  }
  .dock-item {
    padding: 0.25rem 0.3rem;
    min-width: 2.2rem;
    height: 2.2rem;
  }
  .dock-logo-item {
    width: 2.2rem;
    height: 2.2rem;
  }
  .dock-item .dock-icon,
  .dock-item > i {
    font-size: 0.75rem;
  }
  .dock-item .dock-label,
  .dock-item > span {
    font-size: 0.52rem;
  }
}

/* Three.js Canvas Styling */
#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Parallax Depth Elements */
.parallax-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s ease-out;
}

/* Floating Animations (Disabled for Static Stability) */
.animate-float-slow,
.animate-float-reverse {
  animation: none !important;
  transform: none !important;
}

/* Dynamic Fluid Typography */
.text-fluid-hero {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(2.75rem, 6vw + 1rem, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-fluid-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(2.1rem, 4.2vw + 0.5rem, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Custom Pastel Buttons */
.btn-sage {
  background-color: var(--accent-sage);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 18px rgba(22, 101, 52, 0.3);
}

.btn-sage:hover {
  background-color: var(--accent-sage-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.4);
}

.btn-outline-charcoal {
  border: 2px solid var(--text-charcoal);
  color: var(--text-charcoal);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-outline-charcoal:hover {
  background-color: var(--text-charcoal);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(42, 44, 56, 0.18);
}

/* HIGHLY VISIBLE CRISP BORDERS FOR ALL BACKEND & FORM INPUTS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
select,
textarea {
  border: 1.5px solid rgba(42, 44, 56, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset, 0 1px 2px rgba(42, 44, 56, 0.04) !important;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(22, 101, 52, 0.65) !important;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--accent-sage) !important;
  box-shadow: 0 0 0 3.5px rgba(22, 101, 52, 0.25), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Modal Backdrop & Animation */
.modal-backdrop {
  background: rgba(42, 44, 56, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Custom Slim Modal Scrollbar */
.modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 101, 52, 0.35) rgba(0, 0, 0, 0.03);
}

.modal-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 9999px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(22, 101, 52, 0.35);
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 101, 52, 0.65);
}

/* Support for compact landscape screens and ultra-high scaling */
@media (max-height: 540px) {
  #rfq-modal-card {
    max-height: calc(100dvh - 0.75rem) !important;
  }
  #rfq-modal-body {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* ==========================================================================
   BACKEND INVERTED DARK GREEN DYNAMIC ISLAND & NAVIGATION DOCK
   ========================================================================== */

/* 1. ADMIN HEADER DYNAMIC ISLAND (.admin-notch-header) */
.admin-notch-header {
  background: #0b331b !important;
  background-color: #0b331b !important;
  border: 2px solid rgba(74, 222, 128, 0.45) !important;
  box-shadow: 0 16px 40px -8px rgba(11, 51, 27, 0.6), 
              0 0 0 1px rgba(74, 222, 128, 0.25) inset, 
              0 2px 14px rgba(34, 197, 94, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-notch-header:hover {
  border-color: rgba(74, 222, 128, 0.8) !important;
  box-shadow: 0 20px 48px -6px rgba(11, 51, 27, 0.75), 
              0 0 22px rgba(74, 222, 128, 0.35) !important;
}

/* 2. ADMIN NAVIGATION DOCK CONTAINER (.admin-macos-dock) */
.admin-macos-dock {
  background: #0b331b !important;
  background-color: #0b331b !important;
  border: 2px solid rgba(74, 222, 128, 0.5) !important;
  box-shadow: 0 20px 50px -4px rgba(11, 51, 27, 0.7), 
              0 6px 18px rgba(0, 0, 0, 0.45), 
              0 0 0 1px rgba(74, 222, 128, 0.25) inset,
              0 0 22px rgba(34, 197, 94, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-macos-dock:hover {
  border-color: #4ade80 !important;
  box-shadow: 0 24px 58px -4px rgba(11, 51, 27, 0.8), 
              0 8px 22px rgba(0, 0, 0, 0.5),
              0 0 26px rgba(74, 222, 128, 0.4) !important;
}

/* Inactive Admin Dock Items */
.admin-macos-dock .dock-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-macos-dock .dock-item > i,
.admin-macos-dock .dock-item .dock-icon {
  color: #4ade80 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease !important;
}

.admin-macos-dock .dock-item > span,
.admin-macos-dock .dock-item .dock-label {
  color: rgba(255, 255, 255, 0.95) !important;
  transition: color 0.25s ease !important;
}

/* Hover Effect on Admin Dock Items */
.admin-macos-dock .dock-item:hover {
  background: rgba(34, 197, 94, 0.35) !important;
  border-color: rgba(74, 222, 128, 0.85) !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.06) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(74, 222, 128, 0.5) !important;
}

.admin-macos-dock .dock-item:hover > i,
.admin-macos-dock .dock-item:hover .dock-icon {
  color: #86efac !important;
  transform: scale(1.22) !important;
  text-shadow: 0 0 10px rgba(134, 239, 172, 0.7) !important;
}

.admin-macos-dock .dock-item:hover > span,
.admin-macos-dock .dock-item:hover .dock-label {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Active Tab on Admin Dock */
.admin-macos-dock .dock-item.active {
  background: #166534 !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(74, 222, 128, 0.45), 
              0 0 10px rgba(74, 222, 128, 0.3) inset !important;
}

.admin-macos-dock .dock-item.active > i,
.admin-macos-dock .dock-item.active .dock-icon {
  color: #ffffff !important;
}

.admin-macos-dock .dock-item.active > span,
.admin-macos-dock .dock-item.active .dock-label {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.admin-macos-dock .dock-item.active:hover {
  background: #15803d !important;
  border-color: #86efac !important;
  transform: translateY(-4px) scale(1.06) !important;
  box-shadow: 0 10px 26px rgba(74, 222, 128, 0.6), 
              0 0 14px rgba(74, 222, 128, 0.45) inset !important;
}

.admin-macos-dock .dock-item.active:hover > i,
.admin-macos-dock .dock-item.active:hover .dock-icon {
  color: #ffffff !important;
  transform: scale(1.22) !important;
}

/* 3. DOCK & FLOATING CONTROLS HIDE ON MODAL OPEN FOR UNRESTRICTED ACCESSIBILITY */
body.modal-open .admin-macos-dock,
body.modal-open .macos-dock,
body.modal-open #admin-more-submenu,
body.modal-open #batch-action-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(28px) !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


