/* ==========================================================================
   Site UI v2 — lớp giao diện mới cho toàn bộ frontend.
   Màu lấy từ biến theme (--primary-color…) nên đổi theme trong admin vẫn có tác dụng.
   Mục lục: base · buttons · header · hero · sections · cards · footer · utilities · responsive
   ========================================================================== */
:root {
    --ink: var(--dark-color, #0f172a); --ink-2: var(--text-color, #334155); --muted: color-mix(in srgb, var(--text-muted, #64748b) 70%, var(--dark-color, #0f172a)); --line: var(--border-color, #e5e9f0); --bg-soft: var(--light-color, #f6f8fb);
    --footer-bg: color-mix(in srgb, var(--dark-color, #0f172a) 88%, black);
    --radius-s: 8px; --radius-m: 14px; --radius-l: 22px;
    --shadow-s: 0 1px 2px color-mix(in srgb, var(--dark-color, #0f172a) 5%, transparent), 0 2px 8px color-mix(in srgb, var(--dark-color, #0f172a) 5%, transparent);
    --shadow-m: 0 8px 28px color-mix(in srgb, var(--dark-color, #0f172a) 10%, transparent);
    --shadow-l: 0 18px 50px color-mix(in srgb, var(--dark-color, #0f172a) 16%, transparent);
    --container: 1240px;
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-primary, 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif); font-size: 16px; line-height: 1.65; color: var(--ink-2); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-secondary, var(--font-primary, inherit)); color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.container { max-width: var(--container); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-color) 55%, #fff); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 3000; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Tiện ích Bootstrap theo màu theme */
.text-primary { color: var(--primary-color) !important; } .bg-primary { background-color: var(--primary-color) !important; } .badge.bg-primary { color: #fff; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.35rem; transition: transform .18s var(--ease), box-shadow .18s, background .18s, color .18s, border-color .18s; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.02rem; }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color) 28%, transparent); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-primary { color: var(--primary-color); border: 2px solid var(--primary-color); background: transparent; }
.btn-outline-primary:hover { background: var(--primary-color); color: #fff; }
.btn-light-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-light-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Top bar + Header ---------- */
.top-bar { background: var(--dark-color, #0f172a) !important; color: var(--border-color, #cbd5e1); font-size: .82rem; padding: .4rem 0; }
.top-bar a { color: color-mix(in srgb, #fff 85%, var(--dark-color, #0f172a)); } .top-bar a:hover { color: #fff; }
.top-bar .top-contact span { margin-right: 1.25rem; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px color-mix(in srgb, var(--dark-color, #0f172a) 8%, transparent); }
.site-header__bar { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 190px; overflow: hidden; white-space: nowrap; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { height: 48px; width: auto; max-width: 170px; object-fit: contain; font-size: .8rem; line-height: 1.1; overflow: hidden; }
.primary-nav { display: flex; align-items: center; gap: .15rem; margin: 0 auto 0 .5rem; padding: 0; list-style: none; }
.primary-nav > li { position: relative; }
.primary-nav > li > a, .primary-nav > li > button { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border: 0; background: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: var(--radius-s); cursor: pointer; transition: color .15s, background .15s; }
.primary-nav > li > a:hover, .primary-nav > li > button:hover, .primary-nav > li.is-active > a, .primary-nav > li.is-active > button { color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 8%, transparent); }
.has-mega > button i { font-size: .65rem; transition: transform .2s; }
.has-mega:hover > button i, .has-mega:focus-within > button i { transform: rotate(180deg); }
.mega { position: absolute; left: 50%; top: 100%; translate: -35% 0; width: min(880px, 92vw); padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-l); display: none; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.75rem; z-index: 5; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega { display: grid; animation: megaIn .18s var(--ease); }
.has-mega::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
@keyframes megaIn { from { opacity: 0; translate: -35% 6px; } to { opacity: 1; translate: -35% 0; } }
.mega h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.mega h3 a { color: inherit; } .mega h3 a:hover { color: var(--primary-color); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: .28rem 0; color: var(--ink-2); font-size: .92rem; } .mega li a:hover { color: var(--primary-color); padding-left: .25rem; }
.mega-all { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; }

.header-search { position: relative; width: 230px; }
.header-search input { width: 100%; height: 42px; padding: 0 2.6rem 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); font-size: .9rem; transition: border-color .15s, box-shadow .15s, background .15s, width .2s; }
.header-search input:focus { outline: 0; background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 14%, transparent); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--primary-color); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-link { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); border: 0; background: transparent; font-size: 1.05rem; transition: background .15s, color .15s; }
.icon-link:hover { background: color-mix(in srgb, var(--primary-color) 10%, transparent); color: var(--primary-color); }
.icon-link .badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; line-height: 19px; border-radius: 999px; background: var(--primary-color); color: #fff; font-size: .68rem; font-weight: 700; }
.header-cta { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; background: var(--primary-color); color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.header-cta:hover { background: var(--primary-dark); color: #fff; }
.mobile-search { display: none; padding: .6rem 0 .8rem; border-top: 1px solid var(--line); background: #fff; }
.mobile-search.show { display: block; }
.mobile-search form { position: relative; } .mobile-search input { width: 100%; height: 44px; padding: 0 3rem 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.mobile-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--primary-color); color: #fff; }

/* Drawer mobile */
.drawer { width: min(86vw, 360px) !important; }
.drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.drawer-nav { list-style: none; margin: 0; padding: .5rem 0; }
.drawer-nav > li > a, .drawer-nav summary { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] > summary { color: var(--primary-color); } .drawer-nav details[open] summary i { transform: rotate(180deg); }
.drawer-nav .sub { padding: 0 1.25rem 1rem 2rem; } .drawer-nav .sub a { display: block; padding: .4rem 0; color: var(--ink-2); font-size: .93rem; } .drawer-nav .sub .sub-title { margin-top: .5rem; font-weight: 600; color: var(--ink); }
.drawer-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark-color, #0f172a); color: #fff; isolation: isolate; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; aspect-ratio: 16 / 6.2; min-height: 420px; max-height: 640px; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; margin: 0; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { background: linear-gradient(120deg, var(--primary-dark), var(--primary-color) 55%, var(--secondary-color, var(--primary-color))); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--dark-color, #0f172a) 82%, transparent) 0%, color-mix(in srgb, var(--dark-color, #0f172a) 52%, transparent) 46%, color-mix(in srgb, var(--dark-color, #0f172a) 8%, transparent) 100%); pointer-events: none; }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-bottom: 56px; pointer-events: none; }
.hero-content .container { pointer-events: none; } .hero-copy { max-width: 640px; pointer-events: auto; }
.hero .eyebrow { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; backdrop-filter: blur(4px); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 800; margin: 0 0 1rem; text-wrap: balance; }
.hero p.lead { color: color-mix(in srgb, #fff 85%, var(--dark-color, #0f172a)); font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 1.75rem; max-width: 56ch; }
.hero-copy { text-align: left; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-ctrl { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: color-mix(in srgb, var(--dark-color, #0f172a) 35%, transparent); color: #fff; backdrop-filter: blur(4px); transition: background .15s; }
.hero-ctrl:hover { background: rgba(255,255,255,.9); color: var(--ink); } .hero-prev { left: 18px; } .hero-next { right: 18px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 66px; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); transition: width .25s var(--ease), background .2s; }
.hero-dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .eyebrow-text { color: var(--primary-color); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; display: block; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 60ch; }
.link-arrow { font-weight: 600; color: var(--primary-color); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.link-arrow i { transition: transform .2s var(--ease); } .link-arrow:hover i { transform: translateX(4px); }

/* Trust bar */
.trust { position: relative; z-index: 4; margin-top: -48px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-m); border: 1px solid var(--line); overflow: hidden; }
.trust-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 10%, #fff); }
.trust-item h3 { font-size: 1rem; margin: 0 0 .15rem; font-weight: 700; } .trust-item p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.cat-tile { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.cat-tile i.cat-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); }
.cat-tile small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.cat-tile .go { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--primary-color) 40%, var(--line)); color: var(--ink); }
.cat-tile:hover .go { color: var(--primary-color); transform: translateX(3px); }

/* Product card (dùng chung mọi trang) */
.product-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: none; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
.product-card .product-image { position: relative; aspect-ratio: 1 / 1; background: var(--light-color, #f4f6fa); overflow: hidden; }
.product-card .product-image a { display: block; width: 100%; height: 100%; }
.product-card .product-image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .4s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card .product-badge { position: absolute; top: .7rem; left: .7rem; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--success-color); z-index: 2; }
.product-card .product-badge.sale { left: auto; right: .7rem; background: var(--danger-color); }
.product-card .product-overlay { display: none; }
.product-card .product-info { padding: 1rem 1.1rem .5rem; flex: 1; }
.product-card .product-category { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-color); margin-bottom: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .product-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-card .product-title a { color: var(--ink); } .product-card .product-title a:hover { color: var(--primary-color); }
.product-card .product-price { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.product-card .current-price { font-size: 1.1rem; font-weight: 800; color: var(--primary-color); }
.product-card .old-price { color: var(--muted); font-size: .85rem; text-decoration: line-through; }
.product-card .product-footer { padding: .6rem 1.1rem 1.1rem; }
.product-card .add-to-cart-btn { width: 100%; }

/* Service + project + process */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.svc-card { padding: 1.75rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); transition: transform .22s var(--ease), box-shadow .22s; height: 100%; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.svc-card .ico { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); margin-bottom: 1.1rem; }
.svc-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; } .svc-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; color: inherit; transition: transform .22s var(--ease), box-shadow .22s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); color: inherit; }
.proj-card .thumb { aspect-ratio: 4 / 3; background: var(--light-color, #eef1f6); overflow: hidden; } .proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); } .proj-card:hover .thumb img { transform: scale(1.06); }
.proj-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.proj-card h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 .45rem; } .proj-card p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; } .proj-card .link-arrow { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 3.2rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: 2.4rem; font-weight: 800; color: color-mix(in srgb, var(--primary-color) 25%, #fff); line-height: 1; }
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; } .step p { margin: 0; color: var(--muted); font-size: .92rem; }
.brands { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; } .brands span { padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .85rem; color: var(--ink-2); }

/* CTA banner */
.cta { position: relative; border-radius: var(--radius-l); overflow: hidden; padding: clamp(2rem, 5vw, 3.75rem); color: #fff; background: linear-gradient(120deg, var(--primary-dark), var(--primary-color)); isolation: isolate; }
.cta.has-bg { background-size: cover; background-position: center; }
.cta h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: .6rem; } .cta p { color: rgba(255,255,255,.88); max-width: 56ch; margin-bottom: 1.5rem; }
.cta .btn-light { color: var(--primary-dark); font-weight: 700; }

/* Newsletter (ghi đè kiểu cũ trong swoo.css: input không viền, nút định vị tuyệt đối) */
.newsletter-section { background: var(--bg-soft); }
.newsletter-section h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: .5rem; }
.newsletter-section p { color: var(--muted); }
.newsletter-section .newsletter-form { position: static; display: flex; align-items: stretch; gap: .6rem; max-width: 580px; margin: 1.5rem auto 0 !important; }
.newsletter-section .newsletter-form input { flex: 1; min-width: 0; height: 52px; margin: 0 !important; padding: 0 1.35rem; border: 1.5px solid color-mix(in srgb, var(--border-color, #b8c2d1) 65%, var(--text-muted, #64748b)); border-radius: 999px; background: #fff; color: var(--ink); font-size: 1rem; box-shadow: 0 1px 3px color-mix(in srgb, var(--dark-color, #0f172a) 6%, transparent); transition: border-color .15s, box-shadow .15s; }
.newsletter-section .newsletter-form input::placeholder { color: var(--text-muted, #5f6b7d); opacity: 1; }
.newsletter-section .newsletter-form input:focus { outline: 0; border-color: var(--primary-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 16%, transparent); }
.newsletter-section .newsletter-form button { position: static; height: 52px; padding: 0 2rem; border: 0; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.footer-news .newsletter-form { position: static; }
.footer-news .newsletter-form input { padding-right: 1rem; }
.footer-news .newsletter-form button { position: static; border-radius: 999px; height: 44px; }
@media (max-width: 479.98px) { .newsletter-section .newsletter-form { flex-direction: column; } .newsletter-section .newsletter-form button { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: color-mix(in srgb, #fff 62%, var(--dark-color, #0f172a)); padding: 4rem 0 0; }
.site-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; }
.site-footer a { color: color-mix(in srgb, #fff 62%, var(--dark-color, #0f172a)); } .site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: .55rem; font-size: .93rem; }
.footer-brand img { height: auto; max-height: 64px; width: auto; max-width: 190px; object-fit: contain; background: #fff; padding: .5rem .9rem; border-radius: 12px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; line-height: 1.7; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); color: #fff; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--primary-color); transform: translateY(-2px); }
.footer-contact li { display: flex; gap: .7rem; } .footer-contact i { color: var(--primary-color); margin-top: .3rem; width: 16px; flex-shrink: 0; }
.footer-news .newsletter-form { display: flex; gap: .4rem; } .footer-news input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; padding: 0 1rem; }
.footer-news input::placeholder { color: color-mix(in srgb, #fff 45%, var(--dark-color, #0f172a)); } .footer-news input:focus { outline: 0; border-color: var(--primary-color); }
.footer-news button { height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--primary-color); color: #fff; font-weight: 600; }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Nút nổi + back to top ---------- */
.floating-contact-group { position: fixed; right: 16px; bottom: 84px; z-index: 1000; display: flex; flex-direction: column; gap: .6rem; }
.floating-contact-btn { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; box-shadow: var(--shadow-m); color: #fff; font-size: 1.2rem; transition: transform .2s var(--ease); }
.floating-contact-btn.phone-btn { background: var(--success-color); } .floating-contact-btn:hover { transform: scale(1.08); }
/* Hiệu ứng "nháy": vòng sóng lan ra + điện thoại rung chuông (tự tắt khi người dùng bật giảm chuyển động) */
.floating-contact-btn { position: relative; --pulse: var(--primary-color); }
.floating-contact-btn.zalo-btn { --pulse: #0068ff; } .floating-contact-btn.phone-btn { --pulse: var(--success-color); }
.floating-contact-btn::before, .floating-contact-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: fcPulse 2s ease-out infinite; }
.floating-contact-btn::after { animation-delay: 1s; }
.floating-contact-btn.phone-btn::before, .floating-contact-btn.phone-btn::after { animation-delay: .5s; } .floating-contact-btn.phone-btn::after { animation-delay: 1.5s; }
@keyframes fcPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 20px color-mix(in srgb, var(--pulse) 0%, transparent); } }
.floating-contact-btn.phone-btn i { display: inline-block; transform-origin: 50% 50%; animation: fcRing 2.6s ease-in-out infinite; }
@keyframes fcRing { 0%, 55%, 100% { transform: rotate(0); } 8% { transform: rotate(-18deg); } 16% { transform: rotate(16deg); } 24% { transform: rotate(-14deg); } 32% { transform: rotate(12deg); } 40% { transform: rotate(-8deg); } 48% { transform: rotate(4deg); } }
.floating-contact-btn:hover::before, .floating-contact-btn:hover::after, .floating-contact-btn.phone-btn:hover i { animation-play-state: paused; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-color); color: #fff; box-shadow: var(--shadow-m); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, visibility .25s, transform .25s var(--ease), background .2s, bottom .35s var(--ease); }
.back-to-top.active { opacity: 1; visibility: visible; transform: none; } .back-to-top:hover { background: var(--primary-dark); color: #fff; }

/* Popup tư vấn: ẩn sẵn (popup.css nạp bất đồng bộ) */
.consultation-popup { position: fixed; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; z-index: 9999; }
.consultation-popup.show { pointer-events: auto; }

/* ---------- Thông báo cookie ---------- */
.cookie-notice { position: fixed; z-index: 1090; left: 50%; bottom: 14px; width: min(1080px, calc(100% - 28px)); translate: -50% 0; display: flex; align-items: center; gap: 1.1rem; padding: .85rem 1.25rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #fff); background: color-mix(in srgb, var(--primary-color) 7%, var(--light-color, #fff)); box-shadow: 0 12px 34px color-mix(in srgb, var(--dark-color, #0f172a) 16%, transparent); opacity: 0; transform: translateY(20px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-visible { opacity: 1; transform: none; }
.cookie-body { flex: 1; min-width: 0; }
.cookie-body h2 { font-size: .98rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 .1rem; }
.cookie-body p { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.5; }
.cookie-body a { font-weight: 700; color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-accept { flex-shrink: 0; padding: .55rem 1.6rem; border: 0; border-radius: 999px; font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-dark) 30%, transparent); transition: transform .18s var(--ease), box-shadow .18s; }
.cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 9px 20px color-mix(in srgb, var(--primary-dark) 38%, transparent); }
.cookie-close { position: absolute; top: -11px; right: -5px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--danger-color); color: #fff; font-size: .85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(220,38,38,.4); transition: transform .18s var(--ease); }
.cookie-close:hover { transform: scale(1.1) rotate(90deg); }
/* Đẩy nút nổi lên khỏi banner */
.has-cookie-notice .floating-contact-group { bottom: 138px; } .has-cookie-notice .back-to-top { bottom: 78px; }
.floating-contact-group, .back-to-top { transition: bottom .35s var(--ease), opacity .3s; }
@media (max-width: 767.98px) {
    .cookie-notice { flex-direction: column; align-items: stretch; gap: .6rem; padding: .8rem .95rem .9rem; bottom: 10px; width: calc(100% - 20px); border-radius: 14px; }
    .cookie-body h2 { font-size: .95rem; padding-right: 1.6rem; } .cookie-body p { font-size: .82rem; }
    .cookie-accept { width: 100%; padding: .55rem 1rem; }
    .cookie-close { top: -10px; right: -2px; width: 30px; height: 30px; }
    .has-cookie-notice .floating-contact-group { bottom: 190px; } .has-cookie-notice .back-to-top { bottom: 130px; }
}

/* ---------- Reveal (chỉ khi có JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) { .header-search { width: 190px; } .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { .top-bar { display: none; } }
@media (max-width: 991.98px) {
    .site-header__bar { height: 62px; gap: .5rem; } .brand img { height: 40px; }
    .header-actions { margin-left: auto; }
    .trust { margin-top: -28px; } .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .proj-grid { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); }
    .hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; }
    .hero-track { position: absolute; inset: 0; aspect-ratio: auto; min-height: 0; max-height: none; height: 100%; }
    .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--dark-color, #0f172a) 30%, transparent), color-mix(in srgb, var(--dark-color, #0f172a) 86%, transparent) 62%); }
    .hero-content { position: relative; inset: auto; z-index: 2; padding: 3.5rem 0 4.75rem; }
    .hero-copy { max-width: 100%; }
    .hero-dots { bottom: 46px; }
    .hero-ctrl { display: none; }
}
@media (max-width: 575.98px) {
    body { font-size: 15.5px; }
    .trust-grid { grid-template-columns: 1fr; } .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.1rem; } .trust-item:last-child { border-bottom: 0; }
    .svc-grid, .proj-grid, .steps { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; } .cat-tile { padding: .85rem; gap: .6rem; font-size: .9rem; } .cat-tile i.cat-ico { flex-basis: 36px; height: 36px; } .cat-tile .go { display: none; }
    .section-head { margin-bottom: 1.25rem; } .hero-cta .btn { flex: 1 1 100%; }
    .product-card .product-footer { padding: .5rem .8rem .9rem; } .product-card .product-info { padding: .8rem .8rem .4rem; } .product-card .product-title { font-size: .92rem; }
    .floating-contact-group { right: 10px; bottom: 76px; } .floating-contact-btn { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } }

/* ---------- Mobile: vùng chạm tối thiểu ~44px + chữ ô nhập 16px (iOS không tự phóng to khi nhập) ---------- */
@media (max-width: 767.98px) {
    input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px !important; }
    .site-footer li a { display: inline-block; padding: .68rem 0; }
    .breadcrumb { align-items: center; row-gap: 0; }
    .breadcrumb-item { display: flex; align-items: center; min-height: 44px; }
    .breadcrumb-item a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
    .site-footer li { margin-bottom: 0; }
    .link-arrow { min-height: 44px; }
    .product-card .product-category { padding: .4rem 0; margin-bottom: 0; }
    .footer-bottom a { display: inline-block; padding: .68rem 0; }
    .icon-link { width: 44px; height: 44px; }
}
