/* =========================================================
   iSai Ecommerce - landing page
   Palette lock : navy + orange (1 accent, dùng cho toàn trang)
   Radius rule  : button = pill / card + media = 14px / input = 10px
   Theme lock   : light theme, navy dùng làm dải nhấn (hero, CTA, footer)
   ========================================================= */

:root {
  --navy:        #132743;
  --navy-2:      #1c3a63;
  --navy-soft:   #22406b;
  /* cam đậm: dùng cho chữ và nền nút trên nền sáng - tương phản 4.7:1 với chữ trắng */
  --accent:        #bb4d0c;
  --accent-dark:   #983e09;
  --accent-soft:   rgba(187, 77, 12, .10);
  /* cam sáng: CHỈ dùng trên nền navy, nơi nó đạt 5:1 */
  --accent-bright: #f26f21;

  --bg:        #ffffff;
  --bg-soft:   #f4f6fa;
  --border:    #e2e7ef;
  --text:      #37414f;
  --text-mute: #65707f;
  --on-navy:   #ced7e6;

  --r-card:  14px;
  --r-input: 10px;
  --r-pill:  999px;

  --shadow-sm: 0 4px 16px rgba(19, 39, 67, .06);
  --shadow:    0 14px 40px rgba(19, 39, 67, .10);
  --shadow-lg: 0 24px 70px rgba(19, 39, 67, .16);

  --container: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-input) 0;
}
.skip-link:focus { left: 0; }

/* ---------- section scaffolding ---------- */

.section       { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.section-lead  { color: var(--text-mute); max-width: 62ch; font-size: 16.5px; }
.section-head  { margin-bottom: 52px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn i { font-size: 18px; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(187, 77, 12, .30); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(187, 77, 12, .38); }

.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-2px); }

.btn--line { border-color: var(--border); color: var(--navy); background: #fff; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn:active { transform: translateY(0) scale(.985); }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px; color: var(--accent);
}
.link-more i { transition: transform .22s var(--ease); }
.link-more:hover i { transform: translateX(4px); }

/* =========================================================
   Topbar
   ========================================================= */

