/* ============================================
   CELSON — Global Building Materials
   Design System & Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green-600: #15803D;
  --green-700: #116A32;
  --green-800: #0E5428;
  --green-50:  #F0FDF4;
  --green-100: #DCFCE7;
  --orange-600: #D97706;
  --orange-700: #B65C03;
  --orange-50:  #FFF7ED;
  --orange-100: #FFEDD5;
  --navy-900:  #0F172A;
  --navy-800:  #1E293B;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;
  --black:     #000000;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);

  --max-width: 1140px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: #F0FDF4;
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.nowrap { white-space: nowrap; }

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== Section Island — floating white card effect ========== */
.section-island {
  max-width: 1060px;
  margin: 0 auto 48px;
  padding: 56px 48px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
}

/* All major sections get bottom spacing */
section {
  margin-bottom: 48px;
}

/* Sections that should not get island/spacing */
section.stats-section,
section.clients-section,
section.footer-full,
section.products-section.alt-bg,
footer {
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  image-rendering: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--green-600);
  border-bottom-color: var(--green-600);
}

.nav-shop-coming {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}
.coming-soon-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  cursor: pointer;
  border: none;
}

.lang-switch span {
  color: var(--slate-500);
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--green-600);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.btn-primary.orange {
  background: var(--orange-600);
}

.btn-primary.orange:hover {
  background: var(--orange-700);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--slate-400);
  background: var(--slate-50);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 48px 72px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
  max-width: 1060px;
  margin: 0 auto 48px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--green-50);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-visual {
  flex: 1;
  max-width: 520px;
  height: 440px;
  background: var(--slate-100);
  border-radius: 48px;  /* extra-large rounded corners */
  overflow: hidden;
  position: relative;
}

.hero-visual .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Hero Product Tags ========== */
.hero-product-tags {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
  letter-spacing: 0.03em;
  margin: -28px 0 36px;
}

.hero-product-tags a {
  color: var(--slate-400);
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.hero-product-tags a:hover {
  color: var(--green-600);
  border-bottom-color: var(--green-600);
}

/* ========== Hero Image Carousel ========== */
.hero-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 48px;
}

/* Navigation arrows */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.88);
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.hero-carousel-arrow:hover {
  background: rgba(255,255,255,1);
}

.hero-carousel-prev { left: 14px; }
.hero-carousel-next { right: 14px; }

.hero-visual:hover .hero-carousel-arrow {
  opacity: 1;
}

/* Dot indicators */
.hero-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero-carousel-dot:hover {
  background: rgba(255,255,255,0.75);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 15px;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 16px;
}

.section-header p::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-600), #A7F3D0, var(--green-600));
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-section {
  padding: 32px 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
  max-width: 1060px;
  margin: 0 auto 48px;
}

.products-section.alt-bg {
  background: #F0FDF4;
  box-shadow: none;
}

.core-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card,
a.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(21, 128, 61, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  color: inherit;
}

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

.product-card.featured-green {
  border: 2px solid rgba(21, 128, 61, 0.4);
}

.product-card.featured-orange {
  border: 2px solid rgba(217, 119, 6, 0.4);
}

