/* =========================================================
   TƯ VẤN THUẾ 247 – style.css
   Đổi màu thương hiệu tại các biến --brand / --accent bên dưới
   ========================================================= */
:root {
  --brand: #0f4c81;        /* xanh chủ đạo */
  --brand-dark: #0a3459;
  --brand-soft: #e8f0f8;
  --accent: #e8a33d;       /* vàng nhấn */
  --text: #1c2733;
  --muted: #5b6b7c;
  --line: #dfe6ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 76, 129, .10);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15,76,129,.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: .02em; }
.brand-text b { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a:not(.btn) { color: var(--text); font-weight: 500; }
.nav-menu a:not(.btn):hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(232,163,61,.18), transparent 60%),
    linear-gradient(180deg, var(--brand-soft), #fff);
  padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--brand); margin-bottom: 12px;
}
.hl { color: var(--brand); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: .96rem; }
.hero-points li::before { content: "✓"; color: #1a9b5c; font-weight: 800; margin-right: 8px; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 24px; background: #fff; border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.hero-badge b { display: block; color: var(--brand); }
.hero-badge span { font-size: .88rem; color: var(--muted); }

.hero-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border: 1px solid var(--line);
  margin-top: 48px;
}
.stat { background: var(--bg-alt); border-radius: 12px; padding: 18px; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
.hero-card-note { grid-column: 1 / -1; margin: 0; font-size: .78rem; color: var(--muted); }

/* ---------- Section chung ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* ---------- Thẻ dịch vụ ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card { overflow: hidden; }
.card-img {
  width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px;
  height: auto; aspect-ratio: 16 / 9; object-fit: cover;
}
.card-img + .card-icon { margin-top: -46px; position: relative; background: #fff; box-shadow: var(--shadow); }
.card-accent { border-top: 4px solid var(--accent); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230f4c81' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.mini-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.mini-services span {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem; font-weight: 500;
}

/* ---------- Hoàn thuế ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sub { margin-top: 0; }
.split .ticks + .sub { margin-top: 28px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px 20px 76px; min-height: 84px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

.callout {
  margin-top: 40px; background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.callout p { margin: 0; font-size: 1.08rem; }
.callout .btn-primary { background: var(--accent); color: #1c2733; box-shadow: none; }
.callout .btn-primary:hover { background: #f0b252; }

/* ---------- Về chúng tôi ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.posters a { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.posters a:hover { transform: translateY(-3px); }
.posters img { width: 100%; height: auto; }
.num-list { list-style: none; counter-reset: n; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.num-list li {
  counter-increment: n; position: relative; padding: 12px 16px 12px 62px;
  background: var(--bg-alt); border-radius: 12px; min-height: 52px;
}
.num-list li::before {
  content: "0" counter(n); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 800; font-size: .9rem; display: grid; place-items: center;
}
.num-list b { margin-right: 4px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values span {
  border: 1.5px solid var(--accent); color: #8a5a10; background: #fff8ec;
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem;
}
.values span::before { content: "✓ "; }

/* ---------- Hình ảnh làm việc ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px;
}
.gallery figure {
  position: relative; margin: 0; overflow: hidden; border-radius: 14px; cursor: zoom-in;
  background: var(--line); box-shadow: 0 6px 18px rgba(15, 76, 129, .08);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px;
  color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.35;
  background: linear-gradient(transparent, rgba(5, 25, 45, .82));
  transform: translateY(4px); transition: transform .3s;
}
.gallery figure:hover figcaption { transform: none; }
.g-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.g-2 { grid-column: 3; grid-row: 1 / 3; }
.g-3 { grid-column: 4; grid-row: 1; }
.g-4 { grid-column: 4; grid-row: 2; }
.g-5 { grid-column: 1; grid-row: 3 / 5; }
.g-6 { grid-column: 2; grid-row: 3; }
.g-7 { grid-column: 2; grid-row: 4; }
.g-8 { grid-column: 3 / 5; grid-row: 3 / 5; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 25, .92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 500; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Bảng giá ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price .ticks { flex: 1; margin-bottom: 24px; }
.price-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1c2733; font-weight: 700; font-size: .8rem;
  padding: 4px 14px; border-radius: 999px;
}
.amount { color: var(--muted); margin-bottom: 18px; }
.amount b { font-size: 1.9rem; color: var(--text); font-weight: 800; }
.amount small { font-size: .95rem; }
.fineprint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 20px; }

/* ---------- Vì sao chọn ---------- */
.section-dark { background: var(--brand-dark); color: #fff; }
.section-photo {
  background:
    linear-gradient(rgba(10, 52, 89, .92), rgba(10, 52, 89, .86)),
    url("images/lam-viec-nhom.jpg") center / cover no-repeat;
}
.section-dark .eyebrow { color: var(--accent); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; }
.why b { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.why span { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.contact-list li { border-left: 3px solid var(--accent); padding-left: 14px; }
.contact-list span { display: block; font-size: .85rem; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-list a.map-link { font-size: .9rem; }

.form { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 30px; display: grid; gap: 16px; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,76,129,.15);
}
.form .invalid { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1d2e; color: rgba(255,255,255,.75); padding: 56px 0 24px; font-size: .95rem; }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text b { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.footer-grid a:hover { color: #fff; }
.footer-grid b { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* ---------- Nút nổi ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 12px; z-index: 60; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.fab:hover { text-decoration: none; transform: scale(1.06); }
.fab-zalo { background: #0068ff; }
.fab-call { background: #1a9b5c; animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26,155,92,.5); }
  70% { box-shadow: 0 0 0 14px rgba(26,155,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,155,92,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { grid-template-columns: 1fr 1fr; }
  .hero-badge { left: 12px; }
  .cards, .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .why { grid-template-columns: 1fr 1fr; }
  .pricing { gap: 30px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .gallery figure { grid-column: auto; grid-row: auto; }
  .gallery .g-1, .gallery .g-8 { grid-column: 1 / 3; grid-row: span 2; }
  .gallery .g-2, .gallery .g-5 { grid-row: span 2; }
  .gallery figcaption { font-size: .82rem; padding: 28px 10px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }

  .hero { padding: 48px 0 56px; }
  .section { padding: 60px 0; }
  .why, .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 22px; }
  .callout .btn { width: 100%; }
  .form { padding: 22px; }
  .hero-card { padding: 18px; gap: 12px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
