/* ============================================
   TRIMS BANGLADESH — DESIGN TOKENS
   Industrial / precision / export-grade identity
   ============================================ */
:root {
  /* Color */
  --navy-950: #0a1830;
  --navy-900: #0f2342;
  --navy-800: #17325a;
  --navy-300: #9fb2cc;
  --navy-100: #dce4f0;
  --navy-50:  #eef3f9;

  --emerald-700: #04724d;
  --emerald-600: #05935f;
  --emerald-500: #12b76a;
  --emerald-50:  #e8faf1;

  --blue-300: #8fb8f6;

  --gray-400: #97a1b1;

  --text-primary:   #0e1726;
  --text-secondary: #4a5568;
  --text-muted:     #6b7688;

  --surface-page: #ffffff;
  --surface-card: #f7f9fc;
  --border-subtle: #e6eaf1;

  --color-primary: var(--navy-900);
  --color-secondary: var(--emerald-600);

  /* Type */
  --font-display: "Big Shoulders Display", "Archivo Narrow", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15,35,66,0.06), 0 1px 3px rgba(15,35,66,0.08);
  --shadow-lg: 0 10px 30px rgba(15,35,66,0.14), 0 2px 8px rgba(15,35,66,0.08);

  /* Motion */
  --duration-base: 220ms;
  --ease-standard: cubic-bezier(.4,0,.2,1);
}

