@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Blue-shifted background palette */
  --bg:          #04101e;
  --bg-2:        #071525;
  --bg-card:     #0b1e30;
  --bg-card-2:   #0e2238;
  --border:      #142c44;
  --border-glow: rgba(0,176,255,0.20);

  /* Primary accent: electric blue (replaces lime) */
  --lime:        #00b4ff;
  --lime-dim:    #0090cc;
  --lime-faint:  rgba(0,180,255,0.07);

  /* Secondary accent stays amber */
  --amber:       #ffab00;
  --amber-faint: rgba(255,171,0,0.08);

  --cyan:        #00e5ff;
  --rose:        #ff4d6d;

  /* Text — cool blue-white tones */
  --text-primary:   #ddeeff;
  --text-secondary: #6a9ab5;
  --text-muted:     #2d5070;

  --radius:    10px;
  --radius-lg: 16px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --shadow-glow: 0 0 40px rgba(0,176,255,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--lime); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── HEX GRID BG ─────────────────────────────────────────────────────────── */
.hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0-6l22-12.7V22.7L28 10 6 22.7v24.6L28 60z' fill='%23142c44' fill-opacity='0.4'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(4,16,30,0.92);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

/* ── Logo with real image ── */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: var(--lime); letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 94px; width: 94px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  padding: 2px;
}

.nav-logo-text { color: var(--text-primary); font-size: 1.1rem; }

.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.nav-links a {
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary); background: var(--border);
}
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: all 0.2s; z-index: 100;
  box-shadow: var(--shadow-card);
}
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-links .dropdown-menu a {
  display: block; padding: 8px 12px; font-size: 0.85rem;
  border-radius: 6px; color: var(--text-secondary);
}
.nav-links .dropdown-menu a:hover { color: var(--lime); background: var(--lime-faint); }

.nav-cta {
  display: flex; align-items: center; gap: 10px;
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none; /* hidden on desktop, shown via media query */
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  z-index: 950;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(4,16,30,0.6); z-index: 800;
}
.nav-mobile-overlay.open { display: block; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn { 
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime); color: var(--bg);
}
.btn-primary:hover { background: #33ccff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,180,255,0.3); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); background: var(--lime-faint); }
.btn-amber { background: var(--amber); color: var(--bg); }
.btn-amber:hover { background: #ffc233; transform: translateY(-1px); }
.btn-outline-lime {
  background: transparent; color: var(--lime);
  border: 1px solid var(--lime);
}
.btn-outline-lime:hover { background: var(--lime); color: var(--bg); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: 68px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; position: relative; overflow: hidden;
}
.hero-left {
  padding: 80px 48px 80px 80px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime-faint); border: 1px solid rgba(0,180,255,0.2);
  border-radius: 30px; padding: 5px 14px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--lime); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.035em;
  color: var(--text-primary); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--lime); }

.hero-sub {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 460px;
  line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; max-width: 440px;
}
.hero-stat {
  background: var(--bg-card); padding: 16px 20px;
}
.hero-stat-num {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
  color: var(--lime); line-height: 1;
}
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.hero-right {
  height: 100vh; position: relative; overflow: hidden;
  border-left: 1px solid var(--border);
}
.hero-visual {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,180,255,0.05) 0%, transparent 70%),
              var(--bg-2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-mol-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  padding: 48px; opacity: 0.7;
}
.hero-mol-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; text-align: center;
  transition: all 0.3s;
}
.hero-mol-card:hover { border-color: var(--lime); opacity: 1; transform: scale(1.03); }
.hero-mol-card img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 8px; filter: invert(0.1); }
.hero-mol-card .mol-name { font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-muted); }

/* ── SECTION ──────────────────────────────────────────────────────────────── */
.section { padding: 96px 80px; }
.section-sm { padding: 64px 80px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-tag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--lime); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content:''; flex: none; width: 24px; height: 2px; background: var(--lime); }

.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.15; color: var(--text-primary);
  margin-bottom: 14px;
}
.section-sub { font-size: 1rem; color: var(--text-secondary); max-width: 540px; }

