/*
  Vashudevan Met Global LLP — Base Styles
  Simple, clean, responsive layout inspired by the structure of the referenced site.
*/

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111827;        /* slate-900 */
  --muted: #475569;       /* slate-600 */
  --brand: #FFA500;       /* vibrant orange-yellow */
  --brand-700: #E69500;   /* darker orange-yellow */
  --card: #ffffff;
  --border: #e5e7eb;      /* gray-200 */
  --shadow: 0 8px 20px rgba(2, 8, 23, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Smooth scrolling with offset for sticky header */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-padding-top: 80px; /* Account for sticky header height */
  }
}

/* Smooth scrolling visual feedback */
.section {
  scroll-margin-top: 80px; /* Ensure sections don't hide behind sticky header */
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .card, .social-icon {
  transition: all 0.3s ease;
}

/* Enhanced smooth scrolling for better performance */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Responsive back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Product Search Styling */
.product-search {
  margin: 30px auto 0;
  max-width: 600px;
  text-align: center;
}

.search-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 2px solid var(--border);
  border-radius: 25px;
  font-size: 16px;
  background: #ffffff;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(2, 8, 23, 0.06);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.15);
}

.search-input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

.clear-search.visible {
  opacity: 1;
  visibility: visible;
}

.clear-search:hover {
  color: var(--text);
  background: #f1f5f9;
}

.search-results-info {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Product filtering and highlighting */
.products-grid .card.product {
  transition: all 0.3s ease;
}

.products-grid .card.product.hidden {
  display: none;
}

.products-grid .card.product.highlighted {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.2);
  border-color: var(--brand);
}

.products-grid .card.product.highlighted .product-figure figcaption {
  color: var(--brand);
  font-weight: 700;
}

/* Search results animation */
.products-grid .card.product {
  animation: fadeInUp 0.3s ease forwards;
}

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

/* No results message */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.no-results h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.no-results p {
  margin: 0;
  font-size: 14px;
}

/* Responsive search */
@media (max-width: 768px) {
  .product-search {
    margin: 20px auto 0;
    padding: 0 20px;
  }
  
  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 45px 14px 16px;
  }
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
  line-height: 1.6;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
  transition: opacity 0.3s ease;
}

/* Image loading states */
img[loading="lazy"] {
  opacity: 1; /* ensure images are visible even if 'loaded' class isn't added */
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded { opacity: 1; }

/* Smooth image loading animation */
@keyframes imageLoad {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-loading {
  animation: imageLoad 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Modern Image Animations - Fresh and Engaging */

/* Elegant zoom and fade entrance */
@keyframes elegantZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: blur(4px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02) translateY(-5px);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* Smooth slide with rotation */
@keyframes smoothSlideRotate {
  0% {
    opacity: 0;
    transform: translateX(-60px) rotate(-5deg) scale(0.9);
  }
  60% {
    opacity: 0.9;
    transform: translateX(5px) rotate(1deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

/* Bounce with elastic effect */
@keyframes elasticBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(40px);
  }
  20% {
    opacity: 0.7;
    transform: scale(1.1) translateY(-10px);
  }
  40% {
    opacity: 0.9;
    transform: scale(0.95) translateY(5px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px);
  }
  80% {
    transform: scale(0.98) translateY(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Floating entrance with glow */
@keyframes floatingGlow {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    filter: brightness(0.7) drop-shadow(0 0 0 rgba(255, 165, 0, 0));
  }
  50% {
    opacity: 0.8;
    transform: translateY(-8px) scale(1.03);
    filter: brightness(1.1) drop-shadow(0 8px 20px rgba(255, 165, 0, 0.3));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 4px 12px rgba(255, 165, 0, 0.15));
  }
}

/* Spiral entrance */
@keyframes spiralEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg) translateY(50px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) rotate(-90deg) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
  }
}

/* Slide up with bounce */
@keyframes slideUpBounce {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  40% {
    opacity: 0.8;
    transform: translateY(-15px) scale(1.05);
  }
  70% {
    opacity: 0.95;
    transform: translateY(5px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modern pulse with glow */
@keyframes modernPulse {
  0% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(255, 165, 0, 0));
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 165, 0, 0.4));
  }
  100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(255, 165, 0, 0));
  }
}

/* Gentle shake with emphasis */
@keyframes gentleShake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  10% {
    transform: translateX(-3px) rotate(-1deg);
  }
  20% {
    transform: translateX(3px) rotate(1deg);
  }
  30% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  40% {
    transform: translateX(2px) rotate(0.5deg);
  }
  50% {
    transform: translateX(-1px) rotate(-0.2deg);
  }
  60% {
    transform: translateX(1px) rotate(0.2deg);
  }
}

