/* ============================================================================
 * THEME: LEDGER — kem / vàng đồng / mực nâu. Tiêu đề SERIF (Fraunces).
 * Hero ĐẢO: ảnh TRÁI, chữ PHẢI. Dịch vụ = DANH SÁCH ĐÁNH SỐ (không phải card).
 * Thứ tự: Hero → About → Stats → REVIEWS → SERVICES → Contact.
 * Dùng chung script.js + assets/ với mọi theme (giữ nguyên hook data-*).
 * ========================================================================== */

:root {
  --red:        #a67c3d;          /* script.js ghi đè khi brand.primary có */
  --red-dark:   #86622d;
  --hot-grad:   linear-gradient(135deg, #c69a55 0%, #a67c3d 100%);

  --ink:        #2c2620;
  --ink-2:      #453d34;
  --muted:      #7b7268;
  --line:       #e5ddd0;
  --cream:      #faf6ef;
  --cream-2:    #f3ece0;
  --black:      #1c1813;
  --white:      #ffffff;

  --radius:     4px;              /* góc VUÔNG — khác hẳn Classic/Aurora bo tròn */
  --radius-lg:  6px;
  --radius-pill:2px;
  --shadow:     0 26px 60px rgba(44, 38, 32, .13);
  --shadow-sm:  0 10px 26px rgba(44, 38, 32, .08);
  --maxw:       1160px;
  --gap:        clamp(30px, 4.5vw, 68px);
}

* { 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(--cream);
  line-height: 1.7;
  -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 { font-family: "Fraunces", Georgia, serif; font-weight: 600; }

.label {
  display: inline-block; color: var(--red);
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  font-size: .72rem; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.18; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 16px; max-width: 56ch; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* nút — góc vuông, viền mảnh */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .88rem; letter-spacing: .04em;
  cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--black); color: var(--cream); }
.btn-solid:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.42rem; letter-spacing: -.01em; color: var(--black); }
.logo.light { color: var(--cream); }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 500; font-size: .9rem; color: var(--ink-2); letter-spacing: .02em; 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: 2px; background: var(--ink); transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO (ảnh TRÁI) ============================ */
.hero { background: var(--cream); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: .92fr 1.08fr;
  align-items: center; gap: var(--gap);
  padding: clamp(44px, 6vw, 80px) 0 clamp(38px, 4.5vw, 56px);
}
.hero-visual { position: relative; }
.frame { position: relative; z-index: 2; overflow: hidden; border-radius: var(--radius-lg);
         box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.rating-badge {
  position: absolute; right: -18px; bottom: 30px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--cream); border: 1px solid var(--line);
  padding: 13px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rb-star { width: 24px; height: 24px; color: var(--red); display: inline-flex; }
.rb-star svg { width: 100%; height: 100%; }
.rating-badge strong { display: block; font-family: "Fraunces", serif; font-size: 1.2rem; line-height: 1.1; }
.rating-badge small { color: var(--muted); font-size: .75rem; }

.eyebrow {
  display: inline-flex; align-items: center;
  color: var(--red); font-weight: 600; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.015em; }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* BUSINESS — TÊN chiếm TRỌN 1 hàng trên cùng (không đời nào wrap), rồi phone|email,
   rồi địa chỉ trọn hàng dưới. KHÔNG dùng 4 cột đều: ô 4 cột chỉ ~230px, tên công ty
   dài (vd "Silver Creek Holdings Group International, LLC") không tài nào nhét vừa. */
.biz-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
  background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 26px 32px;
  box-shadow: var(--shadow-sm);
}
.biz-card p { font-size: 1.06rem; font-weight: 600; margin: 0; min-width: 0; }
.biz-card p:nth-child(1) {                 /* Tên công ty — trọn chiều ngang thẻ */
  grid-column: 1 / -1;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.biz-card p:nth-child(1) .biz-val {
  font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 600;
}
.biz-card p:nth-child(4) { grid-column: 1 / -1; }   /* Địa chỉ — trọn hàng dưới */
.biz-card strong,
.footer-info strong {
  display: block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.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; }
.biz-card a { color: var(--ink); }
.biz-card a:hover { color: var(--red); }

/* ============================ ABOUT ============================ */
.about { padding: clamp(64px, 7vw, 104px) 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; }
.feature-list { display: grid; gap: 0; margin: 26px 0 32px; }
.feature-list li {
  padding: 13px 0 13px 30px; position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: .97rem;
}
.feature-list li::before {
  content: "—"; position: absolute; left: 0; top: 13px;
  color: var(--red); font-weight: 700;
}

/* ============================ STATS ============================ */
.stats { background: var(--black); color: var(--cream); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 40px 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: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--red); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-value { display: block; font-family: "Fraunces", serif; font-size: 1.45rem; line-height: 1.15; }
.stat-label { display: block; color: #a89e91; font-size: .8rem; }

/* ============================ TESTIMONIAL (2 cột, dạng bài báo) ======== */
.testimonial { padding: clamp(64px, 7vw, 104px) 0; background: var(--cream-2); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 44px; }
.tcard { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.tcard::before {
  content: "\201C"; position: absolute; top: -6px; left: 0;
  font-family: "Fraunces", Georgia, serif; font-size: 3.4rem; line-height: 1;
  color: var(--red); opacity: .4;
}
.tstars { color: var(--red); letter-spacing: 3px; margin-bottom: 10px; font-size: .85rem; }
.tquote { font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; line-height: 1.55; color: var(--ink); margin-bottom: 20px; }
.tperson { display: flex; align-items: center; gap: 12px; }
.tavatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--black); color: var(--cream); font-weight: 700; font-size: .82rem;
}
.tavatar img { width: 100%; height: 100%; object-fit: cover; }
.tname { font-weight: 600; font-size: .93rem; }
.trole { color: var(--muted); font-size: .81rem; }

/* ============================ SERVICES (danh sách đánh số) ============= */
.services { padding: clamp(64px, 7vw, 104px) 0; }
.services-grid { display: grid; gap: 0; counter-reset: svc; }
/* LƯU Ý GRID: thẻ này có 4 grid item — ::before (số), .service-icon, h3, .service-text.
   Phải CHỈ ĐỊNH RÕ cột/hàng cho từng cái. Nếu chỉ khai 3 cột và để tự xếp thì
   .service-text bị đẩy xuống hàng 2 CỘT 1 (rộng 66px) -> chữ rớt từng từ một. */
.service-card {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 66px 66px 1fr;
  align-items: start;
  gap: 6px 24px; padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: background .25s ease, padding .25s ease;
}
.service-card:last-child { border-bottom: 1px solid var(--line); }
.service-card::before {
  content: counter(svc, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 2;
  font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--red); opacity: .55;
}
.service-card:hover { background: var(--white); padding-inline: 18px; }
.service-icon {
  grid-column: 2; grid-row: 1 / span 2;
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--red);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { grid-column: 3; grid-row: 1; font-size: 1.32rem; }
.service-text { grid-column: 3; grid-row: 2; color: var(--muted); font-size: .98rem; max-width: 62ch; }

/* ============================ CONTACT ============================ */
.contact { padding: clamp(64px, 7vw, 104px) 0; background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: start; }
.contact-details { margin: 28px 0 30px; display: grid; gap: 0; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ci-chip {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--red);
}
.ci-chip svg { width: 19px; height: 19px; }
.ci-label { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.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; filter: saturate(.92); }

.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow); position: sticky; top: 100px;
}
.contact-card h3 { font-size: 1.4rem; margin-bottom: 22px; }
.contact-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted);
                      text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.contact-form input {
  width: 100%; margin-top: 8px; padding: 13px 0;
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  border-radius: 0; font: inherit; font-size: 1rem; font-weight: 500;
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.contact-form input::placeholder { color: #b9b0a4; }
.contact-form input:focus { outline: none; border-bottom-color: var(--red); }
.form-msg { margin-top: 14px; font-size: .88rem; color: var(--red); min-height: 1.2em;
            text-transform: none; letter-spacing: 0; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--black); color: var(--cream); padding: clamp(52px, 6vw, 82px) 0 26px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-bottom: 32px; margin-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-brand .logo { font-size: 1.55rem; }
.footer-brand p { color: #a89e91; margin-top: 6px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #cfc6b8; font-weight: 500; font-size: .9rem; }
.footer-nav a:hover { color: var(--red); }

.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); }
.footer-info p { font-size: 1.08rem; font-weight: 600; margin-bottom: 15px; color: #ece5da; }
.footer-info strong { color: #a89e91; }
.footer-info a { color: #ece5da; }
.footer-info a:hover { color: var(--red); }
.footer-map h3 { font-size: 1.25rem; margin-bottom: 14px; }
.map-embed { overflow: hidden; border-radius: var(--radius); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.5) sepia(.15); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 46px; padding-top: 22px;
  text-align: center; color: #a89e91; font-size: .92rem;
}
.footer-bottom .copyright { margin-top: 4px; }

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

/* ============================ RESPONSIVE ============================ */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual, .about-visual { max-width: 480px; margin-inline: auto; }
  .about-grid .about-visual { order: -1; }
  .contact-card { position: static; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .stat:nth-child(3) { border-left: none; }
  .service-card { grid-template-columns: 46px 1fr; }
  .service-card .service-icon { display: none; }
  .service-card h3 { grid-column: 2; grid-row: 1; }
  .service-text { grid-column: 2; grid-row: 2; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); 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) {
  .biz-card { grid-template-columns: 1fr; }
  .biz-card p:nth-child(1) .biz-val { font-size: 1.25rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .rating-badge { right: 50%; transform: translateX(50%); bottom: -20px; }
  .stat + .stat { border-left: none; }
}
