:root {
  /* Colors - Derived from the Rajsamriddhi Brand Logo */
  --primary-dark: #230B06;           /* Deep espresso / mahogany (replaces navy #0a1628) */
  --primary-maroon: #5E1F11;         /* Logo text color (RAJSAMRIDDHI) */
  --primary-maroon-dark: #45150A;    /* Dark mahogany */
  --accent-blue: #C0461D;            /* Terracotta / Rust Red from logo icon */
  --accent-blue-dark: #A03714;       /* Deep terracotta hover */
  --accent-gold: #CB822A;            /* Logo subtitle Ochre Gold (ENTERPRISES LLP) */
  --accent-gold-dark: #B36E1D;       /* Deep amber */
  --accent-amber: #F1B135;           /* Bright Saffron/Marigold yellow from logo diamond */
  --white: #ffffff;
  --light-gray: #FAF7F2;             /* Soft warm linen/cream (replaces cold gray #f8f9fa) */
  --text-main: #2A221E;              /* Warm charcoal espresso (replaces cold #333333) */
  --text-muted: #6C5F56;             /* Warm muted brown-gray */
  --text-on-dark: #EFE6DC;           /* Warm soft off-white on dark backgrounds */
  --border-color: #E8DFD5;           /* Warm soft border (replaces #e5e7eb) */
  --error: #dc3545;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-darker: #0e6f64;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Layout */
  --container-width: 1200px;
  --container-padding: clamp(1rem, 4vw, 1.5rem);
  --header-height: 80px;
  --section-padding: clamp(3rem, 8vw, 5rem);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 30px rgba(192, 70, 29, 0.18);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  /* clip (unlike hidden) doesn't create a scroll container, so position: sticky keeps working */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

i {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--section-padding) 0;
}

h2.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: clamp(-2rem, -3vw, -1.25rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-family: var(--font-body);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-whatsapp {
  gap: 0.5rem;
  background-color: var(--whatsapp-dark);
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* WhatsApp glyph from the inline SVG sprite; inherits the text color */
.wa-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.2em;
  fill: currentColor;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--primary-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-gold);
  animation: spin 1s ease-in-out infinite;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

/* Authentic Image Logo */
.logo-img {
  height: clamp(40px, 34px + 1vw, 50px);
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

/* Footer Logo Card */
.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo-card {
  display: inline-block;
  background: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast);
}

.footer-logo-card:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: clamp(38px, 32px + 1vw, 46px);
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}

/* Hero Brand Emblem */
.hero-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(241, 177, 53, 0.4);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.hero-brand-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
}

.nav-links li a {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-blue);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-normal);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.cta-btn {
  flex-shrink: 0;
  min-height: 40px;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background-color: var(--accent-blue);
  color: var(--white);
  border: 2px solid var(--accent-blue);
}

.cta-btn:hover {
  background-color: var(--accent-blue-dark);
  border-color: var(--accent-blue-dark);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--primary-dark);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.navbar.scrolled .hamburger .bar {
  background-color: var(--primary-dark);
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, #4A170C 0%, #230B06 75%);
  color: var(--white);
  padding: calc(var(--header-height) + 2.5rem) 0 6rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-content .main-heading {
  color: var(--white);
  font-size: clamp(2rem, 1.2rem + 4vw, 3.5rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content .tagline {
  color: var(--accent-gold);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  /* Reserve space so the typing effect doesn't shift the layout */
  min-height: 1.2em;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-content .hero-lead {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Two-column hero: intro text + featured product (stacks below 1025px) */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

.hero-inner .hero-content {
  padding: 0;
}

.hero-product {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-product-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--white);
}

.hero-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-product-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.hero-product-body h3 {
  color: var(--white);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin-bottom: 0.4rem;
}

.hero-product-body > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero-product-points {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.hero-product-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--white);
  font-size: 0.9rem;
}

.hero-product-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: 700;
}

.hero-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (min-width: 1025px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    text-align: left;
  }

  .hero-inner .hero-content {
    margin: 0;
  }

  .hero-inner .hero-actions {
    justify-content: flex-start;
  }

  .hero-product {
    justify-self: end;
  }
}

.typing-effect {
  border-right: 2px solid var(--accent-gold);
  animation: blink-cursor 0.75s step-end infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: var(--white);
  /* translateX(-50%) lives inside the keyframes so the bounce keeps it centered */
  animation: float-centered 2s ease-in-out infinite;
  z-index: 2;
}

/* Floating decorative shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape.circle {
  width: clamp(160px, 30vw, 300px);
  height: clamp(160px, 30vw, 300px);
  background: var(--accent-gold);
  top: 10%;
  right: -5%;
  animation: float 6s ease-in-out infinite;
}

.shape.square {
  width: clamp(110px, 20vw, 200px);
  height: clamp(110px, 20vw, 200px);
  background: var(--accent-blue);
  bottom: 15%;
  left: -3%;
  border-radius: 30%;
  animation: float 8s ease-in-out infinite reverse;
}

.shape.circle-sm {
  width: clamp(60px, 10vw, 100px);
  height: clamp(60px, 10vw, 100px);
  background: var(--white);
  top: 60%;
  right: 20%;
  animation: float 5s ease-in-out infinite;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  background-color: var(--light-gray);
}

.about-grid {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text .about-sign {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  font-style: italic;
  color: var(--accent-gold-dark);
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
  background-color: var(--light-gray);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.filter-btn {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 11, 6, 0.92), rgba(35, 11, 6, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay,
.product-card:focus-within .product-overlay {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
  background: var(--accent-blue);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Full-width category banner inside the product grid (wires certifications) */
.product-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--primary-dark);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-lg);
}

