/* ===== MODERN PROFESSIONAL DESIGN SYSTEM ===== */

/* CSS Custom Properties */
:root {
  /* Primary Colors */
  --primary-900: #0f1720; /* modern slate/ink */
  --primary-800: #1c2630;
  --primary-700: #24313b;
  --primary-600: #2f3e49;
  --primary-500: #3b4c58;
  --primary-400: #506474;
  --primary-300: #e6d7ab;
  --primary-200: #efe5c7;
  --primary-100: #f6efe1;
  --primary-50:  #fcf9f2;

  /* Neutral Colors (warm linen undertone) */
  --neutral-900: #141414;
  --neutral-800: #232323;
  --neutral-700: #343434;
  --neutral-600: #4a4a4a;
  --neutral-500: #6c6c6c;
  --neutral-400: #a0a0a0;
  --neutral-300: #dad6cd;
  --neutral-200: #ece6db;
  --neutral-100: #f7f2ea;
  --neutral-50:  #fdfaf6;
  --white: #ffffff;

  /* Accent Colors */
  --accent-gold: #d8c690;   /* champagne gold */
  --accent-green: #1f3d33;  /* deep forest green */
  --accent-blue: #2f4662;   /* muted navy */
  --accent-emerald: #2f7a5a; /* elegant emerald */
  --accent-sapphire: #355c8a;/* rich sapphire */
  --accent-terracotta: #b05a3c; /* warm terracotta */

  /* Linen Tones */
  --linen-cream: #f7f2ea;

  /* Semantic Colors */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 0.9375rem;/* 15px */
  --text-lg: 1.0625rem;  /* 17px */
  --text-xl: 1.1875rem;  /* 19px */
  --text-2xl: 1.375rem;  /* 22px */
  --text-3xl: 1.625rem;  /* 26px */
  --text-4xl: 2rem;      /* 32px */
  --text-5xl: 2.5rem;    /* 40px */
  --text-6xl: 3.25rem;   /* 52px */

  /* Spacing Scale */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Container Sizes */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* Utility: Button Row (keep actions on one line) */
.btn-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.btn-row .btn { white-space: nowrap; flex: 0 0 auto; }

/* Ensure consistent alignment inside cards */
.card .btn-row {
  justify-content: space-between;
  width: 100%;
}

/* Products: make cards stack content and pin actions to bottom */
.products-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%; /* allow stretch to equal heights */
}

.products-grid .card .btn-row {
  margin-top: auto !important; /* push actions to the bottom of the card */
  padding-top: var(--space-4); /* breathing room within the bar */
  border-top: 1px solid var(--neutral-200, rgba(0,0,0,0.08)); /* subtle divider */
}

/* Ensure the paragraph above the button bar has some bottom margin */
.products-grid .card p:last-of-type {
  margin-bottom: var(--space-3);
}

/* Make grid items stretch so all cards get equal height */
.products-grid {
  align-items: stretch;
}

/* Provide a sensible minimum height so short cards still have room for bottom actions */
@media (min-width: 768px) {
  .products-grid .card { min-height: 420px; }
}
@media (max-width: 767.98px) {
  .products-grid .card { min-height: 360px; }
}

/* On very small screens, slightly tighten button sizing so two fit on one line */
@media (max-width: 380px) {
  .card .btn-row .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
  }
  .card .btn-row { gap: 0.4rem; }
}

/* ===== New Carousel (self-contained) ===== */
.carousel {
  position: relative;
}

.carousel-viewport {
  position: relative;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000; /* avoid white flash under video */
  isolation: isolate; /* keep any section overlays behind */
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1), transform 800ms cubic-bezier(0.22,1,0.36,1);
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Fallback: ensure first slide shows even before JS activation */
.carousel-viewport .carousel-slide:first-child {
  opacity: 1;
  transform: scale(1);
}

/* Ensure media inside the visible slide is not hidden by any global rules */
.carousel .carousel-slide.is-active img,
.carousel .carousel-slide.is-active video,
.carousel .carousel-viewport .carousel-slide:first-child img,
.carousel .carousel-viewport .carousel-slide:first-child video {
  opacity: 1 !important;
  visibility: visible !important;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #000; /* ensure video has black backdrop while loading */
}