.product-card-img {
  width: 100%;
  height: 220px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-img .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image fallback text — appended by main.js when image fails to load */
.img-fallback-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.img-fallback-green  { color: #15803D; }
.img-fallback-orange { color: #D97706; }
.img-fallback-gray   { color: #64748B; }

/* When fallback is active, hide the alt text icon */
.product-card-img:has(.img-fallback-text) .placeholder-img,
.hero-visual:has(.img-fallback-text) .placeholder-img,
.about-story-visual:has(.img-fallback-text) .placeholder-img,
.project-card-img:has(.img-fallback-text) .placeholder-img {
  display: none !important; /* already hidden by JS, but double-sure */
}

/* Larger fallback text for hero / about visuals */
.hero-visual .img-fallback-text,
.about-story-visual .img-fallback-text {
  font-size: 20px;
}

.product-card-badge {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  border-radius: 4px;
  margin-bottom: 8px;
}

.badge-green { background: var(--green-600); }
.badge-orange { background: var(--orange-600); }

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.65;
}

/* Secondary products */
.secondary-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card-sm {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(21, 128, 61, 0.05);
  transition: transform 0.2s;
  display: block;
  color: inherit;
}

.product-card-sm:hover {
  transform: translateY(-2px);
}

.product-card-sm .product-card-img {
  height: 140px;
}

.product-card-sm .product-card-body {
  padding: 14px 16px 16px;
}

.product-card-sm .product-card-body h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.product-card-sm .product-card-body p {
  font-size: 12px;
}

/* ============================================
   WHY / BENEFITS
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(21, 128, 61, 0.05);
}

.benefit-card .benefit-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 8px;
}

.benefit-card:nth-child(even) .benefit-num {
  color: var(--orange-600);
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ============================================
   STATS / TRUST SECTION
   ============================================ */
.stats-section {
  padding: 80px 0;
  background: var(--navy-900);
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.stat-item {
  flex: 1;
  padding: 20px 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-item:nth-child(even) .stat-number {
  color: var(--orange-600);
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-400);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: 36px 0 28px;
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
  max-width: 1060px;
  margin: 0 auto 24px;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.about-hero p {
  font-size: 16px;
  color: var(--slate-500);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
  max-width: 1060px;
  margin: 0 auto 32px;
  padding: 40px 40px;
}

.about-story-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.about-story-content p {
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-story-visual {
  height: 420px;
  background: var(--slate-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: default;
}

/* ========== Factory Image Carousel ========== */
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

/* Navigation arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,1);
}

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

.about-story-visual:hover .carousel-arrow {
  opacity: 1;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.8);
}

.factory-stats {
  padding: 40px 48px;
  background: #F0FDF4;
  max-width: 1060px;
  margin: 0 auto 32px;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.factory-card {
  background: var(--white);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 6px rgba(21, 128, 61, 0.05);
}

.factory-card .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 8px;
}

.factory-card .label {
  font-size: 14px;
  color: var(--slate-500);
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(21, 128, 61, 0.06);
  transition: transform 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card-img {
  width: 100%;
  height: 240px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-card-img .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 20px;
}

.project-card-body .region {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.project-card-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.project-card-body p {
  font-size: 14px;
  color: var(--slate-500);
}

.clients-section {
  padding: 80px 0;
  background: #F0FDF4;
}

.clients-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.client-logo {
  width: 140px;
  height: 60px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(21, 128, 61, 0.05);
}

.client-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fallback: keep old class if referenced elsewhere */
.client-logo-placeholder {
  width: 140px;
  height: 60px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--slate-400);
  box-shadow: 0 1px 6px rgba(21, 128, 61, 0.05);
}

/* ============================================
   CONTACT PAGE — HERO
   ============================================ */
.contact-hero {
  padding: 40px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
  max-width: 1060px;
  margin: 0 auto 32px;
}

.contact-hero-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 20px;
  margin-bottom: 14px;
}

.contact-hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.contact-hero-sub {
  font-size: 17px;
  color: var(--slate-500);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE — MAIN SECTION
   ============================================ */
.contact-section {
  padding: 56px 48px 80px;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) 1.15fr;
  gap: 44px;
  align-items: start;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(21, 128, 61, 0.05);
  max-width: 1060px;
  margin: 0 auto 48px;
}

/* Left Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== Betty Card ========== */
.betty-card-inline {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.07);
  position: relative;
  overflow: visible;
  animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Top gradient strip */
.bci-top-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--green-600) 0%, #22c55e 40%, var(--orange-600) 70%, #f59e0b 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Profile — avatar + name side by side */
.bci-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 22px;
}

.bci-avatar-circle {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--green-600);
  box-shadow: 0 3px 16px rgba(21,128,61,0.20), 0 0 0 7px rgba(21,128,61,0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bci-avatar-circle:hover {
  transform: scale(1.08);
}

.bci-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bci-profile-text {
  flex: 1;
}

.bci-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.bci-title {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.bci-company-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-600);
  background: var(--green-50);
  padding: 3px 10px;
  border-radius: 4px;
}

/* Contact list */
.bci-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 28px 28px;
}

.bci-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.22s ease;
  position: relative;
}

.bci-item:hover {
  background: #F0FDF4;
  transform: translateX(4px);
}

.bci-item:active {
  transform: translateX(1px) scale(0.995);
}

.bci-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.bci-item:hover .bci-icon {
  background: #DCFCE7;
}

.bci-icon-wa { color: #25D366; background: #E8F8EF; }
.bci-icon-wc { color: #07C160; background: #E8F8EF; }
.bci-icon-loc { color: #EF4444; background: #FEF2F2; }

.bci-content {
  flex: 1;
  min-width: 0;
}

.bci-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 3px;
}

.bci-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  word-break: break-all;
}

.bci-addr-text {
  font-size: 12px;
  line-height: 1.55;
  word-break: normal;
}

/* Copy hint */
.bci-copy-hint {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bci-item:hover .bci-copy-hint {
  opacity: 1;
  transform: translateX(0);
  color: var(--green-600);
}

.bci-copy-hint.copied {
  opacity: 1 !important;
  transform: translateX(0) !important;
  color: var(--green-600) !important;
}

/* Address item — no hover transform, tooltip parent */
.bci-item-addr {
  cursor: default;
}

.bci-item-addr:hover {
  transform: none;
  background: transparent;
}

/* Map Tooltip */
.bci-map-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.92) translateY(6px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 10px;
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 500;
}

.bci-map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: var(--white);
  box-shadow: 3px 3px 8px -3px rgba(0,0,0,0.1);
}

.bci-item-addr:hover .bci-map-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1) translateY(0);
}

