/* ==========================================================================
   Hangteng Hardware — Design System
   --------------------------------------------------------------------------
   This file owns the visual identity: brand tokens, typography, spacing
   rhythm and reusable components. Tailwind handles layout utilities on top.
   Edit the variables below to re-brand the whole site.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* --- COMPANY CONFIG (safe to edit) --------------------------------- */
  --company-name: "Fuzhou Hangteng Hardware Co., Ltd.";
  --company-short: "HANGTENG";
  --company-tagline: "Fasteners & Hardware Solutions for Global Buyers";
  --company-address: "No. 88 Jinshan Industrial Road, Cangshan District, Fuzhou, Fujian, China 350008";
  --company-email: "qh3243737084@gmail.com";
  --company-phone: "+86 13430670558";
  --company-whatsapp: "+86 13430670558";
  --company-whatsapp-link: "8613430670558";
  --company-wechat: "13430670558";

  /* --- BRAND COLOURS -------------------------------------------------- */
  --brand-primary:     #0F2B5B;   /* deep navy   */
  --brand-primary-700: #0A1E40;   /* navy shade  */
  --brand-primary-600: #16407F;   /* navy tint   */
  --brand-primary-400: #3E6BB0;
  --brand-primary-100: #E7EDF7;   /* navy wash   */
  --brand-primary-050: #F4F7FC;

  --brand-accent:     #F59E0B;    /* amber CTA   */
  --brand-accent-600: #D97706;    /* amber hover */
  --brand-accent-700: #B45309;
  --brand-accent-100: #FEF3C7;

  /* --- METAL / NEUTRAL RAMP ------------------------------------------- */
  --metal-50:  #F8FAFC;  --metal-100: #F1F5F9;  --metal-200: #E2E8F0;
  --metal-300: #CBD5E1;  --metal-400: #94A3B8;  --metal-500: #64748B;
  --metal-600: #475569;  --metal-700: #334155;  --metal-800: #1E293B;
  --metal-900: #0F172A;  --white: #FFFFFF;

  /* --- GRADIENTS ------------------------------------------------------ */
  --grad-metal: linear-gradient(135deg, #94A3B8 0%, #E2E8F0 42%, #64748B 100%);
  --grad-navy:  linear-gradient(135deg, #0A1E40 0%, #0F2B5B 55%, #16407F 100%);

  /* --- TYPOGRAPHY ----------------------------------------------------- */
  --font-sans: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
               "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --fs-xs: 0.75rem;   --fs-sm: 0.875rem;  --fs-base: 1rem;   --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;   --fs-2xl: 1.5rem;   --fs-3xl: 1.875rem; --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;     --fs-6xl: 3.75rem;
  --lh-tight: 1.15;   --lh-snug: 1.35;    --lh-base: 1.65;

  /* --- SPACING SCALE (4px base) --------------------------------------- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  --container: 1200px;
  --header-h: 76px;

  /* --- RADII / SHADOWS / MOTION --------------------------------------- */
  --radius-sm: 8px;  --radius: 12px;  --radius-lg: 18px;
  --radius-xl: 26px; --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.07);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --shadow-lg: 0 18px 48px rgba(15,23,42,.16);
  --shadow-cta: 0 8px 20px rgba(245,158,11,.32);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;
}

/* ------------------------------------------------------------ 2. BASE/RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--metal-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--brand-primary);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.5rem, 3.4vw, var(--fs-4xl)); }
h3 { font-size: clamp(1.15rem, 2.2vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-primary-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-accent-600); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
strong { color: var(--metal-900); }

::selection { background: var(--brand-accent); color: var(--brand-primary-700); }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ------------------------------------------------------------- 3. LAYOUT */
.container-x {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--sp-5);
}
@media (min-width: 768px) { .container-x { padding-inline: var(--sp-8); } }

.section { padding-block: var(--sp-16); }
@media (min-width: 768px) { .section { padding-block: var(--sp-24); } }
.section--tight { padding-block: var(--sp-12); }
.section--metal { background: var(--metal-50); }
.section--wash  { background: var(--brand-primary-050); }
.section--navy  { background: var(--grad-navy); color: rgba(255,255,255,.82); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--sp-10); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-accent-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--brand-accent); }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--brand-accent); }
.lead { font-size: var(--fs-lg); color: var(--metal-600); }

