/* ============================================================================
 * THEME: HARBOR — xanh dương / trắng / xám nhạt. Chuyên nghiệp, tin cậy.
 * Hero ĐẢO NGƯỢC: ẢNH BANNER RỘNG NẰM TRÊN CÙNG (ngay dưới header), chữ ở DƯỚI
 * ảnh chia 2 cột kiểu tạp chí — không theme nào khác làm vậy.
 * Thứ tự: Hero → About → Stats → Services → Reviews → Contact.
 * Dùng chung script.js + assets/ (giữ nguyên hook data-*).
 * ========================================================================== */

:root {
  --red:        #1d6fd0;          /* script.js ghi đè khi brand.primary có */
  --red-dark:   #14539e;
  --sky:        #e8f1fc;
  --hot-grad:   linear-gradient(135deg, #3d8ae8 0%, #1d6fd0 100%);

  --ink:        #16233a;
  --ink-2:      #35415a;
  --muted:      #6a768c;
  --line:       #dfe5ee;
  --line-2:     #eef2f7;
  --paper:      #ffffff;
  --paper-2:    #f6f8fb;
  --deep:       #0f2440;

  --radius:     10px;
  --radius-lg:  16px;
  --radius-pill:8px;              /* nút góc VUÔNG NHẸ — khác pill của Verde/Coral */
  --shadow:     0 26px 60px rgba(15, 36, 64, .12);
  --shadow-sm:  0 10px 26px rgba(15, 36, 64, .07);
  --maxw:       1200px;
  --gap:        clamp(30px, 4.5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(var(--maxw), 92%); margin-inline: auto; }

h1, h2, h3, .logo, .stat-value { font-family: "Manrope", "Inter", sans-serif; }

.label {
  display: inline-block; color: var(--red);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .73rem; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.04rem; margin-top: 16px; max-width: 56ch; }
.section-head.center { text-align: center; max-width: 700px; margin: 0 auto 50px; }

/* nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .93rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--hot-grad); color: #fff; box-shadow: 0 12px 26px rgba(29,111,208,.28); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; color: var(--deep); }
.logo.light { color: #fff; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.header-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 2px; background: var(--deep); transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ============================ HERO (ảnh TRÊN CÙNG) ============================ */
.hero { padding-bottom: clamp(42px, 5vw, 66px); background: var(--paper); }

/* ảnh banner tràn viền, nằm NGAY DƯỚI header */
.hero-visual { position: relative; }
.frame { position: relative; overflow: hidden; aspect-ratio: 16 / 5.4; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,36,64,.05) 0%, rgba(15,36,64,.30) 100%);
}
.hero-visual .container { position: relative; }
.rating-badge {
  position: absolute; right: 0; bottom: 22px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper);
  padding: 13px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rb-star { width: 25px; height: 25px; color: #f0b429; display: inline-flex; }
.rb-star svg { width: 100%; height: 100%; }
.rating-badge strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.12rem; font-weight: 800; line-height: 1.15; }
.rating-badge small { color: var(--muted); font-size: .76rem; }

