/* ============================================================
   RD Medcare – Medical Technology Design System
   Palette: Earth Tone / Warm Brown-Grey / Luxury
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Soft accidental palette — lighter, warmer, casual */
  --green-900:  #5a4a40;
  --green-800:  #6b5850;
  --green-700:  #a2805d;
  --green-600:  #a99488;
  --green-500:  #b8a896;
  --green-400:  #dac6a3;
  --green-300:  #e8dcc8;
  --green-200:  #f0e8dd;
  --green-100:  #f8f2ec;
  --green-50:   #fcf9f6;

  /* Muted sage + warm grey neutrals — softer */
  --gray-950:  #3a2f27;
  --gray-900:  #4a3f37;
  --gray-800:  #5a4f47;
  --gray-700:  #6a5f57;
  --gray-600:  #8b8e7c;
  --gray-500:  #9a9f8f;
  --gray-400:  #b3b8a8;
  --gray-300:  #ccd2c2;
  --gray-200:  #dfe5d5;
  --gray-100:  #ede8e4;
  --gray-50:   #f8f5f2;
  --white:     #ffffff;

  /* Semantic */
  --primary:        var(--green-700);
  --primary-dark:   var(--green-800);
  --primary-light:  var(--green-500);
  --accent:         var(--green-400);
  --accent-light:   var(--green-300);
  --surface:        var(--white);
  --surface-alt:    var(--gray-50);
  --surface-tint:   var(--green-50);
  --border:         var(--gray-200);
  --border-strong:  var(--gray-300);
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-400);

  /* Spacing */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 48px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(90,74,64,0.06), 0 1px 2px rgba(90,74,64,0.04);
  --shadow-md:  0 4px 16px rgba(90,74,64,0.08), 0 2px 6px rgba(90,74,64,0.05);
  --shadow-lg:  0 12px 40px rgba(90,74,64,0.10), 0 4px 12px rgba(90,74,64,0.06);
  --shadow-xl:  0 24px 64px rgba(90,74,64,0.12);

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  --trans:    var(--duration) var(--ease);

  /* Typography */
  --font: 'Inter', 'Noto Sans Thai', system-ui, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--green-100);
  overflow-x: hidden;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Typography Scale ───────────────────────────────────── */
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
small { font-size: 0.875rem; }

/* ─── Layout ─────────────────────────────────────────────── */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.section    { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ─── Section Header ─────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.875rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-heading {
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-lead {
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,107,60,0.3);
}
.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,107,60,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}
.btn-ghost {
  background: var(--green-50);
  color: var(--primary);
  border: 1.5px solid var(--green-200);
}
.btn-ghost:hover {
  background: var(--green-100);
  border-color: var(--green-300);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; border-radius: var(--r-lg); }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  padding-block: 1rem;
  transition: background var(--trans), box-shadow var(--trans), padding var(--trans);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06);
  padding-block: 0.625rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,107,60,0.3);
}
.nav-logo-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.5; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color var(--trans);
}
.navbar.scrolled .nav-logo-name { color: var(--green-800); }
.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color var(--trans);
}
.navbar.scrolled .nav-logo-sub { color: var(--text-muted); }

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm);
  transition: var(--trans);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.navbar.scrolled .nav-links a { color: var(--text-secondary); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: var(--green-50);
}