.topbar { background: var(--navy); color: var(--on-navy); font-size: 13.5px; }
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 26px; flex-wrap: wrap; padding-block: 9px;
}
.topbar-list { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-list li { display: inline-flex; align-items: center; gap: 7px; }
.topbar-list i { color: var(--accent-bright); font-size: 16px; }
.topbar a:hover { color: #fff; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(255, 255, 255, .08);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.topbar-social a:hover { background: var(--accent); color: #fff; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; height: 74px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  display: block; object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-name { font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -.02em; }
.logo-name span { color: var(--accent); }
.logo-tag { font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-weight: 600; font-size: 14.5px; color: var(--navy);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; }
.header-phone-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
}
.header-phone-text { line-height: 1.25; }
.header-phone-text small { display: block; font-size: 11px; color: var(--text-mute); }
.header-phone-text strong { font-size: 15px; color: var(--navy); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Hero - asymmetric split
   ========================================================= */

.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(19, 39, 67, .97) 42%, rgba(28, 58, 99, .93) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 84px 0 130px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute;
  top: -160px; right: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: rgba(242, 111, 33, .18);
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 16px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; margin-bottom: 22px;
}
.hero-eyebrow i { color: var(--accent-bright); font-size: 15px; }
.hero h1 {
  color: #fff; font-size: clamp(30px, 4.2vw, 47px);
  margin-bottom: 20px; letter-spacing: -.025em;
}
.hero h1 span { color: var(--accent-bright); }
.hero p { color: var(--on-navy); font-size: 17px; max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-content { max-width: 600px; }
.hero-visual  { position: relative; }
.hero-photo {
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, .12);
}
.hero-photo img { width: 100%; height: 420px; object-fit: cover; object-position: center; }
.hero-chip {
  position: absolute; left: -26px; bottom: -30px;
  background: #fff; color: var(--navy);
  border-radius: var(--r-card); padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 13px; max-width: 250px;
}
.hero-chip i { font-size: 30px; color: var(--accent); flex-shrink: 0; }
.hero-chip b { display: block; font-size: 15px; line-height: 1.3; }
.hero-chip small { color: var(--text-mute); font-size: 12.5px; }

/* =========================================================
   Stats - band overlapping the hero
   ========================================================= */

.stats { position: relative; z-index: 5; margin-top: -66px; }
.stats-grid {
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stat {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: 42px; font-weight: 800; color: var(--accent);
  line-height: 1; letter-spacing: -.03em;
}
.stat-label {
  margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--navy);
}

/* =========================================================
   About - media collage + copy
   ========================================================= */

.about-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding-bottom: 44px; padding-right: 40px; }
.about-media__main {
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow);
}
.about-media__main img { width: 100%; height: 430px; object-fit: cover; }
.about-media__sub {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border-radius: var(--r-card); overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow);
}
.about-media__sub img { width: 100%; height: 175px; object-fit: cover; }
.about-badge {
  position: absolute; left: -18px; top: 28px;
  background: var(--accent); color: #fff;
  border-radius: var(--r-card); padding: 14px 18px; line-height: 1.2;
  box-shadow: 0 14px 30px rgba(187, 77, 12, .35);
}
.about-badge b { display: block; font-size: 26px; font-weight: 800; }
.about-badge small { font-size: 12px; opacity: .92; }
.about-copy p { margin-bottom: 22px; font-size: 16.5px; }
.about-points { display: grid; gap: 14px; margin: 26px 0 30px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points i { color: var(--accent); font-size: 21px; flex-shrink: 0; margin-top: 2px; }
.about-points b { color: var(--navy); }

/* =========================================================
   Core values - sticky heading + hairline list
   ========================================================= */

.values-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.values-head { position: sticky; top: 118px; }
.values-list { display: grid; }
.value-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--border);
}
.value-row:first-child { border-top: 0; padding-top: 0; }
.value-icon {
  width: 60px; height: 60px; border-radius: var(--r-card);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 27px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.value-row:hover .value-icon { background: var(--accent); color: #fff; }
.value-row h3 { font-size: 20px; margin-bottom: 8px; }
.value-row p { color: var(--text-mute); }

/* =========================================================
   Services - asymmetric bento
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.svc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 30px 28px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-icon {
  width: 54px; height: 54px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 20px;
}
.svc h3 { font-size: 19px; margin-bottom: 10px; }
.svc p { color: var(--text-mute); font-size: 15px; }

/* feature cell : image + navy overlay, spans 2 columns */
.svc--wide { grid-column: span 2; }

.svc--feature {
  grid-column: span 2; padding: 0; border: 0; overflow: hidden;
  position: relative; color: #fff; min-height: 290px;
  display: flex; align-items: flex-end;
}
.svc--feature img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.svc--feature:hover img { transform: scale(1.05); }
.svc--feature::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(19, 39, 67, .94) 12%, rgba(19, 39, 67, .35) 65%, rgba(19, 39, 67, .12));
}
.svc--feature .svc-body { position: relative; z-index: 2; padding: 32px 30px; }
.svc--feature h3 { color: #fff; font-size: 22px; }
.svc--feature p { color: var(--on-navy); max-width: 48ch; }
.svc--feature .svc-icon { background: rgba(255, 255, 255, .14); color: #fff; }

/* tinted cell */
.svc--tint { background: var(--navy); border-color: transparent; }
.svc--tint h3 { color: #fff; }
.svc--tint p { color: var(--on-navy); }
.svc--tint .svc-icon { background: rgba(255, 255, 255, .12); color: var(--accent-bright); }

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  background: linear-gradient(115deg, var(--navy) 45%, var(--navy-2));
  color: #fff; text-align: center; padding: 74px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; left: -80px; bottom: -160px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(242, 111, 33, .14);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(25px, 3.2vw, 34px); margin-bottom: 14px; }
.cta-band p { color: var(--on-navy); max-width: 60ch; margin: 0 auto 30px; }

/* =========================================================
   Works gallery
   ========================================================= */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 18px;
}
.work {
  border-radius: var(--r-card); overflow: hidden; position: relative;
  background: var(--bg-soft);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* =========================================================
   Team
   ========================================================= */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.member-photo { position: relative; overflow: hidden; }
.member-photo img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-body { padding: 24px 24px 28px; }
.member-body h3 { font-size: 18px; margin-bottom: 8px; }
.member-body p { color: var(--text-mute); font-size: 14.5px; }

/* =========================================================
   Testimonials
   ========================================================= */

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  background: #fff; border-radius: var(--r-card); padding: 30px 28px 26px;
  border: 1px solid var(--border); display: flex; flex-direction: column;
  position: relative;
}
.review::before {
  content: '\201C';
  position: absolute; top: 6px; right: 24px;
  font-size: 84px; line-height: 1; color: var(--accent-soft);
  font-family: Georgia, serif;
}
.review-stars { color: #f5a623; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.review h3 { font-size: 17.5px; margin-bottom: 10px; position: relative; z-index: 2; }
.review p { color: var(--text-mute); font-size: 15px; flex: 1; position: relative; z-index: 2; }
.review-by {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
}
.review-by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-by span { font-size: 13.5px; color: var(--text-mute); line-height: 1.4; }

/* =========================================================
   Partners
   ========================================================= */

.partners { padding: 58px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.partner-groups { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.partner-group { padding: 0 30px; }
.partner-group + .partner-group { border-left: 1px solid var(--border); }
.partner-group h3 {
  text-align: center; margin-bottom: 22px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute);
}

.partners-note {
  max-width: 68ch; margin: 34px auto 0;
  text-align: center; font-size: 13px; color: var(--text-mute);
}

.partners-row {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
}
.partners-row a, .partners-row span {
  /* flex + max-height tính bằng px: hàng grid tự co làm phần trăm chiều cao bị bỏ qua */
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  width: 190px; height: 92px; padding: 16px 22px;
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partners-row a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partners-row img {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 56px;
  object-fit: contain;
}

/* =========================================================
   FAQ accordion
   ========================================================= */

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item.is-open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; text-align: left;
  font-weight: 600; font-size: 16.5px; color: var(--navy);
}
.faq-q i { color: var(--accent); font-size: 22px; flex-shrink: 0; transition: transform .28s var(--ease); }
.faq-item.is-open .faq-q i { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--text-mute); }

/* =========================================================
   Contact
   ========================================================= */

.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }

.contact-cards { display: grid; gap: 16px; margin-bottom: 30px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 20px 22px;
}
.contact-card i {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 21px;
}
.contact-card h3 { font-size: 15px; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--text-mute); font-size: 14.5px; }
.contact-card a:hover { color: var(--accent); }

.hours { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 22px; }
.hours h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.hours h3 i { color: var(--accent); font-size: 20px; }
.hours dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; font-size: 14.5px; }
.hours dt { color: var(--text-mute); }
.hours dd { color: var(--navy); font-weight: 600; }
.hours .is-closed { color: var(--accent); }