/* ── SERVICES GRID ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px;
}
.service-tile {
  background: var(--bg-card); padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: background 0.25s;
  display: flex; flex-direction: column;
}
.service-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-tile:hover { background: var(--bg-card-2); }
.service-tile:hover::before { transform: scaleX(1); }

.service-tile-icon {
  width: 48px; height: 48px;
  background: var(--lime-faint); border: 1px solid rgba(0,180,255,0.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px; flex-shrink: 0;
}
.service-tile h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--text-primary); margin-bottom: 10px;
}
.service-tile p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.service-tile-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  color: var(--lime); margin-top: 20px;
  transition: gap 0.2s;
}
.service-tile:hover .service-tile-link { gap: 10px; }

.service-tile.amber .service-tile-icon { background: var(--amber-faint); border-color: rgba(255,171,0,0.2); }
.service-tile.amber::before { background: var(--amber); }
.service-tile.amber .service-tile-link { color: var(--amber); }
.service-tile.amber:hover .service-tile-icon { box-shadow: 0 0 18px rgba(255,171,0,0.15); }

/* ── CATALOG STRIPE ───────────────────────────────────────────────────────── */
.catalog-stripe {
  padding: 64px 80px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.catalog-stripe-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  flex-wrap: wrap;
}
.catalog-stripe-text h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 8px;
}
.catalog-stripe-text p { font-size: 0.95rem; color: var(--text-secondary); }
.catalog-count {
  font-family: var(--font-mono); font-size: 4rem; font-weight: 700;
  color: var(--lime); line-height: 1; white-space: nowrap;
}
.catalog-count span { font-size: 1rem; color: var(--text-muted); display: block; }

/* ── WHY US ───────────────────────────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 48px;
}
.why-item {
  background: var(--bg-card); padding: 32px 36px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: background 0.2s;
}
.why-item:hover { background: var(--bg-card-2); }
.why-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: var(--lime-faint); border: 1px solid rgba(0,180,255,0.2);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.why-item h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--text-primary); margin-bottom: 6px;
}
.why-item p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* ── CATALOG PAGE ─────────────────────────────────────────────────────────── */
.catalog-header {
  padding-top: 68px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.catalog-header-inner { padding: 48px 80px 36px; }
.catalog-header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; letter-spacing: -0.035em; margin-bottom: 8px;
}
.catalog-search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 16px;
  max-width: 540px; margin-top: 20px;
  transition: border-color 0.2s;
}
.catalog-search-bar:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(0,180,255,0.08); }
.catalog-search-bar input {
  flex: 1; background: none; border: none; outline: none;
  padding: 13px 0; font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-primary);
}
.catalog-search-bar input::placeholder { color: var(--text-muted); }
.catalog-search-bar .search-icon { color: var(--text-muted); font-size: 16px; }

.filter-bar {
  padding: 16px 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filter-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--lime); color: var(--lime); }
.filter-chip.active { border-color: var(--lime); background: var(--lime-faint); color: var(--lime); }
.filter-chip.grade-USP.active { border-color: #60a5fa; background: rgba(96,165,250,0.08); color: #60a5fa; }
.filter-chip.grade-EP.active  { border-color: #4ade80; background: rgba(74,222,128,0.08); color: #4ade80; }
.filter-chip.grade-BP.active  { border-color: var(--amber); background: var(--amber-faint); color: var(--amber); }
.filter-chip.grade-IP.active  { border-color: #f472b6; background: rgba(244,114,182,0.08); color: #f472b6; }
.filter-chip.grade-JP.active  { border-color: #a78bfa; background: rgba(167,139,250,0.08); color: #a78bfa; }

.catalog-body { display: flex; gap: 0; }
.catalog-sidebar {
  width: 240px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 28px 20px; position: sticky; top: 68px; align-self: flex-start;
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.sidebar-title { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.sidebar-item {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-size: 0.82rem; color: var(--text-secondary); cursor: pointer;
  transition: all 0.15s;
}
.sidebar-item:hover, .sidebar-item.active { background: var(--lime-faint); color: var(--lime); }
.sidebar-count { float: right; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.catalog-grid {
  flex: 1; padding: 28px 32px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}

.mol-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  cursor: pointer; transition: all 0.18s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.mol-card:hover {
  border-color: var(--lime); background: var(--bg-card-2);
  box-shadow: 0 0 0 1px var(--lime), var(--shadow-glow);
  transform: translateY(-2px);
}
.mol-card-img {
  background: rgba(255,255,255,0.03); border-radius: 7px;
  height: 110px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; overflow: hidden;
}
.mol-card-img img { max-height: 95px; max-width: 100%; object-fit: contain; }
.mol-card-img .mol-placeholder { color: var(--text-muted); font-size: 28px; }
.mol-card-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.mol-card-cas { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); margin-bottom: 10px; }
.mol-card-grades { display: flex; flex-wrap: wrap; gap: 4px; }

.grade-badge {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; border: 1px solid;
}
.grade-USP { color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.07); }
.grade-EP  { color: #4ade80; border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.07); }
.grade-BP  { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.07); }
.grade-IP  { color: #f472b6; border-color: rgba(244,114,182,0.3); background: rgba(244,114,182,0.07); }
.grade-JP  { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.07); }

/* ── MOLECULE DETAIL ─────────────────────────────────────────────────────── */
.detail-layout {
  padding-top: 68px; display: grid; grid-template-columns: 400px 1fr; min-height: 100vh;
}
.detail-sidebar {
  border-right: 1px solid var(--border); padding: 48px 36px;
  position: sticky; top: 68px; align-self: flex-start;
  height: calc(100vh - 68px); overflow-y: auto; background: var(--bg-2);
}
.detail-structure {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; margin-bottom: 28px;
}
.detail-structure img { max-width: 100%; max-height: 260px; object-fit: contain; }

.detail-props { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.detail-prop { background: var(--bg-card); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.detail-prop-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.detail-prop-value { font-family: var(--font-mono); font-size: 0.78rem; color: var(--lime); font-weight: 600; text-align: right; max-width: 60%; }

.detail-main { padding: 48px 56px; }
.detail-breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 24px; }
.detail-breadcrumb a { color: var(--text-muted); } .detail-breadcrumb a:hover { color: var(--lime); }
.detail-main h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.035em; margin-bottom: 6px; }
.detail-cas { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.detail-cat-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--amber-faint); border: 1px solid rgba(255,171,0,0.25); color: var(--amber); border-radius: 5px; padding: 3px 10px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; margin-bottom: 24px; }
.detail-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 36px; max-width: 680px; }

.detail-docs {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 36px;
}
.detail-doc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.detail-doc-icon { font-size: 20px; }
.detail-doc-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.detail-doc-sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.detail-doc.available { border-color: rgba(0,180,255,0.2); }
.detail-doc.available .detail-doc-title { color: var(--lime); }

/* ── ENQUIRY PANEL ────────────────────────────────────────────────────────── */
.enquiry-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 640px;
}
.enquiry-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; }
.enquiry-panel p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.form-control {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  font-family: var(--font-body); font-size: 0.88rem; color: var(--text-primary);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-control:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(0,180,255,0.07); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; font-family: var(--font-body); }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--lime); cursor: pointer; }
.checkbox-row label { font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; line-height: 1.5; }

