/* ================================================================
   MYMSYNTHON PVT. LTD. — Main Design System
   Professional Pharmaceutical Website
   ================================================================ */

/* ---- CSS Variables ---- */
:root {
  --navy-900: #080f1d;
  --navy-800: #0A1628;
  --navy-700: #0F2952;
  --navy-600: #143566;
  --blue-500: #1A4B8C;
  --blue-400: #2560B0;
  --blue-300: #4A90D9;
  --blue-100: #dbeafe;
  --teal:     #00C6A2;
  --teal-dark:#008f74;
  --gold:     #F2A900;
  --gold-dark:#d4920a;
  --white:    #ffffff;
  --surface:  #f7f9ff;
  --surface-2:#eef2fb;
  --border:   #e1e8f5;
  --text:     #0D1B2A;
  --text-2:   #3D4F63;
  --text-muted:#5A6A7E;
  --text-light:#8ea0b5;
  --success:  #16a34a;
  --error:    #dc2626;
  --warning:  #d97706;

  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --shadow-sm: 0 1px 3px rgba(10,22,40,.08), 0 1px 2px rgba(10,22,40,.05);
  --shadow-md: 0 4px 16px rgba(10,22,40,.10), 0 2px 6px rgba(10,22,40,.06);
  --shadow-lg: 0 12px 40px rgba(10,22,40,.14), 0 4px 12px rgba(10,22,40,.08);
  --shadow-xl: 0 24px 64px rgba(10,22,40,.18), 0 8px 24px rgba(10,22,40,.10);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:  120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; }

/* ---- Container ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 1px 0 var(--border); transition: top 0.3s ease; }
/* NOTE: on mobile this is switched to position:fixed further down — see the
   768px media query. Mobile browsers have a well-known rendering bug where a
   position:sticky ancestor breaks the containing block of its position:fixed
   descendants (the mobile menu + backdrop), so instead of tracking the
   viewport they get pinned to wherever the sticky header happens to be
   scrolled to. That's the "floating wrapper" bug in the screenshot. */

/* Top bar */
.header-top { background: var(--navy-800); color: rgba(255,255,255,.75); font-size: 12.5px; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.contact-strip { display: flex; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); transition: color var(--transition); }
.contact-item:hover { color: var(--teal); }
.header-top-actions { display: flex; gap: 8px; align-items: center; }
.btn-header-sm { padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.8); transition: var(--transition); }
.btn-header-sm:hover { color: var(--white); }
.btn-header-outline { border: 1px solid rgba(255,255,255,.25); }
.btn-header-primary { background: var(--teal); color: var(--white) !important; }
.btn-header-primary:hover { background: var(--teal-dark); }

/* Navbar */
.navbar { padding: 0; }
.navbar .container { display: flex; align-items: center; gap: 24px; height: 68px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark svg { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--navy-800); letter-spacing: 0.08em; line-height: 1; }
.logo-sub { font-size: 9px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }

/* Nav search */
.nav-search { flex: 1; max-width: 380px; position: relative; }
.nav-search input { width: 100%; height: 40px; border: 1.5px solid var(--border); border-radius: 8px; padding: 0 40px 0 14px; font-size: 13.5px; color: var(--text); background: var(--surface); transition: var(--transition); }
.nav-search input:focus { outline: none; border-color: var(--blue-400); background: var(--white); box-shadow: 0 0 0 3px rgba(26,75,140,.1); }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; max-height: 360px; overflow-y: auto; z-index: 999; }
.search-results.open { display: block; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; transition: background var(--transition); border-bottom: 1px solid var(--border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface); }
.search-result-name { font-size: 13px; font-weight: 500; color: var(--text); }
.search-result-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--blue-500); background: var(--blue-100); }
.nav-link-contact { background: var(--navy-700); color: var(--white) !important; padding: 7px 16px; }
.nav-link-contact:hover { background: var(--blue-500); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.flash-container { position: fixed; top: 100px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-md); min-width: 280px; max-width: 420px; animation: slideIn .3s ease; }
.flash button { font-size: 18px; color: currentColor; opacity: .6; }
.flash button:hover { opacity: 1; }
.flash-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.flash-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.flash-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 4px 14px rgba(26,75,140,.3); }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 6px 20px rgba(26,75,140,.4); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 4px 14px rgba(0,198,162,.3); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--blue-500); color: var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy-800); }
.btn-white:hover { background: var(--surface); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-800); box-shadow: 0 4px 14px rgba(242,169,0,.3); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ================================================================
   HERO — HOMEPAGE
   ================================================================ */
