/* ============================================================
   VWoodPellet | PT. Vernel Agro Indonesia
   Main Stylesheet — v1.0
   ============================================================ */

/* ============================================================
   TABLE OF CONTENTS
   01. CSS Custom Properties (Variables)
   02. CSS Reset & Base
   03. Custom Scrollbar & Selection
   04. Scroll Progress Bar
   05. Typography
   06. Layout & Grid
   07. Navbar
   08. Footer
   09. Buttons
   10. Cards
   11. Badges & Tags
   12. Forms
   13. Hero Sections
   14. Lightbox
   15. Toast Notifications
   16. Loading States & Page Loader
   17. Sections
   18. Entrance Animations & Keyframes
   19. Interactivity Classes
   20. Custom Cursor
   21. Page Transition
   22. Utility Classes
   23. Responsive Breakpoints
   24. Print Styles
   ============================================================ */


/* ============================================================
   01. CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* --- Brand Colors --- */
  --clr-primary:        #1B4332;
  --clr-primary-dark:   #0D1F16;
  --clr-primary-light:  #2D6A4F;
  --clr-accent:         #D4A853;
  --clr-accent-dark:    #B8873A;
  --clr-accent-light:   #E8C47A;
  --clr-light:          #F8F9F2;
  --clr-white:          #FFFFFF;
  --clr-dark:           #0D1F16;
  --clr-gray-100:       #F1F3EE;
  --clr-gray-200:       #E2E8DC;
  --clr-gray-400:       #9CAE96;
  --clr-gray-600:       #5A7056;
  --clr-gray-800:       #2D3E2A;

  /* --- Typography --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* --- Font Sizes (fluid) --- */
  --fs-xs:   clamp(0.75rem,   1vw,   0.875rem);
  --fs-sm:   clamp(0.875rem,  1.2vw, 1rem);
  --fs-base: clamp(1rem,      1.5vw, 1.125rem);
  --fs-lg:   clamp(1.125rem,  2vw,   1.25rem);
  --fs-xl:   clamp(1.25rem,   2.5vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem,    3vw,   2rem);
  --fs-3xl:  clamp(2rem,      4vw,   2.75rem);
  --fs-4xl:  clamp(2.5rem,    5vw,   3.5rem);
  --fs-5xl:  clamp(3rem,      6vw,   4.5rem);

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout --- */
  --container-max:    1280px;
  --container-narrow: 860px;

  /* --- Border Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:   0 1px 3px rgba(13, 31, 22, 0.12);
  --shadow-md:   0 4px 16px rgba(13, 31, 22, 0.14);
  --shadow-lg:   0 8px 32px rgba(13, 31, 22, 0.18);
  --shadow-xl:   0 16px 56px rgba(13, 31, 22, 0.22);
  --shadow-glow: 0 0 24px rgba(212, 168, 83, 0.35);

  /* --- Transitions --- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.64, 0, 0.78, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-base:   300ms;
  --dur-slow:   500ms;
  --dur-enter:  700ms;

  /* --- Z-Index Scale --- */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
  --z-cursor:   600;
  --z-loader:   700;

  /* --- Navbar --- */
  --navbar-h: 72px;
}


/* ============================================================
   02. CSS RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-dark);
  background-color: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

p {
  max-width: 70ch;
}

/* Remove default focus outline — replaced by custom */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ============================================================
   03. CUSTOM SCROLLBAR & SELECTION
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--clr-gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-primary-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

::selection {
  background: rgba(212, 168, 83, 0.28);
  color: var(--clr-primary-dark);
}
::-moz-selection {
  background: rgba(212, 168, 83, 0.28);
  color: var(--clr-primary-dark);
}


/* ============================================================
   04. SCROLL PROGRESS BAR
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary-light) 0%, var(--clr-accent) 100%);
  z-index: calc(var(--z-sticky) + 1);
  transition: width 0.1s linear;
  will-change: width;
  pointer-events: none;
}


/* ============================================================
   05. TYPOGRAPHY
   ============================================================ */

.heading-display {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  line-height: 1.1;
  font-weight: 700;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  line-height: 1.15;
  font-weight: 700;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1.2;
  font-weight: 700;
}

.heading-3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1.3;
  font-weight: 600;
}

