/* ================================================================
   UDOKORO PALM KERNEL PROCESSING FACTORY — Main Stylesheet
   ================================================================
   Table of Contents:
   1.  CSS Custom Properties (Design Tokens)
   2.  CSS Reset & Base
   3.  Typography
   4.  Utility Classes
   5.  Buttons
   6.  Layout Helpers
   7.  Navigation Bar
   8.  Hero Section
   9.  About Section
   10. Products Section
   11. Why Choose Us Section
   12. Contact / CTA Section
   13. Footer
   14. Scroll-to-Top Button
   15. Scroll Reveal Animations
   16. Responsive Breakpoints
================================================================ */


/* ================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
================================================================ */
:root {
  /* Brand colours */
  --clr-green-dark:   #1b4332;
  --clr-green:        #2d6a4f;
  --clr-green-mid:    #40916c;
  --clr-green-light:  #52b788;
  --clr-gold:         #d4af37;
  --clr-gold-light:   #f5c842;
  --clr-gold-pale:    #fdf4d0;
  --clr-charcoal:     #2c2c2c;
  --clr-charcoal-mid: #3d3d3d;
  --clr-white:        #ffffff;
  --clr-off-white:    #f9f9f7;
  --clr-gray-light:   #f1f1ee;
  --clr-gray:         #9ca3af;
  --clr-text:         #333333;
  --clr-text-muted:   #666666;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.25);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --max-width: 1180px;
  --nav-height: 72px;
}


/* ================================================================
   2. CSS RESET & BASE
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-white);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus outline for accessibility */
:focus-visible {
  outline: 3px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================================
   3. TYPOGRAPHY
================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--clr-charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p {
  margin-bottom: var(--space-sm);
  color: var(--clr-text-muted);
}

p:last-child { margin-bottom: 0; }

strong { color: var(--clr-charcoal); font-weight: 600; }


/* ================================================================
   4. UTILITY CLASSES
================================================================ */
.section {
  padding: var(--space-2xl) 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-green);
  background: rgba(45, 106, 79, 0.10);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.section-label--gold {
  color: var(--clr-gold);
  background: rgba(212, 175, 55, 0.12);
}

.section-title {
  margin-bottom: var(--space-sm);
  color: var(--clr-charcoal);
}

.section-title--white {
  color: var(--clr-white);
}

.section-desc {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--clr-text-muted);
}

.section-desc--light {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header--light .section-title,
.section-header--light .section-label {
  /* handled by modifier classes above */
}

.section-header .section-desc {
  margin: 0 auto;
}


/* ================================================================
   5. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

/* Gold filled */
.btn-gold {
  background: var(--clr-gold);
  color: var(--clr-charcoal);
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--clr-gold-light);
  border-color: var(--clr-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212,175,55,0.38);
}

/* Green filled */
.btn-green {
  background: var(--clr-green);
  color: var(--clr-white);
  border-color: var(--clr-green);
}
.btn-green:hover,
.btn-green:focus-visible {
  background: var(--clr-green-dark);
  border-color: var(--clr-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,106,79,0.30);
}

/* White outline */
.btn-outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background: rgba(255,255,255,0.15);
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

/* Small size modifier */
.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.875rem;
}

/* Full-width modifier */
.btn-full {
  width: 100%;
}


/* ================================================================
   6. LAYOUT HELPERS
================================================================ */
.text-center { text-align: center; }
.text-white  { color: var(--clr-white); }
.mt-sm       { margin-top: var(--space-sm); }
.mt-md       { margin-top: var(--space-md); }


/* ================================================================
   7. NAVIGATION BAR
================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(27, 67, 50, 1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-md);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-gold);
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
  color: var(--clr-gold);
  background: rgba(212,175,55,0.1);
}

/* Nav CTA */
.nav-cta {
  padding: 0.55rem 1.35rem;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger — open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--clr-green-dark);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul {
  margin-bottom: var(--space-sm);
}

.mobile-menu ul li a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}

.mobile-menu ul li a:hover {
  color: var(--clr-gold);
}

.mobile-cta {
  display: block;
  text-align: center;
  margin-top: var(--space-sm);
}


/* ================================================================
   8. HERO SECTION
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;

  /* Gradient simulating lush plantation atmosphere */
  background:
    linear-gradient(
      160deg,
      var(--clr-green-dark) 0%,
      #163d2d 35%,
      #0f2d1e 70%,
      #0a1f14 100%
    );
}

