/* ════════════════════════════════════════════
   TỦ BẾP INOX – CSS riêng (kế thừa biến theme cha)
   --green, --dark, --serif, --sans, --text… đã có sẵn
════════════════════════════════════════════ */

/* ── Font UTM Helve (thay cho --serif) ── */
@font-face {
  font-family: 'UTM Helve';
  src: url('../fonts/helve/UTM%20Helve.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'UTM Helve';
  src: url('../fonts/helve/UTM%20Helve_Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'UTM Helve';
  src: url('../fonts/helve/UTM%20HelveBold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'UTM Helve';
  src: url('../fonts/helve/UTM%20HelveBold_Italic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --steel: #aab0b6; --steel-dark: #6f767d;
  /* Ghi đè biến --serif của theme cha bằng UTM Helve */
  --serif: 'UTM Helve', 'Roboto Mono', 'Courier New', monospace;
}

/* Anchor không bị nav cố định che */
section[id] { scroll-margin-top: 84px; }

/* Placeholder ảnh kiểu inox (dùng khi chưa có ảnh thật) */
.inox-placeholder {
  background:
    linear-gradient(135deg, #d6dade 0%, #b4babf 45%, #9aa1a8 100%);
  position: relative;
}
.inox-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 2px, transparent 2px 9px);
}

/* ── 1. HERO ── */
.inox-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 18% 8%, rgba(100,153,73,.08), transparent 60%),
    linear-gradient(180deg, #14181b 0%, #0f1214 100%);
  padding: clamp(5rem, 9vh, 8rem) 4vw clamp(4rem, 8vh, 7rem) !important;
  overflow: hidden;
}
.inox-hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.inox-hero-content { order: 1; }
.inox-hero-media   { order: 2; }

/* Cột ảnh */
.inox-hero-media { display: flex; flex-direction: column; gap: clamp(.9rem, 1.5vw, 1.25rem); }
.hero-media-main {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1f23;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  aspect-ratio: 16 / 9;
  opacity: 0;
  animation: heroDrop .9s cubic-bezier(.22,.61,.36,1) .1s forwards;
}
.hero-media-main img,
.hero-media-main .inox-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-media-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 1.5vw, 1.25rem);
}
.hero-media-thumb {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1f23;
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  aspect-ratio: 4 / 3;
  opacity: 0;
  animation: heroRise .8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(.55s + var(--d) * .16s);
}
.hero-media-thumb img,
.hero-media-thumb .inox-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-media-main figcaption,
.hero-media-thumb figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem .9rem .55rem;
  font-family: var(--serif);
  color: #fff;
  background: linear-gradient(to top, rgba(8,10,12,.82), transparent);
}
.hero-media-main figcaption { font-size: 1rem; }
.hero-media-thumb figcaption { font-size: .8rem; padding: .7rem .6rem .45rem; }

/* Cột chữ – hiện dần sau khi ảnh chạy xong */
.inox-hero-content { position: relative; z-index: 2; }
.inox-hero-content > * {
  opacity: 0;
  animation: heroText .7s ease forwards;
}
.hero-eyebrow   { animation-delay: 1.15s; }
.inox-hero-title{ animation-delay: 1.30s; }
.inox-hero-sub  { animation-delay: 1.45s; }
.hero-actions   { animation-delay: 1.60s; }

.hero-eyebrow span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-light, #8bbf5e);
  position: relative;
}

.inox-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: #fff;
  margin: 1rem 0 1.25rem;
}
.inox-hero-sub {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,.72);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