/* Nav right controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.navbar.scrolled .lang-switcher {
  background: var(--gray-100);
  border-color: var(--border);
}
.lang-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: var(--trans);
}
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}
.lang-btn:hover:not(.active) { color: var(--white); }
.navbar.scrolled .lang-btn { color: var(--text-muted); }
.navbar.scrolled .lang-btn.active { color: var(--white); }
.navbar.scrolled .lang-btn:hover:not(.active) { color: var(--primary); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  width: 40px; height: 40px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.navbar.scrolled .hamburger span { background: var(--gray-700); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .hamburger { display: none; } }

/* ─── Mobile Menu ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--green-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 2rem;
  border-radius: var(--r-md);
  width: 100%;
  text-align: center;
  transition: var(--trans);
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.mobile-menu .lang-switcher {
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.08);
}
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 8rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect x='30' y='0' width='20' height='80'/%3E%3Crect x='0' y='30' width='80' height='20'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { color: var(--white); margin-bottom: 0.75rem; }
.page-hero-desc  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 560px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--green-300); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }

/* ─── Hero (Home) ────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 45%, var(--green-700) 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
/* Medical cross grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='34' y='10' width='12' height='60'/%3E%3Crect x='10' y='34' width='60' height='12'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(42,176,110,0.18) 0%, transparent 70%);
  right: -100px; top: -100px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* Hero text */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-200);
  margin-bottom: 1.5rem;
}
.hero-pill-dot {
  width: 8px; height: 8px;
  background: var(--green-300);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title-accent {
  color: var(--green-300);
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-metrics {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-metric-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-img-frame {
  aspect-ratio: 4/5;
  max-width: 400px;
  margin-inline: auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18));
}
/* Floating stat cards */
.hero-stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 0.875rem 1.125rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float-card 5s ease-in-out infinite;
}
.hero-stat-card:nth-child(2) { animation-delay: 2s; }
.hero-stat-card:nth-child(3) { animation-delay: 4s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
/* ─── SVG Icon sizing ────────────────────────────────────── */
.sol-icon svg,
.service-icon svg,
.why-item-icon svg { width: 26px; height: 26px; display: block; }
.stat-card-icon svg { width: 20px; height: 20px; display: block; }
.contact-detail-icon svg { width: 18px; height: 18px; display: block; }
.social-link svg { width: 15px; height: 15px; display: block; }
.stat-card-info .label { font-size: 0.68rem; color: var(--text-muted); line-height: 1; }
.stat-card-info .value { font-size: 1rem; font-weight: 700; color: var(--green-800); }
.stat-card-a { bottom: 12%; left: -6%; }
.stat-card-b { top: 12%; right: -6%; }
.stat-card-c { top: 52%; left: -8%; }

/* ─── Ticker strip ───────────────────────────────────────── */
.ticker-wrap {
  background: var(--green-800);
  padding: 0.875rem 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.ticker-item::before {
  content: '+';
  color: var(--green-300);
  font-weight: 800;
}

/* ─── Medical Solutions Grid ─────────────────────────────── */
.solutions-section { background: var(--surface-alt); }
.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: var(--trans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--green-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.solution-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.solution-card:hover::before { transform: scaleX(1); }
.sol-icon {
  width: 52px; height: 52px;
  background: var(--green-50);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.625rem;
  transition: var(--trans);
}
.solution-card:hover .sol-icon { background: var(--green-100); }
.sol-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.sol-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Product Cards ──────────────────────────────────────── */
.products-section { background: var(--white); }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-image {
  aspect-ratio: 4/3;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.product-cat-badge {
  position: absolute;
  top: 0.875rem; left: 0.875rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.product-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}
.product-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.product-features { margin-bottom: 1.25rem; }
.product-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
}
.product-feature::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  flex-shrink: 0;
}
.product-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: var(--trans);
}
.product-learn:hover { gap: 0.65rem; color: var(--green-800); }
.product-learn-arrow { font-size: 1rem; transition: transform var(--trans); }
.product-learn:hover .product-learn-arrow { transform: translateX(3px); }

/* Filter bar */
.filter-bar { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  background: var(--white);
  transition: var(--trans);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--green-50);
}

/* ─── Stats Row ──────────────────────────────────────────── */
.stats-section { background: var(--primary); }
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.65); }