/* Smooth wobble with scale */
@keyframes smoothWobble {
  0% {
    transform: rotate(0deg) scale(1);
  }
  15% {
    transform: rotate(-3deg) scale(1.02);
  }
  30% {
    transform: rotate(2deg) scale(0.98);
  }
  45% {
    transform: rotate(-2deg) scale(1.01);
  }
  60% {
    transform: rotate(1deg) scale(0.99);
  }
  75% {
    transform: rotate(-0.5deg) scale(1.005);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Animation Classes */
.image-elegant-zoom { /* disabled */ }

.image-smooth-slide {
  animation: smoothSlideRotate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.image-elastic-bounce {
  animation: elasticBounce 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.image-floating-glow {
  animation: floatingGlow 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.image-spiral-entrance {
  animation: spiralEntrance 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.image-slide-up-bounce {
  animation: slideUpBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.image-modern-pulse {
  animation: modernPulse 0.4s ease-in-out;
}

.image-gentle-shake {
  animation: gentleShake 0.6s ease-in-out;
}

.image-smooth-wobble {
  animation: smoothWobble 0.8s ease-in-out;
}

/* Intersection observer triggered animations */
.image-observe { opacity: 1; transform: none; transition: none; }

.image-observe.in-view { opacity: 1; transform: none; }
a { color: inherit; text-decoration: none; }

/* Ensure text selection is enabled for all text content */
* {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Disable text selection only for specific elements that shouldn't be selectable */
img, button, input, textarea, select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo img { width: 32px; height: 32px; }
.nav-toggle { 
  display: none; 
  background: #ffffff; 
  border: 1px solid var(--border); 
  color: var(--text); 
  padding: 0; 
  border-radius: 8px; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 4px;
  width: 20px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

.nav-toggle:hover span {
  background-color: var(--brand);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-nav a { padding: 8px 10px; border-radius: 8px; color: var(--text); }
.site-nav a[aria-current="page"] { background: #f1f5f9; }
.site-nav .has-submenu { position: relative; }
.site-nav .submenu {
  position: absolute;
  top: 105%;
  left: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  box-shadow: var(--shadow);
}
.site-nav .has-submenu:hover .submenu { display: flex; }
.site-nav .submenu a { padding: 10px 12px; display: block; }
.site-nav .submenu a:hover { background: #f8fafc; }

/* Hero Carousel */
.hero-carousel {
  position: relative;
  min-height: 72vh;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #f0f0f0; /* Fallback background */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 72vh;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  display: block;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
}

/* Subtle parallax effect for hero images */
.carousel-slide.active img {
  transform: scale(1.02) translateY(0);
}

.carousel-slide img:hover {
  transform: scale(1.08) translateY(-4px) rotate(1deg);
  filter: saturate(1.15) contrast(1.08) brightness(1.05) drop-shadow(0 8px 20px rgba(255, 165, 0, 0.2));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Specific zoom for hero slide 4 */
.carousel-slide[data-slide="4"] img {
  /* Center recycling symbol behind text */
  object-position: 50% 50%;
  transform: scale(1.5);
}
.carousel-slide.active[data-slide="4"] img {
  object-position: 50% 50%;
  transform: scale(1.5);
}

/* Stronger specificity + important to ensure override on slide 4 */
.hero-carousel .carousel-container .carousel-slide[data-slide="4"] > img {
  object-position: 50% 50% !important;
  transform: scale(1.5) !important;
}
.hero-carousel .carousel-container .carousel-slide.active[data-slide="4"] > img {
  object-position: 50% 50% !important;
  transform: scale(1.5) !important;
}

/* Ensure the first slide image is visible */
.carousel-slide:first-child img {
  display: block !important;
  opacity: 1 !important;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.carousel-prev:active,
.carousel-next:active {
  transform: scale(0.9) rotate(-2deg);
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.indicator.active::before {
  width: 100%;
  /* Animation controlled by JavaScript */
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Slide Counter */
.carousel-counter {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(10px);
}

/* Hero overlay styles for carousel */
.hero-carousel .hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(16px, 4vw, 48px);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
  text-align: center;
}

/* Hero content entrance animation */
.hero-carousel .carousel-slide.active .hero-title {
  animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-carousel .carousel-slide.active .tagline {
  animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-carousel .carousel-slide.active .subline {
  animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-carousel .carousel-slide.active .overlay-ctas {
  animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure all text elements in carousel are centered */
.hero-carousel .hero-title,
.hero-carousel .tagline,
.hero-carousel .subline {
  text-align: center;
  width: 100%;
}

.hero-carousel .overlay-ctas {
  justify-content: center;
  width: 100%;
}

/* Legacy hero styles for backward compatibility */
.hero-photo {
  position: relative;
  min-height: 72vh;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-full { /* removed for revert */ }
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: start;
  padding: clamp(16px, 4vw, 48px);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  background: rgba(0, 0, 0, 0.4);
}
/* Centered hero content styles */
.hero-center { justify-items: center; text-align: center; }
.hero-brand { }
.brand-row h1 { }
.brand-name { }
.brand-logo { }
.hero-title { 
  margin: 0 0 6px; 
  font-weight: 900; 
  font-size: clamp(24px, 4vw, 48px); 
  line-height: 1.05; 
  letter-spacing: 0.01em; 
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
}
.tagline { 
  margin: 0 0 8px; 
  font-size: clamp(20px, 3.2vw, 32px); 
  color: #ffffff; 
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.subline { 
  margin: 0 0 16px; 
  font-size: clamp(16px, 2.2vw, 22px); 
  color: #ffffff; 
  max-width: 900px; 
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-ctas-center { justify-content: center; }
.btn.btn-light { background: #ffffff; color: var(--text); }
.hero-overlay .overlay-inner {
  max-width: 820px;
}
.hero-overlay .hero-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.hero-overlay h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5.4vw, 60px);
  line-height: 1.05;
}
.hero-overlay p { 
  margin: 0 0 18px; 
  color: #ffffff; 
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.overlay-ctas { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center;
  width: 100%;
}
.overlay-ctas .btn { box-shadow: 0 6px 16px rgba(2,8,23,0.25); }

/* Global Animated Button Base - Reusable for all buttons */
.btn-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

/* Enhanced Animated Button for Hero Slides */
.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FFA500 0%, #E69500 100%);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 160px;
  justify-content: center;
  white-space: nowrap;
}

/* Global animated button hover effects */
.btn-animated:hover {
  transform: translateY(-3px) scale(1.05) rotate(1deg);
  box-shadow: 0 12px 35px rgba(255, 165, 0, 0.4);
}

.btn-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-animated:hover::before {
  left: 100%;
}

.btn-animated .btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  margin: 0 8px;
}

/* Left arrow moves left (away from text) */
.btn-animated:hover .btn-icon:first-child {
  transform: translateX(-4px);
}

/* Right arrow moves right (opposite direction) */
.btn-animated:hover .btn-icon:not(:first-child) {
  transform: translateX(4px);
}

.hero-btn:hover {
  background: linear-gradient(135deg, #E69500 0%, #CC8400 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn .btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  margin: 0 8px;
}

/* Left arrow moves left (away from text) */
.hero-btn:hover .btn-icon:first-child {
  transform: translateX(-4px);
}

/* Right arrow moves right (opposite direction) */
.hero-btn:hover .btn-icon:not(:first-child) {
  transform: translateX(4px);
}

/* Specific arrow animations for hero buttons */
.hero-btn.primary .btn-icon {
  transition: all 0.3s ease-in-out;
  margin-left: 8px;
}

.hero-btn.primary:hover .btn-icon {
  transform: translateX(-8px);
  margin-left: 0;
  margin-right: 8px;
}

.hero-btn.secondary .btn-icon {
  transition: all 0.3s ease-in-out;
  margin-left: 8px;
}

.hero-btn.secondary:hover .btn-icon {
  transform: translateX(8px);
  margin-left: 16px;
}

/* Animation for button entrance */
@keyframes buttonEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(4px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.05);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes buttonGlow {
  0% {
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3), 0 0 30px rgba(255, 165, 0, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
  }
}

.hero-btn.animate {
  animation: 
    buttonEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Alternative button styles for different slides */
.hero-btn.primary {
  background: linear-gradient(135deg, #FFA500 0%, #E69500 100%);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.hero-btn.secondary {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
  padding: 10px 16px;
  font-size: 14px;
  min-width: 160px;
  justify-content: center;
  white-space: nowrap;
}

.hero-btn.secondary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.hero-btn.secondary.animate {
  animation: 
    buttonEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes buttonGlowBlue {
  0% {
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3), 0 0 30px rgba(96, 165, 250, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
  }
}

/* Responsive styles for all animated buttons */
@media (max-width: 768px) {
  .btn-animated,
  .hero-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 140px;
  }
  
  .btn-animated .btn-icon,
  .hero-btn .btn-icon {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .btn-animated,
  .hero-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 120px;
  }
  
  .btn-animated .btn-icon,
  .hero-btn .btn-icon {
    font-size: 13px;
  }
}

/* Buy / Sell / Join strip */
.bsj { background: #ffffff; padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bsj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.bsj-card { text-align: center; background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.bsj-card h3 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); line-height: 1; letter-spacing: 0.5px; }
.bsj-card .kicker { display: block; font-weight: 900; }
.bsj-card .sub { display: block; font-size: clamp(12px, 1.8vw, 14px); color: #64748b; letter-spacing: 2px; }
.bsj-card .accent { height: 8px; width: 120px; background: #60a5fa; border-radius: 6px; margin: 10px auto 12px; position: relative; }
.bsj-card .accent::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); height: 8px; width: 70%; background: #3b82f6; border-radius: 6px; }
.bsj-card p { margin: 0; color: #334155; }

/* Linked bsj cards */
.bsj-card-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bsj-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.12);
  border-color: var(--brand);
}

.bsj-card-link:active {
  transform: translateY(0);
}
@media (max-width: 900px) {
  .bsj-grid { grid-template-columns: 1fr; }
}

/* Tiny overlay cards */
.overlay-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-width: 980px;
}
.overlay-cards .mini-card {
  background: rgba(255,255,255,0.86);
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(2,8,23,0.18);
}
.overlay-cards .mini-card h3 {
  margin: 0 0 4px;
  font-size: clamp(14px, 1.8vw, 18px);
}
.overlay-cards .mini-card p {
  margin: 0;
  font-size: clamp(12px, 1.6vw, 14px);
  color: #334155;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 400px at 50% -50px, rgba(255,165,0,0.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(2,8,23,0.35);
  pointer-events: none;
}
.hero {
  display: none; /* replaced by hero-photo overlay on home */
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0 auto 22px; max-width: 780px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Global button color variants */
.btn-animated.primary {
  background: linear-gradient(135deg, #FFA500 0%, #E69500 100%);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.btn-animated.primary:hover {
  background: linear-gradient(135deg, #E69500 0%, #CC8400 100%);
}

.btn-animated.secondary {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.btn-animated.secondary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 12px 35px rgba(96, 165, 250, 0.4);
}

.btn-animated.submit {
  background: linear-gradient(135deg, #FFA500 0%, #E69500 100%);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
  text-transform: none;
  letter-spacing: normal;
}

.btn-animated.submit:hover {
  background: linear-gradient(135deg, #E69500 0%, #CC8400 100%);
}

/* Legacy button styles - now using btn-animated for consistency */
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); }
.btn.primary { background: var(--brand); color: #ffffff; border: 1px solid rgba(2,8,23,0.05); }
.btn.primary:hover { background: var(--brand-700); color: #ffffff; }

/* Sections */
.section { padding: 60px 0; }
.section.alt { background: #f8fafc; }
.page-hero { 
  padding: 20px 0 10px; 
  background: #f8fafc; 
  position: relative;
}
.page-hero p {
  text-align: center;
}
.page { padding-bottom: 40px; }
/* Breadcrumbs */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: inline-flex; gap: 8px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li+li::before { content: "/"; color: #94a3b8; }
.breadcrumbs a { color: #334155; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
/* Who page hero */
.who-hero { background: #ffffff; border-bottom: 0; padding: 40px 0 10px; }
.who-hero h1 { text-align: center; font-size: clamp(28px, 4.2vw, 48px); font-weight: 900; color: var(--text); margin: 0; }
/* Center all section headers on the Who We Are page */
.who-page h2 { text-align: center; font-weight: 800; font-size: clamp(24px, 3.2vw, 34px); margin: 26px 0 14px; }

/* Make specific headers uppercase on Who We Are page */
#history-block h2,
#mission-block h2 {
  text-transform: uppercase;
}

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.two-col { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
  align-items: stretch; 
  max-width: 950px;
  margin: 0 auto;
  justify-items: center;
}
.two-col .contact-info,
.two-col .contact-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 560px;
  flex: 1;
}
.cards .card, .card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }

.products-preview .product-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 10px 0 0; list-style: none; }
.products-preview .product-tags a { padding: 8px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 999px; color: var(--text); }

.who-we-are h2, .who-we-are h3, .who-we-are h4 {
  text-transform: none;
  letter-spacing: normal;
}
.who-we-are { background: #ffffff; color: var(--text); }
.who-we-are p { color: #1f2937; line-height: 1.6; text-align: left; }
.who-we-are h2 { 
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin: 20px 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
}
.who-we-are h2::after { display: none; }
/* Core Values Section - Using inline styles for precise control */
.who-we-are h3 { margin: 20px 0 8px; color: var(--text); text-align: center; font-weight: 700; font-size: clamp(18px, 2.3vw, 24px); }
.who-we-are h4 { margin-top: 8px; text-align: center; font-weight: 700; letter-spacing: normal; color: var(--text); font-size: clamp(16px, 2vw, 20px); }
.who-we-are .lead {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 16px;
}
.who-we-are .section-inner p { font-size: 0.88rem; margin-bottom: 12px; }
.who-we-are .values-list li { font-size: 0.88rem; }
.who-we-are .section-inner { 
  max-width: 900px; 
  margin: 0 auto; 
}
/* Make About Us sections slimmer */
#history-block, #mission-block { padding: 40px 0; }

/* Home page About Us section styling */
.section[aria-label="About Us"] { padding: 40px 0; }
.section[aria-label="About Us"] .two-col { 
  grid-template-columns: 0.4fr 0.6fr; 
  align-items: start; 
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.section[aria-label="About Us"] p { text-align: justify; line-height: 1.6; margin-bottom: 12px; }
.section[aria-label="About Us"] h2 { 
  text-align: center; 
  margin: 0 0 16px; 
  font-size: clamp(24px, 3.2vw, 34px);
}
.section[aria-label="About Us"] .media-photo { 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  height: 100%;
}
.section[aria-label="About Us"] .media-photo img { 
  width: 100%; 
  height: auto; 
  max-height: 500px; 
  object-fit: contain; 
  display: block;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  transform: scale(1);
  filter: brightness(1) contrast(1);
}

.section[aria-label="About Us"] .media-photo:hover img {
  transform: scale(1.08) rotate(-2deg) translateY(-3px);
  filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.25));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* About Us Read More button styling */
.about-cta {
  margin-top: 20px;
  text-align: center;
}

/* About CTA button now uses global animated styling */
.about-cta .btn {
  /* Inherits from .btn-animated.primary when class is applied */
}

/* Company Highlights Carousel */
.highlights-carousel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.highlights-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 120px;
}

.highlight-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.highlight-slide.active {
  opacity: 1;
  z-index: 2;
  position: relative;
}

.highlight-card {
  text-align: center;
  padding: 20px 15px;
  margin: 0;
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.highlight-card h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text);
}

.highlight-card p {
  margin: 0;
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 400px;
}

/* Highlights Navigation */
.highlights-nav {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10;
  pointer-events: none;
}

.highlight-prev,
.highlight-next {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.highlight-prev:hover,
.highlight-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Highlights Indicators */
.highlights-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.highlight-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 165, 0, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.highlight-indicator:hover {
  border-color: var(--brand);
  background: rgba(255, 165, 0, 0.2);
}

.highlight-indicator.active {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}
.who-we-are .values-list {
  list-style: disc;
  padding-left: 26px;
  margin: 12px 0 22px;
}
.who-we-are .values-list li { margin-bottom: 8px; color: #1f2937; }
.who-we-are .values-list li::marker { color: var(--brand); }

/* Home page headers styling */
h1, h2, h3 { text-align: center; font-weight: 900; }
h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4.5vw, 42px); margin: 0 0 8px; }
h3 { font-size: clamp(24px, 3.5vw, 36px); margin: 0 0 6px; }

/* Make specific headers uppercase on home page */
.section[aria-label="About Us"] h2,
.products-preview h2,
.locations h2 {
  text-transform: uppercase;
}

/* Make products page header uppercase */
.page-hero h1 {
  text-transform: uppercase;
}

/* Locations section text alignment */
.locations p { text-align: center; }

/* Reduce spacing between headers and subtext on home page */
.section p { margin-top: 0; }

/* Section dividers on home page */
.section { border-top: 1px solid #e5e7eb; }
.section:first-of-type { border-top: none; }
.bsj { border-top: 1px solid #e5e7eb; }
.products-preview { border-top: 1px solid #e5e7eb; padding: 40px 0 80px; box-shadow: var(--shadow); }
.products-preview .products-grid { margin-top: 40px; }
.locations { border-top: 1px solid #e5e7eb; padding-top: 20px; }

/* Ensure other section headings mirror the Greenland style */
#our-impact h2, #leadership-team h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.location-tags { list-style: none; padding: 0; margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.location-tags li { padding: 10px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 999px; color: var(--text); box-shadow: 0 4px 10px rgba(2,8,23,0.06); }
.location-tags li::first-letter { font-weight: 700; }
.location-tags li:hover { background: #FFF8DC; border-color: #FFD700; transform: translateY(-1px); transition: all .15s ease-in-out; }

.map-placeholder { height: 280px; border-radius: 14px; border: 1px dashed var(--border); background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #ffffff 10px, #ffffff 20px); }
.map-embed { position: relative; width: 100%; padding-bottom: 40%; height: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #ffffff; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-box { height: 240px; border-radius: 14px; border: 1px dashed var(--border); background: linear-gradient(135deg, #ffffff, #f8fafc); }
.media-photo { height: auto; border-radius: 14px; border: 1px solid var(--border); background-size: cover; background-position: center; }
/* Ensure inline images inside media-photo are fully visible */
.media-photo img { width: 100%; height: auto; object-fit: contain; display: block; }

/* Subproducts styling */
.subproducts-preview {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.subproducts-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.subproducts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.subproduct-item {
  flex: 0 0 auto;
}

.subproduct-link {
  display: inline-block;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.subproduct-link:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}
/* History: 40% logo / 60% text, vertically centered, justified text */
#history-block .two-col { 
  grid-template-columns: 0.4fr 0.6fr; 
  align-items: center; 
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
#history-block p { text-align: justify; }
#history-block .media-photo img { 
  width: 100%; 
  height: auto; 
  max-height: 500px; 
  object-fit: contain; 
  display: block;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  transform: scale(1);
  filter: brightness(1) contrast(1);
}

#history-block .media-photo:hover img {
  transform: scale(1.08) rotate(2deg) translateY(-3px);
  filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.25));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Mission: balanced columns and properly sized image */
#mission-block .two-col { 
  grid-template-columns: 0.45fr 0.55fr; 
  align-items: center; 
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
#mission-block p { text-align: justify; }
#mission-block .media-photo img { 
  width: 100%; 
  height: auto; 
  max-height: 400px; 
  object-fit: contain; 
  display: block;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  transform: scale(1);
  filter: brightness(1) contrast(1);
}

#mission-block .media-photo:hover img {
  transform: scale(1.08) rotate(-2deg) translateY(-3px);
  filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.25));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Impact page rows */
.impact-row { align-items: center; gap: 18px; margin: 18px 0 26px; }
.impact-row h4 { margin: 0 0 8px; font-size: clamp(18px, 2.3vw, 22px); }
.impact-row p { margin: 8px 0; }
.order-2-mobile { order: 0; }
@media (max-width: 900px) {
  .order-2-mobile { order: -1; }
}
/* Standardize impact images */
.impact-row .media-photo { border: 0; background: transparent; padding: 0; }
.impact-row .media-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  transform: scale(1);
  filter: brightness(1) contrast(1);
}

.impact-row .media-photo:hover img {
  transform: scale(1.1) rotate(3deg) translateY(-5px);
  filter: brightness(1.1) contrast(1.08) saturate(1.15) drop-shadow(0 15px 30px rgba(255, 165, 0, 0.3));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered animation for impact images */
.impact-row:nth-child(1) .media-photo img {
  animation-delay: 0.1s;
}

.impact-row:nth-child(2) .media-photo img {
  animation-delay: 0.2s;
}

.impact-row:nth-child(3) .media-photo img {
  animation-delay: 0.3s;
}

.impact-row:nth-child(4) .media-photo img {
  animation-delay: 0.4s;
}
/* Center and enlarge Why Recycling Metals Matters */
#our-impact h3 {
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  margin: 18px 0 12px;
}

/* Center all content on Our Impact page */
#our-impact {
  text-align: justify;
}

#our-impact .section-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify;
}

#our-impact .lead {
  text-align: justify !important;
  max-width: 950px !important;
  margin: 0 auto 20px !important;
  width: 100%;
  box-sizing: border-box;
}

#our-impact p {
  text-align: justify !important;
  max-width: 950px !important;
  margin: 0 auto 16px !important;
  width: 100%;
  box-sizing: border-box;
}

#our-impact .two-col {
  max-width: 950px;
  margin: 0 auto;
  justify-items: center;
  text-align: justify;
}

#our-impact .two-col > div {
  text-align: justify;
}

#our-impact .two-col h4 {
  text-align: center;
}

#our-impact .two-col p {
  text-align: justify;
  margin: 8px auto 16px;
}

/* World map with pins */
.world-map-wrap {
  position: relative;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
  display: inline-block;
  margin: 0 auto;
  width: fit-content;
}

/* Container for centering the map */
.locations .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive map sizing */
@media (max-width: 768px) {
  .world-map-wrap {
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .world-map-wrap {
    max-width: 95%;
    margin: 0 auto;
  }
}
.world-map-wrap .world-map-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  pointer-events: none;
  display: block;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  transform: scale(1);
  filter: brightness(1) contrast(1);
}

.world-map-wrap:hover .world-map-img {
  transform: scale(1.06) rotate(2deg) translateY(-3px);
  filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 12px 25px rgba(255, 165, 0, 0.2));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.world-map-wrap .pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(2,8,23,0.2);
  transform: translate(-50%, -50%);
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; color: var(--brand); position: absolute; left: 0; top: 0; }

.person .avatar { width: 56px; height: 56px; border-radius: 50%; background: #f8fafc; display: grid; place-items: center; font-weight: 700; border: 1px solid var(--border); margin-bottom: 10px; }

.products-grid .product { 
  min-height: 160px; 
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}
.products-grid .product:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.15);
  border-color: var(--brand);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.products-grid .product:hover .product-figure img {
  transform: scale(1.08) rotate(1deg) translateY(-2px);
  filter: brightness(1.12) contrast(1.08) saturate(1.1) drop-shadow(0 8px 20px rgba(255, 165, 0, 0.25));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.products-grid .product:hover .product-figure figcaption {
  color: var(--brand);
  font-weight: 700;
  transform: translateY(-2px);
}
.product-figure a { display: block; }

/* Forms */
.form-field { 
  margin-bottom: 0px; 
  padding-bottom: 0px;
}
.form-field:last-of-type {
  padding-bottom: 0;
}
.form-field label { display: block; margin-bottom: 6px; color: var(--muted); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1,1); border: 0; }
.contact-form { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  box-shadow: var(--shadow); 
  padding: 20px;
  width: 360px;
  max-width: 360px;
  min-width: 360px;
  overflow: hidden;
}
.contact-form h2 { 
  margin: 0 0 8px; 
  font-size: clamp(22px, 3vw, 28px);
}
.contact-form .btn { margin-top: 4px; }
.error { color: #b91c1c; font-size: 0.9rem; height: 1.2rem; display: inline-block; }
.form-result { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { background: #ffffff; color: var(--text); }
.pro-footer .footer-members { padding: 16px 0 12px; text-align: center; }
.pro-footer .footer-members p { margin: 0 0 12px; font-weight: 800; color: var(--text); }
.pro-footer .footer-members .logos { display: inline-flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pro-footer .footer-members .logos img { height: 48px; width: auto; }

.pro-footer .footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: center; }
.footer-left { font-weight: 800; color: var(--text); }
.footer-center { text-align: center; color: var(--text); }
.footer-right { justify-self: end; }

.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.footer-brand img { width: 24px; height: 24px; }


/* Follow Us section in footer */
.follow-us-section {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Desktop footer layout - ensure proper three-column layout - UPDATED */
@media (min-width: 769px) {
  .site-footer.pro-footer .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    text-align: left !important;
    padding: 16px 0 !important;
  }
  
  .site-footer.pro-footer .footer-left {
    text-align: left !important;
    justify-self: start !important;
    font-weight: 800 !important;
    color: var(--text) !important;
  }
  
  .site-footer.pro-footer .footer-center {
    text-align: center !important;
    justify-self: center !important;
    color: var(--text) !important;
  }
  
  .site-footer.pro-footer .footer-right {
    text-align: right !important;
    justify-self: end !important;
  }
  
  .site-footer.pro-footer .follow-us-section {
    text-align: center !important;
    align-items: center !important;
    transition: transform 0.6s ease, margin-right 0.6s ease !important;
    transform: translateX(0) !important;
    margin-right: 0 !important;
  }
  
  /* Animation when scroll-to-top button is visible */
  body.scroll-top-visible .site-footer .follow-us-section {
    transform: translateX(-80px) !important;
    margin-right: 80px !important;
    transition: transform 0.6s ease, margin-right 0.6s ease !important;
  }
}

.follow-us-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0;
  font-family: inherit;
}

.follow-us-separator {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background-color: #d1d5db;
  margin: 0;
}

/* Social media icons in footer */
.social-icons { 
  display: flex; 
  gap: 24px; 
  align-items: center; 
  justify-content: center;
}

.social-link {
  display: inline-block;
  text-decoration: none;
  color: #000;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.7;
}

.social-icon { 
  width: 20px; 
  height: 20px; 
  display: block;
}

/* Inline partner/membership strip above the global footer */
.members-strip {
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.members-strip .inner {
  padding: 24px 0;
  text-align: center;
}
.members-strip .inner p { margin: 0 0 10px; color: var(--text); font-weight: 700; }
.members-strip .logos { display: inline-flex; align-items: center; gap: 18px; }
.members-strip .logos img { height: 40px; width: auto; filter: none; }

/* Product figure */
.product-figure { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.product-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.product-figure figcaption {
  position: static;
  padding: 10px 12px;
  font-weight: 600;
  background: none;
  color: var(--text);
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Make product cards a single unified box (remove inner figure box) */
.card.product { 
  padding: 0; 
  overflow: hidden; 
  transition: all 0.2s ease;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}
.card.product:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(2, 8, 23, 0.2);
  border-color: var(--brand);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.card.product:hover .product-figure img {
  transform: scale(1.12) rotate(2deg) translateY(-3px);
  filter: brightness(1.1) contrast(1.08) saturate(1.15) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.3));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.product:hover .product-figure figcaption {
  color: var(--brand);
  font-weight: 700;
  transform: translateY(-2px);
}
.card.product .product-figure { border: 0; border-radius: 0; margin: 0; background: transparent; }
.card.product .product-figure img { 
  width: 100%; 
  height: auto; 
  aspect-ratio: 1 / 1; 
  object-fit: cover; 
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  transform: scale(1);
}

.card.product .product-figure figcaption {
  transition: all 0.3s ease;
}

/* Prevent tooltips on product card links */
.card.product a {
  text-decoration: none;
  color: inherit;
}

.card.product a:hover {
  text-decoration: none;
  color: inherit;
}

/* Remove default link tooltips */
.card.product a[href] {
  cursor: default;
}

/* Prevent browser tooltips on product cards */
.card.product a[title] {
  position: relative;
}

.card.product a[title]:hover::after {
  display: none !important;
}

/* Alternative: Remove title attribute behavior completely for product cards */
.card.product a {
  pointer-events: auto;
}

.card.product a[title]:hover {
  position: relative;
}

/* Completely disable tooltips on product cards */
.card.product a[href]:hover {
  text-decoration: none;
}

.card.product a[href]:focus {
  outline: none;
}

/* Remove any potential title tooltips */
.card.product a[title] {
  title: "";
}

.card.product a[title]:hover {
  title: "";
}

/* Completely disable all tooltips and link previews */
.card.product a {
  pointer-events: auto;
  text-decoration: none !important;
  color: inherit !important;
}

.card.product a:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.card.product a:focus {
  outline: none !important;
  text-decoration: none !important;
  color: inherit !important;
}

.card.product a:visited {
  text-decoration: none !important;
  color: inherit !important;
}

/* Disable browser tooltips completely */
.card.product a[href]:hover::before,
.card.product a[href]:hover::after {
  display: none !important;
  content: none !important;
}

/* Remove any title attribute tooltips */
.card.product a[title] {
  position: relative;
}

.card.product a[title]:hover {
  position: relative;
}

/* Force remove title attribute on hover */
.card.product a:hover {
  title: "";
}

/* NUCLEAR OPTION: Completely disable all tooltips and link previews */
.card.product a {
  pointer-events: none !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: default !important;
}

.card.product a figcaption {
  pointer-events: auto !important;
  cursor: text !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* Disable all hover effects on links */
.card.product a:hover,
.card.product a:focus,
.card.product a:active,
.card.product a:visited {
  pointer-events: none !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: default !important;
}

/* Make sure the entire card allows text selection */
.card.product {
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* Disable any potential tooltip triggers */
.card.product a[title],
.card.product a[aria-label] {
  title: "" !important;
  pointer-events: none !important;
}

/* Force remove any browser-generated tooltips */
.card.product a:hover::before,
.card.product a:hover::after,
.card.product a:focus::before,
.card.product a:focus::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}
.card.product > p { margin: 0; padding: 12px 14px 16px; text-align: center; }

/* Center all product and subproduct names */
.products-grid .card.product {
  text-align: center;
}

.products-grid .card.product .product-figure {
  text-align: center;
}

.products-grid .card.product .product-figure figcaption {
  text-align: center;
}

/* Center subproduct items */
.subproduct-item {
  text-align: center;
}

.subproduct-item .product-figure {
  text-align: center;
}

.subproduct-item .product-figure figcaption {
  text-align: center;
}

/* Professional subproduct search result styling */
.subproduct-search-result {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

.subproduct-search-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.1), transparent);
  transition: left 0.4s ease;
  z-index: 1;
}

.subproduct-search-result:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(255, 165, 0, 0.15),
    0 0 0 1px rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.3);
}

.subproduct-search-result:hover::before {
  left: 100%;
}

.subproduct-search-result .product-figure figcaption {
  color: #000000 !important;
  font-weight: 600;
}

.search-result-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.95) 0%, rgba(21, 128, 61, 0.95) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
  box-shadow: 
    0 4px 12px rgba(255, 165, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.subproduct-search-result:hover .search-result-indicator {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.search-icon {
  font-size: 0.8rem;
  animation: search-pulse 1.5s ease-in-out infinite;
}

@keyframes search-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.search-text {
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.parent-product-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: linear-gradient(135deg, var(--brand) 0%, #E69500 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px 0 6px 0;
  z-index: 1;
  box-shadow: 
    0 2px 8px rgba(255, 165, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Professional search term highlighting - yellow highlight for black text */
.search-highlight-yellow {
  background: linear-gradient(135deg, #FFA500 0%, #E69500 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 
    0 2px 6px rgba(255, 165, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.1);
  text-shadow: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.search-highlight-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: highlight-shine 1.5s ease-in-out infinite;
}

@keyframes highlight-shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Professional search term highlighting - black highlight for green text */
.search-highlight-black {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.1);
  text-shadow: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.search-highlight-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: highlight-shine 1.5s ease-in-out infinite;
}

/* Professional search term highlighting - black highlight for yellow text */
.search-highlight-yellow-text {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.1);
  text-shadow: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.search-highlight-yellow-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: highlight-shine 1.5s ease-in-out infinite;
}


.subproduct-search-result .product-category {
  color: #666666 !important;
  font-size: 0.9rem !important;
  font-style: normal !important;
  margin-top: 0.25rem !important;
  font-weight: 400 !important;
  text-align: center !important;
}

/* Professional highlighted subproduct animation */
.highlighted-subproduct {
  animation: professional-highlight 2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  box-shadow: 
    0 0 0 0 rgba(255, 165, 0, 0),
    0 4px 20px rgba(255, 165, 0, 0.15),
    0 0 0 1px rgba(255, 165, 0, 0.1);
  border: 2px solid rgba(255, 165, 0, 0.3);
  z-index: 10;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes professional-highlight {
  0% {
    transform: scale(1);
    box-shadow: 
      0 0 0 0 rgba(255, 165, 0, 0),
      0 4px 20px rgba(255, 165, 0, 0.1),
      0 0 0 1px rgba(255, 165, 0, 0);
    border-color: transparent;
    opacity: 1;
  }
  
  25% {
    transform: scale(1.05);
    box-shadow: 
      0 0 0 12px rgba(255, 165, 0, 0.15),
      0 12px 40px rgba(255, 165, 0, 0.25),
      0 0 0 3px rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.6);
  }
  
  50% {
    transform: scale(1.04);
    box-shadow: 
      0 0 0 16px rgba(255, 165, 0, 0.12),
      0 16px 48px rgba(255, 165, 0, 0.2),
      0 0 0 2px rgba(255, 165, 0, 0.4);
    border-color: rgba(255, 165, 0, 0.5);
  }
  
  75% {
    transform: scale(1.02);
    box-shadow: 
      0 0 0 20px rgba(255, 165, 0, 0.08),
      0 20px 56px rgba(255, 165, 0, 0.15),
      0 0 0 1px rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.4);
  }
  
  100% {
    transform: scale(1);
    box-shadow: 
      0 0 0 0 rgba(255, 165, 0, 0),
      0 4px 20px rgba(255, 165, 0, 0.05),
      0 0 0 1px rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.1);
  }
}

/* Search results container styling */
.products-grid:has(.subproduct-search-result) {
  position: relative;
}

.products-grid:has(.subproduct-search-result)::before {
  content: "Search Results";
  position: absolute;
  top: -40px;
  left: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Professional loading state for search */
.search-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.search-loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.1), transparent);
  animation: loading-shimmer 1s ease-in-out infinite;
  z-index: 1;
}

.search-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(255, 165, 0, 0.2);
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  animation: professional-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes professional-spin {
  0% { 
    transform: rotate(0deg);
    border-top-color: var(--brand);
  }
  50% {
    border-top-color: #E69500;
  }
  100% { 
    transform: rotate(360deg);
    border-top-color: var(--brand);
  }
}

/* Carousel Responsive Styles */
@media (max-width: 768px) {
  .carousel-nav {
    padding: 0 10px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .carousel-indicators {
    bottom: 20px;
    gap: 8px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .carousel-counter {
    bottom: 20px;
    right: 20px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* Highlights carousel responsive */
  .highlights-carousel {
    width: 100%;
    padding: 0;
  }
  
  .highlight-card {
    padding: 15px 10px;
    min-height: 100px;
  }
  
  .highlight-prev,
  .highlight-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .highlights-nav {
    padding: 0 5px;
  }
  
  /* Mobile animations - same as desktop for consistency */
  .card.product .product-figure img,
  .impact-row .media-photo img,
  .world-map-wrap .world-map-img {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  /* Product card hover animations */
  .card.product:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(2, 8, 23, 0.2);
    border-color: var(--brand);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  }
  
  .card.product:hover .product-figure img {
    transform: scale(1.12) rotate(2deg) translateY(-3px);
    filter: brightness(1.1) contrast(1.08) saturate(1.15) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.3));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .card.product:hover .product-figure figcaption {
    color: var(--brand);
    font-weight: 700;
    transform: translateY(-2px);
  }
  
  /* Impact row hover animations */
  .impact-row .media-photo:hover img {
    transform: scale(1.1) rotate(3deg) translateY(-5px);
    filter: brightness(1.1) contrast(1.08) saturate(1.15) drop-shadow(0 15px 30px rgba(255, 165, 0, 0.3));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* World map hover animations */
  .world-map-wrap:hover .world-map-img {
    transform: scale(1.06) rotate(2deg) translateY(-3px);
    filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 12px 25px rgba(255, 165, 0, 0.2));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* BSJ card hover animations */
  .bsj-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.12);
    border-color: var(--brand);
  }
  
  /* Location tags hover animations */
  .location-tags li:hover { 
    background: #FFF8DC; 
    border-color: #FFD700; 
    transform: translateY(-1px); 
    transition: all .15s ease-in-out; 
  }
  
  /* Social icons hover animations */
  .social-link:hover {
    opacity: 0.7;
  }
  
  /* Button hover animations */
  .btn-animated:hover {
    transform: translateY(-3px) scale(1.05) rotate(1deg);
    box-shadow: 0 12px 35px rgba(255, 165, 0, 0.4);
  }
  
  .hero-btn:hover {
    background: linear-gradient(135deg, #E69500 0%, #CC8400 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
  }
  
  /* Highlight navigation hover animations */
  .highlight-prev:hover,
  .highlight-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Carousel navigation hover animations */
  .carousel-prev:hover,
  .carousel-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Indicator hover animations */
  .indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
  }
  
  .highlight-indicator:hover {
    border-color: var(--brand);
    background: rgba(255, 165, 0, 0.2);
  }
  
  /* About Us section image hover animations */
  .section[aria-label="About Us"] .media-photo:hover img {
    transform: scale(1.08) rotate(-2deg) translateY(-3px);
    filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.25));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* History and Mission section image hover animations */
  #history-block .media-photo:hover img {
    transform: scale(1.08) rotate(2deg) translateY(-3px);
    filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.25));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  #mission-block .media-photo:hover img {
    transform: scale(1.08) rotate(-2deg) translateY(-3px);
    filter: brightness(1.08) contrast(1.05) saturate(1.1) drop-shadow(0 10px 25px rgba(255, 165, 0, 0.25));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@media (max-width: 480px) {
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .carousel-indicators {
    bottom: 15px;
    gap: 6px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
  
  .carousel-counter {
    bottom: 15px;
    right: 15px;
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .overlay-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-container { justify-content: center; }
  .contact-form-new { min-width: auto; max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { 
    display: inline-block; 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-nav { 
    position: absolute; 
    right: 3%; 
    top: 60px; 
    background: var(--panel); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    display: none; 
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  .site-nav.open { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { 
    border-bottom: 1px solid var(--border); 
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }
  .site-nav.open li {
    opacity: 1;
    transform: translateX(0);
  }
  .site-nav.open li:nth-child(1) { transition-delay: 0.1s; }
  .site-nav.open li:nth-child(2) { transition-delay: 0.2s; }
  .site-nav.open li:nth-child(3) { transition-delay: 0.3s; }
  .site-nav.open li:nth-child(4) { transition-delay: 0.4s; }
  .site-nav a { display: block; padding: 12px 14px; }
  .site-nav .has-submenu:hover .submenu { display: none; }
  .site-nav .submenu { position: static; border: 0; border-top: 1px solid var(--border); box-shadow: none; border-radius: 0; display: none; }
  .site-nav .has-submenu.open > .submenu { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
  .nav-toggle {
    padding: 0;
    width: 36px;
    height: 36px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .nav-toggle span {
    height: 5px;
    width: 24px;
    margin: 3px 0;
  }
  
  .site-nav {
    right: 16px;
    left: 16px;
    top: 70px;
    border-radius: 16px;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  
  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
  }
  
  .site-nav a {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .header-inner {
    padding: 16px 0;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .logo img {
    width: 28px;
    height: 28px;
  }
}

/* Force subproduct search result styling - highest priority */
.card.product.subproduct-search-result .product-info .product-category {
  color: #666666 !important;
  font-size: 0.9rem !important;
  font-style: normal !important;
  margin-top: 0.25rem !important;
  font-weight: 400 !important;
  text-align: center !important;
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 16px;
  align-items: stretch; /* Make both columns equal height */
  max-width: 1200px;
  margin: 0 auto;
  align-content: start; /* Ensure both sections start at the same level */
}

/* Ensure equal-height cards on desktop */
@media (min-width: 769px) {
  .contact-layout > .contact-info-left,
  .contact-layout > .contact-form-container {
    height: 100%;
  }
  .contact-form-new { height: 100%; }
}

/* Mobile contact layout optimization */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }
  
  /* Mobile Who We Are page optimization */
  .who-page .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .who-page .media-photo {
    order: 1;
    margin: 0 auto;
    max-width: 280px;
  }
  
  .who-page .two-col > div:not(.media-photo) {
    order: 2;
    text-align: left;
  }
  
  /* Ensure history section image is above text on mobile - like mission format */
  .who-page #history-block .two-col {
    display: flex;
    flex-direction: column;
  }
  
  .who-page #history-block .media-photo {
    order: 1 !important;
    margin: 0 auto 12px auto;
    max-width: 280px;
    width: 100%;
  }
  
  .who-page #history-block .two-col > div:not(.media-photo) {
    order: 2 !important;
    text-align: left;
    width: 100%;
  }
  
  /* Match mission section styling for history on mobile */
  .who-page #history-block {
    text-align: center;
  }
  
  .who-page #history-block h2 {
    text-align: center !important;
    margin-bottom: 20px;
  }
  
  .who-page #history-block .lead {
    text-align: left;
    margin-top: 0;
  }
  
  .who-page .section-inner {
    padding: 0 16px;
  }
  
  .who-page h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin: 20px 0 16px;
    text-align: center;
  }
  
  .who-page h4 {
    font-size: clamp(18px, 3vw, 22px);
    margin: 16px 0 12px;
    text-align: center;
  }
  
  .who-page p {
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0;
  }
  
  .who-page .lead {
    font-size: 16px;
    line-height: 1.6;
    margin: 16px 0 20px;
  }
  
  .who-page .values-list {
    text-align: left;
    padding-left: 20px;
    margin: 16px 0;
  }
  
  .who-page .values-list li {
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0;
  }
  
  /* Mobile core values section optimization */
  .who-page .core-values-section {
    padding: 32px 0;
  }
  
  .who-page .core-values-section p {
    text-align: center !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0;
  }
  
  .who-page .core-values-section p[style*="font-weight: bold"] {
    font-weight: 700 !important;
    font-size: 16px !important;
    margin: 16px 0 !important;
  }
  
  /* Mobile mission section optimization */
  .who-page #mission-block .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .who-page #mission-block .media-photo {
    order: 1;
    margin: 0 auto;
    max-width: 300px;
  }
  
  .who-page #mission-block .two-col > div:not(.media-photo) {
    order: 2;
  }
  
  /* Mobile page hero optimization */
  .who-page .who-hero {
    padding: 24px 0 16px;
  }
  
  .who-page .who-hero h1 {
    font-size: clamp(28px, 6vw, 40px);
    margin: 0;
  }
  
  /* Mobile section spacing */
  .who-page .section {
    padding: 32px 0;
  }
  
  .who-page #history-block,
  .who-page #mission-block {
    padding: 32px 0;
  }
  
  /* Mobile About Us section optimization */
  .section[aria-label="About Us"] .two-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px auto;
    max-width: 100%;
    align-items: center;
  }
  
  .section[aria-label="About Us"] .media-photo {
    order: 2;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
  }
  
  .section[aria-label="About Us"] .two-col > div:not(.media-photo) {
    order: 3;
    text-align: justify;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .section[aria-label="About Us"] h2 {
    text-align: center;
    margin: 0 0 16px 0;
    font-size: clamp(20px, 4vw, 24px);
  }
  
  .section[aria-label="About Us"] p {
    text-align: justify;
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
  }
  
  .section[aria-label="About Us"] .about-cta {
    text-align: center;
    margin-top: 16px;
  }

  /* Mobile Our Impact page optimization */
  .page #our-impact .impact-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
  }
  
  .page #our-impact .impact-row .media-photo {
    order: 2;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
  }
  
  .page #our-impact .impact-row > div:not(.media-photo) {
    order: 3;
    text-align: left;
    width: 100%;
  }
  
  .page #our-impact h3 {
    text-align: center;
    margin: 0 0 16px 0;
    font-size: clamp(20px, 4vw, 24px);
  }
  
  .page #our-impact h4 {
    text-align: center;
    margin: 12px 0 8px 0;
    font-size: clamp(18px, 3vw, 20px);
  }
  
  .page #our-impact p {
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
  }
  
  .page #our-impact .lead {
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0;
  }
  
  /* Ensure proper spacing for impact sections */
  .page #our-impact .section-inner {
    padding: 0 16px;
  }
  
  /* Reduce space between last impact section and footer on mobile */
  .page #our-impact .impact-row:last-of-type {
    margin-bottom: 8px;
  }
  
  .page #our-impact {
    padding-bottom: 12px;
  }
}
  
  .contact-info-left {
    order: 1; /* Keep contact info above form on mobile */
    text-align: center !important;
    padding: 0 8px;
    align-items: center !important;
  }
  
  .contact-form-container {
    order: 2; /* Move form below contact info on mobile */
    justify-content: center;
  }
  
  .contact-form-new {
    max-width: 100%;
    width: 100%;
    padding: 20px 16px;
  }
  
  /* Mobile page hero optimization */
  .page-hero {
    padding: 24px 0 16px;
  }
  
  .page-hero h1 {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 12px;
  }
  
  .page-hero p {
    font-size: 16px;
    line-height: 1.5;
    padding: 0 16px;
  }
  
  /* Mobile section spacing */
  .section {
    padding: 40px 0;
  }
  
  /* Mobile find us section */
  .find-us {
    padding: 32px 0;
  }
  
  .find-us .map-embed {
    margin: 16px 0;
  }
  
  .ctas-center {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  
  .ctas-center .btn-animated {
    width: 100%;
    max-width: 300px;
  }
  
  /* Mobile footer optimization - only for mobile devices */
  .pro-footer .footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: center !important;
    padding: 20px 16px !important;
  }
  
  .footer-left,
  .footer-center,
  .footer-right {
    justify-self: center !important;
    text-align: center !important;
  }
  
  .follow-us-section {
    text-align: center !important;
    align-items: center !important;
    margin-top: 16px !important;
    transition: none;
    transform: translateX(0);
    margin-right: 0;
  }
  
  /* Disable animation on mobile when scroll-to-top is visible */
  body.scroll-top-visible .site-footer .follow-us-section {
    transform: none;
    margin-right: 0;
  }
  
  .social-icons {
    gap: 28px;
  }
  
  .social-icon {
    width: 24px;
    height: 24px;
  }
  
  /* Mobile CTA join section */
  .cta-join {
    padding: 24px 16px;
  }
  
  .cta-join h2 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 16px;
  }
  
  .cta-join .lead {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 8px;
  }
  
  .cta-join .cta-email {
    margin: 12px 0;
  }
  
  .cta-join .email-link {
    font-size: 16px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
    display: inline-block;
  }
}

/* Extra small mobile devices (phones in portrait) */
@media (max-width: 480px) {
  .contact-layout {
    padding: 0 12px;
    gap: 24px;
  }
  
  .contact-form-new {
    padding: 16px 12px;
  }
  
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 44px;
  }
  
  .form-field textarea {
    min-height: 90px;
  }
  
  .submit-btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }
  
  .page-hero h1 {
    font-size: clamp(22px, 6vw, 28px);
  }
  
  .page-hero p {
    font-size: 15px;
    padding: 0 12px;
  }
  
  .contact-info-left h3 {
    font-size: 1.1rem;
    margin: 16px 0 10px;
  }
  
  .contact-info-left p {
    font-size: 14px;
    margin: 6px 0 10px;
  }
  
  .contact-info-left a {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .ctas-center .btn-animated {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .find-us .map-embed {
    margin: 12px 0;
  }
  
  .cta-join {
    padding: 20px 12px;
  }
  
  .cta-join h2 {
    font-size: clamp(18px, 5vw, 22px);
  }
  
  .cta-join .lead {
    font-size: 14px;
    padding: 0 4px;
  }
  
  .cta-join .email-link {
    font-size: 15px;
    padding: 6px 12px;
  }
  
  /* Extra small mobile devices - Who We Are page */
  .who-page .section-inner {
    padding: 0 12px;
  }
  
  .who-page h2 {
    font-size: clamp(22px, 5vw, 28px);
    margin: 16px 0 12px;
  }
  
  .who-page h4 {
    font-size: clamp(16px, 4vw, 20px);
    margin: 12px 0 10px;
  }
  
  .who-page p {
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
  }
  
  .who-page .lead {
    font-size: 15px;
    line-height: 1.5;
    margin: 12px 0 16px;
  }
  
  .who-page .values-list {
    padding-left: 16px;
    margin: 12px 0;
  }
  
  .who-page .values-list li {
    font-size: 13px;
    line-height: 1.4;
    margin: 6px 0;
  }
  
  .who-page .media-photo {
    max-width: 250px;
  }
  
  .who-page #mission-block .media-photo {
    max-width: 280px;
  }
  
  .who-page .who-hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  /* Extra small mobile devices - About Us section */
  .section[aria-label="About Us"] .two-col {
    margin: 20px auto;
    gap: 12px;
    align-items: center;
  }
  
  .section[aria-label="About Us"] .media-photo {
    max-width: 280px;
  }
  
  .section[aria-label="About Us"] h2 {
    font-size: clamp(18px, 5vw, 22px);
    margin: 0 0 12px 0;
  }
  
  .section[aria-label="About Us"] p {
    text-align: justify;
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
  }

  /* Extra small mobile devices - Our Impact page */
  .page #our-impact .section-inner {
    padding: 0 12px;
  }
  
  .page #our-impact h3 {
    font-size: clamp(18px, 5vw, 22px);
    margin: 0 0 12px 0;
  }
  
  .page #our-impact h4 {
    font-size: clamp(16px, 4vw, 18px);
    margin: 10px 0 6px 0;
  }
  
  .page #our-impact p {
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
  }
  
  .page #our-impact .lead {
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0;
  }
  
  .page #our-impact .impact-row {
    margin: 20px 0;
    gap: 12px;
  }
  
  .page #our-impact .impact-row .media-photo {
    max-width: 280px;
  }
  
  /* Reduce space between last impact section and footer */
  .page #our-impact .impact-row:last-of-type {
    margin-bottom: 6px;
  }
  
  .page #our-impact {
    padding-bottom: 8px;
  }
}