/* Ensure no global filters/overlays affect carousel media */
.carousel-viewport *,
.carousel-slide,
.carousel-slide img,
.carousel-slide video {
  filter: none !important;
  mix-blend-mode: normal !important;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-emerald));
  color: #fff;
  box-shadow: 0 8px 20px rgba(17,24,39,0.18);
  cursor: pointer;
  z-index: 2;
}

.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.5);
}

.carousel-dots button.is-active {
  width: 18px;
  background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-emerald));
  box-shadow: 0 4px 10px rgba(17,24,39,0.22);
}

@media (max-width: 640px) {
  .carousel-viewport { height: 300px; }
  .carousel-nav { display: none; }
}

/* ===== FORM STATES & ERRORS ===== */
.form-error {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

label[for="contact-email"][data-error-visible="true"] {
  color: var(--error);
}

/* ===== RESET & BASE STYLES ===== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  font-weight: 600;
}

p {
  margin-bottom: var(--space-3);
  line-height: 1.7; /* improve readability with smaller text */
  color: var(--neutral-700);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
  text-decoration: underline;
  text-decoration-color: var(--primary-300);
  text-underline-offset: 2px;
}

/* ===== LAYOUT COMPONENTS ===== */

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

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

/* ===== NAVIGATION ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-normal);
  box-shadow: inset 20px 0 30px -20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: inset 20px 0 30px -20px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--primary-800);
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.brand:hover img {
  transform: scale(1.05);
}

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

.nav-link {
  font-weight: 500;
  color: var(--primary-800);
  transition: all var(--transition-fast);
  position: relative;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.nav-link:hover {
  color: var(--primary-900);
  background: rgba(165, 131, 57, 0.08);
}

.nav-link.active {
  color: var(--primary-900);
  background: rgba(165, 131, 57, 0.12);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(165,131,57,0.06);
  border: 1px solid var(--primary-300);
  border-radius: var(--radius-md);
  color: var(--primary-800);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.language-toggle:hover {
  background: rgba(165,131,57,0.12);
  color: var(--primary-900);
}

.translate-widget {
  position: relative;
  display: inline-block;
}

.translate-button {
  background: var(--white);
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3c4043;
  font-family: 'Google Sans', Arial, sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.translate-button:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-color: #bdc1c6;
}

.globe-icon {
  color: #1a73e8;
  flex-shrink: 0;
}

.dropdown-arrow {
  color: #5f6368;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.translate-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 140px;
  z-index: 1000;
  overflow: hidden;
}

.translate-widget.open .translate-dropdown {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.translate-widget.open .dropdown-arrow {
  transform: rotate(180deg);
}

.language-option {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #3c4043;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.1s ease;
  border: none;
  width: 100%;
  text-align: left;
}

.language-option:hover {
  background-color: #f8f9fa;
}

.language-option.active {
  background-color: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}

.language-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  z-index: 1001;
  margin-top: var(--space-1);
}

.language-dropdown.open .language-dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.language-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  color: var(--neutral-700);
  text-decoration: none;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--neutral-100);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: var(--neutral-50);
  color: var(--primary-600);
}

.language-option.active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.language-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Body padding for fixed navbar */
body {
  padding-top: 80px;
}

/* Ensure fixed navbar stays on top */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transform: none !important;
}

/* ===== HERO SECTION ===== */

.hero {
  background: linear-gradient(135deg, var(--linen-cream) 0%, var(--primary-50) 100%);
  padding: var(--space-10) 0; /* tighter fold */
  min-height: 50vh; /* reduce hero height */
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate; /* ensure overlay stays behind content */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* subtle linen-like crosshatch texture using pure CSS */
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 3px);
  background-size: 100% 100%, 100% 100%;
  opacity: 0.4; /* calmer */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* give more space to media */
  gap: var(--space-10);
  align-items: center;
  max-width: var(--container-2xl); /* wider hero to showcase media */
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1; /* above texture overlay */
}

/* Single-column centered layout when hero has no image */
.hero.hero--text-only .hero-content {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero.hero--text-only .hero-text p {
  margin-left: auto;
  margin-right: auto;
}

.hero-text h1 {
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); /* even more compact */
  position: relative;
  display: inline-block;
}

/* Soft gold underline only for hero heading */
.hero .hero-text h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 88px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  border-radius: 2px;
}