.heading-4 {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  line-height: 1.4;
  font-weight: 600;
}

.heading-5 {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  line-height: 1.4;
  font-weight: 600;
}

.subheading {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.body-lg   { font-size: var(--fs-lg);   line-height: 1.7; }
.body-base { font-size: var(--fs-base); line-height: 1.7; }
.body-sm   { font-size: var(--fs-sm);   line-height: 1.6; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-balance { text-wrap: balance; }
.text-accent  { color: var(--clr-accent); }
.text-muted   { color: var(--clr-gray-400); }
.text-white   { color: var(--clr-white); }
.text-primary { color: var(--clr-primary); }
.font-display { font-family: var(--font-display); }
.italic       { font-style: italic; }

.divider-gold {
  border: none;
  height: 2px;
  width: 60px;
  background: var(--clr-accent);
  margin: var(--space-4) 0;
}
.divider-gold.center { margin-left: auto; margin-right: auto; }

/* Section header block */
.section-header {
  margin-bottom: var(--space-16);
}
.section-header.center {
  text-align: center;
}
.section-header.center .divider-gold {
  margin-left: auto;
  margin-right: auto;
}
.section-header .subheading { margin-bottom: var(--space-2); }
.section-header .heading-2  { margin-bottom: var(--space-4); }
.section-header .body-lg {
  color: var(--clr-gray-600);
  max-width: 640px;
}
.section-header.center .body-lg { margin-left: auto; margin-right: auto; }

/* Typed cursor */
.typed-cursor-active::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--clr-accent);
  animation: typedCursor 0.8s step-end infinite;
}


/* ============================================================
   06. LAYOUT & GRID
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section    { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.section-sm { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.section-lg { padding-top: var(--space-32); padding-bottom: var(--space-32); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto-fill-300 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-8); }
.grid-auto-fill-250 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-6); }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.split-content {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-12);
  align-items: center;
}
.split-content.reverse { direction: rtl; }
.split-content.reverse > * { direction: ltr; }

.aspect-square   { aspect-ratio: 1 / 1; }
.aspect-video    { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-43       { aspect-ratio: 4 / 3; }

.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}


/* ============================================================
   07. NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-sticky);
  transition:
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    padding var(--dur-base) var(--ease-out);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  gap: var(--space-6);
  transition: height var(--dur-base) var(--ease-out);
}

/* Transparent state (top of page) */
.navbar:not(.scrolled) {
  background: transparent;
}

/* Scrolled state */
.navbar.scrolled {
  background: rgba(13, 31, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.navbar.scrolled .navbar-inner {
  height: 60px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.nav-logo img {
  height: 40px;
  width: auto;
  transition: height var(--dur-base) var(--ease-out);
}
.navbar.scrolled .nav-logo img {
  height: 34px;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links li a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(248, 249, 242, 0.85);
  transition: color var(--dur-fast) var(--ease-out);
  padding-bottom: 2px;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  border-radius: var(--radius-full);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--clr-accent);
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: background var(--dur-fast);
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: var(--radius-full);
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-fast),
    width var(--dur-base) var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-primary-dark);
  z-index: calc(var(--z-sticky) - 1);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  pointer-events: none;
}
.nav-mobile.open {
  transform: translateX(0);
  pointer-events: all;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6);
}
.nav-mobile-links li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--clr-gray-200);
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
}
.nav-mobile-links li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
}
.nav-mobile-links li a.active {
  background: var(--clr-primary);
  color: var(--clr-accent);
}
.nav-mobile-bottom {
  padding: 0 var(--space-6) var(--space-8);
}

/* Mobile overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-sticky) - 2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}


/* ============================================================
   08. FOOTER
   ============================================================ */

.footer {
  background: var(--clr-primary-dark);
  color: var(--clr-gray-200);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 3fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
  max-width: 240px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gray-400);
  transition:
    border-color var(--dur-fast),
    color var(--dur-fast),
    background var(--dur-fast);
}
.footer-social a:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(212, 168, 83, 0.08);
}
.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-col-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
  transition: color var(--dur-fast);
}
.footer-links a:hover {
  color: var(--clr-white);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.footer-contact-item:last-child {
  margin-bottom: 0;
}
.footer-contact-item .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--clr-accent);
  margin-top: 3px;
}
.footer-contact-item p {
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
  line-height: 1.5;
  max-width: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--clr-gray-600);
}
.footer-legal-links {
  display: flex;
  gap: var(--space-6);
}
.footer-legal-links a {
  font-size: var(--fs-xs);
  color: var(--clr-gray-600);
  transition: color var(--dur-fast);
}
.footer-legal-links a:hover {
  color: var(--clr-gray-400);
}