/* Ensure both headers align at the same baseline */
.contact-info-left h2,
.form-header h2 {
  margin-top: 0;
  margin-bottom: 24px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  vertical-align: baseline; /* Ensure baseline alignment */
}

/* Move "Get In Touch" header down slightly */
.contact-info-left h2 {
  margin-top: 0; /* Reset margin */
  padding-top: 10px; /* Aligned with form header padding */
}

/* Left side contact info - no card styling */
.contact-info-left {
  text-align: left; /* Left-align all content for desktop */
  padding: 5px 10px 10px 10px; /* match form card inner padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Start from top to match form */
  align-items: flex-start; /* Left-align items for desktop */
  min-height: auto; /* Height determined by content or JS equalizer */
}

/* Contact info h2 styling is now handled by the shared rule above */

.contact-info-left h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  text-align: left; /* Left-align headings for desktop */
}

/* Mobile contact info optimization */
@media (max-width: 768px) {
  .contact-info-left h2 {
    text-align: center !important;
    margin: 0 0 24px !important;
  }
  
  .contact-info-left h3 {
    margin: 20px 0 12px;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center !important;
  }
  
  .contact-info-left p {
    font-size: 15px;
    line-height: 1.6;
    text-align: center !important;
    margin: 8px 0 12px;
  }
  
  .contact-info-left a {
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8fafc;
    display: inline-block;
    margin: 2px 0;
    text-align: center !important;
  }
}

