/* ==========================================================================
   TT IMEX — ttimex.vn
   Màu, font theo TTT Brand Guideline 2026
   ========================================================================== */

/* ---------- Font (tự host, Google Fonts OFL) ---------- */
/* vietnamese */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-400-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
/* latin-ext */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
/* latin */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* vietnamese */
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-500-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
/* latin-ext */
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
/* latin */
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* vietnamese */
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-700-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
/* latin-ext */
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
/* latin */
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* vietnamese */
@font-face{font-family:'Genos';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/genos-var-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
/* latin-ext */
@font-face{font-family:'Genos';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/genos-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
/* latin */
@font-face{font-family:'Genos';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/genos-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- Biến màu / khoảng cách ---------- */
:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --red: #dd0000;
  --yellow: #ffce00;
  --gold: #c9a24b;
  --gold-text: #8f6f24;      /* gold đậm hơn để đủ tương phản khi làm chữ nhỏ */
  --silver: #b8bcc2;

  --bg: #ffffff;
  --bg-soft: #f5f4f1;
  --text: #0b0b0b;
  --text-muted: #55575b;
  --line: #e4e3df;

  --font-head: "Genos", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 4px;
  --header-h: 72px;
}

/* ---------- Reset gọn ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Họa tiết thương hiệu ---------- */
/* Vạch 3 màu đen – đỏ – vàng dưới tiêu đề */
.tricolor {
  display: block; width: 54px; height: 4px; margin-top: 18px;
  background: linear-gradient(90deg, var(--black) 0 33.3%, var(--red) 33.3% 66.6%, var(--yellow) 66.6%);
}
/* Góc chéo 3 màu (như namecard / letterhead) */
.corner {
  position: absolute; right: 0; bottom: 0; pointer-events: none;
  width: clamp(140px, 22vw, 300px); aspect-ratio: 1;
  background: linear-gradient(135deg,
    transparent 0 58%, var(--black) 58% 72%, var(--red) 72% 86%, var(--yellow) 86%);
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1.5px solid var(--black);
  border-radius: var(--radius); font: 600 15px/1 var(--font-body);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- Tiêu đề section ---------- */
.eyebrow {
  display: block; font: 600 13px/1.4 var(--font-body);
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 14px;
}
.section { padding-block: var(--section); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
.section-head p { margin-top: 20px; color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px 0; }
.brand img { width: 57px; height: 40px; }
.brand span { font: 700 26px/1 var(--font-head); letter-spacing: .06em; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--black); font-size: 18px; cursor: pointer;
}
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav-list a:not(.btn) {
  font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; position: relative;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--red); transition: right .2s;
}
.nav-list a:not(.btn):hover::after { right: 0; }
.nav-list .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(80px, 12vw, 150px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 { font-size: clamp(64px, 11vw, 132px); font-weight: 800; letter-spacing: .04em; line-height: .95; }
.hero .company { margin-top: 18px; font: 600 clamp(15px, 1.6vw, 18px)/1.45 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.hero .lead { margin-top: 24px; max-width: 540px; font-size: clamp(18px, 1.8vw, 21px); color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-logo { justify-self: center; width: min(100%, 420px); padding: clamp(28px, 4vw, 48px); }
.hero-logo img { width: 100%; height: auto; }

/* ---------- Giới thiệu ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p + p { margin-top: 18px; }
.about-text p { color: var(--text-muted); }
.about-text strong { color: var(--text); font-weight: 600; }
.customers { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.customers h3 { font: 600 13px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.customers ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.customers li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 15px; background: var(--white);
}
.customers i { color: var(--gold-text); }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--white); padding: clamp(22px, 3vw, 32px); }
.value i { font-size: 22px; color: var(--black); }
.value h3 { margin-top: 18px; font-size: 26px; font-weight: 700; }
.value p { margin-top: 8px; font-size: 15px; color: var(--text-muted); }
.value:nth-child(2) i { color: var(--red); }
.value:nth-child(3) i { color: var(--gold); }

/* ---------- Thương hiệu ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.brand-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; display: flex; flex-direction: column;
}
.brand-card::before {
  content: ""; position: absolute; left: 24px; top: 0; width: 32px; height: 3px; background: var(--black);
}
.brand-card h3 { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.brand-card ul { margin-top: 16px; display: grid; gap: 6px; }
.brand-card li { position: relative; padding-left: 16px; font-size: 15px; color: var(--text-muted); line-height: 1.45; }
.brand-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.todo {
  display: inline-block; padding: 2px 8px; border: 1px dashed var(--red); color: var(--red);
  font: 600 12px/1.6 var(--font-body); letter-spacing: .06em; border-radius: 3px;
}
.brand-note { margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--text-muted); }

.gallery { margin-top: clamp(40px, 6vw, 64px); }
.gallery h3 { font: 600 13px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(140px, 17vw, 210px); gap: 12px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .g-wide { grid-row: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }

/* ---------- Năng lực / Quy trình ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 32px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font: 700 15px/1 var(--font-head); letter-spacing: .1em; color: var(--gold-text); }
.step i { display: block; margin-top: 22px; font-size: 26px; }
.step h3 { margin-top: 18px; font-size: 26px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

/* ---------- Liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); padding-bottom: clamp(90px, 10vw, 120px); }
.contact-card .company-name { font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--font-head); letter-spacing: .02em; }
.contact-card .company-en { margin-top: 6px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.contact-list { margin-top: 26px; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.contact-list i { margin-top: 5px; color: var(--gold-text); text-align: center; }
.contact-list .label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact-actions .btn { min-height: 44px; padding: 0 18px; font-size: 13px; }
.contact-card .corner { width: clamp(90px, 12vw, 140px); }

.map-box {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.map-box::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-placeholder { position: relative; padding: 32px; max-width: 360px; }
.map-placeholder > i { font-size: 40px; color: var(--red); }
.map-placeholder p { margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.map-placeholder .btn { margin-top: 20px; }
.map-placeholder small { display: block; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--black) 0 33.3%, var(--red) 33.3% 66.6%, var(--yellow) 66.6%) 1; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 36px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 57px; height: 40px; }
.footer-brand strong { display: block; font: 700 17px/1.3 var(--font-body); letter-spacing: .02em; }
.footer-brand span { display: block; font-size: 14px; color: var(--text-muted); }
.footer-meta { font-size: 14px; color: var(--text-muted); text-align: right; }
.footer-meta p + p { margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-list a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-list .btn { margin-top: 16px; width: 100%; min-height: 48px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(70%, 280px); padding: 0; justify-self: start; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-grid .g-wide { grid-column: span 2; grid-row: span 1; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 46px; height: 32px; }
  .brand span { font-size: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 4px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 0; }
  .gallery-grid { grid-auto-rows: 150px; }
  .contact-actions .btn { flex: 1 1 calc(50% - 10px); }
  .hero { padding-bottom: 130px; }
  .hero > .corner { width: 110px; }
  .map-box { min-height: 320px; }
}