/* ============================================================
   09. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  /* Sizes default: md */
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-base);
  line-height: 1.4;
}
.btn:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}
.btn:active:not(:disabled) {
  transform: scale(0.96);
}
.btn[disabled],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Shimmer effect for primary */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-15deg);
  transition: left 0.5s var(--ease-out);
}
.btn:hover::after {
  left: 150%;
}

/* --- Variants --- */
.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-primary-dark);
  border-color: var(--clr-accent);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}
.btn-secondary:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.btn-outline:hover {
  background: var(--clr-accent);
  color: var(--clr-primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--clr-white);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-gray-400);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-danger {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
}
.btn-danger:hover {
  background: #A93226;
  border-color: #A93226;
}

/* --- Sizes --- */
.btn-sm  { padding: var(--space-2)  var(--space-4);  font-size: var(--fs-sm);  }
.btn-md  { padding: var(--space-3)  var(--space-6);  font-size: var(--fs-base); }
.btn-lg  { padding: var(--space-4)  var(--space-8);  font-size: var(--fs-lg);  }
.btn-xl  { padding: var(--space-5)  var(--space-10); font-size: var(--fs-xl);  }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-full { width: 100%; }

/* Loading state */
.btn.loading {
  pointer-events: none;
  color: transparent;
}
.btn.loading::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  /* force color for spinner visibility */
  color: var(--clr-white);
}
.btn-primary.loading::before { color: var(--clr-primary-dark); }

/* Icon positioning */
.btn .icon-left  { margin-right: calc(var(--space-1) * -1); }
.btn .icon-right { margin-left:  calc(var(--space-1) * -1); }


/* ============================================================
   10. CARDS
   ============================================================ */

/* --- Base --- */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.card-dark  { background: var(--clr-gray-800); color: var(--clr-light); }
.card-green { background: var(--clr-primary);  color: var(--clr-light); }
.card-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-body   { padding: var(--space-6); }
.card-footer { padding: 0 var(--space-6) var(--space-6); margin-top: auto; }

/* --- Feature Card --- */
.card-feature {
  padding: var(--space-8);
}
.card-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(212, 168, 83, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.card-feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--clr-accent);
}
.card-feature h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.card-feature p {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: 1.6;
}

/* Dark bg feature card */
.section-dark .card-feature,
.section-green .card-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-dark .card-feature p,
.section-green .card-feature p {
  color: var(--clr-gray-400);
}

/* --- Product Card --- */
.card-product {
  overflow: hidden;
}
.card-product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-product-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 500ms var(--ease-out);
}
.card-product:hover .card-product-img img {
  transform: scale(1.05);
}
.card-product-body  { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.card-product-tag   { margin-bottom: var(--space-3); }
.card-product h3    { font-size: var(--fs-xl); font-weight: 600; margin-bottom: var(--space-2); }
.card-product p     { font-size: var(--fs-sm); color: var(--clr-gray-600); margin-bottom: var(--space-4); flex: 1; }
.card-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--clr-gray-100);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

/* --- Team Card --- */
.card-team {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  overflow: hidden;
  border: 3px solid var(--clr-accent);
}
.card-team-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.card-team h3   { font-size: var(--fs-xl); font-weight: 600; margin-bottom: var(--space-1); }
.card-team .role { font-size: var(--fs-sm); color: var(--clr-accent); margin-bottom: var(--space-3); }
.card-team p    { font-size: var(--fs-sm); color: var(--clr-gray-600); margin: 0 auto; }