.contact-info-left p {
  margin: 8px 0;
  color: var(--text);
  line-height: 1.5;
}

.contact-info-left a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info-left a:hover {
  text-decoration: underline;
}

/* Right side form container */
.contact-form-container {
  display: flex;
  justify-content: stretch;
  width: 100%;
  align-items: stretch; /* Stretch inner form to match container height */
  min-height: 100%; /* Fill the full height of the grid cell */
}

/* New contact form styling */
.contact-form-new {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 5px 10px 10px 10px; /* equal side/bottom spacing for balanced card */
  width: 100%;
  max-width: none;
  min-width: auto;
  /* prevent stretching to match left column height */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  /* allow height to be based solely on content */
  min-height: auto;
}

.form-header {
  margin-bottom: 2px;
  text-align: center;
  padding-top: 10px; /* Further reduced padding for more compact box */
  padding-bottom: 0;
}

/* Form header h2 styling is now handled by the shared rule above */

.required-note {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  text-align: right;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 4px;
}

/* Mobile form row optimization */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 8px;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  display: block;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px; /* Increased padding for better visual presence */
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px; /* Minimum height for better touch targets */
}

/* Allow room for separate dial code flag area */
.form-field input[type="tel"] {
  padding-left: 88px; /* prevents flag/dial code from overlapping text */
}