/* Subtle texture overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(212,175,55,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(45,106,79,0.3) 0%, transparent 55%);
  pointer-events: none;
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(45,106,79,0.25) 0%, transparent 70%);
}
.hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--clr-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.hero-headline {
  color: var(--clr-white);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-headline .highlight {
  color: var(--clr-gold);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.hero-sub strong {
  color: var(--clr-gold-light);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--clr-gold);
  font-weight: 700;
  line-height: 1;
}

.stat-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}


/* ================================================================
   9. ABOUT SECTION
================================================================ */
.about-section {
  background: var(--clr-off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Visual side */
.about-visual {
  position: relative;
}

.about-img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--clr-green-dark) 0%, var(--clr-green) 100%);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.about-img-placeholder svg {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Floating badge */
.about-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--clr-gold);
  color: var(--clr-charcoal);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 120px;
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  line-height: 1;
}

.about-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-charcoal);
  opacity: 0.75;
}

/* Text side */
.about-text {
  padding-left: var(--space-sm);
}

.about-text p {
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.about-list {
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--clr-text);
}

.list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--clr-green);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1;
}


/* ================================================================
   10. PRODUCTS SECTION
================================================================ */
.products-section {
  background: var(--clr-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

/* Product Card */
.product-card {
  position: relative;
  background: var(--clr-white);
  border: 1px solid #e8e8e4;
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured card */
.product-card--featured {
  border-color: var(--clr-gold);
  box-shadow: 0 4px 20px rgba(212,175,55,0.18);
  background: linear-gradient(175deg, #fdf9ec 0%, var(--clr-white) 50%);
}

.product-card--featured:hover {
  box-shadow: 0 10px 40px rgba(212,175,55,0.28);
}

.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-gold);
  color: var(--clr-charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
}

.product-image {
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) 0;
  height: 210px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-green);
  background: rgba(45,106,79,0.1);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.product-card--featured .product-tag {
  color: #8a6a00;
  background: rgba(212,175,55,0.18);
}

.product-card h3 {
  font-size: 1.2rem;
  color: var(--clr-charcoal);
}

.product-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  flex-grow: 1;
}

.product-uses {
  border-top: 1px solid #f0f0eb;
  padding-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-uses li {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.product-uses li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
}


/* ================================================================
   11. WHY CHOOSE US SECTION
================================================================ */
.why-section {
  background: linear-gradient(150deg, var(--clr-green-dark) 0%, #163d2d 50%, var(--clr-green-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.why-section::before,
.why-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.why-section::before {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
}
.why-section::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -80px;
  background: radial-gradient(circle, rgba(82,183,136,0.08) 0%, transparent 70%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.why-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.why-icon svg {
  width: 52px;
  height: 52px;
}

.why-card h3 {
  color: var(--clr-white);
  font-size: 1.1rem;
}

.why-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.why-card p strong {
  color: var(--clr-gold-light);
}


/* ================================================================
   12. CONTACT / CTA SECTION
================================================================ */
.contact-cta-section {
  background: var(--clr-off-white);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Form side */
.cta-form-wrapper {
  background: var(--clr-white);
  border: 1px solid #e8e8e4;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.cta-form-wrapper .section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 0.5rem;
}

.cta-form-wrapper > p {
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-charcoal);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L2 5h12L8 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-gray);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(45,106,79,0.1);
  border: 1px solid rgba(45,106,79,0.3);
  color: var(--clr-green);
}

.form-status.error {
  display: block;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  color: #dc2626;
}

/* Info panel */
.cta-info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-sm));
}

.info-card {
  background: var(--clr-green-dark);
  color: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.info-card h3 {
  color: var(--clr-gold);
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(212,175,55,0.25);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: var(--space-md);
}

.info-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-item strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-item span,
.info-item a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.info-item a:hover {
  color: var(--clr-gold-light);
  text-decoration: underline;
}

/* Buyer type tags */
.buyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.buyer-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.buyer-tag:hover {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3);
  color: var(--clr-gold-light);
}


/* ================================================================
   13. FOOTER
================================================================ */
.footer {
  background: var(--clr-charcoal);
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

/* Footer brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo .logo-name { color: var(--clr-gold); }
.footer-logo .logo-sub  { color: rgba(255,255,255,0.5); }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0;
}

/* Footer columns */
.footer-col h4 {
  color: var(--clr-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--clr-gold);
  padding-left: 4px;
}

/* Footer contact */
.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--clr-gold);
  text-decoration: underline;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


/* ================================================================
   14. SCROLL-TO-TOP BUTTON
================================================================ */
.scroll-top {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 46px;
  height: 46px;
  background: var(--clr-green);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--clr-green-dark);
  transform: translateY(-2px);
}


/* ================================================================
   15. SCROLL REVEAL ANIMATIONS
================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.35s; }
.fade-in:nth-child(4) { animation-delay: 0.5s; }
.fade-in:nth-child(5) { animation-delay: 0.65s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal — initial state */
/* Only hide when JS is active (class added synchronously by script.js) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Applied by JS when element enters viewport */
.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced-motion: skip animation entirely */
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger siblings in grids */
.why-grid .reveal:nth-child(2),
.products-grid .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.why-grid .reveal:nth-child(3),
.products-grid .reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.why-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.4s; }


