/* ========================================================
   ADARSH ECOPAPER - BESPOKE ARTISANAL ECO-FRIENDLY THEME
   Banana Fiber Handmade Paper & Bio-Materials
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Green Leaf Botanical & Organic Palette */
  --color-leaf-deep: #142E21;
  --color-leaf-forest: #1F4532;
  --color-leaf-moss: #2E5C46;
  --color-leaf-olive: #3D6B50;
  --color-leaf-sage: #5A836D;
  --color-leaf-fern: #387353;
  --color-leaf-emerald: #245A3C;
  --color-leaf-mint: #52B788;
  --color-leaf-tint: #F2F8F4;
  --color-leaf-wash: #EBF4EE;
  --color-leaf-border: #C8DEC9;
  
  --color-paper-light: #F4F8F4;
  --color-paper-cream: #EBF3ED;
  --color-paper-wheat: #DFECE3;
  --color-paper-tan: #CDDEC9;
  --color-paper-kraft: #B5C9A4;
  
  --color-forest-deep: #142E21;
  --color-forest: #1F4532;
  --color-forest-moss: #2E5C46;
  --color-forest-sage: #5A836D;
  --color-sage-light: #9CBFA7;
  --color-leaf-green: #3D7353;
  
  --color-terracotta: #BA6634;
  --color-terracotta-dark: #964F25;
  --color-clay: #D49B55;
  --color-sand: #DCE8DE;
  
  --color-ink: #16241D;
  --color-charcoal: #2E3E34;
  --color-border: #C8DEC9;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-serif-accent: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body,
