/* ==========================================================================
   TINOKA Industrial Technologies – tinoka.biz
   Theme tokens: dark (mặc định, theo brand) và light ([data-theme="light"])
   ========================================================================== */

:root {
  /* Brand */
  --gold: #E0B445;
  --gold-deep: #C9A227;
  --navy: #071A33;
  --navy-2: #0D2A52;
  --navy-3: #16325E;

  /* Dark theme (default) */
  --bg: #071A33;
  --bg-alt: #0D2A52;
  --bg-footer: #04111F;
  --surface: #0D2A52;          /* card trên nền --bg */
  --surface-alt: #071A33;      /* card trên nền --bg-alt */
  --surface-chip: #16325E;
  --text: #FFFFFF;
  --text-soft: #D6DEEA;
  --text-muted: #C9D4E4;
  --text-faint: #A3B3CA;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --accent: #E0B445;           /* fill (nút, marker) */
  --accent-text: #E0B445;      /* chữ màu accent cỡ nhỏ (≥4.5:1) */
  --accent-display: #E0B445;   /* chữ màu accent cỡ lớn/đậm (≥3:1) */
  --accent-soft: rgba(224, 180, 69, 0.45);
  --on-accent: #071A33;
  --header-bg: rgba(7, 26, 51, 0.94);
  --input-bg: #0D2A52;
  --hero-text-shadow: 0 2px 20px rgba(7, 26, 51, 0.85);
  --hero-img-opacity: 0.9;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Be Vietnam Pro', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: 24px;
}

