/*
Theme Name: Pharma Impurity and Chemicals
Theme URI: https://www.impuritiespharma.com/
Author: Impurities Pharma
Author URI: https://www.impuritiespharma.com/
Description: Custom WordPress theme for Pharma Impurity and Chemicals: pharmaceutical impurity standards & reference standards supplier. Includes Products CPT, category taxonomy, enquiry cart, and full responsive design.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impurities-pharma
Tags: pharmaceutical, business, e-commerce, custom-menu, custom-logo, featured-images, full-width-template
*/

/* =============================================
   PHARMA IMPURITY AND CHEMICALS - Main Stylesheet
   ============================================= */

:root {
  --primary: #0a3d6b;
  --primary-dark: #072c4e;
  --primary-light: #1a6cb8;
  --accent: #00a8e8;
  --accent2: #00c896;
  --danger: #cc2200;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f4f7fb;
  --bg-dark: #0a1628;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(10,61,107,0.10);
  --shadow-lg: 0 8px 40px rgba(10,61,107,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }
address { font-style: normal; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.required { color: var(--danger); }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.3; margin: 10px 0 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.75); }
.section-badge { display: inline-block; background: rgba(0,168,232,0.12); color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; border: 1px solid rgba(0,168,232,0.25); }
.section-badge.light { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); box-shadow: 0 4px 16px rgba(26,108,184,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,108,184,0.45); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* TOPBAR */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,0.85); font-size: 0.82rem; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-left span, .topbar-right a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); }
.topbar-right a:hover { color: var(--accent); }
.topbar-left i, .topbar-right i { font-size: 0.85rem; }
.fab.fa-whatsapp { color: #25d366; font-size: 1rem; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); transition: var(--transition); }
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; height: 70px; }
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-primary { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.logo-secondary { font-size: 0.65rem; font-weight: 800; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.custom-logo { max-height: 50px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem; color: var(--text); }
.nav-list > li > a:hover, .nav-list > li.current-menu-item > a, .nav-list > li > a.active { color: var(--primary-light); background: rgba(10,61,107,0.06); }
.nav-list > li.menu-item-has-children > a::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.65rem; margin-left: 4px; transition: var(--transition); }
.nav-list > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

.sub-menu, .dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); min-width: 220px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 8px; z-index: 200; }
.menu-item-has-children:hover > .sub-menu, .has-dropdown:hover .dropdown { display: block; animation: fadeInDown 0.2s ease; }
.sub-menu li a, .dropdown li a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text); font-weight: 500; }
.sub-menu li a:hover, .dropdown li a:hover { background: var(--bg-light); color: var(--primary-light); padding-left: 20px; }

@keyframes fadeInDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-search, .btn-cart { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text); position: relative; transition: var(--transition); }
.btn-search:hover, .btn-cart:hover { background: var(--bg-light); color: var(--primary); border-color: var(--primary); }
.cart-count { position: absolute; top: -5px; right: -5px; background: var(--accent); color: var(--white); font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.btn-enquire { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.btn-enquire:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,108,184,0.35); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* HERO */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #0a1628 0%, #0a3d6b 50%, #1a6cb8 100%); }
.hero-bg { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 24px 100px; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-badge { display: inline-block; background: rgba(0,200,150,0.2); color: var(--accent2); border: 1px solid rgba(0,200,150,0.35); padding: 6px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--white); line-height: 1.25; margin-bottom: 20px; }
.hero-title .highlight { color: var(--accent); }
.hero-desc { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; max-width: 540px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); padding: 5px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.15); }
.hero-visual { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 20px 28px; color: var(--white); min-width: 260px; }
.hero-card i { font-size: 2rem; color: var(--accent); }
.hero-card strong { display: block; font-size: 1.3rem; font-weight: 700; font-family: var(--font-heading); }
.hero-card small { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
@keyframes floating { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.floating { animation: floating 4s ease-in-out infinite; }
.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* PAGE HERO (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light)); padding: 80px 0 60px; color: var(--white); text-align: center; position: relative; }
.page-hero h1 { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.7); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: rgba(255,255,255,0.4); }