.hero-text p {
  font-size: var(--text-lg);
  color: var(--neutral-700); /* better readability */
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  transition: transform var(--transition-slow);
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* ===== BUTTONS ===== */

/* Hero media slider */
.hero-media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: var(--neutral-100);
  height: 100%;
  min-height: 600px; /* taller visuals on desktop */
}

.hero-media .slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-media .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease; /* smoother crossfade */
  will-change: opacity, transform;
}

/* Ensure active slide is visible */
.hero-media .slide.is-active {
  opacity: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Soft overlay for contrast against text and to elevate elegance */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  background: none;
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero establishes a containing block and content is above overlay */
.hero { position: relative; }
.hero .hero-content { position: relative; z-index: 1; }

/* Subtle Ken Burns effect on active slide media */
.hero-media .slide img,
.hero-media .slide video {
  transform: scale(1.12);
  transition: transform 1500ms ease-out;
}

.hero-media .slide.is-active img,
.hero-media .slide.is-active video {
  animation: kenburns 6500ms ease-out forwards;
}

@keyframes kenburns {
  0% { transform: scale(1.12); }
  100% { transform: scale(1.0); }
}

/* Responsive sizing for hero media */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-media { min-height: 420px; }
}

@media (max-width: 640px) {
  .hero-media { min-height: 320px; }
}

.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.slider-dots .dot.is-active {
  background: var(--primary-500);
  border-color: var(--primary-100);
}

.slider-dots .dot:hover {
  opacity: 0.9;
  transform: scale(1.1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-emerald));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-sapphire), color-mix(in oklab, var(--accent-emerald) 85%, black));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.22);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(53,92,138,0.08), rgba(53,92,138,0));
  color: var(--primary-800);
  border-color: var(--accent-sapphire);
}

.btn-secondary:hover {
  background: var(--accent-sapphire);
  color: var(--white);
}

/* CTA section: ensure strong contrast for secondary buttons on dark bg */
.cta-section .btn-secondary {
  color: #f8fafc !important; /* bright text */
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}

.cta-section .btn-secondary:hover,
.cta-section .btn-secondary:focus-visible {
  color: #ffffff !important;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}

/* Tertiary (outline) button for colorful accents */
.btn-tertiary {
  background: transparent;
  color: var(--accent-sapphire);
  border-color: var(--accent-sapphire);
}

.btn-tertiary:hover {
  background: linear-gradient(180deg, rgba(53,92,138,0.1), rgba(53,92,138,0));
  color: var(--white);
  border-color: var(--accent-sapphire);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ===== CARDS & GRIDS ===== */

.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 6px 18px rgba(16, 42, 33, 0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-emerald), var(--accent-sapphire));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  color: var(--primary-700);
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Modern card icon badge (for emoji or inline svg) */
.card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  background: radial-gradient(85% 85% at 50% 35%, var(--primary-100), var(--primary-50));
  border: 1px solid var(--primary-200);
  box-shadow: 0 6px 14px rgba(165,131,57,0.16);
  color: var(--primary-700);
  font-size: 1.1rem;
}

/* Slight glow on hover for a premium feel */
.card:hover .card-icon {
  box-shadow: 0 10px 20px rgba(165,131,57,0.22);
}

/* ===== TRUST BAR (Logo Row) ===== */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  color: var(--neutral-700);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

/* ===== STATS STRIP ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.stat {
  text-align: center;
  padding: var(--space-4);
}

.stat-value {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: var(--space-2);
  color: var(--neutral-600);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
}

/* ===== SECTIONS ===== */

.section-header {
  text-align: center;
  margin-bottom: calc(var(--space-12) + var(--space-2));
}

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

.section-header p {
  font-size: var(--text-base);
  color: var(--neutral-600);
  max-width: 60ch;
  margin: 0 auto;
}

/* Why page hero styling */
.why-hero {
  background: linear-gradient(135deg, var(--neutral-50), var(--primary-50));
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.why-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(60% 60% at 50% 35%, rgba(214, 190, 140, 0.15), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 4px);
}

.why-hero .section-header h1 {
  color: var(--primary-800);
  letter-spacing: 0.2px;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.why-hero .section-header p {
  color: var(--neutral-700);
}

/* Lead text */
.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--neutral-700);
  max-width: 70ch;
  margin: 0.5rem auto 0;
}