.paper-texture,
.leaf-texture {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: #F4F8F4;
  /* Organic green leaf vein & botanical fiber paper texture */
  background-image: 
    radial-gradient(#2E5C46 0.6px, transparent 0.6px),
    radial-gradient(#3E7857 0.4px, #F4F8F4 0.4px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-30,430 C90,310 270,130 430,-30' fill='none' stroke='%232D5A46' stroke-width='2.2' stroke-linecap='round' opacity='0.16'/%3E%3Cpath d='M-28,432 C92,312 272,132 432,-28' fill='none' stroke='%235A9E75' stroke-width='1.2' opacity='0.11'/%3E%3Cpath d='M30,370 C75,320 120,295 190,275' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M85,315 C135,265 185,240 280,210' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M140,260 C195,205 255,175 350,145' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M200,200 C255,145 315,115 410,85' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M260,140 C315,85 375,55 450,25' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M10,390 C-20,340 -40,280 -25,190' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M65,335 C35,285 15,225 35,120' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M125,275 C95,225 75,165 105,60' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M185,215 C155,165 135,105 175,-5' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M245,155 C215,105 195,45 245,-60' fill='none' stroke='%232D5A46' stroke-width='1.2' opacity='0.13'/%3E%3Cpath d='M60,345 C85,325 110,320 135,300' fill='none' stroke='%233E7857' stroke-width='0.7' stroke-dasharray='4,4' opacity='0.09'/%3E%3Cpath d='M115,285 C145,265 175,260 205,240' fill='none' stroke='%233E7857' stroke-width='0.7' stroke-dasharray='4,4' opacity='0.09'/%3E%3Cpath d='M175,225 C205,205 235,200 270,180' fill='none' stroke='%233E7857' stroke-width='0.7' stroke-dasharray='4,4' opacity='0.09'/%3E%3Cpath d='M235,165 C265,145 295,140 335,120' fill='none' stroke='%233E7857' stroke-width='0.7' stroke-dasharray='4,4' opacity='0.09'/%3E%3Cpath d='M295,105 C325,85 355,80 395,60' fill='none' stroke='%233E7857' stroke-width='0.7' stroke-dasharray='4,4' opacity='0.09'/%3E%3Cellipse cx='75' cy='130' rx='1.5' ry='5' transform='rotate(35 75 130)' fill='%232D5A46' opacity='0.18'/%3E%3Cellipse cx='220' cy='350' rx='1.2' ry='6' transform='rotate(-40 220 350)' fill='%232D5A46' opacity='0.15'/%3E%3Cellipse cx='330' cy='260' rx='1.8' ry='4.5' transform='rotate(20 330 260)' fill='%233E7857' opacity='0.16'/%3E%3Cellipse cx='140' cy='90' rx='1.3' ry='5.5' transform='rotate(-15 140 90)' fill='%232D5A46' opacity='0.14'/%3E%3Cellipse cx='280' cy='50' rx='1.6' ry='4' transform='rotate(50 280 50)' fill='%234A8A66' opacity='0.15'/%3E%3Cellipse cx='360' cy='360' rx='1.4' ry='5' transform='rotate(10 360 360)' fill='%232D5A46' opacity='0.14'/%3E%3Cellipse cx='40' cy='230' rx='1.7' ry='4.5' transform='rotate(-60 40 230)' fill='%233E7857' opacity='0.17'/%3E%3Cellipse cx='180' cy='310' rx='1.2' ry='4.8' transform='rotate(25 180 310)' fill='%232D5A46' opacity='0.15'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 36px 36px, 52px 52px, 380px 380px, 200px 200px;
  background-position: 0 0, 18px 18px, 0 0, 0 0;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Mobile Input Zoom Prevention (iOS Safari requires >= 16px to prevent automatic zooming) */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch Friendly Scroll Containers & Manipulation */
.touch-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Hide scrollbar for horizontal chip bars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* iPhone notch & home indicator safe area support */
.mobile-safe-bottom {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* Floating Mobile Quick Action Bar */
.mobile-action-bar {
  background: rgba(244, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200, 222, 201, 0.85);
  box-shadow: 0 -4px 20px rgba(20, 46, 33, 0.08);
}

/* Responsive Table Scroll Hint */
.table-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #57534e;
  background: rgba(235, 244, 238, 0.95);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 201, 174, 0.8);
}

/* Authentic Deckle Torn-Paper Edge Dividers */
.deckle-divider-top {
  position: relative;
}
.deckle-divider-top::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 18px;
  background-color: inherit;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q30,10 60,22 T120,12 T180,24 T240,11 T300,26 T360,9 T420,23 T480,10 T540,24 T600,12 T660,25 T720,10 T780,24 T840,11 T900,22 T960,10 T1020,24 T1080,12 T1140,22 T1200,11 L1200,30 L0,30 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 Q30,10 60,22 T120,12 T180,24 T240,11 T300,26 T360,9 T420,23 T480,10 T540,24 T600,12 T660,25 T720,10 T780,24 T840,11 T900,22 T960,10 T1020,24 T1080,12 T1140,22 T1200,11 L1200,30 L0,30 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 18px;
  mask-size: 100% 18px;
  z-index: 20;
}

.deckle-divider-bottom {
  position: relative;
}
.deckle-divider-bottom::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 18px;
  background-color: inherit;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q30,20 60,8 T120,18 T180,6 T240,19 T300,4 T360,21 T420,7 T480,20 T540,6 T600,18 T660,5 T720,20 T780,6 T840,19 T900,8 T960,20 T1020,6 T1080,18 T1140,8 T1200,19 L1200,0 L0,0 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q30,20 60,8 T120,18 T180,6 T240,19 T300,4 T360,21 T420,7 T480,20 T540,6 T600,18 T660,5 T720,20 T780,6 T840,19 T900,8 T960,20 T1020,6 T1080,18 T1140,8 T1200,19 L1200,0 L0,0 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 18px;
  mask-size: 100% 18px;
  z-index: 20;
}