/* STATS */
.stats-bar { background: var(--white); box-shadow: var(--shadow); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-plus { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; color: var(--text-muted); font-size: 0.88rem; font-weight: 500; margin-top: 4px; }

/* CATEGORIES */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-icon { padding: 36px 28px 20px; display: flex; align-items: center; justify-content: center; }
.cat-icon i { font-size: 3rem; color: var(--white); opacity: 0.9; }
.cat-body { padding: 20px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.cat-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; flex: 1; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cat-tags li { background: var(--bg-light); color: var(--primary); font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; border: 1px solid var(--border); }
.cat-link { color: var(--primary-light); font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.cat-link:hover { gap: 10px; }
.cat-link i { font-size: 0.75rem; }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card { background: var(--white); padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.why-icon { width: 54px; height: 54px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--white); margin-bottom: 18px; }
.why-card h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* PRODUCTS */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img { position: relative; background: linear-gradient(135deg, #f0f5ff, #e8f0ff); height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.8rem; opacity: 0.8; }
.product-badge { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-badge.in-stock { background: rgba(0,200,100,0.15); color: #007a3d; border: 1px solid rgba(0,200,100,0.3); }
.product-badge.custom { background: rgba(100,100,255,0.12); color: #4444cc; border: 1px solid rgba(100,100,255,0.25); }
.product-badge.enquire { background: rgba(200,100,0,0.12); color: #c86400; border: 1px solid rgba(200,100,0,0.25); }
.product-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; display: block; }
.product-name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; line-height: 1.4; flex: 1; }
.product-name a:hover { color: var(--accent); }
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.product-meta div { background: var(--bg-light); border-radius: 6px; padding: 7px 10px; }
.product-meta span { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-meta strong { font-size: 0.8rem; color: var(--text); font-weight: 600; }
.product-actions { display: flex; gap: 8px; }
.btn-add-cart { flex: 1; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--transition); }
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,108,184,0.35); }
.btn-view { background: var(--bg-light); color: var(--primary); border: 1.5px solid var(--border); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; transition: var(--transition); }
.btn-view:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* PRODUCT FILTERS */
.products-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.products-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 8px 16px; border-radius: 50px; background: var(--bg-light); color: var(--text); font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); transition: var(--transition); }
.filter-chip:hover, .filter-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Parent-drug dropdown (replaces 2500+ chip overflow) */
.cat-select-form { display: inline-block; }
.cat-select { padding: 8px 36px 8px 14px; border-radius: 50px; background: var(--bg-light); color: var(--text); font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; min-width: 220px; max-width: 320px; transition: var(--transition); }
.cat-select:hover, .cat-select:focus { border-color: var(--primary); outline: none; }

/* A-Z alphabet filter bar */
.alphabet-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 16px; margin-bottom: 28px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 12px; }
.alpha-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; color: var(--text); background: var(--white); border: 1px solid var(--border); transition: var(--transition); text-decoration: none; }
.alpha-letter:hover { background: var(--primary-light); color: var(--white); border-color: var(--primary-light); transform: translateY(-1px); }
.alpha-letter.active { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
@media (max-width: 640px) {
    .alpha-letter { min-width: 30px; height: 30px; font-size: 0.8rem; padding: 0 6px; }
    .alphabet-bar { padding: 10px; gap: 4px; }
}
.products-search { display: flex; gap: 8px; align-items: center; }
.products-search input { padding: 10px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; min-width: 240px; }
.products-search input:focus { outline: none; border-color: var(--primary-light); }

/* SINGLE PRODUCT */
.single-product-page { padding: 60px 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.product-detail-img { background: linear-gradient(135deg, #f0f5ff, #e8f0ff); border-radius: var(--radius); padding: 60px 40px; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.product-detail-img .product-img-placeholder { width: 140px; height: 140px; font-size: 3.5rem; }
.product-detail-img img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.product-detail h1, .product-detail .product-detail-name { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); margin: 8px 0 16px; font-weight: 700; }
.product-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.product-detail-meta > div { background: var(--bg-light); padding: 14px 18px; border-radius: var(--radius-sm); }
.product-detail-meta span { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.product-detail-meta strong { font-size: 1rem; color: var(--primary); }
.product-detail-desc { color: var(--text-muted); line-height: 1.8; margin: 24px 0; }
.product-detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* GEO TRUST */
.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.geo-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: var(--transition); }
.geo-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(0,168,232,0.4); transform: translateY(-4px); }
.geo-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 16px; display: block; }
.geo-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.geo-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* CERTS */
.cert-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.cert-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; min-width: 140px; transition: var(--transition); text-align: center; }
.cert-badge:hover { box-shadow: var(--shadow); border-color: var(--primary-light); transform: translateY(-3px); }
.cert-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem; }
.cert-badge span { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.cert-badge small { font-size: 0.75rem; color: var(--text-muted); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3d6b 50%, var(--primary-light) 100%); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--white); margin-bottom: 12px; max-width: 560px; }
.cta-text p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.7; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info { background: var(--bg-light); padding: 36px; border-radius: var(--radius); }
.contact-info h3 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 20px; }
.contact-info p { display: flex; gap: 12px; margin-bottom: 16px; color: var(--text-muted); align-items: flex-start; }
.contact-info i { color: var(--accent); margin-top: 4px; }
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; margin-top: 16px; color: var(--text); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-main); font-size: 0.95rem; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(26,108,184,0.12); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* PAGE CONTENT */
.page-content { padding: 60px 0; }
.page-content .container { max-width: 900px; }
.page-content h2, .page-content h3 { font-family: var(--font-heading); color: var(--primary); margin: 28px 0 14px; }
.page-content p { color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { margin: 16px 0 16px 24px; }
.page-content ul li { list-style: disc; margin-bottom: 8px; color: var(--text); }

/* FOOTER */
.footer { background: #080e1f; color: rgba(255,255,255,0.75); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding: 64px 24px 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; }
.footer-logo .logo-primary { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-logo .logo-secondary { font-size: 0.6rem; font-weight: 800; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary-light); color: var(--white); }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-col address p { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; margin-bottom: 12px; color: rgba(255,255,255,0.6); }
.footer-col address i { margin-top: 3px; flex-shrink: 0; color: var(--accent); }
.footer-col address a:hover { color: var(--accent); }
.footer-cert-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-cert-mini span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 24px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-links a:hover { color: var(--accent); }

/* CART SIDEBAR */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; pointer-events: none; transition: var(--transition); }
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-sidebar { position: fixed; top: 0; right: -440px; width: 420px; max-width: 100vw; height: 100vh; background: var(--white); z-index: 2001; display: flex; flex-direction: column; transition: right 0.35s cubic-bezier(0.4,0,0.2,1); box-shadow: -8px 0 40px rgba(0,0,0,0.15); }
.cart-sidebar.open { right: 0; }
.cart-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--primary); color: var(--white); }
.cart-sidebar-header h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cart-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.15); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.cart-close:hover { background: rgba(255,255,255,0.25); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.cart-empty p { margin-bottom: 16px; }
.cart-empty a { color: var(--primary-light); font-weight: 600; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-light); border-radius: var(--radius-sm); margin-bottom: 10px; position: relative; }
.cart-item-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1rem; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-cat { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.cart-item-remove { color: #cc2200; font-size: 0.85rem; padding: 4px 8px; }
.cart-item-remove:hover { opacity: 0.7; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-email-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 5px; margin-top: 12px; }
.cart-email-form input, .cart-email-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem; font-family: var(--font-main); color: var(--text); background: var(--white); transition: var(--transition); }
.cart-email-form input:focus, .cart-email-form textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(26,108,184,0.12); }
.cart-email-form textarea { resize: vertical; min-height: 70px; }
.cart-email-form .btn { margin-top: 16px; }