/* Testimonials strip */
.testimonials {
  background: var(--neutral-50);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.testimonial p {
  color: var(--neutral-700);
  font-size: 0.975rem;
  line-height: 1.7;
}

.testimonial .author {
  margin-top: var(--space-4);
  color: var(--neutral-600);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Why page text sizing tweaks */
.section-sm .card p {
  font-size: 0.975rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .testimonial-list { grid-template-columns: 1fr; }
}

/* Elegant underline for section headings */
.section-header h1,
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-2);
}

.section-header h1::after,
.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-emerald), transparent);
  border-radius: 2px;
}

/* Subtle linen texture overlay for sections */
.section {
  position: relative;
  isolation: isolate;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(60% 60% at 50% 30%, rgba(214,188,122,0.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.012) 0px, rgba(0,0,0,0.012) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.012) 0px, rgba(0,0,0,0.012) 1px, transparent 1px, transparent 4px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  opacity: 0.38; /* slightly more present */
}

.section > * {
  position: relative;
  z-index: 1;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700) 60%, var(--accent-emerald));
  color: var(--white);
  text-align: center;
  padding: var(--space-16) var(--space-6);
  border-radius: var(--radius-2xl);
  margin: var(--space-16) var(--space-6);
  position: relative;
  isolation: isolate;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cta-section p {
  color: var(--primary-100);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(50% 50% at 50% 50%, rgba(198,169,105,0.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 4px);
  background-size: 100% 100%, 100% 100%;
  opacity: 0.4;
}

/* ===== FORMS ===== */

.form {
  display: grid;
  gap: var(--space-6);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: grid;
  gap: var(--space-2);
}

.form label {
  font-weight: 600;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form input,
.form textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background: var(--white);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(165, 131, 57, 0.15);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== CONTENT SECTIONS ===== */

.content {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: var(--space-12) var(--space-5);
}

.content h1 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.story {
  max-width: 70ch;
  margin: 0 auto;
}

.story p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.image-block {
  margin: var(--space-16) 0;
  text-align: center;
}

.image-block img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ===== Simple Media Grid (replacing slider) ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.media-grid figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.media-grid img,
.media-grid video {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.media-grid figure.wide {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid img, .media-grid video { height: 200px; }
  .media-grid figure.wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-grid img, .media-grid video { height: 220px; }
  .media-grid figure.wide { grid-column: span 1; }
}

/* ===== Photos Slider (Horizontal) ===== */
.photos-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.photos-viewport {
  overflow-x: hidden; /* autoplay-only: prevent manual scroll */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 450px;
  position: relative;
  touch-action: none; /* disable touch panning */
  scrollbar-width: none; /* Firefox */
}
.photos-viewport::-webkit-scrollbar { display: none; } /* WebKit */

.photos-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--space-6);
  padding: 0;
  align-items: center;
  height: 450px;
}

.photo-slide {
  scroll-snap-align: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  padding: 0;
  box-shadow: 
    0 12px 40px rgba(0,0,0,0.1),
    0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--neutral-200);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  transform: scale(0.95);
  width: 100%;
  height: 450px;
}

.photo-slide img,
.photo-slide video {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: all 700ms cubic-bezier(0.23, 1, 0.32, 1);
  filter: none;
}

.photo-slide.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.15),
    0 8px 25px rgba(0,0,0,0.1),
    0 0 0 2px var(--primary-200);
  border-color: var(--primary-300);
  background: var(--white);
}

/* Clean hover effects */
.photo-slide:hover {
  transform: scale(0.97);
  box-shadow: 
    0 15px 50px rgba(0,0,0,0.12),
    0 6px 20px rgba(0,0,0,0.08);
}

.photo-slide.is-active:hover {
  transform: scale(1.02);
  box-shadow: 
    0 25px 70px rgba(0,0,0,0.18),
    0 10px 30px rgba(0,0,0,0.12),
    0 0 0 3px var(--primary-300);
}

.photo-slide.is-active img,
.photo-slide.is-active video {
  filter: none;
}

/* Enhanced edge fades with depth */
.photos-viewport::before,
.photos-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.photos-viewport::before {
  left: 0;
  background: linear-gradient(to right, 
    var(--neutral-50) 0%, 
    rgba(251, 248, 243, 0.85) 50%, 
    transparent 100%);
}