/* Map animation */
.bci-fake-map {
  width: 100%;
  height: 130px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(160deg, #d4f0dd 0%, #b8e6c9 30%, #a3dbba 60%, #8fd0ac 100%);
}

.bci-road {
  position: absolute;
  background: rgba(255,255,255,0.72);
  border-radius: 2px;
}
.bci-r1 { top: 33%; left: -10%; width: 120%; height: 6px; transform: rotate(-2deg); }
.bci-r2 { top: 58%; left: -5%; width: 110%; height: 4px; transform: rotate(1.5deg); }
.bci-r3 { top: 22%; left: 45%; width: 3px; height: 62%; border-radius: 2px; }

.bci-bldg {
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.bci-b1 { top: 10%; left: 14%; width: 24px; height: 20px; background: rgba(120,180,140,0.5); animation: bPulse 3s ease-in-out infinite; }
.bci-b2 { top: 42%; left: 58%; width: 30px; height: 22px; background: rgba(100,165,125,0.5); animation: bPulse 3s ease-in-out infinite 0.7s; }
.bci-b3 { top: 62%; left: 16%; width: 22px; height: 16px; background: rgba(140,190,155,0.5); animation: bPulse 3s ease-in-out infinite 1.4s; }
.bci-b4 { top: 26%; left: 72%; width: 18px; height: 14px; background: rgba(115,175,135,0.5); animation: bPulse 3s ease-in-out infinite 2.1s; }

@keyframes bPulse {
  0%,100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.bci-pin {
  position: absolute;
  top: 44%;
  left: 36%;
  z-index: 5;
  animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.07); }
}

.bci-pin-svg {
  width: 22px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.bci-pin-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  background: rgba(21,128,61,0.2);
  border-radius: 50%;
  animation: shadowScale 2s ease-in-out infinite;
}

@keyframes shadowScale {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(0.55); opacity: 0.2; }
}

.bci-map-tag {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  color: var(--green-700);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.88);
  padding: 3px 8px;
  border-radius: 4px;
}

.bci-map-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.bci-map-link:hover {
  color: #116A32;
  text-decoration: underline;
}

/* ========== Global Route Map Card ========== */
.contact-decor {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #F8FAFC;
}

.contact-decor-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== Contact Form Card ========== */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.07);
  padding: 40px 36px;
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-sub {
  font-size: 14px;
  color: var(--slate-400);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.req {
  color: var(--orange-600);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy-900);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(21,128,61,0.1);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.btn-submit svg {
  flex-shrink: 0;
}

/* ============================================
   FOOTER — COMPACT (Home)
   ============================================ */
.footer-compact {
  padding: 40px 0;
  background: var(--navy-800);
  text-align: center;
}

.footer-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-compact .copyright {
  font-size: 13px;
  color: var(--slate-500);
}

.footer-compact .lang-links {
  font-size: 13px;
  color: var(--slate-500);
}

/* ============================================
   FOOTER — FULL (Products, About, Projects, Contact)
   ============================================ */
.footer-full {
  padding: 36px 0 20px;
  background: var(--navy-800);
}

.footer-full-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.5;
}

.footer-nav-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-col ul li a {
  font-size: 12px;
  color: var(--slate-400);
  transition: color 0.2s;
}