/* TOAST */
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: var(--white); padding: 14px 22px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; z-index: 3000; box-shadow: var(--shadow-lg); transform: translateY(80px); opacity: 0; transition: all 0.35s ease; pointer-events: none; max-width: 300px; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #007a3d; }
.toast.error { background: var(--danger); }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 28px; left: 28px; width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(10,61,107,0.3); opacity: 0; transform: translateY(16px); transition: var(--transition); pointer-events: none; z-index: 500; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar-left { display: none; }
  .header-inner { padding: 0 16px; }
  .nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); z-index: 999; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .sub-menu, .dropdown { display: none !important; }
  .hamburger { display: flex; }
  .btn-enquire { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 60px 16px 80px; }
  .hero-title { font-size: 1.9rem; }
  .hero-visual { flex-direction: row; flex-wrap: wrap; }
  .hero-card { min-width: auto; flex: 1; min-width: 140px; padding: 14px 16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .section-header h2 { font-size: 1.55rem; }
  .section { padding: 56px 0; }
  .hero-card strong { font-size: 1rem; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-visual { display: none; }
  .geo-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cart-sidebar { width: 100vw; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* =============================================
   MOBILE POLISH
   ============================================= */

/* Long chemical names / CAS numbers must wrap instead of overflowing */
.product-name, .product-detail h1, .product-detail .product-detail-name,
.product-meta strong, .product-detail-meta strong, .page-hero h1,
.cart-item-name, .breadcrumb, .page-content { overflow-wrap: anywhere; word-break: break-word; }

/* Hamburger turns into an X when open */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { height: 62px; gap: 12px; }
  .logo-icon { width: 36px; height: 36px; font-size: 1rem; }
  .logo-primary { font-size: 1.05rem; }
  .header-actions { gap: 8px; }

  /* Menu drops down right under the sticky header, scrolls if long */
  .nav { position: absolute; top: 100%; max-height: calc(100vh - 62px); overflow-y: auto; }
  .nav-list > li > a { padding: 12px 14px; font-size: 1rem; }
  /* Show sub-menu items inline instead of hiding them */
  .nav .sub-menu, .nav .dropdown { display: block !important; position: static; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: 0; animation: none; }
  .nav-list > li.menu-item-has-children > a::after { display: none; }

  /* Mobile topbar: row 1 = email + WhatsApp pill, row 2 = both phones */
  .topbar { font-size: 0.78rem; padding: 7px 0 8px; }
  .topbar-inner { justify-content: center; align-items: center; gap: 6px 10px; padding: 0 12px; }
  .topbar-left { display: contents; }
  .topbar-left a, .topbar-right a { color: #fff; }
  .topbar-email { order: 1; min-width: 0; }
  .topbar-email a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-email i { color: var(--accent); }
  .topbar-right { order: 2; gap: 10px; }
  .topbar-inner::after { content: ""; order: 3; flex-basis: 100%; height: 1px; background: rgba(255,255,255,0.12); }
  .topbar-phone { order: 4; font-weight: 600; letter-spacing: 0.2px; }
  .topbar-phone + .topbar-phone { padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.25); }
  .topbar-phone i { color: var(--accent); font-size: 0.75rem; }
  .topbar-wa { background: #25D366; color: #fff !important; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 0.74rem; }
  .topbar-wa i { color: #fff; }

  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.95rem; }

  /* Products toolbar: stack filters, dropdown and search full width */
  .products-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
  .products-filters { width: 100%; }
  .cat-select-form { flex: 1 1 100%; }
  .cat-select { width: 100%; max-width: none; min-width: 0; }
  .products-search { width: 100%; }
  .products-search input { flex: 1; min-width: 0; width: 100%; }

  /* A-Z bar: one swipeable row instead of 3-4 wrapped rows */
  .alphabet-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .alpha-letter { flex: 0 0 auto; min-width: 38px; height: 38px; }

  /* Single product */
  .single-product-page { padding: 32px 0; }
  .product-detail { gap: 24px; }
  .product-detail-img { min-height: 200px; padding: 32px 20px; }
  .product-detail-img .product-img-placeholder { width: 100px; height: 100px; font-size: 2.5rem; }
  .product-detail h1, .product-detail .product-detail-name { font-size: 1.4rem; }
  .product-detail-actions .btn { flex: 1 1 100%; justify-content: center; }

  /* Contact & forms */
  .contact-info, .contact-form { padding: 22px 18px; }
  .cta-section { padding: 48px 0; }
  .cta-text h2 { font-size: 1.45rem; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-btns .btn { flex: 1 1 100%; justify-content: center; }
  /* 16px inputs stop iPhone from zooming in on focus */
  input, select, textarea { font-size: 16px !important; }

  .footer-top { padding: 44px 16px 32px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .back-to-top { bottom: 16px; left: 16px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-desc { font-size: 0.95rem; }
  .stat-num { font-size: 1.9rem; }
  .product-detail-meta { grid-template-columns: 1fr; }
  .logo-secondary { letter-spacing: 2px; }
  .btn-search, .btn-cart { width: 38px; height: 38px; }
}

/* Off-canvas cart: slide with transform so it never widens the page on phones */
html, body { overflow-x: hidden; max-width: 100%; }
.cart-sidebar { right: 0; transform: translateX(100%); visibility: hidden; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s; }
.cart-sidebar.open { transform: translateX(0); visibility: visible; }

/* Phone layout tightening (checked at 390px) */
@media (max-width: 768px) {
  .hero { min-height: 0; }
  .hero-content { padding: 36px 16px 90px; }
  .hero-badge { margin-bottom: 14px; }

  /* Home categories: compact 2-column tiles */
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-icon { padding: 18px 12px 12px; }
  .cat-icon i { font-size: 1.8rem; }
  .cat-body { padding: 12px 14px 16px; }
  .cat-body h3 { font-size: 0.95rem; margin-bottom: 6px; }
  .cat-body p, .cat-tags { display: none; }
  .cat-link { font-size: 0.8rem; }

  /* Product cards: small icon strip instead of a tall banner */
  .product-img { height: 64px; justify-content: flex-start; padding-left: 18px; }
  .product-img-placeholder { width: 42px; height: 42px; font-size: 1.1rem; }
  .product-body { padding: 14px 16px 16px; }
  .products-grid { gap: 14px; }

  .product-detail-img { min-height: 0; padding: 22px; }
  .product-detail-img .product-img-placeholder { width: 72px; height: 72px; font-size: 1.8rem; }
  .section-header { margin-bottom: 32px; }
}

/* Stats bar: 3 items, keep them in one row on every screen */
.stats-inner { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-item { padding: 8px 4px; }
  .stat-item:nth-child(2) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-right: none; }
}
@media (max-width: 480px) {
  .stat-num { font-size: 1.5rem; }
  .stat-plus { font-size: 1.2rem; }
  .stat-label { font-size: 0.78rem; }
}

/* ---- KNOWLEDGE CENTER: post cards ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--text); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.post-card h2, .post-card h3 { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.4; color: var(--primary); margin: 0; }
.post-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; flex: 1; }
.post-card-date { font-size: 0.8rem; color: var(--text-muted); }
.post-card-more { font-weight: 600; color: var(--primary-light); font-size: 0.9rem; }

/* ---- ARTICLE ---- */
.article-hero h1 { max-width: 900px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 16px 0 4px; font-size: 0.9rem; opacity: 0.9; }
.article-container { max-width: 860px; }
.article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-content h2 { font-family: var(--font-heading); font-size: 1.55rem; color: var(--primary); margin: 40px 0 14px; line-height: 1.35; scroll-margin-top: 90px; }
.article-content h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary); margin: 28px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content ul li { list-style: disc; margin-bottom: 8px; }
.article-content ol li { list-style: decimal; margin-bottom: 8px; }
.article-content a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.article-content strong { color: var(--primary-dark); }
.article-content table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.95rem; display: block; overflow-x: auto; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-content th { background: var(--bg-light); color: var(--primary); font-weight: 700; }
.article-content .key-takeaway { background: var(--bg-light); border-left: 4px solid var(--accent2); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.article-content .key-takeaway p:last-child { margin-bottom: 0; }
.article-toc { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.article-toc strong { font-family: var(--font-heading); color: var(--primary); }
.article-toc ol { margin: 10px 0 0 20px; }
.article-toc li { list-style: decimal; margin-bottom: 6px; font-size: 0.95rem; }
.article-toc a { text-decoration: none; }
.article-cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light)); color: var(--white); border-radius: var(--radius); padding: 32px; margin: 48px 0; text-align: center; }
.article-cta h2 { font-family: var(--font-heading); color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 20px; }
.article-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.related-articles h2 { font-family: var(--font-heading); color: var(--primary); font-size: 1.4rem; margin-bottom: 20px; }

/* ---- FAQ ---- */
.faq-container { max-width: 900px; }
.faq-content > p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.faq-content h2 { font-family: var(--font-heading); color: var(--primary); font-size: 1.4rem; margin: 40px 0 16px; }
.faq-content details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--white); box-shadow: 0 1px 4px rgba(10,61,107,0.05); }
.faq-content details[open] { border-color: var(--accent); }
.faq-content summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--primary-dark); position: relative; line-height: 1.5; }
.faq-content summary::-webkit-details-marker { display: none; }
.faq-content summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq-content details[open] summary::after { content: '\2212'; }
.faq-content details > div { padding: 0 20px 18px; color: var(--text); line-height: 1.75; }
.faq-content details > div p { margin-bottom: 10px; }
.faq-content details > div ul { margin: 0 0 10px 22px; }
.faq-content details > div li { list-style: disc; margin-bottom: 6px; }
.faq-content details a { color: var(--primary-light); text-decoration: underline; }