/* ------------------------------------------------------------ 4. BUTTONS */
.btn {
  --btn-bg: var(--brand-primary); --btn-fg: var(--white); --btn-bd: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px 26px; border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--accent  { --btn-bg: var(--brand-accent); --btn-bd: var(--brand-accent); --btn-fg: #3A2600; }
.btn--accent:hover { --btn-bg: var(--brand-accent-600); --btn-bd: var(--brand-accent-600); --btn-fg: #fff; box-shadow: var(--shadow-cta); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-primary); --btn-bd: var(--metal-300); }
.btn--outline:hover { --btn-bd: var(--brand-primary); --btn-bg: var(--brand-primary-050); --btn-fg: var(--brand-primary); }
.btn--light   { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--brand-primary); --btn-bd: #fff; }
.btn--sm { padding: 9px 18px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 34px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-primary-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- 5. CARDS */
.card {
  background: var(--white); border: 1px solid var(--metal-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--metal-300); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--metal-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.card--lift:hover .card__media img { transform: scale(1.045); }
.card__body { padding: var(--sp-5); }
.card__title { margin-bottom: var(--sp-1); font-size: var(--fs-lg); }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--brand-accent-600); }
.card__meta { font-size: var(--fs-sm); color: var(--metal-500); }

.product-card .card__media { aspect-ratio: 1 / 1; }
.product-card__sku { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--metal-500); }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0 var(--sp-4); }

.feature { text-align: left; }
.feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--sp-4);
  border-radius: var(--radius); background: var(--brand-primary-100); color: var(--brand-primary);
  border: 1px solid rgba(15,43,91,.10);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature--accent .feature__icon { background: var(--brand-accent-100); color: var(--brand-accent-700); border-color: rgba(245,158,11,.24); }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature p { font-size: var(--fs-sm); color: var(--metal-600); }
.feature--card { padding: var(--sp-6); background: #fff; border: 1px solid var(--metal-200); border-radius: var(--radius-lg); }

/* ------------------------------------------------------- 6. BADGES/CHIPS */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--metal-100); color: var(--metal-600);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.6;
  border: 1px solid var(--metal-200);
}
.badge--navy  { background: var(--brand-primary-100); color: var(--brand-primary); border-color: rgba(15,43,91,.12); }
.badge--amber { background: var(--brand-accent-100); color: var(--brand-accent-700); border-color: rgba(245,158,11,.28); }
.badge--dark  { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }

/* ---------------------------------------------------------- 7. NAV / TOP */
.topbar { background: var(--brand-primary-700); color: rgba(255,255,255,.78); font-size: var(--fs-xs); }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--brand-accent); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--metal-200);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-navy); color: #fff; font-weight: 800; font-size: 17px;
  letter-spacing: -.04em; box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.brand__text { line-height: 1.1; }
.brand__name { display: block; font-weight: 800; font-size: 17px; color: var(--brand-primary); letter-spacing: -.02em; }
.brand__sub  { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--metal-500); }

.nav-link { position: relative; display: inline-flex; align-items: center; height: var(--header-h); padding-inline: 2px; font-size: var(--fs-sm); font-weight: 600; color: var(--metal-700); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px;
  border-radius: 2px; background: var(--brand-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav-link:hover { color: var(--brand-primary); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--brand-primary); font-weight: 700; }

.mobile-panel { border-top: 1px solid var(--metal-200); background: #fff; max-height: 0; overflow: hidden; transition: max-height 340ms var(--ease); }
.mobile-panel.is-open { max-height: 680px; overflow-y: auto; }
.mobile-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--metal-100); font-weight: 600; color: var(--metal-800); }
.mobile-link[aria-current="page"] { color: var(--brand-accent-600); }

.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--metal-200); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--brand-primary); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  padding: 6px; background: #fff; border: 1px solid var(--metal-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--dur) var(--ease); z-index: 80;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--metal-700);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--metal-100); color: var(--brand-primary); }
.lang-menu button[aria-checked="true"] { background: var(--brand-primary-100); color: var(--brand-primary); }

/* ------------------------------------------------------------- 8. FORMS */
.field { margin-bottom: var(--sp-5); }
.label { display: block; margin-bottom: 7px; font-size: var(--fs-sm); font-weight: 600; color: var(--metal-800); }
.label .req { color: #DC2626; margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; font-size: var(--fs-sm); color: var(--metal-900);
  background: #fff; border: 1.5px solid var(--metal-300); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--metal-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-primary-400); box-shadow: 0 0 0 3px rgba(62,107,176,.16);
}
.textarea { min-height: 132px; resize: vertical; }
.select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #DC2626; background: #FEF2F2; }
.error-msg { display: none; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: #DC2626; }
.error-msg.is-shown { display: block; }
.form-note { font-size: var(--fs-xs); color: var(--metal-500); }
.form-status { display: none; margin-top: var(--sp-4); padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.form-status.is-shown { display: block; }
.form-status--ok  { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-status--err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--metal-600); }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand-primary); }