/* Mobile form field optimization */
@media (max-width: 768px) {
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 16px 20px; /* Larger padding for mobile touch targets */
    font-size: 16px; /* Prevent zoom on iOS */
    height: 56px; /* Fixed height for all fields */
    min-height: 56px; /* Larger touch targets for mobile */
    border-radius: 8px; /* Slightly rounded corners for mobile */
    border: 2px solid #e5e7eb; /* Slightly thicker border for mobile */
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width calculation */
    line-height: 1.4; /* Better line height for text visibility */
  }
  
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.1);
    outline: none;
  }
  
  .form-field textarea {
    height: 56px; /* Same height as other fields */
    min-height: 56px; /* Same minimum height */
    resize: vertical; /* Allow vertical resize only */
  }
  
  .form-field select {
    height: 56px; /* Fixed height for select */
    min-height: 56px;
    display: flex;
    align-items: center; /* Center text vertically */
  }
  
  .form-field label {
    font-size: 14px; /* Slightly larger labels for mobile */
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
  }
  
  .form-field select {
    background-position: right 20px center;
    padding-right: 44px;
    color: #000000 !important; /* Black text for maximum visibility on mobile */
    font-weight: 600 !important; /* Bold text for better visibility */
    line-height: 1.4 !important; /* Better line height for text visibility */
    font-size: 16px !important; /* Ensure consistent font size */
  }
  
  .form-field select option {
    color: #000000 !important; /* Black text for mobile options */
    background-color: #ffffff !important;
    padding: 12px 16px;
    font-size: 16px; /* Match mobile font size */
    font-weight: 500 !important;
    text-align: center; /* Center align all country names on mobile */
  }
  
  .form-field select option:first-child {
    color: #374151 !important; /* Dark gray for placeholder on mobile */
    font-style: italic;
    font-weight: 600 !important;
  }
  
  /* Force visibility for select placeholder text on mobile */
  .form-field select:invalid {
    color: #374151 !important;
    font-weight: 600 !important;
  }
  
  /* Additional mobile select styling for better visibility */
  .form-field select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #ffffff !important;
  }
  
  /* Ensure select text is always visible on mobile */
  .form-field select,
  .form-field select:focus,
  .form-field select:active {
    color: #000000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
  }
  
  /* Mobile-specific placeholder styling */
  .form-field input::placeholder,
  .form-field textarea::placeholder {
    color: #374151 !important;
    opacity: 0.8 !important;
  }
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center; /* Adjusted for new padding */
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  height: 44px; /* Match the min-height of other inputs */
  appearance: none; /* Remove default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #374151; /* Darker text color for better visibility */
}