/* Organic Green Leaf Deckle Edge Card */
.deckle-card {
  position: relative;
  background-color: #FAFDFC;
  background-image: linear-gradient(155deg, #FCFAF6 0%, #F1F8F4 100%);
  border: 1px solid rgba(62, 120, 87, 0.24);
  box-shadow: 
    0 2px 4px rgba(20, 46, 33, 0.03),
    0 8px 24px -4px rgba(20, 46, 33, 0.06);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.deckle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 92, 70, 0.5);
  box-shadow: 
    0 6px 14px rgba(20, 46, 33, 0.08),
    0 20px 32px -6px rgba(20, 46, 33, 0.12);
}

/* Green Leaf Texture Highlight Card */
.leaf-card,
.leaf-texture-card {
  position: relative;
  background-color: #F4F9F5;
  background-image: 
    linear-gradient(145deg, rgba(255,255,255,0.92) 0%, rgba(235,246,238,0.92) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-30,430 C90,310 270,130 430,-30' fill='none' stroke='%232D5A46' stroke-width='2' opacity='0.12'/%3E%3Cpath d='M30,370 C75,320 120,295 190,275' fill='none' stroke='%232D5A46' stroke-width='1' opacity='0.10'/%3E%3Cpath d='M85,315 C135,265 185,240 280,210' fill='none' stroke='%232D5A46' stroke-width='1' opacity='0.10'/%3E%3Cpath d='M140,260 C195,205 255,175 350,145' fill='none' stroke='%232D5A46' stroke-width='1' opacity='0.10'/%3E%3Cpath d='M200,200 C255,145 315,115 410,85' fill='none' stroke='%232D5A46' stroke-width='1' opacity='0.10'/%3E%3C/svg%3E");
  background-size: auto, 320px 320px;
  border: 1px solid #C8DEC9;
  border-radius: 24px;
  box-shadow: 0 4px 20px -2px rgba(25, 60, 42, 0.06);
  transition: all 0.3s ease;
}
.leaf-card:hover,
.leaf-texture-card:hover {
  border-color: #2D5A46;
  box-shadow: 0 10px 28px -4px rgba(25, 60, 42, 0.12);
  transform: translateY(-4px);
}

/* Kraft Box Highlight Card */
.kraft-card {
  background: #EAF3EC;
  background-image: radial-gradient(#9BC0A6 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  border: 2px dashed #B8D4C1;
  border-radius: 24px;
}

/* Organic Leaf Badges */
.eco-badge,
.leaf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(45, 92, 70, 0.12);
  color: #173827;
  border: 1px solid rgba(45, 92, 70, 0.28);
}

.eco-badge-terracotta {
  background: rgba(186, 102, 52, 0.12);
  color: #8C441A;
  border: 1px solid rgba(186, 102, 52, 0.3);
}

.eco-badge-ochre {
  background: rgba(212, 155, 85, 0.15);
  color: #8A5A1E;
  border: 1px solid rgba(212, 155, 85, 0.35);
}

/* Leaf Ambient Flourish & Watermarks */
.leaf-glow {
  box-shadow: 0 0 30px rgba(45, 92, 70, 0.15);
}

.leaf-border {
  border-color: #C8DEC9;
}

/* Subtle Floating Leaf Animation */
@keyframes swaySlightly {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}
.float-gentle {
  animation: swaySlightly 5s ease-in-out infinite;
}

/* Custom Eco Range Slider with Leaf Thumb */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: #E5DCCF;
  border-radius: 999px;
  border: 1px solid #D5C5A1;
}
input[type=range]::-webkit-slider-thumb {
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background: #214334;
  border: 3px solid #FAF6EE;
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #BA6634;
}

/* Drawer Transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-content.active {
  transform: translateX(0);
}

/* Modals */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

/* Custom Leaf Green Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #EBF4EE;
}
::-webkit-scrollbar-thumb {
  background: #A3C9AE;
  border-radius: 999px;
  border: 2px solid #EBF4EE;
}
::-webkit-scrollbar-thumb:hover {
  background: #2D5A46;
}

/* Deckle Feather Border for Images */
.deckle-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(163, 201, 174, 0.8);
}
