/* ==========================================================================
   Buy-Easy (广州百易) — Main Stylesheet
   A modern, mobile-first responsive design for a Chinese sourcing agent.
   No external frameworks or font dependencies.
   ========================================================================== */

/* --- CSS Custom Properties (Color Palette & Spacing) --- */
:root {
  /* Primary */
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;

  /* Secondary / Accent */
  --color-secondary: #2563eb;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Section backgrounds — very light tints of the hero navy/blue family */
  --color-bg-section: #f6f9fe;
  --color-bg-section-alt: #edf2fa;

  /* WhatsApp green */
  --color-whatsapp: #25d366;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1.06rem;
  --line-height-base: 1.6;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.bg-white {
  background-color: var(--color-bg-section);
}

.bg-gray {
  background-color: var(--color-bg-section-alt);
}

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

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

/* --- Section Titles --- */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-gray-500);
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base),
    box-shadow var(--transition-base), backdrop-filter var(--transition-base);
  background-color: transparent;
}

/* Scrolled state — added by JS */
.site-header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  max-width: 200px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
}

.lang-switch .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Header CTA Button */
.btn-header-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-accent);
  color: var(--color-primary) !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn-header-cta:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-primary) !important;
  transform: translateY(-1px);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  z-index: 999;
  padding: var(--space-xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .lang-switch {
  margin-top: var(--space-md);
}

.mobile-nav .lang-switch a {
  font-size: 1rem;
  border-bottom: none;
  padding: var(--space-xs) var(--space-sm);
}

.mobile-nav .btn-header-cta {
  text-align: center;
  margin-top: var(--space-md);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 50%,
    #1a365d 100%
  );
  color: var(--color-white);
  text-align: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg)
    var(--space-lg);
  overflow: hidden;
}

/* Subtle decorative background pattern */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(37, 99, 235, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.35rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.hero-trust {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl) var(--space-3xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

.trust-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
}

.trust-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

/* --- Service Card Image --- */
.service-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

/* --- Service Card Body --- */
.service-body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.service-card p {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-more {
  margin-top: var(--space-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Service detail modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.service-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal-card {
  max-width: 560px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  text-align: left;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.service-modal.open .service-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.service-modal-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: var(--space-md);
}

.service-modal-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.service-modal-card p {
  font-size: 1.08rem;
  color: var(--color-gray-600);
  line-height: 1.75;
}

.service-modal-close {
  display: block;
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: var(--color-gray-500);
  text-align: center;
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

/* Row 1: four cards, 3 columns each */
.product-card:nth-child(-n+4) {
  grid-column: span 3;
}

/* Row 2: three cards, 4 columns each — centered, no empty gap */
.product-card:nth-child(n+5) {
  grid-column: span 4;
}

.product-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background-color: var(--color-gray-100);
  background-size: cover;
  background-position: center;
}

/* Light wash over the photo so text stays clearly readable */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.38);
  transition: background var(--transition-base);
}

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

.product-card:hover::before {
  background: rgba(248, 250, 252, 0.3);
}

.product-card h3,
.product-card p {
  position: relative;
  z-index: 1;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.7);
  text-shadow: 0 2px 4px rgba(15, 23, 42, 0.85), 0 0 18px rgba(15, 23, 42, 0.5);
}

.product-card p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.6;
  text-shadow: 0 2px 3px rgba(15, 23, 42, 0.85), 0 0 12px rgba(15, 23, 42, 0.45);
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line behind steps (desktop) */
.steps-container::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-accent)
  );
  border-radius: 2px;
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), #3b82f6);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.step p {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.about-content > p {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--color-gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 2px);
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-secondary);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 1.05rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

.about-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-gray-700);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  line-height: 1.7;
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1120px;
  margin: 0 auto;
}

.why-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}

.why-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-secondary), #3b82f6);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  margin-bottom: var(--space-md);
}

.why-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.why-item p {
  font-size: 0.98rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  font-weight: 500;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-family);
  line-height: 1.4;
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-gray-500);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--color-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: var(--space-lg);
  font-size: 1.05rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
}

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  background-color: var(--color-whatsapp);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  margin-top: var(--space-md);
  text-decoration: none;
}

.contact-whatsapp-btn:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  color: var(--color-white) !important;
}

/* Contact Form */
.contact-form {
  background-color: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-family: var(--font-family);
  color: var(--color-gray-800);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: var(--color-white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-secondary);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
  font-family: var(--font-family);
}

.btn-submit:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-company {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
}

.back-to-top:hover {
  color: var(--color-white);
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-float.hidden {
  display: none;
}

.whatsapp-banner {
  display: block;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.3);
}

.whatsapp-banner-wrap {
  position: relative;
  line-height: 0;
}

.whatsapp-logo {
  height: 146px;
  width: auto;
  display: block;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  border: none;
  background: rgba(2, 6, 23, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.whatsapp-close:hover {
  background: rgba(2, 6, 23, 0.6);
  color: #fff;
}

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

/* Compact header on medium screens (4-language switch + longer nav labels) */
@media (max-width: 1150px) {
  .header-inner {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .lang-switch {
    gap: 0.1rem;
    font-size: 0.8rem;
  }

  .lang-switch a {
    padding: 2px 4px;
  }

  .btn-header-cta {
    padding: 0.5rem 0.9rem;
  }
}

/* Tablet and below */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .product-card:nth-child(-n+4) {
    grid-column: span 3;
  }

  .product-card:nth-child(n+5) {
    grid-column: span 2;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .steps-container::before {
    display: none;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }

  .step {
    max-width: 400px;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --header-height: 64px;
  }

  .nav-links,
  .btn-header-cta-desktop {
    display: none;
  }

  .logo-img {
    height: 27px;
    max-width: 140px;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .trust-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

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

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

  .product-card:nth-child(-n+4),
  .product-card:nth-child(n+5) {
    grid-column: auto;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .whatsapp-logo {
    height: 96px;
  }

  .whatsapp-btn {
    width: 54px;
    height: 54px;
  }

  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-close {
    top: 4px;
    right: 6px;
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .service-card {
    padding: var(--space-xl);
  }

  .contact-form {
    padding: var(--space-xl);
  }
}

/* ==========================================================================
   LEGAL PAGES (privacy / terms)
   ========================================================================== */
.legal-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.legal-header .logo-img {
  height: 32px;
}

.legal-lang {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.legal-lang a {
  color: rgba(255, 255, 255, 0.9);
}

.legal-main {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-section);
  min-height: 60vh;
}

.legal-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl) var(--space-3xl);
  max-width: 820px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-xl);
}

.legal-card h2 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-card p,
.legal-card li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-gray-600);
}

.legal-card ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin: var(--space-sm) 0;
}

.legal-card a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.legal-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: 0.9rem;
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .site-header,
  .whatsapp-float,
  .hamburger,
  .mobile-nav,
  .hero-buttons,
  .contact-whatsapp-btn,
  .back-to-top,
  .btn-header-cta {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: #fff;
    color: #000;
    padding: 2rem 0;
  }

  .hero h1,
  .section-title {
    color: #000;
  }

  .section-padding {
    padding: 2rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