.photos-viewport::after {
  right: 0;
  background: linear-gradient(to left, 
    var(--neutral-50) 0%, 
    rgba(251, 248, 243, 0.85) 50%, 
    transparent 100%);
}

/* ===== SECONDARY SECTION (elegant linen + color wash) ===== */
.bg-secondary {
  background: linear-gradient(180deg, var(--neutral-50), var(--neutral-100));
  position: relative;
}

.bg-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(50% 50% at 50% 20%, rgba(214,188,122,0.10), transparent 60%),
    radial-gradient(40% 40% at 80% 80%, rgba(47,70,98,0.06), transparent 70%);
  opacity: 1;
}

/* ===== LINKS polish ===== */
a {
  color: var(--accent-sapphire);
}

a:hover {
  color: var(--primary-800);
  text-decoration-color: var(--accent-gold);
}

/* ===== FOOTER polish ===== */
footer a {
  color: var(--primary-100);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.6);
}

.photos-slider { position: relative; }

.photos-nav {
  appearance: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-emerald));
  color: #fff;
  box-shadow: 0 8px 20px rgba(17,24,39,0.18);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0.95;
}

.photos-nav:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 12px 24px rgba(17,24,39,0.22); }
.photos-nav:active { transform: translateY(-50%) scale(0.98); box-shadow: 0 6px 16px rgba(17,24,39,0.18); }

.photos-nav.prev { left: 8px; }
.photos-nav.next { right: 8px; }

/* Hide arrows on very small screens where swipe/scroll is preferred */
@media (max-width: 640px) {
  .photos-track { grid-auto-columns: 94%; }
  .photo-slide img, .photo-slide video { height: 300px; }
  .photos-nav { display: none; }
}

/* From Field to Fabric: balance text and media */
#from-field-to-fabric .grid {
  align-items: center;
  gap: var(--space-8);
  grid-template-columns: 1.2fr 1.8fr;
}

#from-field-to-fabric .grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#from-field-to-fabric .grid > div:last-child {
  height: 450px;
}

#from-field-to-fabric h2 {
  margin-bottom: var(--space-3);
}

#from-field-to-fabric p {
  max-width: 55ch;
  line-height: 1.7;
}

/* Elegant frame around section */
#from-field-to-fabric .container {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
}

#from-field-to-fabric .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .photos-viewport { scroll-behavior: auto; }
  .photo-slide, .photo-slide img { transition: none !important; }
}

.slider-dots { display: none !important; }

/* ===== Fade Mode (Professional Crossfade) ===== */
.photos-slider.is-fade .photos-viewport {
  overflow: hidden; /* no scroll in fade mode */
}

.photos-slider.is-fade .photos-track {
  position: relative;
  display: block; /* disable horizontal grid */
  height: 420px; /* match media height */
}

.photos-slider.is-fade .photo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: none; /* no scale shrink on base */
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photos-slider.is-fade .photo-slide.is-active {
  opacity: 1;
}

/* Direction-aware micro-motion for modern feel */
.photos-slider.is-fade { --slide-dir: 1; }
.photos-slider.is-fade.dir-next { --slide-dir: 1; }
.photos-slider.is-fade.dir-prev { --slide-dir: -1; }

.photos-slider.is-fade.animating .photo-slide.is-active img,
.photos-slider.is-fade.animating .photo-slide.is-active video {
  animation: slideInDir 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.photos-slider.is-fade.animating .photo-slide.was-active img,
.photos-slider.is-fade.animating .photo-slide.was-active video {
  animation: slideOutDir 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideInDir {
  0% {
    opacity: 0;
    transform: translateX(calc(var(--slide-dir) * 18px)) scale(1.02);
    filter: saturate(0.9) brightness(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
}

@keyframes slideOutDir {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(var(--slide-dir) * -18px)) scale(0.985);
    filter: blur(1px) brightness(0.96);
  }
}

.photos-slider.is-fade .photo-slide img,
.photos-slider.is-fade .photo-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Ken Burns subtle zoom on active */
@keyframes kenburnsSlow {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.06); }
}

.photos-slider.is-fade .photo-slide.is-active img,
.photos-slider.is-fade .photo-slide.is-active video {
  animation: kenburnsSlow 4s ease-in-out forwards;
}