/* --- Gallery Card --- */
.card-gallery {
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
}
.card-gallery img {
  object-fit: cover;
  width: 100%;
  height: 280px;
  transition: transform 500ms var(--ease-out);
  display: block;
}
.card-gallery:hover img {
  transform: scale(1.06);
}
.card-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 31, 22, 0.8) 0%, rgba(13, 31, 22, 0) 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  display: flex;
  align-items: flex-end;
}
.card-gallery:hover .card-gallery-overlay {
  opacity: 1;
}
.card-gallery-caption {
  padding: var(--space-4);
  color: var(--clr-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  transform: translateY(8px);
  transition: transform var(--dur-base) var(--ease-out);
  width: 100%;
}
.card-gallery:hover .card-gallery-caption {
  transform: translateY(0);
}

/* Gallery zoom icon overlay */
.card-gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  color: white;
  transition:
    opacity var(--dur-base),
    transform var(--dur-base) var(--ease-spring);
  pointer-events: none;
}
.card-gallery:hover .card-gallery-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Stat Card --- */
.card-stat {
  text-align: center;
  padding: var(--space-8);
}
.card-stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  display: block;
}
.card-stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

/* --- Testimonial Card --- */
.card-testimonial {
  padding: var(--space-8);
  position: relative;
}
.card-testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--clr-accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: var(--space-2);
  user-select: none;
}
.card-testimonial > p {
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.card-testimonial-author {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.card-testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.card-testimonial-author-info .name {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.card-testimonial-author-info .company {
  font-size: var(--fs-xs);
  color: var(--clr-gray-400);
}

/* --- Process Step Card --- */
.card-step {
  position: relative;
  padding: var(--space-6);
}
.card-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: var(--clr-primary-dark);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.card-step-connector {
  position: absolute;
  top: calc(var(--space-6) + 24px);
  left: calc(100% - var(--space-6));
  width: var(--space-8);
  height: 2px;
  background: var(--clr-gray-200);
}
.card-step:last-child .card-step-connector {
  display: none;
}


/* ============================================================
   11. BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.badge-green   { background: rgba(27, 67, 50, 0.12);  color: var(--clr-primary); }
.badge-gold    { background: rgba(212, 168, 83, 0.15); color: var(--clr-accent-dark); }
.badge-white   { background: rgba(255, 255, 255, 0.12); color: var(--clr-white); }
.badge-dark    { background: var(--clr-primary-dark);  color: var(--clr-accent); }
.badge-outline { background: transparent; border: 1px solid currentColor; }
.badge-lg      { padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  background: var(--clr-gray-100);
  color: var(--clr-gray-600);
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
  border: none;
  font-family: inherit;
  font-weight: 500;
}
.tag:hover  { background: var(--clr-gray-200); }
.tag.active { background: var(--clr-primary); color: var(--clr-white); }


/* ============================================================
   12. FORMS
   ============================================================ */

.form { width: 100%; }

.form-group { margin-bottom: var(--space-5); }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-gray-800);
  margin-bottom: var(--space-2);
}
.form-label.required::after {
  content: ' *';
  color: var(--clr-accent);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--clr-dark);
  background: var(--clr-white);
  outline: none;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
  max-width: none;
}
.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
}
.form-control.error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.form-control.success {
  border-color: #27AE60;
}
.form-control::placeholder { color: var(--clr-gray-400); }
.form-control:disabled {
  background: var(--clr-gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CAE96' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--clr-gray-400);
  margin-top: var(--space-1);
  line-height: 1.5;
}
.form-error {
  font-size: var(--fs-xs);
  color: #C0392B;
  margin-top: var(--space-1);
  display: none;
  line-height: 1.5;
}
.form-error.show { display: block; }

.form-success-msg {
  padding: var(--space-6);
  text-align: center;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: var(--radius-lg);
  color: #1E8449;
  font-size: var(--fs-base);
  line-height: 1.6;
}
.form-success-msg .success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: #27AE60;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}
.form-check-input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--clr-primary);
  cursor: pointer;
}
.form-check-label {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: 1.5;
  cursor: pointer;
  max-width: none;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--clr-gray-400);
  font-size: var(--fs-sm);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-gray-200);
}

.form-upload {
  border: 2px dashed var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}
.form-upload:hover     { border-color: var(--clr-primary); background: var(--clr-gray-100); }
.form-upload.drag-over { border-color: var(--clr-accent);  background: rgba(212, 168, 83, 0.05); }