/* Style the select option elements */
.form-field select option {
  color: #374151; /* Dark text for options */
  background-color: #ffffff;
  padding: 8px 12px;
  text-align: center; /* Center align all country names */
}

/* Style the first option (placeholder) */
.form-field select option:first-child {
  color: #6b7280; /* Slightly lighter for placeholder */
  font-style: italic;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px; /* Increased minimum height for better visual presence */
}

.error {
  color: #dc2626;
  font-size: 11px;
  margin-top: 1px;
  display: none; /* Hidden by default, shown only after validation attempt */
  min-height: 12px;
}

.error.show {
  display: block; /* Show when validation fails */
}

.form-checkbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0;
}

.form-checkbox .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-checkbox label {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  cursor: pointer;
}

.form-checkbox .error {
  display: none;
  color: #dc2626;
  font-size: 11px;
  margin-top: 4px;
  min-height: 12px;
}

.form-checkbox .error.show {
  display: block;
}

.privacy-link {
  color: var(--primary);
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Ensure intl-tel-input dropdown works well inside form */
.intl-tel-input,
.iti {
  width: 100%;
}

.iti__country-list {
  z-index: 10000; /* keep popup above cards/modals */
}

/* Make sure the dial code block is visible and not clipped */
.iti--separate-dial-code .iti__flag-container {
  z-index: 2;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}

.iti--separate-dial-code .iti__selected-dial-code {
  color: var(--text);
  font-weight: 600;
}

/* Polished phone field styling to match design inside the contact form */
.contact-form-new .iti {
  width: 100%;
}

.contact-form-new .iti--separate-dial-code input[type="tel"] {
  border-radius: 12px;
  padding-left: 104px; /* align with larger left dial-code area */
  height: 44px;
}

/* keep phone input height consistent with other inputs */
.contact-form-new .form-field input[type="tel"] {
  height: 44px;
  min-height: 44px;
  line-height: 44px;
}

.contact-form-new .iti--separate-dial-code .iti__flag-container {
  width: 96px; /* roomy dial-code block */
  background: #f8fafc; /* subtle card-like background */
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-right: 1px solid #e5e7eb;
}

.contact-form-new .iti--separate-dial-code .iti__selected-flag {
  padding: 0 10px; /* space for flag + dial code */
}

.contact-form-new .iti--separate-dial-code .iti__selected-dial-code {
  font-weight: 800; /* bold like screenshot */
  color: #0f172a; /* near-black for emphasis */
  font-size: 16px;
}

.contact-form-new .iti__arrow {
  border-top-color: #64748b; /* softer arrow */
}

/* Custom composite phone input (code box + number input) */
.contact-form-new .phone-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden; /* keep children within rounded corners */
  background: #ffffff;
}