/* Remove edge fades in fade mode */
.photos-slider.is-fade .photos-viewport::before,
.photos-slider.is-fade .photos-viewport::after { display: none; }

/* ===== Modern Enhancements: Caption, Progress, Dots ===== */
.photos-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  max-width: min(70%, 560px);
  color: #fff;
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(6px);
  transition: all 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 4;
}

.photos-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photos-progress {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
  overflow: hidden;
  z-index: 4;
}

.photos-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-emerald));
  transition: width 4s linear;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
  z-index: 4;
}

.slider-dots button {
  appearance: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  transition: all 200ms ease;
}

.slider-dots button.is-active {
  width: 16px;
  background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-emerald));
  box-shadow: 0 4px 10px rgba(17,24,39,0.22);
}

/* Mouse parallax affordance on active media */
.photos-slider.parallax-enabled .photo-slide.is-active img,
.photos-slider.parallax-enabled .photo-slide.is-active video {
  will-change: transform;
}

/* ===== FOOTER ===== */

footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-12) 0 0;
  margin-top: var(--space-24);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.footer-section h4 {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-section p {
  color: var(--neutral-400);
  line-height: 1.6;
  margin: 0;
}

/* ===== HERO TEXT DEFAULTS (overrides removed) ===== */

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary-300);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--neutral-800);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding: var(--space-5) 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--neutral-500);
  margin: 0;
  font-size: var(--text-sm);
}

/* ===== WHATSAPP FLOAT ===== */

.whatsapp-float {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
  isolation: isolate;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* Subtle pulsing ring */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 2px solid rgba(212, 175, 55, 0.35); /* accent gold */
  transform: scale(1);
  opacity: 0.6;
  z-index: -1;
  animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-float:hover::after {
  border-color: rgba(212, 175, 55, 0.6);
}

/* Card title underline */
.card h3.card-title {
  color: var(--primary-800);
  margin-bottom: var(--space-2);
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: 1.125rem;
}

.card h3.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: var(--space-3) var(--space-4);
  }
  
  .nav-links {
    gap: var(--space-4);
  }
  
  .hero {
    padding: var(--space-16) 0;
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .cta-section {
    margin: var(--space-16) var(--space-4);
    padding: var(--space-16) var(--space-4);
  }
}

@media (max-width: 480px) {
  .container,
  .navbar-inner,
  .hero-content,
  .content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .nav-links {
    gap: var(--space-2);
  }
}

/* Unified Product Titles (inherit brand palette) */
.product-title-raw,
.product-title-yarn,
.product-title-fabric {
  color: var(--primary-700) !important;
  font-weight: 700;
}

/* Buttons are consolidated to .btn, .btn-primary, .btn-secondary using brand tokens */

/* Product Card Accents (unified) */
.product-card-raw,
.product-card-yarn,
.product-card-fabric {
  border-left: 4px solid var(--accent-gold);
  transition: all var(--transition-normal);
}

.product-card-raw:hover,
.product-card-yarn:hover,
.product-card-fabric:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
  

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary-600); }
.text-secondary { color: var(--neutral-600); }
.text-muted { color: var(--neutral-500); }

.bg-primary { background-color: var(--primary-600); }
/* Elegant secondary background with subtle linen gradient */
.bg-secondary {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}
/* When used on a section, add a refined frame */
.section.bg-secondary {
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
/* Tweak cards over secondary bg for extra depth */
.bg-secondary .card {
  box-shadow: 0 10px 24px rgba(16,42,33,0.06);
}

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-16 { margin-top: var(--space-16); }

/* Theme-specific utilities appended below */

/* ===== ONE-WEB STYLE PREVIEW THEME ===== */
/* Toggle via body.theme-oneweb to preview without changing HTML */
body.theme-oneweb {
  background: #0f1113;
  color: #eaeaea;
}

body.theme-oneweb .navbar {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.theme-oneweb .navbar.scrolled {
  background: rgba(15,17,19,0.75) !important;
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,0.08);
}

body.theme-oneweb .nav-link {
  color: #d6d6d6;
}
body.theme-oneweb .nav-link:hover,
body.theme-oneweb .nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

/* Full-screen hero with centered content and full-bleed media */
body.theme-oneweb .hero {
  min-height: 100vh;
  padding: var(--space-24) 0 var(--space-16);
}

/* Place media as background layer */
body.theme-oneweb .hero-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
}