.product-note-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
}

.product-note-text span {
  color: var(--text-on-dark);
  font-size: 0.875rem;
}

/* Touch devices have no hover: keep the inquiry button reachable */
@media (hover: none) {
  .product-overlay {
    opacity: 1;
    align-items: flex-end;
    padding-bottom: 1rem;
    background: linear-gradient(to top, rgba(35, 11, 6, 0.6), transparent 32%);
  }
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us-section {
  background-color: var(--primary-dark);
  color: var(--white);
}

.why-us-section h2.section-title {
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-gold);
}

.feature-card h3 {
  color: var(--white);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
}

.feature-card p {
  color: var(--text-on-dark);
  font-size: 0.95rem;
}

/* ==========================================================================
   Import & Export (Trade) Section
   ========================================================================== */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.trade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.trade-card:nth-child(2) {
  border-top-color: var(--accent-gold);
}

.trade-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.trade-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(192, 70, 29, 0.12);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trade-card:nth-child(2) .trade-tag {
  background: rgba(212, 168, 67, 0.15);
  color: #8a6a1f;
}

.trade-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.trade-card h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  margin-bottom: 0.75rem;
}

.trade-card > p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.trade-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.trade-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.trade-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--whatsapp-dark);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
  transform: translateY(0.15rem);
}

/* Pin the button to the bottom so both cards line up */
.trade-cta {
  margin-top: auto;
  align-self: flex-start;
}

.promise-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.promise-intro h3 {
  color: var(--accent-gold);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.promise-intro p {
  color: var(--text-on-dark);
  font-size: 0.95rem;
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.promise-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent-gold);
}