.footer-nav-col ul li a:hover {
  color: var(--white);
}

/* QR Code Placeholders */
.footer-qr-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.qr-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.qr-placeholder .qr-icon {
  font-size: 28px;
  opacity: 0.3;
}

.qr-placeholder .qr-label {
  font-size: 10px;
  color: var(--slate-400);
}

.footer-full-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-full-bottom .copyright {
  font-size: 12px;
  color: var(--slate-500);
}

.footer-full-bottom .lang-links {
  font-size: 12px;
  color: var(--slate-500);
}

/* ============================================
   MEGA MENU
   ============================================ */

/* Trigger — the "Products" nav link with dropdown arrow */
.nav-products-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-products-trigger .mega-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.nav-products-trigger:hover .mega-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel — full-width under the header */
.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.10);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px 28px;
}

/* 5-column grid for 10 product categories */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

/* Individual product item */
.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy-900);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mega-menu-item:hover {
  background: var(--green-50);
  transform: translateY(-2px);
}

/* SVG icon wrapper */
.mega-menu-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mega-menu-item:hover .mega-menu-icon {
  background: var(--green-100);
}

.mega-menu-icon svg {
  width: 22px;
  height: 22px;
  color: var(--green-600);
  transition: color 0.2s ease;
}

.mega-menu-item:hover .mega-menu-icon svg {
  color: var(--green-700);
}

/* Text content */
.mega-menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mega-menu-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.3;
}

.mega-menu-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer — "View All Products" link */
.mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--slate-100);
  gap: 8px;
}

.mega-menu-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-600);
  transition: color 0.2s ease, gap 0.2s ease;
}

.mega-menu-footer a:hover {
  color: var(--green-700);
  gap: 10px;
}

.mega-menu-footer svg {
  width: 16px;
  height: 16px;
}

/* Desktop-only: show mega menu when .open class is added (via JS) */
@media (min-width: 769px) {
  .mega-menu.open,
  .nav-products-trigger:hover + .mega-menu,
  .mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile: hide mega menu entirely, keep simple nav */
@media (max-width: 768px) {
  .nav-products-trigger .mega-arrow {
    display: none;
  }
  .mega-menu {
    display: none !important;
  }
}

/* ============================================
   MOBILE NAV TOGGLE
   ============================================ */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 32px 32px 56px;
    border-radius: 16px;
  }

  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-title { font-size: 40px; }

  .section-island,
  .products-section,
  .about-hero,
  .about-story,
  .factory-stats,
  .contact-hero,
  .contact-section {
    max-width: calc(100% - 32px);
    border-radius: 16px;
    padding: 40px 32px;
  }

  .core-products-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { flex-wrap: wrap; gap: 24px; }
  .stat-item { flex: 0 0 calc(50% - 12px); }

  .about-story { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-card { position: static; }
  .contact-hero-title { font-size: 30px; }

  .about-hero { padding: 32px 0 24px; }
  .about-hero h1 { font-size: 30px; }
  .about-hero p { font-size: 15px; }

  .footer-full-top { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 20px;
    gap: 8px;
  }

  .mobile-toggle { display: flex; }

  .hero { padding: 32px 24px 48px; border-radius: 14px; }
  .hero-title { font-size: 32px; }
  .hero-visual { height: 280px; border-radius: 34px; }
  .hero-carousel-img { border-radius: 34px; }

  .section-island,
  .products-section,
  .about-hero,
  .about-story,
  .factory-stats,
  .contact-hero,
  .contact-section {
    max-width: calc(100% - 24px);
    border-radius: 14px;
    padding: 36px 24px;
    margin-bottom: 32px;
  }
  .hero-product-tags { margin: -24px 0 28px; font-size: 12px; }

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

  .section-header h2 { font-size: 26px; }

  .stats-grid { flex-direction: column; }
  .stat-item { flex: 1; }
  .stat-number { font-size: 40px; }

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

  .contact-hero { padding: 32px 0 24px; }
  .contact-hero-title { font-size: 28px; }
  .contact-hero-sub { font-size: 15px; }
  .contact-section { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .about-hero { padding: 24px 0 20px; }
  .about-hero h1 { font-size: 26px; }
  .about-hero p { font-size: 14px; }

  .footer-full-top { flex-direction: column; }
  .footer-compact-inner { flex-direction: column; gap: 12px; }
}