/* chữ dưới ảnh — 2 cột kiểu tạp chí */
.hero-text { padding-top: clamp(40px, 5vw, 62px); }
.eyebrow {
  display: inline-flex; align-items: center;
  background: var(--sky); color: var(--red);
  font-weight: 700; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-cols {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 26px var(--gap); align-items: end;
}
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.032em; }
.hero-sub { color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* BUSINESS — dải ngang, nhấn viền dưới xanh */
.biz-card {
  margin-top: clamp(38px, 4.5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.biz-card p { font-size: 1.2rem; font-weight: 700; margin: 0; min-width: 0; }
.biz-card strong,
.footer-info strong {
  display: block;
  font-size: .71rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.biz-val { display: block; }
/* TÊN CÔNG TY: cấm xuống dòng (kể cả đuôi ", LLC") — script.js co font nếu vẫn tràn */
.biz-val[data-biz-name],
.copyright [data-biz-name] { white-space: nowrap; }
.biz-val[data-biz-name] { overflow: hidden; color: var(--deep); }
.biz-card a { color: var(--ink); }
.biz-card a:hover { color: var(--red); }

/* ============================ ABOUT ============================ */
.about { padding: clamp(60px, 7vw, 100px) 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: center; }
.about-visual .frame { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-visual .frame::after { content: none; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 26px 0 30px; }
.feature-list li { position: relative; padding-left: 28px; font-weight: 600; font-size: .95rem; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 4px;
  background: var(--sky); color: var(--red);
  font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ============================ STATS (dải xanh đậm) ============== */
.stats { background: var(--deep); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 38px 0; }
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 10px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
.stat-icon {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: rgba(255,255,255,.09); color: #8fc0f5;
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-value { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.stat-label { display: block; color: #9db0c8; font-size: .81rem; }

/* ============================ SERVICES (card viền trên xanh) ========= */
.services { padding: clamp(60px, 7vw, 100px) 0; background: var(--paper-2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--sky); color: var(--red); margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.service-text { color: var(--muted); font-size: .96rem; }

/* ============================ TESTIMONIAL ============================ */
.testimonial { padding: clamp(60px, 7vw, 100px) 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.tstars { color: #f0b429; letter-spacing: 3px; margin-bottom: 14px; }
.tquote { color: var(--ink-2); font-size: .99rem; margin-bottom: 22px; }
.tperson { display: flex; align-items: center; gap: 13px; }
.tavatar {
  width: 46px; height: 46px; border-radius: var(--radius); flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--hot-grad); color: #fff; font-weight: 800; font-size: .85rem;
}
.tavatar img { width: 100%; height: 100%; object-fit: cover; }
.tname { font-weight: 700; font-size: .95rem; }
.trole { color: var(--muted); font-size: .82rem; }

/* ============================ CONTACT ============================ */
.contact { padding: clamp(60px, 7vw, 100px) 0; background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: start; }
.contact-details { margin: 26px 0 30px; display: grid; gap: 14px; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; }
.ci-chip {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--red);
}
.ci-chip svg { width: 20px; height: 20px; }
.ci-label { display: block; color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .11em; }
.contact-details a { font-weight: 600; }
.contact-details a:hover { color: var(--red); }
.contact-photo { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

.contact-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px;
  box-shadow: var(--shadow); position: sticky; top: 96px;
}
.contact-card h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: 20px; }
.contact-form label { display: block; font-size: .83rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.contact-form input {
  width: 100%; margin-top: 7px; padding: 13px 16px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink);
}
.contact-form input::placeholder { color: #a4aebd; }
.contact-form input:focus { outline: none; border-color: var(--red); background: #fff; }
.form-msg { margin-top: 12px; font-size: .88rem; color: var(--red); min-height: 1.2em; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--deep); color: #fff; padding: clamp(50px, 6vw, 78px) 0 26px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-brand .logo { font-size: 1.48rem; }
.footer-brand p { color: #9db0c8; margin-top: 6px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #c4d1e2; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: #8fc0f5; }

.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); }
.footer-info p { font-size: 1.18rem; font-weight: 700; margin-bottom: 14px; color: #e8eef6; }
.footer-info strong { color: #8fc0f5; }
.footer-info a { color: #e8eef6; }
.footer-info a:hover { color: #8fc0f5; }
.footer-map h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.map-embed { border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px;
  text-align: center; color: #9db0c8; font-size: .94rem;
}
.footer-bottom .copyright { margin-top: 4px; }

/* ============================ REVEAL ============================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 960px) {
  .hero-cols, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-cols { align-items: start; }
  .about-grid .about-visual { order: -1; max-width: 520px; margin-inline: auto; }
  .contact-card { position: static; }
  .biz-card { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .feature-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat:nth-child(3) { border-left: none; }
  .hero-visual .frame { aspect-ratio: 16 / 9; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav a { padding: 15px 24px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .stat + .stat { border-left: none; }
  .rating-badge { position: static; margin-top: -28px; display: inline-flex; }
}
