/* ============================================================================
 * style.css  —  Giao diện landing page (đỏ · cam · trắng · đen)
 * Bố cục riêng (không sao chép template mẫu). Chỉnh màu/spacing ở :root.
 * ========================================================================== */

:root {
  --red:        #ec3a2b;
  --red-dark:   #c92a1f;
  --orange:     #ff7a45;
  --orange-2:   #f1862f;
  --hot-grad:   linear-gradient(135deg, #ff8a3d 0%, #ec3a2b 100%);

  --ink:        #181c24;
  --muted:      #626a78;
  --line:       #ececf1;
  --cream:      #fbf6f2;
  --black:      #11141b;
  --white:      #ffffff;

  --radius:     16px;
  --radius-lg:  24px;
  --radius-pill:999px;
  --shadow:     0 24px 60px rgba(20, 20, 50, .10);
  --shadow-sm:  0 10px 26px rgba(20, 20, 50, .08);
  --maxw:       1180px;
  --gap:        clamp(28px, 4.5vw, 70px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -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; }

/* tiêu đề / nhãn dùng chung */
.label {
  display: inline-block;
  color: var(--orange-2);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.lead { color: var(--muted); font-size: 1.06rem; margin-top: 16px; max-width: 56ch; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.center .lead { margin-inline: auto; }

/* 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: .95rem;
  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: 10px 22px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--hot-grad); color: #fff; box-shadow: 0 12px 26px rgba(236,58,43,.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid 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,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.logo.light { color: #fff; }
.main-nav { display: flex; gap: 34px; }
.main-nav a { font-weight: 600; font-size: .92rem; color: #4b5160; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.header-right { display: flex; align-items: center; gap: 16px; }

.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: 3px; background: var(--ink); 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 ============================ */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: var(--gap);
  padding: clamp(46px, 6vw, 88px) 0;
}
.eyebrow {
  display: inline-flex; align-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--red); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.hero-sub { color: var(--muted); font-size: 1.12rem; margin-top: 18px; max-width: 48ch; }

.biz-card {
  margin-top: 26px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.biz-card p { font-size: 1.34rem; font-weight: 800; color: var(--ink); margin-bottom: 9px; }
.biz-card p:last-child { margin-bottom: 0; }
.biz-card strong { color: var(--black); font-weight: 900; }
.biz-card a { color: var(--ink); }
.biz-card a:hover { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* hero visual: khung ảnh + ô vuông accent + badge đánh giá */
.hero-visual { position: relative; }
.frame {
  position: relative; z-index: 2;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 4.4;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.accent-square {
  position: absolute; z-index: 1;
  width: 62%; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: var(--hot-grad); opacity: .9;
  top: -22px; left: -22px;
}
.accent-square.right { top: auto; left: auto; bottom: -22px; right: -22px; }
.rating-badge {
  position: absolute; z-index: 3; bottom: 24px; left: -24px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.rating-badge .rb-star { color: #f5a623; display: inline-flex; }
.rating-badge .rb-star svg { width: 30px; height: 30px; }
.rating-badge strong { display: block; font-size: 1.4rem; line-height: 1; color: var(--black); }
.rating-badge small { color: var(--muted); font-size: .8rem; }

/* ============================ STATS (dải đen) ============================ */
.stats { background: var(--black); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.stat {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; padding: 10px 16px;
  border-right: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
.stat:last-child { border-right: none; }
.stat .stat-icon { color: var(--orange); display: inline-flex; }
.stat .stat-icon svg { width: 34px; height: 34px; }
.stat .stat-meta { display: flex; flex-direction: column; align-items: flex-start; }
.stat .stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.05; }
.stat .stat-label { color: #aeb4c0; font-size: .9rem; }

/* ============================ ABOUT ============================ */
.about { padding: clamp(64px, 8vw, 116px) 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--gap); }
.about-text .btn { margin-top: 30px; }
.about-visual { position: relative; }
.about-visual .frame { aspect-ratio: 4 / 4.2; }
.feature-list { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.feature-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--hot-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ============================ SERVICES ============================ */
.services { padding: clamp(64px, 8vw, 116px) 0; background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--hot-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .service-icon {
  width: 56px; height: 56px; border-radius: 15px;
  background: var(--hot-grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: 0 10px 22px rgba(236,58,43,.26);
}
.service-card .service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.service-text { color: var(--muted); font-size: .97rem; }

/* ============================ TESTIMONIAL ============================ */
.testimonial { padding: clamp(64px, 8vw, 116px) 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tcard {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.tstars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; font-size: 1.05rem; }
.tquote { color: var(--ink); font-size: 1.02rem; margin-bottom: 22px; }
.tperson { display: flex; align-items: center; gap: 14px; }
.tperson .tavatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--hot-grad); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .95rem;
}
.tperson .tname { font-weight: 700; color: var(--black); }
.tperson .trole { color: var(--muted); font-size: .85rem; }

/* ============================ CONTACT ============================ */
.contact { padding: clamp(64px, 8vw, 116px) 0; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr .92fr; gap: var(--gap); align-items: start; }
.contact-info .lead { margin-bottom: 26px; }
.contact-details { display: grid; gap: 16px; margin-bottom: 28px; }
.contact-details li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.contact-details .ci-chip {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--red);
}
.contact-details .ci-chip svg { width: 22px; height: 22px; }
.contact-details .ci-label { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-details a { color: var(--ink); }
.contact-details a:hover { color: var(--red); }
.contact-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); max-height: 240px; }
.contact-photo img { width: 100%; height: 240px; object-fit: cover; }

.contact-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 36px 32px;
  position: sticky; top: 100px;
}
.contact-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 22px; }
.contact-form label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 16px; }
.contact-form input {
  width: 100%; margin-top: 7px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit; color: var(--ink);
  transition: border-color .2s ease;
}
.contact-form input::placeholder { color: #9aa0ad; font-weight: 400; }
.contact-form input:focus { outline: none; border-color: var(--red); }
.contact-form .btn { margin-top: 8px; }
.form-msg { color: var(--red); font-weight: 600; margin-top: 14px; min-height: 1em; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--black); color: #fff; padding: clamp(48px, 6vw, 80px) 0 28px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding-bottom: 34px; margin-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .logo { font-size: 1.5rem; }
.footer-brand p { color: #aeb4c0; margin-top: 6px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: #cfd3db; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--orange); }

.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); }
.footer-info p { font-size: 1.38rem; font-weight: 800; margin-bottom: 11px; color: #eef0f4; }
.footer-info strong { color: #fff; font-weight: 900; }
.footer-info a { color: #eef0f4; }
.footer-info a:hover { color: var(--orange); }
.footer-map h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 46px; padding-top: 22px;
  text-align: center; color: #c8ccd4; font-size: 1.14rem; font-weight: 700;
}
.footer-bottom .copyright { margin-top: 4px; }

/* ============================ REVEAL ============================ */
[data-reveal] { opacity: 0; transform: translateY(26px); 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; }
  .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: 24px 0; }
  .stat:nth-child(2) { border-right: none; }
  .contact-card { position: static; }

  .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;
    box-shadow: var(--shadow-sm);
  }
  .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; }
  .rating-badge { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .accent-square { display: none; }
}