/* ─── Why Choose ─────────────────────────────────────────── */
.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }
.why-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.why-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
}
.why-product-grid img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.5rem;
  transition: transform 0.3s var(--ease);
}
.why-product-grid img:hover { transform: scale(1.04); }
.why-items { display: flex; flex-direction: column; gap: 1rem; }
.why-item {
  display: flex;
  gap: 1.125rem;
  padding: 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: var(--trans);
  align-items: flex-start;
}
.why-item:hover { border-color: var(--green-300); background: var(--green-50); }
.why-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.why-item:hover .why-item-icon { background: var(--green-100); }
.why-item-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 0.95rem; }
.why-item-desc  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Partners Section ───────────────────────────────────── */
.partners-section { background: var(--surface-alt); }
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.partner-logo-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: var(--trans);
}
.partner-logo-item:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.partner-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.partner-brand-cat {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.partner-brand-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.partner-brand-mark {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.partner-brand-mark svg { width: 26px; height: 26px; }

/* ─── Service & Support ──────────────────────────────────── */
.service-section { background: var(--surface-tint); }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--trans);
}
.service-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon {
  width: 60px; height: 60px;
  background: var(--green-50);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.125rem;
  transition: var(--trans);
}
.service-card:hover .service-icon { background: var(--green-100); }
.service-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1rem; }
.service-desc  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Contact / CTA Section ──────────────────────────────── */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) { .contact-form-card { padding: 1.5rem; } }
.form-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--trans);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,107,60,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; border-radius: var(--r-md); justify-content: center; margin-top: 0.5rem; }

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-head {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: var(--r-xl);
  padding: 2rem;
  color: var(--white);
}
.contact-info-head h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.15rem; }
.contact-info-head p  { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.map-container {
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
}
.contact-detail-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.contact-detail-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.contact-detail-val { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.hours-card {
  background: var(--surface-tint);
  border: 1px solid var(--green-200);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
}
.hours-title { font-weight: 700; color: var(--primary); font-size: 0.9rem; margin-bottom: 0.75rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.hours-row:last-child { border-bottom: none; }
.hours-row strong { color: var(--text-primary); }

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='34' y='10' width='12' height='60'/%3E%3Crect x='10' y='34' width='60' height='12'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-title { color: var(--white); margin-bottom: 0.875rem; }
.cta-desc  { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 540px; margin-inline: auto; margin-bottom: 2.25rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Team card ──────────────────────────────────────────── */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--trans);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gray-100), var(--green-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  /* REPLACE: with real team member photo */
}
.team-body { padding: 1.25rem 1rem; }
.team-name { font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 1rem; }
.team-role { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 0.625rem; }
.team-bio  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.timeline-item { position: relative; padding-bottom: 2rem; padding-left: 1.75rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.62rem; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--green-200);
}
.timeline-year  { font-size: 0.75rem; font-weight: 700; color: var(--primary); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.timeline-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.timeline-desc  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--green-900);
  padding-top: 4rem;
  padding-bottom: 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .nav-logo-name { color: var(--white); }
.footer-brand .nav-logo-sub  { color: rgba(255,255,255,0.45); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: 0.625rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  transition: var(--trans);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.125rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--trans); }
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.35); transition: color var(--trans); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ─── Scroll-to-top ──────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 400;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--trans);
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover   { background: var(--green-800); transform: translateY(-2px); }

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(64px);
  background: var(--green-800);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease);
  z-index: 9999;
  white-space: nowrap;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ─── Fade-up Animation ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ─── Utilities ──────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.text-white   { color: var(--white); }
.text-green   { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.hidden       { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Solutions page ─────────────────────────────────────── */
.solution-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.solution-item:last-child { border-bottom: none; }
.solution-item.reverse .solution-img { order: 2; }
.solution-item.reverse > div:last-child { order: 1; }
@media (max-width: 768px) {
  .solution-item { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .solution-item.reverse .solution-img { order: 0; }
  .solution-item.reverse > div:last-child { order: 0; }
}
.solution-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  border: 1px solid var(--green-700);
}
.solution-img svg { width: 70%; height: 70%; opacity: 0.9; }
.solution-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  margin-bottom: 0.875rem;
}
.solution-title { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.875rem; }
.solution-desc  { color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.25rem; }
.solution-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solution-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.solution-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ─── Why-card (dark-background variant) ─────────────────── */
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--trans);
}
.why-card:hover { background: rgba(255,255,255,0.12); }
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.1);
  margin: 0 auto 1.125rem;
}
.why-icon svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.9); }
.why-card .why-title { color: var(--white); font-weight: 700; font-size: 0.97rem; margin-bottom: 0.4rem; }
.why-card .why-desc  { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ─── Dark section (solutions/about why + certs sections) ─── */
.section-dark {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
}

/* ─── CTA section (secondary pages) ─────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='34' y='10' width='12' height='60'/%3E%3Crect x='10' y='34' width='60' height='12'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Contact page ───────────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) { .contact-form-wrap { padding: 1.5rem; } }
.contact-info-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  color: var(--white);
}
.contact-info-title { color: var(--white); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.contact-info-desc  { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 1.75rem; line-height: 1.6; }
.contact-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1.125rem;
}
.contact-item-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-bottom: 0.15rem; }
.contact-item-value { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.map-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.07);
  border: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding-block: 3.5rem; }
  .grid-3  { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .section { padding-block: 2.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
}