/* ============================================ RESET ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--emerald-500); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================ BUTTONS ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; border-radius: var(--radius-md);
  padding: 12px 22px; border: 1px solid transparent; text-decoration: none;
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-lg); }
.btn-success { background: var(--emerald-600); color: #fff; }
.btn-success:hover { background: var(--emerald-700); box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--border-subtle); }
.btn-secondary:hover { border-color: var(--navy-300); }
.btn-ghost-onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-onDark:hover { background: rgba(255,255,255,0.08); }

/* ============================================ HEADER ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container { display: flex; align-items: center; gap: 32px; height: 68px; }
.site-header .logo img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: 12px; }
.site-nav a { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color var(--duration-base); }
.site-nav a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] { color: var(--text-primary); font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-actions .portal-link { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; margin-left: auto; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================ HERO ============================================ */
.hero {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800) 70%);
  color: #fff; position: relative; overflow: hidden;
}
.hero .container { padding: 84px 24px 96px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--blue-300); margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-500); }
.hero h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; line-height: 1.6; color: var(--navy-100); max-width: 480px; margin-top: 24px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat-value { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.hero-stats .stat-label { font-size: 13px; color: var(--navy-300); margin-top: 2px; }

.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--navy-300); overflow: hidden;
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder-icon svg { width: 48px; height: 48px; }
.hero-visual .placeholder-text { font-size: 13px; font-weight: 500; text-align: center; max-width: 220px; }
.cert-card {
  position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 14px 16px;
  background: rgba(10,24,48,0.6); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; gap: 12px; z-index: 2;
}
.cert-icon { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--emerald-600); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-icon svg { width: 20px; height: 20px; color: #fff; }
.cert-title { font-size: 13.5px; font-weight: 600; color: #fff; }
.cert-sub { font-size: 12px; color: var(--navy-300); }

/* ============================================ TRUST BAR ============================================ */
.trust-bar { background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
.trust-bar .container { padding: 28px 24px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.trust-logos { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; justify-content: center; }
.trust-logos span { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--gray-400); letter-spacing: -0.01em; }

/* ============================================ SECTION HEADS ============================================ */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 12px; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; }

/* ============================================ PRODUCTS ============================================ */
.products { background: var(--surface-page); }
.products .container { padding: 88px 24px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 26px;
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--navy-50); color: var(--color-primary); margin-bottom: 18px; }
.product-icon svg { width: 24px; height: 24px; }
.product-card h3 { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.product-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ============================================ CAPABILITIES ============================================ */
.capabilities { background: var(--surface-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.capabilities .container { padding: 88px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cap-copy h2 { font-weight: 800; font-size: clamp(26px,3.2vw,36px); letter-spacing: -0.02em; margin-bottom: 18px; }
.cap-copy > p { font-size: 16px; line-height: 1.65; color: var(--text-secondary); max-width: 460px; margin-bottom: 28px; }
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cap-item { display: flex; gap: 12px; }
.cap-item-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--emerald-50); color: var(--emerald-700); }
.cap-item-icon svg { width: 20px; height: 20px; }
.cap-item strong { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.cap-item span { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.capacity-panel { background: var(--navy-900); border-radius: var(--radius-2xl); padding: 40px; color: #fff; box-shadow: var(--shadow-lg); }
.capacity-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 24px; }
.capacity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.capacity-grid .stat-value { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.capacity-grid .stat-label { font-size: 13px; color: var(--navy-300); margin-top: 4px; }
.capacity-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 32px 0; }

/* ============================================ CTA BAND ============================================ */
.cta-band { background: var(--surface-page); }
.cta-band .container { padding: 80px 24px; text-align: center; max-width: 1000px; }
.cta-band h2 { font-weight: 800; font-size: clamp(28px,3.6vw,40px); letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-band p { font-size: 17px; line-height: 1.6; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================ CONTACT / INQUIRY FORM ============================================ */
.inquiry { background: var(--navy-950); color: #fff; }
.inquiry .container { padding: 88px 24px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.inquiry-copy .eyebrow { color: var(--blue-300); }
.inquiry-copy h2 { font-weight: 800; font-size: clamp(26px,3.2vw,36px); letter-spacing: -0.02em; margin-bottom: 16px; }
.inquiry-copy p { font-size: 15.5px; line-height: 1.65; color: var(--navy-300); max-width: 400px; }
.inquiry-contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.inquiry-contacts a, .inquiry-contacts span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy-100); text-decoration: none; }
.inquiry-contacts svg { width: 16px; height: 16px; color: var(--blue-300); flex-shrink: 0; }

.inquiry-form { background: #fff; border-radius: var(--radius-2xl); padding: 36px; color: var(--text-primary); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; padding: 11px 14px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--emerald-50);
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: -6px; margin-bottom: 18px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; }
.form-status.success { display: block; background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-500); }
.form-status.error { display: block; background: #fdeceb; color: #b3261e; border: 1px solid #f5b5b0; }
.submit-btn { width: 100%; }
.submit-btn[disabled] { opacity: 0.65; pointer-events: none; }

/* ============================================ FOOTER ============================================ */
.site-footer { background: var(--navy-950); color: var(--navy-100); }
.site-footer .container { padding: 64px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 32px; background: #fff; padding: 8px 12px; border-radius: var(--radius-md); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--navy-300); margin-top: 18px; max-width: 280px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 13.5px; }
.footer-contacts span { display: flex; align-items: center; gap: 10px; }
.footer-contacts svg { width: 16px; height: 16px; color: var(--blue-300); }
.footer-col h4 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-family: var(--font-sans); }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--navy-300); text-decoration: none; transition: color var(--duration-base); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--navy-300); }
.footer-bottom .legal-links { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; color: var(--navy-300); }
.footer-bottom a:hover { color: #fff; }

/* ============================================ SUBPAGE HERO ============================================ */
.page-hero { background: linear-gradient(165deg, var(--navy-900), var(--navy-800) 70%); color: #fff; }
.page-hero .container { padding: 56px 24px 64px; }
.page-hero h1 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.page-hero p { font-size: 16.5px; color: var(--navy-100); max-width: 560px; margin-top: 14px; }

/* ============================================ FACT GRID (About) ============================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.fact-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 28px; }
.fact-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.fact-row:last-child { border-bottom: none; }
.fact-row svg { width: 17px; height: 17px; color: var(--emerald-600); flex-shrink: 0; margin-top: 2px; }
.fact-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.fact-value { font-size: 14.5px; font-weight: 600; margin-top: 2px; }

/* ============================================ PROGRESS BARS (Capacity) ============================================ */
.progress-panel { background: var(--navy-900); border-radius: var(--radius-2xl); padding: 36px; color: #fff; }
.progress-row { margin-bottom: 20px; }
.progress-row:last-child { margin-bottom: 0; }
.progress-labels { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.progress-labels span:first-child { color: var(--navy-100); font-weight: 500; }
.progress-labels span:last-child { color: var(--emerald-500); font-weight: 700; font-family: var(--font-mono); }
.progress-track { height: 8px; background: rgba(255,255,255,0.1); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--emerald-600), var(--emerald-500)); border-radius: var(--radius-pill); }

/* ============================================ LEAD TIME CARDS ============================================ */
.leadtime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.leadtime-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.leadtime-value { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--color-primary); }
.leadtime-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================================ TAG LIST (Machinery) ============================================ */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--emerald-50); color: var(--emerald-700); border: 1px solid color-mix(in srgb, var(--emerald-500) 25%, transparent); }

/* ============================================ TEST CARD ============================================ */
.test-card { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-subtle); }
.test-card:last-child { border-bottom: none; }
.test-code { flex-shrink: 0; width: 64px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--navy-50); color: var(--color-primary); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; text-align: center; }
.test-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.test-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

/* ============================================ TWO COL SECTION ============================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

@media (max-width: 900px) {
  .about-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .leadtime-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .leadtime-grid { grid-template-columns: 1fr; }
}

/* ============================================ SCROLL REVEAL ============================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-standard), transform 600ms var(--ease-standard); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================ RESPONSIVE ============================================ */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
  .capabilities .container { grid-template-columns: 1fr; gap: 40px; }
  .inquiry .container { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats .stat-value { font-size: 21px; }
  .capacity-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .capacity-grid .stat-value { font-size: 26px; }
  .hero .container { padding-top: 36px; padding-bottom: 56px; }
  .hero-visual { aspect-ratio: 4/3; }
}

@media (max-width: 720px) {
  .site-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column;
    padding: 24px; gap: 4px; transform: translateX(100%); transition: transform var(--duration-base) var(--ease-standard);
    z-index: 99; overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border-subtle); }
  .nav-toggle { display: block; }
  .header-actions .portal-link { display: none; }
  .hero-stats { gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .capacity-grid { gap: 20px; }
  .cta-actions .btn, .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-actions, .hero-cta { flex-direction: column; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust-logos { gap: 22px; }
  .inquiry-form { padding: 24px; }
}