/* ------------------------------------------------------------- 9. TABLES */
.table-wrap { overflow-x: auto; border: 1px solid var(--metal-200); border-radius: var(--radius); }
.table-spec { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 460px; }
.table-spec caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--brand-primary); background: var(--metal-50); }
.table-spec th, .table-spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--metal-200); vertical-align: top; }
.table-spec thead th { background: var(--brand-primary); color: #fff; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.table-spec tbody th { width: 38%; font-weight: 600; color: var(--metal-800); background: var(--metal-50); }
.table-spec tbody tr:last-child th, .table-spec tbody tr:last-child td { border-bottom: 0; }
.table-spec tbody tr:hover td, .table-spec tbody tr:hover th { background: var(--brand-primary-050); }

/* ------------------------------------------------- 10. SPECIFIC SECTIONS */
.hero { position: relative; overflow: hidden; background: var(--brand-primary-700); color: rgba(255,255,255,.85); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,20,44,.94) 0%, rgba(10,30,64,.80) 46%, rgba(15,43,91,.42) 100%); }
.hero__inner { position: relative; padding-block: clamp(64px, 11vw, 132px); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.80); max-width: 560px; }
.hero-stat { border-left: 3px solid var(--brand-accent); padding-left: 14px; }
.hero-stat__num { display: block; font-size: var(--fs-3xl); font-weight: 800; color: #fff; line-height: 1; }
.hero-stat__label { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }

.page-banner { position: relative; background: var(--grad-navy); color: rgba(255,255,255,.80); overflow: hidden; }
.page-banner__bg { position: absolute; inset: 0; }
.page-banner__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.page-banner__inner { position: relative; padding-block: clamp(48px, 7vw, 84px); }
.page-banner h1 { color: #fff; margin-bottom: var(--sp-3); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-xs); color: rgba(255,255,255,.66); list-style: none; }
.breadcrumb a { color: rgba(255,255,255,.86); }
.breadcrumb a:hover { color: var(--brand-accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }

.stat { text-align: center; padding: var(--sp-6) var(--sp-4); }
.stat__num { font-size: clamp(2rem, 4vw, var(--fs-4xl)); font-weight: 800; color: var(--brand-primary); line-height: 1; letter-spacing: -.02em; }
.stat__num sup { font-size: .5em; color: var(--brand-accent-600); top: -.7em; }
.stat__label { margin-top: 8px; font-size: var(--fs-sm); color: var(--metal-500); }
.section--navy .stat__num { color: #fff; }
.section--navy .stat__label { color: rgba(255,255,255,.62); }

.cert-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-5) var(--sp-8); }
.cert-item {
  display: flex; align-items: center; gap: 9px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px dashed var(--metal-300); background: #fff;
  font-size: var(--fs-sm); font-weight: 700; color: var(--metal-600);
  filter: grayscale(1); opacity: .82; transition: all var(--dur) var(--ease);
}
.cert-item:hover { filter: grayscale(0); opacity: 1; border-color: var(--brand-accent); color: var(--brand-primary); }
.cert-item svg { width: 22px; height: 22px; color: var(--brand-primary-600); }

.quote { position: relative; padding: var(--sp-6); height: 100%; background: #fff; border: 1px solid var(--metal-200); border-radius: var(--radius-lg); }
.quote::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-size: 76px; line-height: 1; color: var(--brand-primary-100); font-family: Georgia, serif; }
.quote__text { position: relative; font-size: var(--fs-base); color: var(--metal-700); }
.quote__stars { color: var(--brand-accent); letter-spacing: 2px; font-size: var(--fs-sm); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-metal); color: var(--brand-primary-700); font-weight: 800; font-size: var(--fs-sm); }

/* Steps / process */
.step { position: relative; padding-left: 62px; }
.step__num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-weight: 800; font-size: var(--fs-sm); }
.step h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.step p { font-size: var(--fs-sm); color: var(--metal-600); }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--metal-200); }
.timeline li { position: relative; padding-bottom: var(--sp-8); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-accent); }
.timeline__year { font-size: var(--fs-sm); font-weight: 800; color: var(--brand-accent-600); letter-spacing: .06em; }
.timeline h3 { font-size: var(--fs-lg); margin: 2px 0 4px; }
.timeline p { font-size: var(--fs-sm); color: var(--metal-600); margin: 0; }