/* ================================================================
   16. RESPONSIVE BREAKPOINTS
================================================================ */

/* ---- Large desktop (≥ 1200px) — default styles above ---- */

/* ---- Medium desktop / large tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --space-2xl: 4.5rem;
    --space-xl: 3rem;
  }

  .about-grid {
    gap: var(--space-lg);
  }

  .products-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid .reveal:nth-child(5) { transition-delay: 0.15s; }
  .why-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ---- Tablet (≤ 860px) ---- */
@media (max-width: 860px) {
  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    padding-left: 0;
  }

  .about-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cta-info {
    position: static;
    order: -1; /* Show contact info above form on tablet */
  }
}

/* ---- Small tablet / large phone (≤ 680px) ---- */
@media (max-width: 680px) {
  :root {
    --space-2xl: 3.5rem;
    --space-xl: 2.5rem;
  }

  .hero-content {
    padding-top: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-sm);
  }

  .stat-divider {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-form-wrapper {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ---- Mobile phones (≤ 420px) ---- */
@media (max-width: 420px) {
  :root {
    --nav-height: 64px;
  }

  .logo-sub { display: none; }

  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .about-badge {
    right: 0;
    bottom: -10px;
  }

  .product-card {
    padding: var(--space-md);
  }

  .info-card {
    padding: var(--space-md);
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: 12px;
    right: 12px;
  }
}


/* ================================================================
   QUOTE PAGE — quote.html specific styles
   ================================================================
   Shares the full design system from above.
   Only new components are defined here.
================================================================ */

/* Prevent hero from rendering on quote page */
.quote-page body { scroll-padding-top: var(--nav-height); }

/* ---- Quote Hero / Page Header ---- */
.quote-hero {
  position: relative;
  background: linear-gradient(155deg, var(--clr-green-dark) 0%, #163d2d 50%, #0f2d1e 100%);
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  overflow: hidden;
}

.quote-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(45,106,79,0.25) 0%, transparent 50%);
  pointer-events: none;
}

.quote-hero-content {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  transition: color var(--transition);
}
.back-link:hover { color: var(--clr-gold); }

.quote-hero-badge {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--clr-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.quote-hero-title {
  color: var(--clr-white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-sm);
}

.quote-hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
  max-width: 580px;
  margin-bottom: var(--space-lg);
}

.quote-hero-sub strong { color: var(--clr-gold-light); }

/* Legend bar */
.quote-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  width: fit-content;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.legend-min {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.legend-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

.legend-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.legend-tag--pko {
  background: rgba(212,175,55,0.25);
  color: var(--clr-gold-light);
  border: 1px solid rgba(212,175,55,0.4);
}

.legend-tag--pkc {
  background: rgba(45,106,79,0.35);
  color: #74d4a0;
  border: 1px solid rgba(82,183,136,0.4);
}

.legend-tag--sludge {
  background: rgba(82,183,136,0.2);
  color: #a8e6c4;
  border: 1px solid rgba(82,183,136,0.3);
}

/* ---- Quote Form Layout ---- */
.quote-form-section {
  background: var(--clr-off-white);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.quote-form-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  align-items: start;
}

/* ---- Main form card ---- */
.qf-card {
  background: var(--clr-white);
  border: 1px solid #e8e8e4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---- Section blocks inside the form ---- */
.qf-section {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid #f0f0eb;
}

.qf-section:last-of-type {
  border-bottom: none;
}

.qf-section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.qf-step {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--clr-green);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
}

.qf-section-title {
  font-size: 1.15rem;
  color: var(--clr-charcoal);
  margin-bottom: 0.2rem;
}

.qf-section-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin: 0;
}

.qf-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ---- Required field marker ---- */
.req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

/* ---- Field hint text ---- */
.field-hint {
  font-size: 0.78rem;
  color: var(--clr-gray);
  margin-top: 0.2rem;
  display: block;
}

/* ---- Generic label for non-<label> group headings ---- */
.form-group-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-charcoal);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

/* ---- Error message under a field group ---- */
.field-error-msg {
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 500;
  min-height: 1.2em;
  margin-top: 0.3rem;
}

/* ---- Product selection rows ---- */
.product-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-row {
  border: 1.5px solid #e8e8e4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
  margin-bottom: 0.75rem;
}

.product-row:last-of-type {
  margin-bottom: 0;
}

.product-row.selected {
  border-color: var(--clr-green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.product-row.selected.pko-selected {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

/* Custom checkbox label */
.product-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem var(--space-md);
  cursor: pointer;
  background: var(--clr-white);
  transition: background var(--transition);
  user-select: none;
}

.product-checkbox-label:hover {
  background: var(--clr-gray-light);
}

/* Hide native checkbox */
.product-chk {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom checkbox box */
.product-chk-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: var(--radius-sm);
  background: var(--clr-white);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}

.product-chk-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--clr-white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.product-chk:checked + .product-chk-custom {
  background: var(--clr-green);
  border-color: var(--clr-green);
}

.product-chk:checked + .product-chk-custom::after {
  opacity: 1;
}

/* PKO checked — use gold */
#chk-pko:checked + .product-chk-custom {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
}

/* Product label content */
.product-label-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-grow: 1;
}