[data-theme="light"] {
  --bg: #F5F7FA;
  --bg-alt: #FFFFFF;
  --bg-footer: #071A33;
  --surface: #FFFFFF;
  --surface-alt: #F5F7FA;
  --surface-chip: #E8EEF6;
  --text: #0B1A33;
  --text-soft: #24344F;
  --text-muted: #3F4F68;
  --text-faint: #5E6E86;
  --border: rgba(7, 26, 51, 0.12);
  --border-soft: rgba(7, 26, 51, 0.08);
  --accent: #D9A92F;
  --accent-text: #8A6508;
  --accent-display: #A67C0C;
  --accent-soft: rgba(217, 169, 47, 0.5);
  --on-accent: #071A33;
  --header-bg: rgba(245, 247, 250, 0.94);
  --input-bg: #FFFFFF;
  --hero-text-shadow: none;
  --hero-img-opacity: 1;
  --shadow: 0 10px 30px rgba(7, 26, 51, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* Logo theo theme */
.brand-logo--light { display: none; }
[data-theme="light"] .brand-logo--dark { display: none; }
[data-theme="light"] .brand-logo--light { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--gold-deep); color: var(--on-accent); }
.btn--ghost { border-color: rgba(255,255,255,0.4); background: rgba(7,26,51,0.55); color: #FFFFFF; font-weight: 600; }
.btn--ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
[data-theme="light"] .btn--ghost { border-color: rgba(7,26,51,0.3); background: rgba(255,255,255,0.7); color: var(--navy); }
[data-theme="light"] .btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--outline { border-color: var(--accent); color: var(--accent-text); background: transparent; }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.site-nav > a { color: var(--text-soft); text-decoration: none; padding: 10px 0; }
.site-nav > a:hover { color: var(--accent-text); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--accent-soft); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0 80px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.section-head--row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.section-head .section-head--row { gap: 8px 14px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: 0.02em; }
.section-title--upper { text-transform: uppercase; }
.section-title--md { font-size: 26px; }
.section-en { font-size: 13px; font-style: italic; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.section-en--indent { padding-left: 36px; margin-top: -8px; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow-mark { display: inline-block; width: 22px; height: 12px; background: var(--accent); transform: skewX(-24deg); flex: 0 0 auto; }
.eyebrow .eyebrow-mark { width: 18px; height: 10px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.section--alt .card { background: var(--surface-alt); }
.card--media { overflow: hidden; display: flex; flex-direction: column; }
.card--media > img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-body > p { font-size: 15px; color: var(--text-muted); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-icon { flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.card--pad { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.hero-bg {
  position: absolute; top: 0; right: 0; width: 60%; min-width: 560px; height: 100%; object-fit: cover; object-position: right center;
  opacity: var(--hero-img-opacity);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
  mask-image: linear-gradient(to right, transparent, #000 40%);
}
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.hero-title {
  max-width: 760px; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(36px, 5vw, 66px); line-height: 1.05; letter-spacing: -0.01em; color: var(--accent-display); text-shadow: var(--hero-text-shadow);
}
.hero-sub { max-width: 620px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.4; text-shadow: var(--hero-text-shadow); }
.hero-lead { max-width: 600px; font-size: 17px; line-height: 1.65; color: var(--text-muted); text-shadow: var(--hero-text-shadow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 8px 14px; border-radius: 4px; background: var(--surface-chip); border: 1px solid var(--border); font-size: 13px; font-weight: 500; }
[data-theme="light"] .hero-sub { color: var(--text); }
[data-theme="light"] .hero-bg { -webkit-mask-image: linear-gradient(to right, transparent, #000 55%); mask-image: linear-gradient(to right, transparent, #000 55%); }

/* ---------- Pillars ---------- */
.pillar-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; color: var(--accent-display); }
.pillar-sub { display: block; font-size: 14px; font-weight: 500; }

/* ---------- Products / services ---------- */
.block { display: flex; flex-direction: column; gap: 24px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.block-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; color: var(--accent-text); }
.block-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.block-en { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.tile-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-chip); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.bullets { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.bullets li { display: flex; gap: 10px; }
.bullets li::before { content: ""; flex: 0 0 auto; margin-top: 9px; width: 6px; height: 6px; background: var(--accent); }

.feature { border-top: 2px solid var(--accent-soft); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.feature--first { border-top-color: var(--accent); }
.feature > p { font-size: 14px; color: var(--text-muted); }
.feature-tags { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--accent-text); }
.step .card-title { font-size: 16px; }
.step > p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 28px;
  border-radius: var(--radius); border: 1px solid var(--accent); background: var(--surface-alt);
}
.callout > div { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.callout-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.callout p { font-size: 15px; color: var(--text-soft); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px 64px; align-items: start; }
.about-meaning { display: flex; flex-direction: column; gap: 8px; }
.about-meaning .section-head { margin-bottom: 8px; }
.letters { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.letters > div { display: flex; align-items: center; gap: 16px; }
.letters dt {
  flex: 0 0 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent-text);
}
.letters dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 16px; }
.letters dd strong { font-weight: 700; min-width: 140px; }
.letters dd span { color: var(--text-muted); }
.about-vm { display: flex; flex-direction: column; gap: 20px; }
.vm { padding: 28px; }
.vm > p { font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.vm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.round-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.vm-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.vm-en { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); border-left: 1px solid var(--border); padding-left: 14px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.value { padding: 28px 18px; align-items: center; gap: 10px; text-align: center; }
.value-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.value-en { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; color: var(--accent-text); }
.value-vi { font-size: 15px; font-weight: 600; }
.value-desc { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Tagline band ---------- */
.tagline { position: relative; overflow: hidden; background: var(--bg); }
.tagline-globe {
  position: absolute; right: 0; top: 0; height: 100%; width: 46%; max-width: 620px; object-fit: cover; object-position: center; opacity: 0.55;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent);
}
[data-theme="light"] .tagline-globe { opacity: 0.3; }
.tagline-en { color: var(--accent-display); }
.tagline-inner { position: relative; padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.tagline-logo { width: 260px; max-width: 100%; }
.tagline-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; border-left: 2px solid var(--accent); padding-left: 24px; }
.tagline-en { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; }
.tagline-vi { font-size: 17px; font-style: italic; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .section-lead { max-width: 520px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; margin-top: 8px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }
.contact-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.contact-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

.contact-form { padding: 32px; gap: 16px; max-width: 600px; }
.form-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.field label span { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-size: 15px;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #E5484D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--text-soft); }
.form-status.is-ok { color: #4CC38A; }
.form-status.is-err { color: #FF8A8A; }
[data-theme="light"] .form-status.is-ok { color: #1B7F4B; }
[data-theme="light"] .form-status.is-err { color: #C62828; }
.form-note { font-size: 12px; line-height: 1.5; color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.08); margin-top: auto; }
.site-footer .container { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: 220px; }
.footer-brand p { font-size: 14px; color: #A3B3CA; max-width: 380px; }
/* Footer luôn navy ở cả 2 theme → dùng logo bản tối */
[data-theme="light"] .site-footer .brand-logo--dark { display: block; }
[data-theme="light"] .site-footer .brand-logo--light { display: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.footer-nav > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-heading { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.footer-nav a { color: #D6DEEA; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: #A3B3CA; }
.footer-slogan { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about, .contact { grid-template-columns: 1fr; }
  .contact-form { max-width: none; }
}

@media (max-width: 900px) {
  .site-nav > a:hover { color: var(--accent-text); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--border-soft); font-size: 16px; }
  .nav-actions { margin: 16px 0 0; justify-content: space-between; }
  .nav-actions .btn { flex: 1; }
  .grid--3 { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-bg { width: 100%; min-width: 0; opacity: 0.45; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%); mask-image: linear-gradient(to bottom, transparent, #000 50%); }
  [data-theme="light"] .hero-bg { opacity: 0.3; }
  .section { padding: 64px 0 56px; }
}

@media (max-width: 640px) {
  .grid--4, .steps, .values, .form-row { grid-template-columns: 1fr; }
  .section-head--row { align-items: flex-start; }
  .section-en--indent { padding-left: 0; }
  .letters dd strong { min-width: 0; }
  .tagline-logo { width: 200px; }
  .tagline-text { border-left: none; padding-left: 0; }
  .callout { padding: 20px; }
  .callout .btn { width: 100%; }
  .brand-logo { height: 36px; }
  .eyebrow { letter-spacing: 0.14em; font-size: 11px; }
}