/* Promo / CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--grad-navy); color: rgba(255,255,255,.82); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 620px; margin-bottom: 0; }

/* Filter sidebar */
.filter-group { border-bottom: 1px solid var(--metal-200); padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-group__title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 2px 0; border: 0; background: none; cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-primary); text-align: left; }
.filter-group__title svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.filter-group[data-collapsed="true"] .filter-group__title svg { transform: rotate(-90deg); }
.filter-group__body { margin-top: var(--sp-3); }
.filter-group[data-collapsed="true"] .filter-group__body { display: none; }
.check-line { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: var(--fs-sm); color: var(--metal-600); cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: var(--brand-primary); flex: none; }
.check-line:hover { color: var(--brand-primary); }
.check-line__count { margin-left: auto; font-size: var(--fs-xs); color: var(--metal-400); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--metal-300); background: #fff;
  font-size: var(--fs-xs); font-weight: 600; color: var(--metal-600); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--brand-primary-400); color: var(--brand-primary); }
.chip.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

.empty-state { text-align: center; padding: var(--sp-16) var(--sp-5); border: 1px dashed var(--metal-300); border-radius: var(--radius-lg); color: var(--metal-500); }

/* Capability gallery */
.capability-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.capability-card { grid-column: span 4; align-self: start; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--metal-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.capability-card--wide { grid-column: span 8; }
.capability-card__trigger { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--metal-100); cursor: zoom-in; }
.capability-card__trigger img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 420ms var(--ease); }
.capability-card--wide .capability-card__trigger img { aspect-ratio: 16 / 9; }
.capability-card__trigger:hover img { transform: scale(1.035); }
.capability-card__zoom { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: var(--radius-pill); background: rgba(10,30,64,.82); color: #fff; font-size: var(--fs-xs); font-weight: 700; backdrop-filter: blur(8px); }
.capability-card figcaption { display: grid; gap: 3px; padding: 15px 16px 17px; }
.capability-card figcaption span { color: var(--brand-accent-700); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.capability-card figcaption strong { color: var(--brand-primary); font-size: var(--fs-sm); line-height: 1.4; }
@media (max-width: 1024px) {
  .capability-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .capability-card, .capability-card--wide { grid-column: span 3; }
  .capability-card--wide { grid-column: span 6; }
}
@media (max-width: 640px) {
  .capability-card, .capability-card--wide { grid-column: span 6; }
}

/* Image lightbox */
.gallery-main img[data-lightbox-src] { cursor: zoom-in; }
.image-lightbox { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: clamp(16px, 4vw, 46px); background: rgba(4,11,27,.94); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease); }
.image-lightbox.is-open { opacity: 1; visibility: visible; }
.image-lightbox__panel { position: relative; display: grid; justify-items: center; gap: 12px; width: min(1180px, 96vw); max-height: 94vh; }
.image-lightbox__image { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-lg); background: var(--metal-100); box-shadow: 0 28px 70px rgba(0,0,0,.45); }
.image-lightbox__caption { max-width: 850px; margin: 0; color: rgba(255,255,255,.84); font-size: var(--fs-sm); line-height: 1.55; text-align: center; }
.image-lightbox__close, .image-lightbox__nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); background: rgba(8,20,44,.78); color: #fff; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.image-lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; }
.image-lightbox__nav { position: absolute; top: 50%; width: 48px; height: 58px; border-radius: var(--radius); font-size: 30px; line-height: 1; transform: translateY(-50%); }
.image-lightbox__nav--prev { left: 12px; }
.image-lightbox__nav--next { right: 12px; }
.image-lightbox__close:hover, .image-lightbox__nav:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-primary-700); }
.image-lightbox__close:hover { transform: rotate(4deg); }
.image-lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.image-lightbox__nav--next:hover { transform: translateY(-50%) translateX(2px); }
.image-lightbox__close[hidden], .image-lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) {
  .image-lightbox { padding: 12px; }
  .image-lightbox__image { max-height: 72vh; border-radius: var(--radius); }
  .image-lightbox__nav { width: 42px; height: 50px; }
  .image-lightbox__nav--prev { left: 4px; }
  .image-lightbox__nav--next { right: 4px; }
  .image-lightbox__close { top: 4px; right: 4px; }
}
/* Gallery */
.gallery-main { position: relative; border: 1px solid var(--metal-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--metal-50); }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gallery-thumbs[hidden] { display: none; }
.gallery-thumb { flex: 0 0 88px; width: 88px; padding: 0; border: 2px solid var(--metal-200); border-radius: var(--radius-sm); overflow: hidden; background: #fff; cursor: pointer; transition: border-color var(--dur) var(--ease); }
.gallery-thumb img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery-thumb:hover { border-color: var(--metal-400); }
.gallery-thumb.is-active { border-color: var(--brand-accent); }

.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }

/* Footer */
.site-footer { background: var(--brand-primary-700); color: rgba(255,255,255,.66); font-size: var(--fs-sm); }
.site-footer h3 { color: #fff; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--brand-accent); }
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.social-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.82); transition: all var(--dur) var(--ease); }
.social-btn:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-primary-700); }
.social-btn svg { width: 18px; height: 18px; }

/* Floating WhatsApp + back-to-top */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: #25D366; color: #0B3D22; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 700;
  box-shadow: 0 10px 26px rgba(37,211,102,.38);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-float:hover { transform: translateY(-3px); color: #0B3D22; box-shadow: 0 14px 32px rgba(37,211,102,.48); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

.to-top {
  position: fixed; right: 18px; bottom: 82px; z-index: 65;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--metal-200); border-radius: 50%;
  background: #fff; color: var(--brand-primary); box-shadow: var(--shadow-sm); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--sp-4); background: rgba(8,20,44,.62); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel { width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.99); transition: transform var(--dur) var(--ease); }
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__head { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--metal-200); }
.modal__body { padding: var(--sp-6); }
.modal__close { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--metal-400); cursor: pointer; }
.modal__close:hover { color: var(--metal-700); }

/* Accordion */
.acc { border: 1px solid var(--metal-200); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc + .acc { margin-top: 12px; }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: #fff; cursor: pointer; font-size: var(--fs-base); font-weight: 700; color: var(--brand-primary); text-align: left; }
.acc__btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.acc[open] .acc__btn svg { transform: rotate(180deg); }
.acc__panel { padding: 0 20px 18px; font-size: var(--fs-sm); color: var(--metal-600); }
details.acc > summary { list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }

/* Map placeholder */
.map-ph {
  position: relative; min-height: 360px; display: grid; place-items: center;
  border: 1px solid var(--metal-200); border-radius: var(--radius-lg); overflow: hidden;
  background-color: var(--metal-100);
  background-image: linear-gradient(var(--metal-200) 1px, transparent 1px), linear-gradient(90deg, var(--metal-200) 1px, transparent 1px);
  background-size: 42px 42px;
}
.map-ph__pin { display: grid; place-items: center; gap: 8px; text-align: center; color: var(--metal-500); }
.map-ph__pin svg { width: 40px; height: 40px; color: var(--brand-accent); }

/* Blog */
.post-card .card__media { aspect-ratio: 16 / 9; }
.post-tag { position: absolute; left: 12px; top: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: var(--fs-xs); color: var(--metal-500); }

/* Prose */
.prose-x { max-width: 760px; }
.prose-x h2 { margin-top: var(--sp-10); font-size: var(--fs-2xl); }
.prose-x h3 { margin-top: var(--sp-8); font-size: var(--fs-xl); }
.prose-x p, .prose-x li { color: var(--metal-600); }
.prose-x ul, .prose-x ol { margin: 0 0 var(--sp-5) 1.15rem; display: grid; gap: 8px; }
.prose-x ul { list-style: disc; }
.prose-x ol { list-style: decimal; }
.prose-x blockquote { margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--brand-accent); background: var(--metal-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--metal-700); }

/* ------------------------------------------------------- 11. UTILITIES */
.text-navy { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-accent-600) !important; }
.text-muted { color: var(--metal-500) !important; }
.bg-metal { background: var(--metal-50) !important; }
.bg-wash { background: var(--brand-primary-050) !important; }
.bg-navy { background: var(--grad-navy) !important; }
.radius-lg { border-radius: var(--radius-lg); }
.shadow-card { box-shadow: var(--shadow-sm); }
.border-metal { border: 1px solid var(--metal-200); }
.mb-0 { margin-bottom: 0 !important; }
.mb-6 { margin-bottom: var(--sp-6) !important; }
.mb-8 { margin-bottom: var(--sp-8) !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.text-center { text-align: center !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider-metal { height: 1px; background: linear-gradient(90deg, transparent, var(--metal-300), transparent); }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- 12. PRINT */
@media print {
  .site-header, .topbar, .wa-float, .to-top, .site-footer, .modal, .image-lightbox { display: none !important; }
  .hero, .page-banner { background: #fff !important; color: #000 !important; }
  .hero h1, .page-banner h1 { color: #000 !important; }
}

/* --------------------------------------------------------------------------
   Overflow guard (2026-10-11): a grid/flex child defaults to min-width:auto,
   so any wide child (e.g. .table-spec with min-width:460px) forces the whole
   page to scroll horizontally on small screens. Allowing children to shrink
   keeps the table scrolling inside its own .table-wrap instead.
   -------------------------------------------------------------------------- */
.grid > *, .flex > * { min-width: 0; }