@media (max-width: 600px) {
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.3rem; }
  .article-cta { padding: 24px 18px; }
  .article-cta-actions .btn { width: 100%; justify-content: center; }
  .post-grid { grid-template-columns: 1fr; }
}

/* ---- TESTIMONIALS ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; margin: 0; }
.testimonial-card.is-draft { outline: 2px dashed #f0a500; outline-offset: -2px; }
.testimonial-logo { height: 56px; display: flex; align-items: center; }
.testimonial-logo img { max-height: 56px; max-width: 170px; width: auto; object-fit: contain; }
.testimonial-initials { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; }
.testimonial-card blockquote { margin: 0; flex: 1; }
.testimonial-card blockquote p { color: var(--text); line-height: 1.7; font-size: 0.97rem; }
.testimonial-card blockquote p::before { content: '"'; color: var(--accent); font-family: var(--font-heading); font-size: 1.6rem; line-height: 0; margin-right: 4px; vertical-align: -0.35em; }
.testimonial-card figcaption { font-size: 0.88rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }
.testimonial-card figcaption strong { color: var(--primary-dark); }
.testimonial-card figcaption span { font-weight: 600; color: var(--primary); }
.testimonial-preview-note { color: #b77900 !important; font-weight: 600; font-size: 0.9rem !important; }

/* ---- TESTIMONIAL SLIDER (rounded cards, auto-sliding) ---- */
.testimonial-slider { position: relative; padding: 0 56px; }
.testimonial-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 16px; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track .testimonial-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; border-radius: 24px; padding: 28px; }
.testimonial-track .testimonial-logo { height: 72px; }
.testimonial-track .testimonial-logo img { max-height: 60px; }
.testimonial-track .testimonial-initials { width: 64px; height: 64px; font-size: 1.2rem; }
.testimonial-nav { position: absolute; top: 50%; transform: translateY(-60%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--primary); box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; z-index: 2; transition: var(--transition); }
.testimonial-nav:hover { background: var(--primary); color: var(--white); }
.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.testimonial-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: var(--transition); }
.testimonial-dots button.active { width: 28px; border-radius: 10px; background: var(--accent); }
@media (max-width: 1024px) {
  .testimonial-track .testimonial-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .testimonial-slider { padding: 0; }
  .testimonial-track { gap: 14px; }
  .testimonial-track .testimonial-card { flex-basis: 86%; padding: 22px; }
  .testimonial-nav { display: none; }
}