.product-label-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
}

.pko-tag {
  background: rgba(212,175,55,0.18);
  color: #8a6a00;
  border: 1px solid rgba(212,175,55,0.35);
}

.pkc-tag {
  background: rgba(45,106,79,0.12);
  color: var(--clr-green);
  border: 1px solid rgba(45,106,79,0.25);
}

.sludge-tag {
  background: rgba(82,183,136,0.12);
  color: #2d7a4f;
  border: 1px solid rgba(82,183,136,0.25);
}

.product-label-name {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--clr-charcoal);
}

.product-label-note {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-left: auto;
}

/* Quantity expansion panel */
.qty-group {
  border-top: 1px solid #f0f0eb;
  padding: var(--space-sm) var(--space-md);
  background: var(--clr-gray-light);
  display: none; /* Shown by JS when checkbox is checked */
}

.qty-group.active {
  display: block;
}

.qty-field {
  max-width: 280px;
}

.qty-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.qty-input-wrap input {
  padding-right: 3rem;
}

.qty-unit {
  position: absolute;
  right: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  pointer-events: none;
}

/* PKO minimum violation — red border on qty input */
input.qty-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

/* ---- Radio group ---- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--clr-text);
  cursor: pointer;
  padding: 0.55rem 1rem;
  border: 1.5px solid #e8e8e4;
  border-radius: var(--radius-full);
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}

.radio-label:hover {
  border-color: var(--clr-green-light);
  background: rgba(45,106,79,0.04);
}

/* Hide native radio */
.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom radio dot */
.radio-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: var(--clr-white);
  transition: all 0.15s ease;
  position: relative;
}

.radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-green);
  transition: transform 0.15s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--clr-green);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--clr-green);
  background: rgba(45,106,79,0.06);
  color: var(--clr-green-dark);
  font-weight: 500;
}

/* ---- Order summary bar ---- */
.qf-order-summary {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  background: rgba(45,106,79,0.06);
  border: 1px solid rgba(45,106,79,0.18);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-sm);
  display: none; /* shown when a product is selected */
}

.qf-order-summary.visible {
  display: block;
}

.qf-order-summary strong {
  color: var(--clr-green-dark);
}

/* ---- PKO minimum warning ---- */
.qf-pko-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff8e1;
  border: 1px solid #f9c440;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #7a5a00;
  margin-bottom: var(--space-sm);
}

.qf-pko-notice svg { flex-shrink: 0; margin-top: 1px; }
.qf-pko-notice strong { color: #7a5a00; }

/* ---- Submit area ---- */
.qf-submit-area {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid #f0f0eb;
  background: var(--clr-gray-light);
}

.qf-submit-btn {
  font-size: 1.02rem;
  padding: 1rem 2rem;
  letter-spacing: 0.03em;
}

.qf-submit-note {
  font-size: 0.76rem;
  color: var(--clr-gray);
  text-align: center;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* ---- Sidebar ---- */
.qf-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-sm));
}

.qf-sidebar-card {
  background: var(--clr-green-dark);
  color: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
}

.qf-sidebar-card h3 {
  color: var(--clr-gold);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.qf-sidebar-card > p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
}

.qf-ref-card {
  background: var(--clr-charcoal);
}

/* Reference items */
.ref-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ref-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ref-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ref-item-header strong {
  color: var(--clr-white);
  font-size: 0.92rem;
}

.ref-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ref-list li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  padding-left: 1rem;
  position: relative;
}

.ref-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-gold);
}

.ref-list li strong {
  color: var(--clr-gold-light);
}

/* ---- Quote page success state ---- */
.qf-success-screen {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  display: none;
}

.qf-success-screen.visible {
  display: block;
}

.qf-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(45,106,79,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

/* ---- Quote page responsive ---- */
@media (max-width: 1024px) {
  .quote-form-container {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 860px) {
  .quote-form-container {
    grid-template-columns: 1fr;
  }

  .qf-sidebar {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 680px) {
  .qf-section {
    padding: var(--space-md);
  }

  .qf-submit-area {
    padding: var(--space-md);
  }

  .qf-sidebar {
    grid-template-columns: 1fr;
  }

  .product-label-note {
    display: none; /* save space on very small screens */
  }

  .qty-field {
    max-width: 100%;
  }

  .quote-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .legend-divider { display: none; }
}

@media (max-width: 420px) {
  .radio-group {
    flex-direction: column;
  }
}