/* ================================================================
   HERO — HOMEPAGE ANIMATIONS
   ================================================================ */
.hero { position: relative; min-height: 88vh; background: var(--navy-800); overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 40%, rgba(26,75,140,.6) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,198,162,.2) 0%, transparent 50%);
}
.hero-molecule { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); opacity: .12; pointer-events: none; }
.hero-molecule svg { width: 640px; height: 640px; animation: floatRotate 32s infinite linear; transform-origin: center center; }

@keyframes floatRotate {
  0%   { transform: rotate(0deg) translateY(0px) scale(1); }
  25%  { transform: rotate(90deg) translateY(-12px) scale(1.02); }
  50%  { transform: rotate(180deg) translateY(0px) scale(1); }
  75%  { transform: rotate(270deg) translateY(12px) scale(0.98); }
  100% { transform: rotate(360deg) translateY(0px) scale(1); }
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,198,162,.15); border: 1px solid rgba(0,198,162,.4); color: var(--teal); padding: 6px 16px; border-radius: 100px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; box-shadow: 0 0 20px rgba(0,198,162,.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hero-badge:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,198,162,.4); }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulseGlow 2s infinite; }

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,198,162,0.7); }
  50% { opacity: .7; transform: scale(1.3); box-shadow: 0 0 0 8px rgba(0,198,162,0); }
}

.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; color: var(--white); line-height: 1.15; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--teal); background: linear-gradient(135deg, #00C6A2 0%, #4A90D9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 12px rgba(0,198,162,0.3)); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.78); line-height: 1.7; margin-bottom: 40px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-actions .btn-teal { position: relative; overflow: hidden; }
.hero-actions .btn-teal::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: rotate(30deg); animation: btnShine 4s infinite;
}
@keyframes btnShine { 0%, 80% { transform: translateX(-100%) rotate(30deg); } 100% { transform: translateX(100%) rotate(30deg); } }

.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13px; transition: transform 0.25s ease, color 0.25s ease; cursor: default; }
.trust-item:hover { transform: translateY(-2px); color: var(--white); }
.trust-check { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,198,162,.2); border: 1px solid var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.25s ease, transform 0.25s ease; }
.trust-item:hover .trust-check { background: var(--teal); transform: scale(1.1); }
.trust-item:hover .trust-check svg { stroke: var(--navy-800); }
.trust-check svg { stroke: var(--teal); transition: stroke 0.25s ease; }

/* Scroll indicator */
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; animation: bounce 2.2s infinite; }
.hero-scroll-line { width: 2px; height: 44px; background: linear-gradient(to bottom, var(--teal), transparent); border-radius: 2px; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar { background: var(--navy-700); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 2.4rem; color: var(--teal); display: block; line-height: 1; }
.stat-label { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 6px; font-weight: 500; letter-spacing: .04em; }

/* ================================================================
   SECTION UTILITIES
   ================================================================ */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy-800); }

.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-label-line { width: 32px; height: 2px; background: var(--teal); border-radius: 1px; }
.section-label-text { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); }