/* ---- CLIENT LOGO MARQUEE: two rows, opposite directions ---- */
.client-logos { padding: 72px 0 64px; background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light)); overflow: hidden; }
.client-logos .logo-marquee-item { border-color: rgba(255,255,255,0.6); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.client-logos .section-header { margin-bottom: 36px; }
.logo-marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-marquee + .logo-marquee { margin-top: 14px; }
.logo-marquee-track { display: flex; gap: 24px; width: max-content; padding-left: 24px; animation: logo-marquee 38s linear infinite; }
.logo-marquee.reverse .logo-marquee-track { animation-direction: reverse; animation-duration: 44s; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-item { flex: 0 0 auto; width: 210px; height: 96px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 4px 16px rgba(10,61,107,0.07); display: flex; align-items: center; justify-content: center; padding: 14px 24px; transition: var(--transition); }
.logo-marquee-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.logo-marquee-item img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes logo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .client-logos { padding: 48px 0 40px; }
  .logo-marquee-track { gap: 14px; padding-left: 14px; animation-duration: 28s; }
  .logo-marquee.reverse .logo-marquee-track { animation-duration: 32s; }
  .logo-marquee-item { width: 150px; height: 74px; padding: 10px 16px; border-radius: 14px; }
  .logo-marquee-item img { max-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 16px; }
  .logo-marquee.reverse, .logo-marquee-item[aria-hidden="true"] { display: none; }
}

/* Certifications: equal-width badges side by side on phones */
@media (max-width: 640px) {
  .cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cert-grid .cert-badge { width: auto; min-width: 0; padding: 20px 12px; }
}