.contact-form-new .phone-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form-new .phone-code {
  min-width: 92px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0f172a;
  background: #f3f4f6; /* distinct gray background */
  border-right: 1px solid #d1d5db; /* visible separator */
}

.contact-form-new .phone-input-group input[type="tel"] {
  flex: 1 1 auto;
  border: 0; /* container provides the border */
  height: 44px;
  padding: 0 12px;
  font-size: 16px; /* match other inputs */
  line-height: 44px;
  color: var(--text);
  background: transparent;
}

.contact-form-new .phone-input-group input[type="tel"]:focus {
  outline: none;
}

/* Distinct country-code block and unified rounded container (Image 2 style) */
.contact-form-new .iti--separate-dial-code input[type="tel"] {
  border-radius: 12px;               /* rounded corners for entire control */
  border: 1px solid #d1d5db;         /* visible container border */
}

.contact-form-new .iti--separate-dial-code input[type="tel"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form-new .iti--separate-dial-code .iti__flag-container {
  background: #f3f4f6;               /* distinct bg for dial code area */
  border-right: 1px solid #d1d5db;   /* clear vertical separator */
  border-top-left-radius: 12px;      /* match input rounding on left */
  border-bottom-left-radius: 12px;
}

.contact-form-new .iti--separate-dial-code .iti__selected-flag {
  padding: 0 12px;                    /* space for flag and +code */
}

.contact-form-new .iti--separate-dial-code .iti__selected-dial-code {
  font-weight: 700;                    /* emphasize country code */
  color: #0f172a;
}


/* Submit button now uses global animated styling */
.submit-btn {
  /* Inherits from .btn-animated.submit when class is applied */
  width: 60%;
  margin: 0 auto;
  display: block;
}

/* Mobile submit button optimization */
@media (max-width: 768px) {
  .submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
    margin: 16px auto 0;
  }
}