.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 3.5vw, 2.8rem); color: var(--navy-800); line-height: 1.2; margin-bottom: 16px; }
.section-title.light { color: var(--white); }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.7; }
.section-sub.light { color: rgba(255,255,255,.65); }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* Floating Chemical Formulas Overlay in Hero Background */
.hero-chemical-formulas { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hero-molecule { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: .08; pointer-events: none; will-change: transform; transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.formula-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(0,198,162,0.85);
  background: rgba(10,22,40,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,198,162,0.3);
  padding: 5px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.formula-tag.f1 { right: 12%; top: 22%; }
.formula-tag.f2 { right: 28%; top: 68%; color: rgba(74,144,217,0.95); border-color: rgba(74,144,217,0.4); }
.formula-tag.f3 { right: 8%; top: 78%; }
.formula-tag.f4 { left: 45%; top: 15%; color: rgba(255,255,255,0.8); }
.formula-tag.f5 { right: 5%; top: 44%; background: rgba(0,198,162,0.15); color: var(--teal); }

@media (max-width: 768px) {
  .hero-chemical-formulas { display: none; }
}

/* Who We Serve Responsive Grid */
.who-we-serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .who-we-serve-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-500), var(--teal)); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { stroke: var(--white); }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-800); margin-bottom: 12px; }
.service-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--blue-500); transition: gap var(--transition); }
.service-link:hover { gap: 10px; }

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-img { background: var(--surface); height: 160px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); padding: 20px; }
.product-card-img img { max-height: 120px; object-fit: contain; }
.product-card-img .molecule-placeholder { color: var(--text-light); font-size: 12px; text-align: center; }
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-size: 14px; font-weight: 600; color: var(--navy-800); line-height: 1.4; margin-bottom: 10px; }
.product-card-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.product-meta-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.product-meta-label { color: var(--text-muted); font-weight: 500; }
.product-meta-value { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); font-weight: 500; }
.product-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-drug { background: #dbeafe; color: #1e40af; }
.badge-stock { background: #dcfce7; color: #16a34a; }
.badge-request { background: #fef9c3; color: #a16207; }
.badge-type { background: var(--surface-2); color: var(--text-2); }
.product-card-actions { display: flex; gap: 8px; margin-top: auto; }
.product-card-actions .btn { flex: 1; justify-content: center; font-size: 12.5px; padding: 8px 12px; }

/* ================================================================
   PRODUCTS PAGE — CATALOG
   ================================================================ */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.catalog-filters { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; position: sticky; top: 130px; }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.filter-select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text); background: var(--surface); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6A7E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.catalog-search-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); }
.catalog-search-input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(26,75,140,.1); }
.catalog-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-count { font-size: 14px; color: var(--text-muted); }
.results-count strong { color: var(--text); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; border: 1.5px solid var(--border); color: var(--text-2); transition: var(--transition); }
.page-btn:hover { border-color: var(--blue-400); color: var(--blue-500); }
.page-btn.active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.contact-form-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.contact-info-card { background: var(--navy-800); border-radius: var(--radius-lg); padding: 40px; color: var(--white); }
.contact-info-card h3 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 8px; }
.contact-info-card p { color: rgba(255,255,255,.65); font-size: 14.5px; line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-icon svg { stroke: var(--teal); }
.contact-detail-text { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; }
.contact-detail-label { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }

/* Form styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-label .req { color: var(--error); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--white); transition: var(--transition); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(26,75,140,.1); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page { min-height: 80vh; display: flex; align-items: center; background: var(--surface); padding: 48px 0; }
.auth-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 48px; max-width: 480px; width: 100%; margin: 0 auto; box-shadow: var(--shadow-md); }
.auth-card h1 { font-family: var(--font-head); font-size: 2rem; color: var(--navy-800); margin-bottom: 8px; }
.auth-card p.auth-sub { font-size: 14.5px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--blue-500); font-weight: 600; }

/* ================================================================
   PORTAL
   ================================================================ */
.portal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; min-height: calc(100vh - var(--header-h)); }
.portal-sidebar { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 130px; align-self: start; }
.portal-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); transition: var(--transition); margin-bottom: 4px; }
.portal-nav-item:hover, .portal-nav-item.active { background: var(--blue-100); color: var(--blue-500); font-weight: 600; }
.portal-nav-item svg { flex-shrink: 0; }
.portal-content { padding: 8px 0; }