.promise-list strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.promise-list span {
  display: block;
  color: var(--text-on-dark);
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* 1rem font-size on inputs prevents iOS Safari from zooming on focus */
.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  background-color: var(--white);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(192, 70, 29, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

input.error,
textarea.error,
select.error {
  border-color: var(--error) !important;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.info-card > div {
  min-width: 0;
}

.info-icon {
  font-size: 1.5rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.form-success.form-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.form-success a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Spam honeypot: visually hidden but still in the form */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.form-alt {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-alt a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--whatsapp-dark);
}

.form-alt a:hover {
  color: var(--whatsapp-darker);
  text-decoration: underline;
}

.info-card p a {
  color: var(--accent-blue);
}

.info-card p a:hover {
  text-decoration: underline;
}

.info-card-whatsapp {
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.info-card-whatsapp .info-icon {
  color: var(--whatsapp-dark);
}

.info-card-whatsapp p {
  color: var(--whatsapp-dark);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-on-dark);
  padding-top: clamp(3rem, 8vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.footer .logo h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0;
}

.footer-col.company-info p {
  font-size: 0.95rem;
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a,
.footer .social-links a {
  display: inline-block;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-col ul a:hover,
.footer .social-links a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.footer .social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
}

.footer-bottom {
  padding: 1.5rem var(--container-padding);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 950;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.whatsapp-float .wa-icon {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* Sits directly above the WhatsApp button, centered on it */
.scroll-top {
  position: fixed;
  bottom: calc(clamp(1rem, 3vw, 2rem) + 68px);
  right: calc(clamp(1rem, 3vw, 2rem) + 5.5px);
  width: 45px;
  height: 45px;
  background: var(--accent-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 900;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-blue-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   Certifications page (certifications.html)
   ========================================================================== */
.cert-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cert-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.cert-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.cert-back:hover {
  color: var(--accent-blue);
}

.cert-hero {
  background: radial-gradient(circle at 50% 0%, #4A170C 0%, #230B06 80%);
  color: var(--white);
  text-align: center;
}

.cert-eyebrow {
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.cert-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3rem);
}

.cert-lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.cert-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.cert-chips li {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(212, 168, 67, 0.6);
  border-radius: 30px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-section {
  background: var(--light-gray);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Show the top of each certificate (title, standard, holder) as a preview */
.cert-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f5;
  border-bottom: 1px solid var(--border-color);
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-thumb img {
  transform: scale(1.04);
}

.cert-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.cert-tag {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  background: rgba(192, 70, 29, 0.12);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.cert-body > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.cert-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.cert-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cert-meta dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.cert-meta dd {
  font-weight: 600;
  color: var(--primary-dark);
  text-align: right;
}

.cert-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.cert-scope {
  background: var(--white);
}

.cert-scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.75rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.cert-scope-list li {
  position: relative;
  padding-left: 1.75rem;
}

.cert-scope-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
}

.cert-verify {
  max-width: 960px;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.cert-verify a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.cert-cta {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.cert-cta h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
}

.cert-cta p {
  color: var(--text-on-dark);
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.cert-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cert-footer {
  padding: 1.5rem var(--container-padding);
  padding-right: calc(var(--container-padding) + 64px);
  background: #060f1c;
  color: var(--text-on-dark);
  font-size: 0.875rem;
  text-align: center;
}

.cert-footer a:hover {
  color: var(--accent-gold);
}

@media (max-width: 480px) {
  .cert-back {
    font-size: 0.85rem;
  }

  .cert-body .btn,
  .cert-cta-actions .btn {
    align-self: stretch;
    width: 100%;
  }
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 1500; /* above the floating WhatsApp / back-to-top buttons */
  width: min(440px, calc(100% - 1.5rem));
  padding: 1.25rem 1.35rem;
  background: var(--primary-dark);
  color: var(--text-on-dark);
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-title {
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.cookie-banner p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cookie-banner-actions .btn {
  flex: 1;
  min-height: 42px;
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.9rem 1rem;
  }

  .cookie-banner-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .cookie-banner p {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .cookie-banner-actions {
    margin-top: 0.7rem;
  }

  .cookie-banner-actions .btn {
    min-height: 40px;
  }
}

[data-cookie-settings] {
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

[data-cookie-settings]:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
/* No `forwards` fill: the end state equals the element's natural style, and a
   persisting fill would override hover transforms (e.g. product card lift) */
.animate,
.animate.fadeInUp {
  animation: fadeInUp 0.8s ease;
}

.animate.fadeInLeft {
  animation: fadeInLeft 0.8s ease;
}

.animate.fadeInRight {
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes float-centered {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-gold); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptops / large tablets: collapse nav into the hamburger menu */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
    order: 3;
  }

  .cta-btn {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    margin-left: 0;
    padding: 2rem var(--container-padding);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    overflow-y: auto;
    box-shadow: inset 0 5px 10px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li a,
  .navbar.scrolled .nav-links li a {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  /* Keep the underline under the word, not the padded tap area */
  .nav-links li a::after {
    left: 1.25rem;
    bottom: 0.35rem;
  }

  .nav-links li a:hover::after,
  .nav-links li a.active::after {
    width: calc(100% - 2.5rem);
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .trade-grid,
  .contact-grid,
  .promise-bar {
    grid-template-columns: 1fr;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .features-grid,
  .promise-list {
    grid-template-columns: 1fr;
  }

  .about-grid {
    text-align: left;
  }

  /* Keep the copyright line clear of the floating WhatsApp / back-to-top buttons */
  .footer-bottom {
    text-align: left;
    padding-right: calc(var(--container-padding) + 64px);
  }

  .hero-content .tagline {
    /* The tagline wraps to two lines on narrow screens */
    min-height: 2.4em;
  }

  /* All product filter chips always shown and visible on mobile */
  .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.5rem;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: visible;
  }

  .filter-btn {
    flex: 0 1 auto;
    font-size: 0.82rem;
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    white-space: normal;
    text-align: center;
  }
}

/* Phones */
@media (max-width: 480px) {
  .cta-btn {
    display: none;
  }

  .hamburger {
    margin-left: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trade-cta {
    align-self: stretch;
  }

  .product-note .btn,
  .hero-product-actions .btn {
    width: 100%;
  }

  .info-card:hover {
    transform: none;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