/* ── SERVICE PAGE HERO ───────────────────────────────────────────────────── */
.service-hero {
  padding-top: 68px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.service-hero-inner {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px;
  padding: 64px 80px; align-items: center; max-width: 1280px; margin: 0 auto;
}
.service-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: var(--lime-faint); border: 1px solid rgba(0,180,255,0.2);
  border-radius: 5px; padding: 4px 12px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.service-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.1; }
.service-hero p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; max-width: 560px; margin-bottom: 28px; }
.service-hero-stat-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.service-stat-item .num { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--lime); }
.service-stat-item .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── FEATURES GRID ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feature-item { background: var(--bg-card); padding: 28px 24px; }
.feature-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 12px; }
.feature-item h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.feature-item p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }

/* ── CONTACT / ENQUIRY PAGE ───────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 380px 1fr; min-height: calc(100vh - 68px);
  padding-top: 68px;
}
.contact-sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 56px 40px;
}
.contact-sidebar h2 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.contact-sidebar p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color 0.2s;
}
.contact-info-item:hover { border-color: var(--lime); }
.contact-info-icon { font-size: 18px; }
.contact-info-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-info-value { font-size: 0.88rem; color: var(--text-primary); margin-top: 1px; }
.contact-main { padding: 56px 64px; }
.contact-main h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.contact-main > p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 32px; }

/* ── ADMIN ────────────────────────────────────────────────────────────────── */
.admin-wrap { padding: 88px 40px 60px; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.admin-stat-num { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--lime); }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 10px 14px; text-align: left; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--text-secondary); vertical-align: top; }
.admin-table tr:hover td { background: var(--bg-card); }
.admin-table .td-name { color: var(--text-primary); font-weight: 500; }
.admin-table .td-mono { font-family: var(--font-mono); font-size: 0.78rem; }

.status-badge { display: inline-block; padding: 2px 9px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; }
.status-new { background: rgba(0,180,255,0.1); color: var(--lime); border: 1px solid rgba(0,180,255,0.25); }
.status-in_progress { background: rgba(255,171,0,0.1); color: var(--amber); border: 1px solid rgba(255,171,0,0.25); }
.status-quoted { background: rgba(96,165,250,0.1); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.status-closed { background: rgba(45,80,112,0.2); color: var(--text-muted); border: 1px solid var(--border); }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 60px 80px 36px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--lime); margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom-text { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.footer-gst { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

/* ── MISC ─────────────────────────────────────────────────────────────────── */
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; }

.pagination { display: flex; gap: 6px; align-items: center; margin-top: 32px; justify-content: center; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--bg-card); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; text-decoration: none; }
.page-btn:hover { border-color: var(--lime); color: var(--lime); }
.page-btn.active { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 700; }
.page-btn.disabled { opacity: 0.3; pointer-events: none; }