/* Cards / Panels */
.panel { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.panel-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-header h2 { font-size: 16px; font-weight: 700; color: var(--navy-800); }
.panel-body { padding: 24px; }

/* Status badges */
.status-new        { background: #dbeafe; color: #1e40af; }
.status-in_progress{ background: #fef9c3; color: #a16207; }
.status-responded  { background: #dcfce7; color: #16a34a; }
.status-closed     { background: var(--surface-2); color: var(--text-muted); }
.status-badge { padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--surface); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--border); }
.data-table td { padding: 14px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.data-table .mono { font-family: var(--font-mono); font-size: 12.5px; }

/* ================================================================
   ABOUT / SERVICES / QUALITY PAGES
   ================================================================ */
.page-hero { padding: 72px 0 64px; background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(0,198,162,.12), transparent); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.page-hero-breadcrumb a { color: rgba(255,255,255,.5); }
.page-hero-breadcrumb a:hover { color: var(--teal); }
.page-hero-breadcrumb span { color: var(--teal); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.65); max-width: 580px; line-height: 1.7; }

/* Two-column content */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

/* Values / USP grid */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; transition: var(--transition); }
.value-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.value-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-100), var(--surface-2)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.value-card h3 { font-size: 16px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* Timeline / Process */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step { display: flex; gap: 24px; padding-bottom: 32px; position: relative; }
.process-step::before { content: ''; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.process-step:last-child::before { display: none; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-500); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.step-content h3 { font-size: 16px; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Cert badges */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.cert-badge { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; transition: var(--transition); }
.cert-badge:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); }
.cert-badge h4 { font-size: 14px; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; }
.cert-badge p { font-size: 11px; color: var(--text-muted); }

/* ================================================================
   PRODUCT DETAIL PAGE
   ================================================================ */
.product-detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.product-structure-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; position: sticky; top: 130px; }
.product-structure-card img { max-height: 280px; object-fit: contain; margin: 0 auto; }
.product-spec-table { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-row { display: flex; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-key { width: 180px; flex-shrink: 0; background: var(--surface); padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.spec-val { padding: 14px 18px; font-size: 13.5px; color: var(--text); font-family: var(--font-mono); }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section { background: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-500) 100%); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0,198,162,.15), transparent); }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--navy-900); }
.footer-main { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; flex-direction: column; margin-bottom: 16px; }
.footer-logo .logo-name { font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: .08em; }
.footer-logo .logo-sub { font-size: 9px; color: rgba(255,255,255,.45); letter-spacing: .15em; }
.footer-tagline { font-size: 13.5px; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 24px; }
.footer-contact-items { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-items a, .footer-contact-items span { font-size: 13px; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-contact-items a:hover { color: var(--teal); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-cta { margin-top: 24px; }
.btn-footer-cta { display: inline-block; padding: 10px 22px; background: var(--teal); color: var(--white); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; transition: var(--transition); }
.btn-footer-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12.5px; color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ================================================================
   ADMIN LAYOUT
   ================================================================ */
.admin-header { background: var(--navy-800); color: var(--white); padding: 16px 0; }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-nav { display: flex; gap: 4px; margin-left: 32px; }
.admin-nav-link { padding: 6px 14px; border-radius: 6px; font-size: 13.5px; color: rgba(255,255,255,.65); transition: var(--transition); }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,.1); color: var(--white); }
.admin-page { padding: 40px 0; background: var(--surface); min-height: calc(100vh - 60px); }
.stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-card-num { font-family: var(--font-head); font-size: 2.4rem; color: var(--blue-500); display: block; }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 32px; }

/* ================================================================
   ANIMATIONS & SCROLL
   ================================================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* ================================================================
   FLOATING WHATSAPP CHAT BUTTON - ALWAYS VISIBLE ON MOBILE
   ================================================================ */

/* Hidden on desktop by default */
.whatsapp-float {
  display: none !important;
}

/* Show on mobile devices */
@media (max-width: 768px) {
  .whatsapp-float {
    display: flex !important;
    position: fixed !important;
    bottom: 30px !important;
    right: 20px !important;
    z-index: 99999 !important;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    padding: 10px 16px 10px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(10,22,40,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: waPulse 3.5s infinite ease-in-out;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    /* Hardware acceleration for smoother rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }

  /* Hover/Active state */
  .whatsapp-float:active {
    transform: scale(0.95) !important;
  }

  /* Icon container */
  .whatsapp-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* SVG icon styling */
  .whatsapp-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    color: #ffffff;
    fill: #ffffff;
  }

  /* Label text */
  .whatsapp-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: #ffffff;
  }
}