.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--border); border-radius: var(--r-input);
  padding: 12px 14px; font-size: 15px; background: #fff; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .help { font-size: 12.5px; color: var(--text-mute); }
.field .err { font-size: 13px; color: #c0392b; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field.has-error .err { display: block; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-mute); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent); font-weight: 600; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note {
  display: none; border-radius: var(--r-input); padding: 14px 16px;
  font-size: 14.5px; margin-bottom: 20px;
}
.form-note.is-ok  { display: block; background: #eaf7ef; color: #1c6b3a; border: 1px solid #bfe4cd; }
.form-note.is-bad { display: block; background: #fdeceb; color: #a5352a; border: 1px solid #f3c8c4; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Footer
   ========================================================= */

.site-footer { background: var(--navy); color: var(--on-navy); padding: 68px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; gap: 48px;
  padding-bottom: 48px;
}
.site-footer h3 {
  color: #fff; font-size: 16px; margin-bottom: 20px;
  position: relative; padding-bottom: 12px;
}
.site-footer h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background: var(--accent-bright); border-radius: 2px;
}
.site-footer p, .site-footer li { font-size: 14.5px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tag { color: var(--on-navy); }
.footer-meta { margin-top: 16px; font-size: 13.5px; opacity: .85; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-links a:hover { color: var(--accent-bright); padding-left: 5px; }
.footer-contact { display: grid; gap: 15px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--accent-bright); font-size: 19px; flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 17px;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .11);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 26px; flex-wrap: wrap; font-size: 13.5px;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent-bright); }