/* ============================================================
   13. HERO SECTIONS
   ============================================================ */

/* Full hero (home) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 31, 22, 0.88) 0%, rgba(13, 31, 22, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--navbar-h) + var(--space-20));
  padding-bottom: var(--space-20);
}

.hero-badge    { margin-bottom: var(--space-6); }
.hero-title    { color: var(--clr-white); margin-bottom: var(--space-6); max-width: 780px; }
.hero-title .accent { color: var(--clr-accent); font-style: italic; }
.hero-subtitle { color: rgba(248, 249, 242, 0.82); margin-bottom: var(--space-10); max-width: 560px; line-height: 1.7; }
.hero-actions  { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  animation: bounceY 1.5s ease-in-out infinite;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll svg {
  width: 20px;
  height: 20px;
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 31, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(248, 249, 242, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
  display: block;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 31, 22, 0.92) 0%, rgba(13, 31, 22, 0.4) 60%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-12);
  padding-top: calc(var(--navbar-h) + var(--space-8));
}
.page-hero-content .subheading { margin-bottom: var(--space-2); }
.page-hero-content .heading-1  { color: var(--clr-white); margin-bottom: var(--space-4); }
.page-hero-content .divider-gold { margin-left: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.breadcrumb-current { color: rgba(255,255,255,0.8); }


/* ============================================================
   14. LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
  display: block;
  transform: scale(0.92);
  transition: transform var(--dur-base) var(--ease-out);
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--dur-fast),
    background var(--dur-fast);
}
.lightbox-close:hover {
  color: var(--clr-white);
  background: rgba(255,255,255,0.15);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast) var(--ease-out);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--clr-white);
  background: rgba(255,255,255,0.16);
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

.lightbox-caption {
  position: absolute;
  bottom: -44px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
}
.lightbox-counter {
  position: absolute;
  top: -44px;
  left: 0;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}


/* ============================================================
   15. TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 320px;
  max-width: 400px;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.35s var(--ease-out) forwards;
}
.toast.removing {
  animation: toastSlideOut 0.25s var(--ease-in) forwards;
}

.toast-success { background: #1E8449; color: white; }
.toast-error   { background: #C0392B; color: white; }
.toast-info    { background: var(--clr-primary); color: white; }
.toast-warning { background: var(--clr-accent-dark); color: var(--clr-primary-dark); }

.toast-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.toast-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.toast-title   { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.toast-message { font-size: var(--fs-xs); opacity: 0.85; line-height: 1.4; }

.toast-close {
  margin-left: auto;
  opacity: 0.65;
  flex-shrink: 0;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: opacity var(--dur-fast);
}
.toast-close:hover { opacity: 1; }

/* Auto-dismiss progress bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  animation: toastProgress linear forwards;
}


/* ============================================================
   16. LOADING STATES & PAGE LOADER
   ============================================================ */

/* Spinners */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
.spinner-gold {
  border-color: rgba(212, 168, 83, 0.25);
  border-top-color: var(--clr-accent);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg,
    var(--clr-gray-100) 25%,
    var(--clr-gray-200) 50%,
    var(--clr-gray-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text   { height: 1em; margin-bottom: var(--space-2); }
.skeleton-circle { border-radius: 50%; }

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-primary-dark);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
}
.page-loader-logo {
  animation: pulseScale 1.2s var(--ease-inout) infinite alternate;
}
.page-loader-logo img { height: 48px; width: auto; }
.page-loader.fade-out {
  animation: pageLoaderFade 0.4s var(--ease-in) forwards;
}


/* ============================================================
   17. SECTIONS
   ============================================================ */

.section-dark {
  background: var(--clr-primary-dark);
  color: var(--clr-light);
}
.section-dark .subheading    { color: var(--clr-accent); }
.section-dark .heading-2     { color: var(--clr-white); }
.section-dark .body-lg       { color: var(--clr-gray-400); }

.section-green {
  background: var(--clr-primary);
  color: var(--clr-light);
}
.section-green .heading-2 { color: var(--clr-white); }

.section-light { background: var(--clr-light); }
.section-white { background: var(--clr-white); }
.section-alt   { background: var(--clr-gray-100); }