/* Smaller screens - show only icon */
@media (max-width: 480px) {
  .whatsapp-label {
    display: none !important;
  }
  
  .whatsapp-float {
    padding: 12px !important;
    border-radius: 50% !important;
    bottom: 30px !important;
    right: 16px !important;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  
  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}

/* Pulse animation */
@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0);
  }
}
/* ================================================================
   HERO — ELEGANT SUBTLE BACKGROUND & MOLECULE
   ================================================================ */
.hero { position: relative; min-height: 88vh; background: var(--navy-800); overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 85% 35%, rgba(26,75,140,.55) 0%, transparent 65%),
              radial-gradient(ellipse 50% 50% at 15% 85%, rgba(0,198,162,.15) 0%, transparent 55%);
}

.hero-molecule { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: .06; pointer-events: none; }
.hero-molecule svg { width: 680px; height: 680px; stroke-width: 1px; animation: subtleFloat 10s ease-in-out infinite alternate; transform-origin: center center; }

@keyframes subtleFloat {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-16px) scale(1.02); }
}

/* Dynamic Floating Particles in Hero */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: 0.4; box-shadow: 0 0 8px var(--teal); animation: floatUp 9s infinite ease-in-out; }
.hero-particle:nth-child(1) { left: 15%; top: 75%; animation-delay: 0s; animation-duration: 8s; }
.hero-particle:nth-child(2) { left: 35%; top: 85%; animation-delay: 2s; animation-duration: 10s; width: 5px; height: 5px; background: var(--blue-300); }
.hero-particle:nth-child(3) { left: 65%; top: 70%; animation-delay: 4s; animation-duration: 7s; }
.hero-particle:nth-child(4) { left: 80%; top: 80%; animation-delay: 5s; animation-duration: 9s; width: 6px; height: 6px; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0.1; }
  50% { transform: translateY(-50px) scale(1.2); opacity: 0.5; }
  100% { transform: translateY(-100px) scale(0.8); opacity: 0.05; }
}

/* ================================================================
   RESPONSIVE & MOBILE SLIDE-IN DRAWER MENU
   ================================================================ */
.site-header.menu-open { z-index: 999999 !important; }

@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .filter-group { margin-bottom: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-structure-card { position: static; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }

  /* THE ACTUAL FIX: sticky is what breaks position:fixed children on mobile.
     Switch the header itself to fixed so it becomes a clean, reliable
     containing block reference for the drawer + backdrop, and give the
     page top padding to make up for the header leaving normal flow. */
  .site-header {
    position: fixed !important;
    top: 0; /* no !important — main.js sets this inline to hide/show on scroll */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transition: top 0.3s ease;
  }
  body { padding-top: 68px; }

  /* Navbar Right-Aligned Toggle */
  .navbar .container { justify-content: space-between; position: relative; }
  .hamburger { display: flex !important; margin-left: auto !important; order: 99 !important; z-index: 100000 !important; cursor: pointer; }

  /* Mobile Backdrop Overlay (BEHIND MENU DRAWER) */
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8,15,29,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 99990;
    pointer-events: none;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Modern Mobile Slide-in Drawer Menu from Right (ALWAYS ABOVE BACKDROP) */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: #080F1D !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.7) !important;
    flex-direction: column !important;
    padding: 88px 24px 36px !important;
    gap: 8px !important;
    z-index: 99999 !important;
    transform: translateX(100%) !important;
    -webkit-transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 1px solid rgba(255,255,255,0.12) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    pointer-events: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* When menu is open - allow interaction */
  .nav-links.open {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  .nav-link {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s ease !important;
    display: block !important;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--teal) !important;
    background: rgba(0,198,162,0.15) !important;
  }

  .nav-link-contact {
    background: var(--teal) !important;
    color: var(--navy-800) !important;
    font-weight: 700 !important;
    margin-top: 16px !important;
    text-align: center !important;
  }

  /* Hamburger Toggle Animation */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--teal); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--teal); }

  .nav-search { display: none; }
  .contact-strip { display: none; }
  .header-top { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .page-hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
}