.alert-success { background: rgba(0,180,255,0.07); border: 1px solid rgba(0,180,255,0.2); border-radius: var(--radius); padding: 20px 24px; }
.alert-success h3 { color: var(--lime); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.alert-success p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 80px 40px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; height: auto; }
  .detail-main { padding: 32px 40px; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 40px; }
  .filter-bar { padding: 16px 40px; }
  .catalog-header-inner { padding: 40px 40px 28px; }
  .catalog-sidebar { display: none; }

  .service-hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 40px; }
  .service-hero-stat-box { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .service-stat-item { flex: 1 1 120px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Nav mobile ── */
  .nav {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  /* On mobile: logo left, hamburger right, everything else hidden until open */
  .nav-logo { flex: 1; min-width: 0; }
  .nav-logo-text { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-hamburger { margin-left: auto; }
  

  .nav-hamburger { display: flex; }

  /* Hide nav links & cta by default on mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 12px 16px 100px; gap: 2px; z-index: 850;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 13px 16px; border-radius: 8px;
    font-size: 1rem; color: var(--text-primary);
  }
  .nav-links .dropdown > a::after { content: " ▾"; }
  .nav-links .dropdown-menu {
    position: static; opacity: 1; pointer-events: none; transform: none;
    box-shadow: none; background: rgba(0,0,0,0.2); border: none;
    border-radius: 6px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0; margin: 0 0 4px 12px;
  }
  .nav-links .dropdown.open .dropdown-menu {
    pointer-events: all; max-height: 400px;
  }
  .nav-links .dropdown-menu a {
    padding: 10px 16px; font-size: 0.9rem;
  }

  /* CTA buttons pinned at bottom of mobile menu */
  .nav-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 851;
    flex-direction: row; gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card); border-top: 1px solid var(--border);
  }
  .nav-cta.open { display: flex; }
  .nav-cta .btn { flex: 1; justify-content: center; }

  /* ── Hero ── */
  .hero-left { padding: 48px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3,1fr); max-width: 100%; }
  .hero-stat-num { font-size: 1.2rem; }

  /* ── Sections ── */
  .section { padding: 48px 20px; }
  .section-sm { padding: 40px 20px; }
  .section-title { font-size: 1.6rem; }
  .container { padding: 0; }

  /* ── Services grid ── */
  .services-grid { grid-template-columns: 1fr; }
  .service-tile { padding: 28px 20px; }

  /* ── Catalog ── */
  .catalog-header-inner { padding: 24px 20px 20px; }
  .catalog-header h1 { font-size: 1.6rem; }
  .filter-bar { padding: 12px 20px; gap: 8px; }
  .catalog-grid { padding: 16px; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; }

  /* ── Features ── */
  .features-grid { grid-template-columns: 1fr; }

  /* ── Why grid ── */
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 24px 20px; }

  /* ── Detail page ── */
  .detail-main { padding: 24px 20px; }
  .detail-main h1 { font-size: 1.8rem; }
  .detail-docs { grid-template-columns: 1fr 1fr; }

  /* ── Service hero ── */
  .service-hero-inner { padding: 32px 20px; }
  .service-hero h1 { font-size: 2rem; }
  .service-hero p { font-size: 0.92rem; }
  .service-hero-stat-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* ── Contact ── */
  .contact-sidebar { padding: 32px 20px; }
  .contact-main { padding: 32px 20px; }

  /* ── Catalog stripe ── */
  .catalog-stripe { padding: 40px 20px; }
  .catalog-stripe-inner { flex-direction: column; gap: 24px; }
  .catalog-count { font-size: 2.8rem; }

  /* ── Enquiry panel ── */
  .enquiry-panel { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* ── CTA banner ── */
  section[style*="padding:80px"] {
    padding: 40px 20px !important;
  }
  section[style*="display:grid;grid-template-columns:1fr auto"] > .container,
  .container[style*="display:grid;grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ── Admin ── */
  .admin-wrap { padding: 88px 16px 40px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Footer ── */
  .footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* ── Trust bar ── */
  div[style*="padding:18px 80px"] {
    padding: 14px 20px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}

/* ── Extra small (≤ 400px) ── */
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 200px; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .detail-docs { grid-template-columns: 1fr; }
}
