/* ===== Thành Nhân NT – giao diện chính ===== */
:root{
  --navy:#0B2239; --navy-deep:#071827; --amber:#F2A541; --amber-text:#B5651D;
  --ink:#0B2239; --muted:#51627A; --line:#E4E8EE; --soft:#F4F6F9; --tint:#EAF0F7;
  --radius:14px; --wrap:1240px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:#fff;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-decoration:none}
a:hover{color:#1d4f80}
h1,h2,h3{line-height:1.2;margin:0;font-weight:800}
p{margin:0}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.tn-wrap{max-width:var(--wrap);margin:0 auto;padding-left:24px;padding-right:24px}
.tn-skip{position:absolute;left:-9999px;top:0;background:var(--amber);color:var(--navy);padding:12px 16px;z-index:100;font-weight:700}
.tn-skip:focus{left:12px;top:12px}

/* Buttons */
.tn-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:15px;padding:12px 20px;border-radius:8px;min-height:44px;border:1.5px solid transparent;cursor:pointer;font-family:inherit;text-align:center;transition:filter .15s}
.tn-btn:hover{filter:brightness(.95)}
.tn-btn--amber{background:var(--amber);color:var(--navy)}
.tn-btn--amber:hover{color:var(--navy)}
.tn-btn--navy{background:var(--navy);color:#fff}
.tn-btn--navy:hover{color:#fff}
.tn-btn--ghost{border-color:#fff;color:#fff;font-weight:600}
.tn-btn--ghost:hover{color:#fff;background:rgba(255,255,255,.08)}
.tn-btn--line{border-color:#C7D0DB;color:var(--navy);background:#fff}
.tn-btn--lg{padding:16px 26px;font-size:16px}
.tn-btn--sm{padding:9px 14px;font-size:14px;min-height:40px}
.tn-btn--block{width:100%;padding:16px;font-size:16px}
.tn-btns{display:flex;flex-wrap:wrap;gap:12px}
.tn-link{font-weight:700;border-bottom:2px solid var(--amber);padding-bottom:4px}

/* Top bar & header */
.tn-topbar{background:var(--navy-deep);color:#C9D4E0;font-size:13px}
.tn-topbar a{color:#C9D4E0}
.tn-topbar__in{display:flex;flex-wrap:wrap;gap:6px 28px;justify-content:space-between;padding-top:9px;padding-bottom:9px}
.tn-topbar__right{display:flex;flex-wrap:wrap;gap:6px 24px}
.tn-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.admin-bar .tn-header{top:32px}
.tn-header__in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px;flex-wrap:wrap}
.tn-brand{display:flex;align-items:center;gap:12px}
.tn-brand__logo{max-height:52px;width:auto}
.tn-brand__mark{width:44px;height:44px;border-radius:10px;background:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}
.tn-brand__text{display:flex;flex-direction:column;line-height:1.15}
.tn-brand__text strong{font-size:20px;font-weight:800;letter-spacing:.5px}
.tn-brand__text small{font-size:12px;color:var(--muted)}
.tn-nav{display:flex;align-items:center;gap:28px}
.tn-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 26px;font-weight:600;font-size:15px}
.tn-menu a{display:block;padding:8px 0}
.tn-menu .current-menu-item>a,.tn-menu .current_page_item>a{color:var(--amber-text)}
.tn-menu .sub-menu{display:none}
.tn-nav-toggle{position:absolute;opacity:0;pointer-events:none}
.tn-burger{display:none;width:44px;height:44px;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:var(--navy)}

/* Hero */
.tn-hero{background:var(--navy);color:#fff}
.tn-hero__in{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding-top:72px;padding-bottom:72px}
.tn-hero__text{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.tn-hero__text h1{font-size:clamp(32px,4.2vw,48px);line-height:1.15}
.tn-hero__sub{font-size:18px;color:#C9D4E0;max-width:560px}
.tn-hero__media{flex:1 1 420px;min-width:0}
.tn-hero__media img{width:100%;height:460px;object-fit:cover;border-radius:16px}
.tn-badge{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:rgba(242,165,65,.14);border:1px solid rgba(242,165,65,.5);color:#F7C27A;padding:8px 14px;border-radius:999px;font-size:14px;font-weight:600}

/* Trust strip */
.tn-trust{background:var(--soft);border-bottom:1px solid var(--line)}
.tn-trust__in{display:flex;flex-wrap:wrap;gap:20px;padding-top:28px;padding-bottom:28px}
.tn-trust__in>div{flex:1 1 220px;display:flex;flex-direction:column;gap:2px}
.tn-trust strong{font-size:17px}
.tn-trust span{font-size:14px;color:var(--muted)}

/* Sections */
.tn-section{padding-top:88px;padding-bottom:88px}
.tn-section--tight{padding-top:40px;padding-bottom:72px}
.tn-band{background:var(--soft)}
.tn-dark{background:var(--navy);color:#fff}
.tn-head{display:flex;flex-direction:column;gap:12px;max-width:720px;margin-bottom:40px}
.tn-head h2,.tn-h2{font-size:clamp(28px,3vw,36px)}
.tn-h2{margin-bottom:28px}
.tn-head p{font-size:17px;color:var(--muted)}
.tn-head--row{max-width:none;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px}
.tn-head--row>div{display:flex;flex-direction:column;gap:12px;max-width:680px}
.tn-eyebrow{font-size:14px;font-weight:700;color:var(--amber-text);letter-spacing:1px;text-transform:uppercase}
.tn-eyebrow--light{color:#F7C27A}
.tn-empty{color:var(--muted);padding:24px 0}

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

/* Solutions */
.tn-solution{border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:14px;background:#fff;transition:border-color .15s,box-shadow .15s}
.tn-solution:hover{border-color:#C7D0DB;box-shadow:0 8px 24px rgba(11,34,57,.08);color:var(--navy)}
.tn-solution__icon{width:48px;height:48px;border-radius:10px;background:var(--tint);display:flex;align-items:center;justify-content:center}
.tn-solution h3{font-size:20px;font-weight:700}
.tn-solution p{font-size:15px;color:var(--muted)}
.tn-solution__items{font-size:14px;font-weight:600;margin-top:auto}

/* Cards */
.tn-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s}
a.tn-card:hover{box-shadow:0 10px 28px rgba(11,34,57,.10);color:var(--navy)}
.tn-card__img{width:100%;aspect-ratio:4/3;object-fit:cover}
.tn-card__img--contain{object-fit:contain;background:#fff;padding:16px}
.tn-card__imgwrap{display:block;border-bottom:1px solid var(--line)}
.tn-card__noimg{display:flex;aspect-ratio:4/3;align-items:center;justify-content:center;background:var(--soft);color:var(--muted);font-size:14px}
.tn-card__body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.tn-card__title{font-size:18px;font-weight:700;line-height:1.35}
.tn-card__text{font-size:14px;color:var(--muted)}
.tn-card__meta{font-size:13px;color:var(--muted);margin-top:auto;padding-top:10px;border-top:1px solid #EEF1F5}
.tn-card--product .tn-btn{margin-top:auto;align-self:flex-start}
.tn-tag{align-self:flex-start;font-size:12px;font-weight:700;background:var(--tint);padding:4px 10px;border-radius:6px;text-transform:uppercase;letter-spacing:.3px}

/* About */
.tn-about{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.tn-about__media{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:16px}
.tn-about__img1{width:100%;height:330px;object-fit:cover;border-radius:var(--radius)}
.tn-about__img2{width:100%;height:220px;object-fit:cover;object-position:center 40%;border-radius:var(--radius)}
.tn-about__text{flex:1 1 440px;min-width:0;display:flex;flex-direction:column;gap:20px}
.tn-about__text h2{font-size:clamp(26px,3vw,34px);line-height:1.25}
.tn-about__text p{font-size:17px;line-height:1.7;color:#C9D4E0}
.tn-stats{display:flex;flex-wrap:wrap;gap:16px}
.tn-stats>div{flex:1 1 160px;border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:18px}
.tn-stats strong{display:block;font-size:28px;color:#F7C27A}
.tn-stats span{font-size:14px;color:#C9D4E0}

/* Steps */
.tn-steps{list-style:none;margin:0;padding:0}
.tn-steps li{display:flex;flex-direction:column;gap:10px;border-top:3px solid var(--amber);padding-top:20px}
.tn-steps span{font-size:14px;font-weight:700;color:var(--muted);text-transform:uppercase}
.tn-steps strong{font-size:20px}
.tn-steps p{font-size:15px;color:var(--muted)}

/* Contact */
.tn-contact{display:flex;flex-wrap:wrap;gap:48px}
.tn-contact__text{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;gap:16px}
.tn-contact__text h2{font-size:clamp(28px,3vw,36px)}
.tn-contact__text p{color:var(--muted);font-size:16px}
.tn-contact__phone{font-size:26px;font-weight:800}
.tn-form{flex:1 1 460px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;display:flex;flex-direction:column;gap:16px}
.tn-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.tn-form input,.tn-form select,.tn-form textarea{font:inherit;font-weight:400;font-size:16px;padding:13px 14px;border:1px solid #C7D0DB;border-radius:8px;background:#fff;color:var(--ink);width:100%}
.tn-form input:focus,.tn-form select:focus,.tn-form textarea:focus{border-color:var(--navy);outline:2px solid rgba(11,34,57,.15)}
.tn-req{color:#B42318}
.tn-hp{position:absolute!important;left:-9999px!important;height:0;overflow:hidden}
.tn-form__msg{padding:12px 14px;border-radius:8px;font-size:15px;font-weight:600}
.tn-form__msg--ok{background:#E7F6EC;color:#14532D}
.tn-form__msg--err{background:#FDECEA;color:#8A1C12}

/* Page head, chips, CTA */
.tn-pagehead{background:var(--navy);color:#fff}
.tn-pagehead .tn-wrap{padding-top:52px;padding-bottom:52px;display:flex;flex-direction:column;gap:14px}
.tn-pagehead h1{font-size:clamp(30px,4vw,44px);line-height:1.15}
.tn-pagehead p{color:#C9D4E0;font-size:17px;max-width:680px}
.tn-crumbs{font-size:14px;color:#C9D4E0}
.tn-crumbs a{color:#C9D4E0}
.tn-crumbs a:hover{color:#fff}
.tn-crumbs--dark,.tn-crumbs--dark a{color:var(--muted)}
.tn-facts{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 40px}
.tn-facts li{display:flex;flex-direction:column;font-weight:600}
.tn-facts span{font-size:13px;font-weight:400;color:#C9D4E0}
.tn-chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}
.tn-chip{font-size:15px;font-weight:600;padding:10px 18px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;border:1px solid #C7D0DB;background:#fff}
.tn-chip.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
.tn-cta{margin-top:48px;background:var(--soft);border-radius:16px;padding:32px;display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between}
.tn-band .tn-cta{background:#fff}
.tn-cta__text{display:flex;flex-direction:column;gap:6px;flex:1 1 420px}
.tn-cta__text strong{font-size:22px}
.tn-cta__text span{color:var(--muted)}
.tn-cta__btns{display:flex;flex-wrap:wrap;gap:12px}
.tn-pager{margin-top:36px}
.tn-pager .nav-links{display:flex;flex-wrap:wrap;gap:8px}
.tn-pager .page-numbers{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid #C7D0DB;border-radius:8px;font-weight:600}
.tn-pager .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}

/* Article / product content */
.tn-article{max-width:920px}
.tn-article__cover{margin:0 0 32px}
.tn-article__cover img{width:100%;max-height:640px;object-fit:cover;border-radius:var(--radius)}
.tn-content{font-size:17px;line-height:1.75}
.tn-content>*+*{margin-top:1.1em}
.tn-content h2{font-size:28px;margin-top:1.6em}
.tn-content h3{font-size:22px;margin-top:1.4em}
.tn-content img{border-radius:10px}
.tn-content .wp-block-gallery{gap:12px}
.tn-content a{color:#1d4f80;text-decoration:underline}
.tn-product{display:flex;flex-wrap:wrap;gap:40px;margin:24px 0 48px}
.tn-product__img{flex:1 1 420px;min-width:0;border:1px solid var(--line);border-radius:var(--radius);padding:24px;background:#fff}
.tn-product__img img{width:100%;max-height:480px;object-fit:contain}
.tn-product__info{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;gap:20px}
.tn-product__info h1{font-size:clamp(26px,3vw,36px)}
.tn-product__lead{font-size:17px;color:var(--muted)}
.tn-note{font-size:14px;color:var(--muted)}
.tn-404{text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}
.tn-404 h1{font-size:40px}

/* Footer */
.tn-footer{background:var(--navy-deep);color:#9FB0C3;font-size:14px;padding-bottom:80px}
.tn-footer a{color:#C9D4E0}
.tn-footer a:hover{color:#fff}
.tn-footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;padding-top:56px;padding-bottom:32px}
.tn-footer__grid p{margin-top:6px}
.tn-footer__name,.tn-footer__head{display:block;color:#fff;font-size:16px;margin-bottom:8px}
.tn-footer__menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tn-footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:20px;padding-bottom:12px;font-size:13px}

/* Floating call / Zalo */
.tn-float{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;gap:10px;z-index:60}
.tn-float__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;min-width:52px;padding:0 18px;border-radius:999px;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.tn-float__btn--call{background:var(--amber);color:var(--navy)}
.tn-float__btn--call:hover{color:var(--navy)}
.tn-float__btn--zalo{background:#0068FF;color:#fff}
.tn-float__btn--zalo:hover{color:#fff}

/* Responsive */
@media (max-width:1024px){
  .tn-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tn-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .tn-burger{display:inline-flex}
  .tn-nav{display:none;width:100%;flex-direction:column;align-items:stretch;gap:12px;padding:8px 0 4px}
  .tn-nav-toggle:checked~.tn-nav{display:flex}
  .tn-menu{flex-direction:column;gap:0}
  .tn-menu a{padding:12px 0;border-bottom:1px solid var(--line)}
  .tn-header__call{width:100%}
  .tn-topbar__in>span:first-child{display:none}
}
@media (max-width:782px){.admin-bar .tn-header{top:46px}}
@media (max-width:640px){
  .tn-section{padding-top:56px;padding-bottom:56px}
  .tn-hero__in{padding-top:44px;padding-bottom:44px;gap:32px}
  .tn-hero__media img{height:300px}
  .tn-grid--3,.tn-grid--4{grid-template-columns:minmax(0,1fr)}
  .tn-footer__grid{grid-template-columns:minmax(0,1fr)}
  .tn-form{padding:22px}
  .tn-about__img1{height:240px}
  .tn-about__img2{height:180px}
  .tn-btns .tn-btn{flex:1 1 100%}
}