.form-result {
  margin-top: 1px;
  padding: 2px;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

/* Collapse message area when empty to remove space under the submit button */
.form-result:empty {
  margin: 0;
  padding: 0;
  display: none;
}

.form-result.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-result.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-result.submitting {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Find Us block - dark centered layout */
.find-us { background: #f8fafc; color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.find-us h2 { text-align: center; margin: 0 0 10px; color: var(--text); }
.find-us .address-line { text-align: center; margin: 0 0 8px; color: #334155; }
.find-us .map-wrap { display: grid; place-items: center; }
.find-us .map-embed { max-width: 900px; box-shadow: var(--shadow); }
.find-us .address-note { text-align: center; color: #64748b; font-size: 0.92rem; margin: 10px 0 0; }
.ctas-center { justify-content: center; display: flex; gap: 12px; margin-top: 12px; }
.ctas-center .btn-animated {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Join CTA block above footer */
.cta-join { padding: 30px 0 20px; background: #ffffff; border-top: 1px solid var(--border); }
.cta-join h2 { text-align: center; font-weight: 900; color: var(--text); margin: 0 0 12px; letter-spacing: 0.01em; }
.cta-join .lead { max-width: 860px; margin: 0 auto 12px; text-align: center; color: #334155; }
.cta-join .cta-email { text-align: center; margin: 8px 0; }
.cta-join .email-link { color: #2563eb; text-decoration: underline; font-weight: 700; }
.cta-join .small-note { text-align: center; color: #64748b; font-size: 0.9rem; margin-top: 6px; }

/* REMOVED CONFLICTING CSS RULES - USING INLINE STYLES INSTEAD */


/* Floating WhatsApp Chat Button */
.whatsapp-float {
  position: fixed;
  /* Mirror Gravita spacing: small constant offset from viewport edges */
  bottom: 20px;
  left: 20px;
  /* Respect device safe areas in addition to the 20px offset */
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: calc(20px + env(safe-area-inset-left));
  /* Match visual size similar to Gravita */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366; /* ensure full green circle behind image */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* Layered shadow and soft glow for better separation on light backgrounds */
  box-shadow: 
    0 10px 24px rgba(2, 8, 23, 0.18),       /* depth */
    0 8px 18px rgba(37, 211, 102, 0.18);    /* WhatsApp-green glow */
  z-index: 2000;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: fixed;
  overflow: hidden; /* keep image strictly within the circular container */
  position: fixed;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow:
    0 14px 36px rgba(2, 8, 23, 0.22),
    0 0 22px rgba(37, 211, 102, 0.28);
}

.whatsapp-float:active {
  transform: scale(0.98);
  box-shadow:
    0 8px 18px rgba(2, 8, 23, 0.2),
    0 0 16px rgba(37, 211, 102, 0.22);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
  display: block;
}

/* If using image instead of SVG: absolutely center for perfect alignment */
.whatsapp-float img,
.whatsapp-float svg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: 50%;
}

/* Trim any inherent transparent padding in the PNG so it visually fills */
.whatsapp-float img {
  transform: scale(1.08);
}

/* Optional tooltip for desktop */
.whatsapp-float .whatsapp-tooltip {
  position: absolute;
  left: 74px;
  bottom: 50%;
  transform: translateY(50%);
  background: #111827; /* slate-900 */
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) translateX(2px);
}

.whatsapp-float .whatsapp-tooltip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #111827 transparent transparent;
}

@media (max-width: 768px) {
  .whatsapp-float .whatsapp-tooltip { display: none; }
  /* Keep same size and offset on mobile for consistency */
  .whatsapp-float { width: 56px; height: 56px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* Ensure the PNG fills the circular container perfectly */
.whatsapp-float svg { border-radius: 50% !important; }

@media (max-width: 480px) {
  .whatsapp-float { 
    /* Maintain a small clear offset on extra-small screens too */
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: calc(20px + env(safe-area-inset-left));
  }
}


/* Opening Popup: overlay and card */
.opening-popup-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1100; /* above back-to-top (1000) and WhatsApp (1000) */
  /* Block background interaction and add blurred, translucent backdrop */
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.5); /* slate-900 at 50% */
  backdrop-filter: blur(6px);
}

/* Reusable card surface to match "Send Us a Message" card */
.card-surface {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 20px;
}

/* Compact layout for the left "Get In Touch" card */
.contact-info-left.card-surface {
  padding: 12px 16px;
}

.contact-info-left h2 { margin-bottom: 12px; }
.contact-info-left h3 { margin: 12px 0 6px; }
.contact-info-left p { margin: 4px 0 8px; line-height: 1.45; }

/* Spacing between stacked cards */
.card-surface + .card-surface { margin-top: 16px; }

/* Disable ALL image animations and hover effects site-wide */
img {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
}

.products-grid .product:hover .product-figure img,
.card.product:hover .product-figure img,
.impact-row .media-photo:hover img,
.world-map-wrap:hover .world-map-img,
.section[aria-label="About Us"] .media-photo:hover img,
#history-block .media-photo:hover img,
#mission-block .media-photo:hover img {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Also neutralize any custom animation classes if applied */
.image-modern-pulse,
.image-elegant-zoom,
.image-smooth-slide,
.image-elastic-bounce,
.image-floating-glow,
.image-spiral-entrance,
.image-slide-up-bounce,
.image-gentle-shake,
.image-smooth-wobble {
  animation: none !important;
}

.opening-popup-card {
  pointer-events: auto; /* allow interactions on the card */
  width: min(92vw, 380px);
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: openingPopupFadeIn 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.opening-popup-card.fade-out {
  animation: openingPopupFadeOut 220ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes openingPopupFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes openingPopupFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.opening-popup-header {
  display: flex;
  align-items: center;
  justify-content: center; /* center header block */
  gap: 10px;
  position: relative; /* allow close button absolute positioning */
}

/* Center the text block inside header */
.opening-popup-header > div {
  text-align: center;
  width: 100%;
}

.opening-popup-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.opening-popup-subtitle {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.opening-popup-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 6px;
  position: absolute;
  top: 6px;
  right: 6px; /* keep close button on the right while header text is centered */
}

.opening-popup-close:hover { color: #0f172a; background: #f1f5f9; }

.opening-popup-form .field {
  display: flex;
  flex-direction: column;
  margin: 8px 0 6px;
}

.opening-popup-form .field label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.opening-popup-form .field input,
.opening-popup-form .field select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
  min-height: 40px;
}

/* Make popup country select look like other inputs (custom arrow) */
.opening-popup-form .field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px; /* room for arrow */
}

.opening-popup-form .field select option { color: #111827; }

/* Phone input with visible dialing code prefix (popup) */
.opening-phone-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  min-height: 40px;
  overflow: hidden;
  padding: 0; /* avoid inner white overflow outside rounded border */
}

.opening-phone-wrap:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.opening-dial-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 40px;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
  white-space: nowrap;
  min-width: 60px;
}

.opening-phone-wrap input {
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

/* Ensure input inside phone wrap does not draw its own border/radius from generic rules */
.opening-popup-form .field .opening-phone-wrap input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Make the wrap take full width of field */
.opening-popup-form .field .opening-phone-wrap { width: 100%; }

.opening-popup-form .error-text {
  color: #dc2626;
  font-size: 11px;
  margin-top: 3px;
  display: none;
}

.opening-popup-form .error-text.show { display: block; }

.opening-popup-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: center; /* center submit button */
}

.opening-popup-submit {
  /* Match the yellow style used by "Send Us a Message" button */
  background: linear-gradient(135deg, #FFA500 0%, #E69500 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px; /* make it a bit bigger */
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  min-width: 160px;
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.opening-popup-submit:hover { 
  background: linear-gradient(135deg, #E69500 0%, #CC8400 100%);
  filter: brightness(1);
}
.opening-popup-submit:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

.opening-popup-success {
  text-align: center;
  font-size: 14px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}