@keyframes heroDrop { from { opacity: 0; transform: translateY(-48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroText { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero-media-main, .hero-media-thumb, .inox-hero-content > * { animation: none; opacity: 1; }
}

/* Màn hình lớn 2K trở lên */
@media (min-width: 1800px) {
  .inox-hero-grid { max-width: 1680px; gap: 6rem; }
  .inox-hero-title { font-size: clamp(3.4rem, 3vw, 4.6rem); }
  .inox-hero-sub { max-width: 620px; font-size: 1.2rem; }
}
@media (min-width: 2400px) {
  .inox-hero-grid { max-width: 1880px; }
}

@media (max-width: 860px) {
  .inox-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .inox-hero-content { order: 1; }
  .inox-hero-media   { order: 2; }
}

/* ── 2. USP ── */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.usp-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-gray);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.usp-card:hover { border-color: var(--green); box-shadow: 0 8px 28px rgba(100,153,73,.1); transform: translateY(-3px); }
.usp-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(100,153,73,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.usp-icon svg { width: 26px; height: 26px; }
.usp-title { font-family: var(--serif); font-size: 1.125rem; font-weight: 400; color: var(--text); line-height: 1.3; margin-bottom: .75rem; }
.usp-desc { font-size: .875rem; color: var(--text-mid); line-height: 1.7; }

/* ── 3. 360 VIEW ── */
.inox-360-sec { background: var(--bg-2); }
/* Ảnh frame dạng dọc (816×1104). Giới hạn CHIỀU RỘNG khung để thư viện
   tự render canvas đúng kích thước nhỏ → luôn sắc nét, không CSS-scale. */
.inox-360-stage {
  width: 100%;
  max-width: 430px;            /* ~430px rộng → cao ~580px (≈ nửa màn hình) */
  margin: 0 auto;
  background: #1a1a1a;
  border: 1px solid var(--border-gray);
}
.inox-360-stage .cloudimage-360 { width: 100%; }
/* Ẩn hint mặc định (tiếng Anh + gợi ý zoom) của thư viện */
.inox-360-stage .cloudimage-360-hints-overlay,
.inox-360-stage .cloudimage-360-hints-container,
.inox-360-stage .cloudimage-360-zoom-controls { display: none !important; }
/* Hint tiếng Việt tự thêm */
.inox-360-hint {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 1.1rem auto 0;
  color: var(--text-mid);
  font-size: .875rem;
}
.inox-360-hint svg { width: 18px; height: 18px; color: var(--green); }
.inox-360-stage .cloudimage-360 canvas,
.inox-360-stage img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* ── 4. DỰ TOÁN ONLINE ── */
.estimate-media {
  position: relative;
  margin-top: 3rem;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.estimate-media.has-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,9,7,.25), rgba(10,9,7,.55));
}
.estimate-media .btn-estimate-inline { position: relative; z-index: 1; }
.estimate-media.has-img .btn-estimate-inline { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
@media (max-width: 600px) { .estimate-media { min-height: 280px; } }

/* ── 4b. SẢN PHẨM (legacy, không còn dùng trên front-page) ── */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.product-card {
  border: 1px solid var(--border-gray);
  background: var(--bg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { border-color: var(--green); box-shadow: 0 10px 30px rgba(36,31,31,.1); transform: translateY(-4px); }
.product-img { aspect-ratio: 4/3; display: flex; align-items: flex-end; padding: 1rem; }
.product-img.has-img { background-size: cover; background-position: center; position: relative; }
.product-img.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,7,.55), transparent 55%); }
.product-img-label { position: relative; z-index: 1; font-family: var(--serif); color: #fff; font-size: 1.125rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.product-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--text); margin-bottom: .5rem; }
.product-desc { font-size: .8125rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.product-price { font-size: .8125rem; color: var(--text-mid); }
.product-price strong { color: var(--green); font-size: 1rem; }
.product-cta {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(100,153,73,.4);
  padding: .45rem .9rem; transition: all .25s; white-space: nowrap;
}
.product-cta:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ── 5. XU THẾ ── */
.trend-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.trend-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .875rem; }
.trend-list li { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; color: rgba(255,255,255,.75); }
.trend-list li span { width: 7px; height: 7px; background: var(--green-light); transform: rotate(45deg); flex-shrink: 0; }
/* Bảng so sánh gỗ vs inox */
.trend-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.compare-col {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.85rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* Cột inox – nổi bật */
.compare-new {
  background: linear-gradient(180deg, rgba(100,153,73,.16), rgba(100,153,73,.04));
  border-color: rgba(100,153,73,.55);
  box-shadow: 0 18px 44px rgba(100,153,73,.16);
}
.compare-new:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(100,153,73,.24); }
.compare-old { opacity: .9; }
.compare-old:hover { border-color: rgba(255,255,255,.2); }

/* Badge "Khuyên dùng" */
.compare-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(100,153,73,.4);
}

/* Tiêu đề cột */
.compare-head { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.compare-tag {
  display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .35rem;
}
.compare-old .compare-tag { color: rgba(255,255,255,.4); }
.compare-new .compare-tag { color: var(--green-light); }
.compare-name { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.compare-old .compare-name { color: rgba(255,255,255,.62); }
.compare-new .compare-name { color: #fff; }

/* Danh sách tiêu chí với icon */
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.compare-col li {
  position: relative; padding-left: 1.9rem;
  font-size: .875rem; line-height: 1.45;
}
.compare-col li::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: .7rem;
}
.compare-old li { color: rgba(255,255,255,.5); }
.compare-old li::before {
  background-color: rgba(255,255,255,.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98a8a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
.compare-new li { color: rgba(255,255,255,.9); }
.compare-new li::before {
  background-color: rgba(100,153,73,.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238bbf5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Huy hiệu VS ở giữa */
.compare-vs {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-2, #1c1c1c);
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--serif); font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.75);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}

/* ── 6. QUY TRÌNH 5 bước ── */
.process-grid-5 { grid-template-columns: repeat(5, 1fr) !important; }

/* ── 7. PORTFOLIO ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.portfolio-item { position: relative; overflow: hidden; margin: 0; }
/* Khi là <button> mở lightbox: reset style mặc định của button */
button.portfolio-item { width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; display: block; }
.portfolio-item.has-gallery { cursor: pointer; }
.portfolio-img { aspect-ratio: 4/3; transition: transform .6s var(--transition); }
.portfolio-img.has-img { background-size: cover; background-position: center; }
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
/* Badge số lượng ảnh */
.portfolio-count {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(10,9,7,.6); backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; letter-spacing: .04em;
  pointer-events: none;
}

/* ── LIGHTBOX gallery công trình ── */
.inox-lb { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; }
.inox-lb.is-open { display: flex; }
.inox-lb-backdrop { position: absolute; inset: 0; background: rgba(10,9,7,.92); }
.inox-lb-stage { position: relative; z-index: 1; margin: 0; max-width: 90vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.inox-lb-stage img { max-width: 90vw; max-height: 80vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.inox-lb-cap { color: rgba(255,255,255,.7); font-size: .8125rem; letter-spacing: .05em; }
.inox-lb-close { position: absolute; top: 1.25rem; right: 1.5rem; z-index: 2; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s; }
.inox-lb-close:hover { background: rgba(255,255,255,.22); }
.inox-lb-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s; }
.inox-lb-nav:hover { background: rgba(255,255,255,.22); }
.inox-lb-prev { left: 1.5rem; }
.inox-lb-next { right: 1.5rem; }
@media (max-width: 600px) {
  .inox-lb-nav { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
  .inox-lb-prev { left: .5rem; }
  .inox-lb-next { right: .5rem; }
}
.portfolio-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(10,9,7,.85), transparent);
  display: flex; flex-direction: column; gap: .25rem;
}
.portfolio-name { font-family: var(--serif); color: #fff; font-size: 1.0625rem; }
.portfolio-meta { font-size: .75rem; color: rgba(255,255,255,.7); letter-spacing: .05em; }

/* ── 8. BẢNG GIÁ ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: start; }
.price-card { position: relative; background: #1c1c1c; border: 1px solid rgba(255,255,255,.1); padding: 2.5rem 2rem; transition: border-color .3s, transform .3s; }
.price-card:hover { border-color: rgba(100,153,73,.5); transform: translateY(-4px); }
.price-hot { border-color: var(--green); background: #1f241c; }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .9rem; }
.price-name { font-family: var(--serif); font-size: 1.375rem; color: #fff; margin-bottom: .75rem; }
.price-amount { font-family: var(--serif); font-size: 2.25rem; color: var(--green-light); line-height: 1; margin-bottom: 1.75rem; }
.price-amount small { font-family: var(--sans); font-size: .8125rem; color: rgba(255,255,255,.55); letter-spacing: .03em; }
.price-feat { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.price-feat li { position: relative; padding-left: 1.5rem; font-size: .875rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.price-feat li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); }

/* ── 9. ĐÁNH GIÁ (bổ sung sao) ── */
.testi-stars { color: #e0a200; letter-spacing: 2px; margin-bottom: 1rem; font-size: 1rem; }

/* ── 10. FAQ ── */
.faq-inner { max-width: 820px; }
.faq-list { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border-gray); }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--serif); font-size: 1.125rem; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; background: var(--green); transition: transform .25s; }
.faq-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-mark::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-a { padding: 0 0 1.5rem; font-size: .9375rem; color: var(--text-mid); line-height: 1.75; max-width: 90%; }

/* ── 11. LEAD FORM ── */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.lead-promo { display: inline-block; margin-top: 1.5rem; padding: .75rem 1.25rem; border-left: 3px solid var(--green); background: rgba(100,153,73,.12); color: #fff; font-size: .9375rem; }
.lead-quick { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.lead-quick-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.4rem; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .875rem; transition: all .25s; }
.lead-quick-btn svg { width: 16px; height: 16px; }
.lead-quick-btn:hover { border-color: var(--green); color: var(--green-light); }
.lead-quick-zalo { background: #0068FF; border-color: #0068FF; }
.lead-quick-zalo:hover { background: #0057d6; border-color: #0057d6; color: #fff; }
.lead-form-wrap { background: var(--bg); padding: 2.5rem; }
.lead-form-wrap label { color: var(--text-mid); }

/* ── Reset cho <button> dùng class .btn-primary / .btn-ghost ── */
button.btn-primary { border: none; cursor: pointer; font-family: inherit; }
button.btn-ghost { background: none; border: none; border-bottom: 1px solid rgba(100,153,73,.4); cursor: pointer; font-family: inherit; }

/* ── Button "Dự toán online" trong menu (trông như link) ── */
#main-nav .nav-links .nav-link-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: .8125rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.8); transition: color .25s;
}
#main-nav.scrolled .nav-links .nav-link-btn { color: rgba(36,31,31,.65); }
#main-nav .nav-links .nav-link-btn:hover { color: var(--green) !important; }
.nav-mobile .nav-link-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--serif); font-size: 2rem; font-weight: 500;
  color: var(--text); transition: color .25s;
}
.nav-mobile .nav-link-btn:hover { color: var(--green); }

/* ── NÚT DỰ TOÁN (sticky, cạnh Zalo) ── */
.estimate-btn {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(100,153,73,.4);
  transition: transform .2s;
}
.estimate-btn:hover { transform: scale(1.08); }
.estimate-btn svg { width: 24px; height: 24px; }
.estimate-btn-label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--text, #241f1f); color: #fff;
  font-size: .75rem; white-space: nowrap;
  padding: .35rem .7rem; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.estimate-btn:hover .estimate-btn-label { opacity: 1; }

/* ── NÚT DỰ TOÁN INLINE (sau grid phương án cánh) ── */
.products-cta { text-align: center; margin-top: 2.5rem; }
.btn-estimate-inline {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--green); color: #fff; border: none; cursor: pointer;
  padding: .95rem 2rem; font-size: .9375rem; letter-spacing: .03em;
  box-shadow: 0 6px 20px rgba(100,153,73,.3); transition: background .2s, transform .2s;
}
.btn-estimate-inline:hover { background: var(--green-dark, #4f7a38); transform: translateY(-2px); }
.btn-estimate-inline svg { width: 20px; height: 20px; }

/* ── MODAL DỰ TOÁN (logic mới) ── */
.inox-est { position: fixed; inset: 0; z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.inox-est.is-open { display: flex; }
.inox-est-bd { position: fixed; inset: 0; background: rgba(10,9,7,.78); }
.inox-est-dlg {
  position: relative; z-index: 1; margin: auto;
  width: 100%; max-width: 760px;
  background: var(--bg, #fff); padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.inox-est-x { position: absolute; top: .6rem; right: 1rem; background: none; border: none; font-size: 1.9rem; line-height: 1; color: var(--text-mid); cursor: pointer; }
.inox-est-x:hover { color: var(--text); }
.inox-est-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--text); margin: 0 2rem 0 0; }
.inox-est-sub { font-size: .8125rem; color: var(--text-mid); line-height: 1.6; margin: .5rem 0 1.25rem; }

.inox-est-fs { border: 1px solid var(--border-gray); padding: 1rem 1.1rem 1.2rem; margin: 0 0 1.1rem; }
.inox-est-fs legend { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark, #4f7a38); padding: 0 .4rem; }
.inox-est-grid1 { display: grid; gap: .8rem; }
.inox-est-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.inox-est-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.inox-est-fld { display: block; margin-bottom: .5rem; }
.inox-est-fld > span { display: block; font-size: .76rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.inox-est select, .inox-est input[type=number] { width: 100%; padding: .55rem .6rem; border: 1px solid var(--border-gray); background: #fff; font-size: .9rem; color: var(--text); }
.inox-est input:disabled, .inox-est select:disabled { background: #f0f0f0; color: #999; cursor: not-allowed; }
.inox-est-seg { display: flex; gap: .5rem; }
.inox-est-seg label { flex: 1; border: 1px solid var(--border-gray); padding: .5rem; text-align: center; font-size: .85rem; cursor: pointer; border-radius: 3px; }
.inox-est-seg input { display: none; }
.inox-est-seg input:checked + span { font-weight: 700; color: var(--green-dark, #4f7a38); }
.inox-est-seg label:has(input:checked) { border-color: var(--green); background: rgba(100,153,73,.1); }

.inox-est-item { border: 1px solid var(--border-gray); padding: .9rem 1rem; margin-bottom: .7rem; border-radius: 3px; }
.inox-est-opt { background: #fafafa; }
.inox-est-ih { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.inox-est-ih h4 { margin: 0; font-size: .95rem; font-family: var(--serif); font-weight: 500; }
.inox-est-ih h4 small { color: var(--green-dark, #4f7a38); font-weight: 400; }
/* Hàng tiêu đề có checkbox (hạng mục tùy chọn) — click cả tiêu đề để bật/tắt */
.inox-est-titlerow { justify-content: flex-start; cursor: pointer; }
.inox-est-titlerow .inox-est-chk { width: 22px; height: 22px; flex: none; cursor: pointer; accent-color: var(--green); }
.inox-est-titlerow h4 { margin: 0; }
.inox-est-ib { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; align-items: end; }
.inox-est-line { margin-top: .55rem; text-align: right; font-size: .9rem; }
.inox-est-line b { color: var(--green-dark, #4f7a38); font-size: 1.05rem; }
.inox-est-item.off .inox-est-ib, .inox-est-item.off .inox-est-line { opacity: .4; pointer-events: none; }

.inox-est-total { display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--text); margin-top: 1rem; padding-top: 1rem; }
.inox-est-total span { font-family: var(--serif); font-size: 1rem; }
.inox-est-total b { font-family: var(--serif); font-size: 1.7rem; color: var(--green); }
.inox-est-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.2rem; }
.inox-est-contact { background: var(--green); color: #fff; text-decoration: none; padding: .8rem 1.6rem; font-size: .88rem; transition: background .2s; }
.inox-est-contact:hover { background: var(--green-dark, #4f7a38); color: #fff; }
.inox-est-reset { background: none; border: 1px solid var(--border-gray); padding: .8rem 1.4rem; cursor: pointer; font-size: .88rem; color: var(--text); }
.inox-est-note { font-size: .72rem; color: var(--text-mid); line-height: 1.6; margin: .9rem 0 0; }

/* ════════ MODAL DỰ TOÁN — BREAKPOINTS ════════ */

/* ── DESKTOP (≥1025px): căn giữa, 3 cột hạng mục, thu gọn để KHÔNG phải scroll ── */
@media (min-width: 1025px) {
  .inox-est { align-items: center; padding: 1.5rem; }
  .inox-est-dlg { max-width: 960px; max-height: 94vh; overflow-y: auto; padding: 1.6rem 1.9rem; }
  .inox-est-title { font-size: 1.35rem; }
  .inox-est-sub { margin: .3rem 0 .9rem; }
  .inox-est-fs { padding: .75rem 1rem 1rem; margin-bottom: .8rem; }

  /* Hạng mục xếp 2 cột rộng rãi; legend trải hết hàng */
  .inox-est-fs--items { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .95rem; }
  .inox-est-fs--items > legend { grid-column: 1 / -1; }
  .inox-est-fs--items .inox-est-item { margin-bottom: 0; }

  .inox-est-item { padding: .6rem .85rem; }
  .inox-est-ih { margin-bottom: .45rem; }
  .inox-est-ib { gap: .55rem; }
  .inox-est-line { margin-top: .35rem; }
  .inox-est-actions { margin-top: .9rem; }
  .inox-est-note { margin-top: .6rem; }
}

/* ── MÀN LỚN / 2K (≥1600px): dialog rộng hơn, hạng mục 3 cột ── */
@media (min-width: 1600px) {
  .inox-est-dlg { max-width: 1320px; }
  .inox-est-fs--items { grid-template-columns: repeat(3, 1fr); }
  /* Fieldset mặc định chỉ có 2 mục → giữ 2 cột chia đều, không để trống cột phải */
  .inox-est-fs--two { grid-template-columns: 1fr 1fr; }
  /* Ô bên trong xếp 2 cột để chữ không bị chật */
  .inox-est-fs--items .inox-est-ib { grid-template-columns: 1fr 1fr; }
}

/* ── TABLET (601–1024px): căn giữa, 1 cột nội dung rộng vừa phải, cuộn trong nếu cao ── */
@media (min-width: 601px) and (max-width: 1024px) {
  .inox-est { align-items: center; padding: 1.5rem; }
  .inox-est-dlg { max-width: 720px; max-height: 92vh; overflow-y: auto; padding: 1.6rem 1.5rem; }
  .inox-est-fs--items { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; }
  .inox-est-fs--items > legend { grid-column: 1 / -1; }
  .inox-est-fs--items .inox-est-item { margin-bottom: 0; }
  .inox-est-ib { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE (chung) ── */
@media (max-width: 1024px) {
  .usp-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trend-grid, .lead-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
  .process-grid-5::before { display: none; }
}
@media (max-width: 600px) {
  .usp-grid, .product-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .trend-compare { grid-template-columns: 1fr; gap: 1.75rem; }
  .compare-vs { top: 50%; }
  .process-grid-5 { grid-template-columns: 1fr !important; }
  .lead-form-wrap { padding: 1.75rem; }

  .inox-est-dlg { padding: 1.4rem 1.1rem; }
  .inox-est-grid2, .inox-est-grid3 { grid-template-columns: 1fr; }
  .inox-est-ib { grid-template-columns: 1fr; }
}