/* Pattern overlay */
.section-pattern {
  background-color: var(--clr-light);
  background-image: url('/assets/images/texture-wood-grain.png');
  background-size: 400px 400px;
  background-repeat: repeat;
}
.section-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 249, 242, 0.9);
  pointer-events: none;
}
.section-pattern { position: relative; }
.section-pattern > * { position: relative; z-index: 1; }

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/texture-pellet-pattern.png') center/600px repeat;
  opacity: 0.04;
  pointer-events: none;
}

/* Gradient shift accent band */
.gradient-band {
  background: linear-gradient(135deg, var(--clr-accent-dark), var(--clr-accent), var(--clr-accent-light));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite alternate;
}


/* ============================================================
   18. ENTRANCE ANIMATIONS & KEYFRAMES
   ============================================================ */

/* --- Keyframes --- */
@keyframes slideUp {
  from { transform: translateY(48px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes flipUp {
  from { transform: perspective(800px) rotateX(30deg); opacity: 0; }
  to   { transform: perspective(800px) rotateX(0deg);  opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}
@keyframes pulseScale {
  from { transform: scale(0.95); opacity: 0.7; }
  to   { transform: scale(1.05); opacity: 1; }
}
@keyframes toastSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes pageLoaderFade {
  from { opacity: 1; pointer-events: all; }
  to   { opacity: 0; pointer-events: none; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes typedCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- Default State (before .is-visible) --- */
.anim-slide-up,
.anim-slide-left,
.anim-slide-right,
.anim-zoom-in,
.anim-fade-in,
.anim-flip-up {
  opacity: 0;
  will-change: transform, opacity;
}

/* --- Active State (with .is-visible) --- */
.anim-slide-up.is-visible {
  animation: slideUp var(--dur-enter) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-slide-left.is-visible {
  animation: slideLeft 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-slide-right.is-visible {
  animation: slideRight 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-zoom-in.is-visible {
  animation: zoomIn 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-fade-in.is-visible {
  animation: fadeIn 800ms ease forwards;
}
.anim-flip-up.is-visible {
  animation: flipUp 750ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Stagger delays --- */
.anim-stagger > *:nth-child(1)  { animation-delay: 0s;    }
.anim-stagger > *:nth-child(2)  { animation-delay: 0.08s; }
.anim-stagger > *:nth-child(3)  { animation-delay: 0.16s; }
.anim-stagger > *:nth-child(4)  { animation-delay: 0.24s; }
.anim-stagger > *:nth-child(5)  { animation-delay: 0.32s; }
.anim-stagger > *:nth-child(6)  { animation-delay: 0.40s; }
.anim-stagger > *:nth-child(n+7){ animation-delay: 0.40s; }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-slide-up,
  .anim-slide-left,
  .anim-slide-right,
  .anim-zoom-in,
  .anim-fade-in,
  .anim-flip-up {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
  .hero-scroll { animation: none; }
  .page-loader-logo { animation: none; }
  .parallax-bg { background-attachment: scroll !important; }
}


/* ============================================================
   19. INTERACTIVITY CLASSES
   ============================================================ */

/* Hover lift */
.hover-lift {
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
  cursor: pointer;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Hover glow */
.hover-glow {
  transition: box-shadow 300ms ease;
}
.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* Image zoom on hover — applied to CONTAINER, not img */
.img-zoom-hover {
  overflow: hidden;
}
.img-zoom-hover img {
  transition: transform 500ms var(--ease-out);
}
.img-zoom-hover:hover img {
  transform: scale(1.06);
}

/* Parallax bg (CSS fallback) */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* Counter animation numbers */
.counter-anim {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  display: block;
}

/* 3D tilt — values set via JS inline style */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tilt-card > * {
  transform: translateZ(10px);
}

/* Gradient shift */
.gradient-shift {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary), var(--clr-primary-dark));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite alternate;
}

/* Scroll reveal line */
.scroll-reveal-line .line-wrapper {
  overflow: hidden;
  display: block;
}
.scroll-reveal-line .line-inner {
  display: block;
  transform: translateY(100%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal-line.is-visible .line-inner {
  transform: translateY(0);
}


/* ============================================================
   20. CUSTOM CURSOR (desktop only)
   ============================================================ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  transition: opacity var(--dur-fast);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  transform: translate(-50%, -50%);
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast);
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(212, 168, 83, 0.5);
  transform: translate(-50%, -50%);
  transition:
    width 0.2s var(--ease-out),
    height 0.2s var(--ease-out),
    border-color 0.2s,
    transform 0.08s linear;
}

/* Hover states for cursor */
body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.8);
  background: var(--clr-accent-light);
}
body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--clr-accent);
}

/* Hide custom cursor on mobile / touch */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}


/* ============================================================
   21. PAGE TRANSITION
   ============================================================ */

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-primary-dark);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-in);
}
.page-transition-overlay.fade-out {
  opacity: 1;
  pointer-events: all;
}


/* ============================================================
   22. UTILITY CLASSES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.hidden   { display: none !important; }
.visible  { visibility: visible; }
.invisible { visibility: hidden; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.w-auto  { width: auto; }
.h-auto  { height: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mb-0    { margin-bottom: 0; }

.px-6    { padding-left: var(--space-6); padding-right: var(--space-6); }
.pb-6    { padding-bottom: var(--space-6); }
.pt-6    { padding-top: var(--space-6); }

.rounded      { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border-top      { border-top: 1px solid var(--clr-gray-200); }
.border-top-dark { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.border-bottom   { border-bottom: 1px solid var(--clr-gray-200); }

.no-select { user-select: none; }
.pointer   { cursor: pointer; }
.list-none { list-style: none; padding: 0; margin: 0; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.opacity-0  { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

/* Gallery filter tabs */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.filter-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
  border: 1.5px solid var(--clr-gray-200);
  background: transparent;
  color: var(--clr-gray-600);
  font-family: var(--font-body);
}
.filter-tab:hover {
  border-color: var(--clr-primary-light);
  color: var(--clr-primary);
}
.filter-tab.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}


/* ============================================================
   23. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- 1280px (xl) --- */
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

/* --- 1024px (lg) --- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; } /* show only in mobile */

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .split-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split-content.reverse { direction: ltr; }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    height: 380px;
  }
}