/* Dark gradient overlay for readability */
body.theme-oneweb .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55));
}

/* Center the text block above media */
body.theme-oneweb .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  gap: var(--space-8);
  max-width: var(--container-xl);
}

body.theme-oneweb .hero-text h1 {
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

body.theme-oneweb .hero-text h1::after { display: none; }

body.theme-oneweb .hero-text p {
  color: #d0d0d0;
}

/* Buttons: minimalist with gold accent */
body.theme-oneweb .btn-primary {
  background: linear-gradient(180deg, #caa84a, #a78339);
  color: #111;
  box-shadow: 0 10px 20px rgba(202,168,74,0.25);
}
body.theme-oneweb .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #f2f2f2;
  border-color: rgba(255,255,255,0.2);
}
body.theme-oneweb .btn-secondary:hover { background: rgba(255,255,255,0.16); }

/* Dots over media */
body.theme-oneweb .slider-dots {
  bottom: 24px;
}
body.theme-oneweb .slider-dots .dot {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.25);
}
body.theme-oneweb .slider-dots .dot.is-active {
  background: #caa84a;
  border-color: #fff3d0;
}

/* Sections: darker backgrounds, cleaner cards */
body.theme-oneweb .section { background: transparent; }
body.theme-oneweb .section::before { display: none; }
body.theme-oneweb .card {
  background: #13161a;
  border-color: rgba(255,255,255,0.06);
  box-shadow: none;
}
body.theme-oneweb .card h3 { color: #ffffff; }
body.theme-oneweb .card p { color: #cccccc; }

body.theme-oneweb footer {
  background: #0d0f11;
}

/* ===== PHOTOS SLIDER (Field to Market) ===== */
#field-to-market .grid { align-items: stretch; }
.photos-slider {
  position: relative;
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: #000; /* prevents white flash under media */
}
.photos-viewport { position: relative; width: 100%; height: 100%; }
.photos-track { position: relative; width: 100%; height: 100%; }
.photo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.photo-slide.is-active { opacity: 1; }
.photo-slide img, .photo-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Arrows */
.photos-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-emerald));
  color: #fff;
  box-shadow: 0 8px 20px rgba(17,24,39,0.18);
  cursor: pointer;
  z-index: 10; /* ensure above media */
  pointer-events: auto;
}
.photos-nav.prev { left: 8px; }
.photos-nav.next { right: 8px; }
.photos-nav:hover { filter: brightness(1.05); }

/* Dots should appear over media inside photos slider as well */
.photos-slider .slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 9; }
.photos-slider .slider-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(255,255,255,0.6); cursor: pointer; }
.photos-slider .slider-dots button.is-active { width: 18px; background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-emerald)); }

/* Caption and progress indicator */
.photos-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 10px;
  z-index: 9;
  opacity: 0;
  transform: translateY(6px);
  transition: all 220ms ease;
}
.photos-caption.is-visible { opacity: 1; transform: translateY(0); }

.photos-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.2); z-index: 9; }
.photos-progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-emerald)); }

/* ===== SIMPLE SLIDER (Field to Market) ===== */
.simple-slider { position: relative; height: 100%; min-height: 360px; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-2xl); background: #000; }
.simple-slider .slides { position: relative; width: 100%; height: 100%; }
.simple-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
.simple-slider .slide.is-active { opacity: 1; }
.simple-slider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.simple-slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-emerald)); color: #fff; box-shadow: 0 8px 20px rgba(17,24,39,0.18); cursor: pointer; z-index: 10; }
.simple-slider .nav.prev { left: 8px; }
.simple-slider .nav.next { right: 8px; }
.simple-slider .dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: inline-flex; gap: 6px; z-index: 9; }
.simple-slider .dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(255,255,255,0.6); cursor: pointer; }
.simple-slider .dots button.is-active { width: 18px; background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-emerald)); }

@media (max-width: 640px) { 
  .photos-slider { min-height: 280px; } 
  .photos-nav { display: none; } 
  .simple-slider { min-height: 280px; } 
  .simple-slider .nav { display: none; } 
}