/* floating quick actions */
.quick-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; gap: 10px;
}
.quick-call a {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  background: var(--accent); box-shadow: 0 10px 26px rgba(187, 77, 12, .42);
  transition: transform .22s var(--ease);
}
.quick-call a.is-top { background: var(--navy); box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.quick-call a.is-top.is-visible { opacity: 1; pointer-events: auto; }
.quick-call a:hover { transform: translateY(-3px) scale(1.04); }

/* =========================================================
   Reveal on scroll  (MOTION_INTENSITY 4)
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); }
  .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .main-nav a { padding: 9px 11px; font-size: 14px; }
  .header-phone { display: none; }
}

@media (max-width: 960px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 10px 16px 18px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 15.5px; }
  .site-header { position: sticky; }
  .site-header .container { position: relative; }
  .header-cta .btn { display: none; }

  .hero { padding: 62px 0 110px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo img { height: 300px; }
  .hero-chip { left: 12px; bottom: -24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }

  .about-wrap { grid-template-columns: 1fr; gap: 52px; }
  .about-media { padding-right: 30px; }
  .about-media__main img { height: 340px; }

  .values-wrap { grid-template-columns: 1fr; gap: 34px; }
  .values-head { position: static; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc--wide, .svc--feature { grid-column: span 2; }

  .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .work:nth-child(1) { grid-column: span 1; grid-row: span 1; }

  .team-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 760px) {
  .partner-groups { grid-template-columns: 1fr; }
  .partner-group { padding: 0; }
  .partner-group + .partner-group {
    border-left: 0; border-top: 1px solid var(--border);
    margin-top: 30px; padding-top: 30px;
  }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }

  .topbar .container { justify-content: center; text-align: center; }
  .topbar-list { gap: 8px 18px; justify-content: center; font-size: 12.5px; }

  .hero { padding: 48px 0 96px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photo img { height: 230px; }
  .hero-chip { position: static; margin-top: 20px; max-width: none; }

  .stats { margin-top: -56px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px 18px; }
  .stat:last-child { border-bottom: 0; }
  .stat-num { font-size: 36px; }

  .about-media { padding-right: 0; padding-bottom: 0; }
  .about-media__sub { display: none; }
  .about-badge { left: 12px; top: 12px; }

  .value-row { grid-template-columns: 1fr; gap: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .svc--wide, .svc--feature { grid-column: span 1; }
  .svc--feature { min-height: 250px; }

  .works-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work:nth-child(1) { grid-column: span 1; grid-row: span 1; }

  .team-grid, .reviews-grid { grid-template-columns: 1fr; }

  .partners-row a, .partners-row span { width: calc(50% - 11px); height: 78px; padding: 14px 16px; }
  .partners-row img { max-height: 46px; }

  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   Bảng giá dịch vụ
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.pricing {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  background: var(--navy); color: #fff;
  padding: 15px 22px; text-align: left;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.price-table thead th:last-child { text-align: right; }
.price-table tbody tr + tr { border-top: 1px solid var(--border); }
.price-table tbody tr { transition: background .2s var(--ease); }
.price-table tbody tr:hover { background: var(--bg-soft); }
.price-table th[scope="row"] {
  width: 30%; padding: 20px 22px; text-align: left; vertical-align: top;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.price-table .p-name { display: flex; gap: 13px; align-items: flex-start; }
.price-table .p-name i { color: var(--accent); font-size: 23px; flex-shrink: 0; margin-top: 1px; }

/* hai dòng không tính theo đơn giá cố định */
.p-tag {
  display: inline-block; padding: 7px 15px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--bg-soft); color: var(--navy); border: 1px solid var(--border);
}
.p-tag--free { background: var(--accent); color: #fff; border-color: transparent; }
.price-table tr.is-included,
.price-table tr.is-included:hover { background: var(--accent-soft); }
.price-table .p-scope {
  padding: 20px 22px; vertical-align: top;
  color: var(--text-mute); font-size: 15px;
}
.price-table .p-price {
  width: 1%; padding: 20px 22px; text-align: right;
  vertical-align: top; white-space: nowrap;
}
.price-table .p-price b {
  display: block; color: var(--accent);
  font-size: 19px; font-weight: 800; letter-spacing: -.01em;
}
.price-table .p-price small { color: var(--text-mute); font-size: 12.5px; }

.price-note {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 22px; color: var(--text-mute); font-size: 14.5px;
  max-width: 78ch;
}
.price-note i { color: var(--accent); font-size: 20px; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 760px) {
  /* bảng đổi thành từng thẻ xếp dọc cho dễ đọc trên điện thoại */
  .pricing { background: none; border: 0; box-shadow: none; overflow: visible; }
  .price-table, .price-table tbody, .price-table tr,
  .price-table th, .price-table td { display: block; width: auto; }
  .price-table thead { position: absolute; left: -9999px; }
  .price-table tbody tr {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-card); padding: 20px; margin-bottom: 14px;
  }
  .price-table tbody tr + tr { border-top: 1px solid var(--border); }
  .price-table tbody tr:hover { background: #fff; }
  .price-table th[scope="row"] { width: auto; padding: 0 0 9px; font-size: 17px; }
  .price-table .p-scope { padding: 0 0 14px; }
  .price-table .p-price {
    width: auto; padding: 13px 0 0; text-align: left;
    border-top: 1px solid var(--border);
    display: flex; align-items: baseline; gap: 8px;
  }
  .price-table .p-price b { font-size: 22px; }
}

/* =========================================================
   Sub pages (legal notice / privacy)
   ========================================================= */

.page-hero {
  background: linear-gradient(115deg, var(--navy) 45%, var(--navy-2));
  color: #fff; padding: 62px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 10px; }
.page-hero p  { color: var(--on-navy); }
.breadcrumb { margin-top: 14px; font-size: 13.5px; color: #aab6cc; }
.breadcrumb a { color: var(--accent-bright); font-weight: 600; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 21px; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose p { margin-bottom: 14px; }
.prose ul { display: grid; gap: 9px; margin: 0 0 16px; padding-left: 4px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; }
.prose ul li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 11px;
}
.prose address {
  font-style: normal; background: var(--bg-soft);
  border-radius: var(--r-card); padding: 22px 24px; margin-bottom: 20px;
}
.prose a { color: var(--accent); font-weight: 600; }