/* --- 768px (md) --- */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 5rem;
  }

  .section    { padding-top: var(--space-16);    padding-bottom: var(--space-16); }
  .section-lg { padding-top: var(--space-20);    padding-bottom: var(--space-20); }
  .section-sm { padding-top: var(--space-10);    padding-bottom: var(--space-10); }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .form-row { grid-template-columns: 1fr; }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .lightbox-prev { left: -48px; }
  .lightbox-next { right: -48px; }

  .page-hero { height: 320px; }

  .section-header { margin-bottom: var(--space-10); }
}

/* --- 480px (sm) --- */
@media (max-width: 480px) {
  :root { --navbar-h: 64px; }

  .container { padding-left: var(--space-4); padding-right: var(--space-4); }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

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

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: -56px;
    transform: none;
  }
  .lightbox-prev { left: auto; right: calc(50% + var(--space-3)); }
  .lightbox-next { right: auto; left: calc(50% + var(--space-3)); }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .toast {
    min-width: 0;
    width: 100%;
  }

  .page-hero { height: 280px; }

  .filter-tabs { gap: var(--space-2); }
  .filter-tab { font-size: var(--fs-xs); padding: var(--space-2) var(--space-3); }
}


/* ============================================================
   24. PRINT STYLES
   ============================================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .navbar,
  .footer-social,
  .btn,
  .scroll-progress,
  .page-loader,
  .page-transition-overlay,
  .cursor-dot,
  .cursor-ring,
  .hero-scroll {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 2cm;
    padding-bottom: 1cm;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  h1, h2, h3 { page-break-after: avoid; }
  img         { page-break-inside: avoid; }
  p, h2, h3  { orphans: 3; widows: 3; }
}


/* ============================================================
   LANGUAGE SWITCHER & RTL SUPPORT
   Prompt 9D — Multilingual CSS additions
   ============================================================ */

/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: transparent;
  color: var(--clr-gray-200);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.lang-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

/* Chevron inside button */
.lang-chevron {
  width: 12px; height: 12px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 164px;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  z-index: var(--z-dropdown);
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Each language option */
.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--clr-primary-dark);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.lang-option:first-child { border-top: none; }
.lang-option:hover        { background: var(--clr-gray-100); }
.lang-option.active {
  font-weight: 700;
  color: var(--clr-primary);
  background: rgba(27, 67, 50, 0.06);
}

/* Navbar scrolled — adjust lang button colour */
.navbar.scrolled .lang-btn {
  border-color: rgba(27, 67, 50, 0.25);
  color: var(--clr-gray-600);
}
.navbar.scrolled .lang-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* Mobile: full-width lang button */
@media (max-width: 1024px) {
  .lang-dropdown {
    right: auto;
    left: 0;
  }
}

/* ── RTL Support (Arabic — [dir="rtl"]) ───────────────────── */

/* Base direction */
[dir="rtl"] {
  text-align: right;
}

/* Navbar: reverse flex order */
[dir="rtl"] .navbar-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

/* Dropdown appears left instead of right */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}
[dir="rtl"] .lang-option {
  text-align: right;
}

/* Layout grids */
[dir="rtl"] .grid-2,
[dir="rtl"] .grid-3,
[dir="rtl"] .grid-4,
[dir="rtl"] .footer-grid,
[dir="rtl"] .split-content {
  direction: rtl;
}

/* Entrance animations: swap left/right for RTL */
[dir="rtl"] .anim-slide-left {
  /* In RTL, "slide from left" becomes slide from right */
  animation-name: slideRight;
}
[dir="rtl"] .anim-slide-right {
  animation-name: slideLeft;
}
[dir="rtl"] .anim-slide-left.is-visible,
[dir="rtl"] .anim-slide-right.is-visible {
  /* Both resolve to the same end state */
  animation: slideUp var(--dur-enter) cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Scroll progress bar: start from right for RTL */
[dir="rtl"] .scroll-progress {
  right: 0;
  left: auto;
}

/* Toast notifications: appear from left in RTL */
[dir="rtl"] .toast-container {
  right: auto;
  left: var(--space-6);
}
@keyframes toastSlideInRTL {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
[dir="rtl"] .toast {
  animation-name: toastSlideInRTL;
}

/* Card text alignment */
[dir="rtl"] .card,
[dir="rtl"] .card-feature,
[dir="rtl"] .card-product,
[dir="rtl"] .card-step {
  text-align: right;
}

/* Section headers */
[dir="rtl"] .section-header {
  text-align: right;
}
[dir="rtl"] .section-header.center {
  text-align: center; /* centred headers stay centred */
}

/* Divider: align left (= right in RTL becomes left visually) */
[dir="rtl"] .divider-gold {
  margin-left: auto;
  margin-right: 0;
}
[dir="rtl"] .section-header .divider-gold,
[dir="rtl"] .divider-gold.center {
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb: reverse separator */
[dir="rtl"] .breadcrumb-sep {
  transform: scaleX(-1);
}

/* Footer contact items */
[dir="rtl"] .footer-contact-item {
  flex-direction: row-reverse;
}

/* Mobile nav links */
[dir="rtl"] .nav-mobile-links a {
  text-align: right;
}

/* Form labels & inputs */
[dir="rtl"] .form-label {
  text-align: right;
}
[dir="rtl"] .form-control {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] select.form-control {
  background-position: left var(--space-3) center; /* chevron on left */
  padding-right: var(--space-4);
  padding-left: var(--space-8);
}

/* Buttons: flip icon positions */
[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

/* Arabic font override */
[dir="rtl"] body,
[dir="rtl"] .heading-1,
[dir="rtl"] .heading-2,
[dir="rtl"] .heading-3,
[dir="rtl"] .heading-4,
[dir="rtl"] .subheading,
[dir="rtl"] .body-lg,
[dir="rtl"] .body-base,
[dir="rtl"] .body-sm {
  font-family: 'Cairo', 'Noto Sans Arabic', var(--font-body);
}
/* Keep display font (Playfair) for elements that don't carry Arabic text */
[dir="rtl"] .heading-display,
[dir="rtl"] .font-display {
  font-family: var(--font-display);
}

/* Accessibility: reduced motion still applies for RTL */
@media (prefers-reduced-motion: reduce) {
  [dir="rtl"] .anim-slide-left,
  [dir="rtl"] .anim-slide-right {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}
