/* ============================================================
   DORRI — Rèm Màn Miền Trung
   Design system: colors, typography, layout, components, animation
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy-900: #0C3D18;
  --navy-800: #0F5C1F;
  --navy-700: #136D27;
  --navy-600: #1B8A34;
  --navy-500: #229F3F;

  --sand-100: #FAF6EF;
  --sand-200: #F3E9D4;
  --sand-300: #EFE1C6;
  --sand-400: #E5D1B0;
  --sand-500: #D9BD8C;
  --sand-600: #C9A876;

  --white: #FFFFFF;
  --text-dark: #22303F;
  --text-muted: #64748B;
  --text-on-navy: rgba(255, 255, 255, 0.86);

  --font-heading: 'Roboto', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
  --font-label: 'Roboto Condensed', Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 30px rgba(16, 31, 50, 0.10);
  --shadow-medium: 0 20px 50px rgba(16, 31, 50, 0.16);
  --shadow-navy: 0 16px 40px rgba(20, 40, 63, 0.28);

  --ease: cubic-bezier(.25, .8, .25, 1);
  --transition: .35s var(--ease);

  --header-h: 84px;
}
/* Mobile/tablet: logo to hơn + căn giữa + có dòng chữ dưới logo nên header cao hơn
   (xem khối .brand ở mục HEADER) */
@media (max-width: 991.98px) {
  :root { --header-h: 102px; }
}

/* ---------- 2. Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; }
.container { max-width: 1240px; }

::selection { background: var(--sand-500); color: var(--navy-900); }

/* scrollbar accent */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sand-100); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 10px; }

/* ---------- 3. Utility / section helpers ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 60px 0; }
@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
}

.bg-navy { background: var(--navy-800); color: var(--text-on-navy); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-sand { background: var(--sand-100); }
.bg-sand-200 { background: var(--sand-200); }
.bg-gradient-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600)); color: var(--text-on-navy); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--sand-600);
  display: inline-block;
}
.bg-navy .eyebrow, .bg-gradient-navy .eyebrow { color: var(--sand-400); }
.bg-navy .eyebrow::before, .bg-gradient-navy .eyebrow::before { background: var(--sand-400); }

.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .4em; }
.section-desc { color: var(--text-muted); max-width: 680px; font-size: 1.05rem; }
.bg-navy .section-desc, .bg-gradient-navy .section-desc { color: rgba(255,255,255,.72); }
.text-center-wrap { max-width: 720px; margin: 0 auto; }

.divider-accent {
  width: 70px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sand-600), var(--sand-300));
  margin: 18px auto;
}

/* scroll reveal fallback (used when a page includes elements with .reveal instead of data-aos) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }

/* ---------- 4. Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .8rem 1.8rem; border: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; }
.btn-navy { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow-navy); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }
.btn-sand { background: var(--sand-500); color: var(--navy-900); }
.btn-sand:hover { background: var(--sand-600); color: var(--navy-900); transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy-800); }
.btn-outline-navy { border: 1.5px solid var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-sm { padding: .5rem 1.2rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2.3rem; font-size: 1.05rem; }
.btn-icon-circle { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(16,31,50,.06);
  transition: var(--transition);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.site-header.scrolled { box-shadow: 0 6px 26px rgba(16,31,50,.12); }

.navbar-main { padding: 14px 0; }
.navbar-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 46px; width: auto; }
.brand-tagline { display: none; } /* chỉ hiện ở mobile/tablet - xem media query bên dưới */

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-weight: 600; font-size: .96rem; color: var(--navy-800);
  padding: 10px 16px; border-radius: 999px; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: var(--navy-700); }

.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > a i { font-size: .7rem; margin-left: 2px; vertical-align: middle; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-medium); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition);
  z-index: 10;
}
.nav-item.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-dropdown a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm); font-size: .88rem;
  font-weight: 500; color: var(--text-dark); white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--sand-100); color: var(--navy-700); }

@media (max-width: 991.98px) {
  .nav-item.has-dropdown { display: flex; flex-direction: column; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    padding: 0 0 8px 16px;
  }
  .nav-dropdown a { color: var(--text-muted); padding: 8px 16px; text-align: left; font-size: .95rem; }
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-hotline { display: flex; align-items: center; gap: 10px; }
.header-hotline .ico {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sand-400);
  display: flex; align-items: center; justify-content: center; color: var(--navy-900); font-size: 1.1rem;
  flex-shrink: 0;
  animation: pulse-ring 2.2s infinite;
}
.header-hotline .txt { line-height: 1.25; }
.header-hotline .txt small { display: block; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.header-hotline .txt strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy-800); }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(217,189,140,.55); }
  70% { box-shadow: 0 0 0 10px rgba(217,189,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,189,140,0); }
}

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--navy-700);
  background: transparent; position: relative; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy-800); transition: var(--transition);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

body.nav-open { overflow: hidden; }

@media (max-width: 991.98px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 16px; border-radius: var(--radius-sm); font-size: 1.1rem; text-align: center; }
  .nav-toggle { display: block; }
  .header-hotline .txt { display: none; }
  .topbar-info span:not(:first-child) { display: none; }

  /* Logo to hơn + căn giữa header, kèm dòng chữ giới thiệu bên dưới; nút menu vẫn nằm bên phải.
     .brand dùng position:absolute nên không tính vào chiều cao -> đặt min-height cho container. */
  .navbar-main { padding: 10px 0; }
  .navbar-main .container { position: relative; justify-content: flex-end; min-height: 82px; }
  .brand {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  }
  .brand img { height: 60px; }
  .brand-tagline {
    display: block; font-family: var(--font-label); font-weight: 700;
    /* co giãn theo bề ngang máy, có chặn trên/dưới để không tràn ra nút menu */
    font-size: clamp(.74rem, 4vw, 1.1rem); letter-spacing: .04em; text-transform: uppercase;
    color: var(--navy-700); line-height: 1.2; white-space: nowrap;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding-top: 80px; }
.site-footer h5 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; letter-spacing: .3px; }
.site-footer a:hover { color: var(--sand-400); }
.footer-logo img { height: 60px; margin-bottom: 18px; }
.footer-about p { font-size: .93rem; }
.footer-links li { margin-bottom: 12px; font-size: .93rem; }
.footer-links a::before { content: '›'; margin-right: 8px; color: var(--sand-500); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .93rem; }
.footer-contact li i { color: var(--sand-400); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--sand-500); color: var(--navy-900); transform: translateY(-3px); }
.footer-map iframe { width: 100%; height: 160px; border: 0; border-radius: var(--radius-sm); filter: grayscale(.3) brightness(.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding: 22px 0; font-size: .85rem; text-align: center; }
.footer-bottom a { color: var(--sand-400); }
.footer-credit { display: inline-block; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.5); }
@media (max-width: 575.98px) { .footer-credit { display: block; margin: 8px 0 0; padding-left: 0; border-left: 0; } }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-actions {
  position: fixed; right: 20px; bottom: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.floating-actions a {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white); box-shadow: var(--shadow-medium); position: relative;
}
.floating-actions .fab-zalo { background: #0068FF; }
.floating-actions .fab-call { background: var(--sand-500); color: var(--navy-900); }
.floating-actions .fab-call { animation: fab-bounce 2.4s infinite; }
.fab-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: .6; animation: fab-ping 1.8s infinite; }
@keyframes fab-ping { to { transform: scale(1.6); opacity: 0; } }
@keyframes fab-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================================
   HERO — split panel (light text side + green diagonal photo side)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  color: var(--text-dark); overflow: hidden; background: var(--sand-100);
}
.hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item { height: 100%; }
.hero-carousel { position: absolute; inset: 0; }
.hero-carousel .carousel-item { position: relative; }
.hero-split { display: flex; align-items: stretch; height: 100%; min-height: 100vh; }

.hero-left {
  flex: 0 0 44%; max-width: 44%; position: relative; z-index: 2;
  display: flex; align-items: center; padding: calc(var(--header-h) + 20px) 5% 40px;
  background: var(--sand-100); overflow: hidden;
}
.hero-left::before {
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background: repeating-linear-gradient(-55deg, var(--navy-700) 0 3px, transparent 3px 42px);
}
.hero-left-content { position: relative; z-index: 1; }
.hero-title { color: var(--navy-800); margin-bottom: .35em; line-height: 1.1; font-weight: 900; letter-spacing: .5px; }
.hero-title em { font-style: normal; color: var(--navy-600); }
/* Mỗi cụm luôn nằm gọn 1 dòng: dùng clamp riêng theo vw (không phụ thuộc .hero-title)
   để chữ tự co theo bề ngang cột trái, không bao giờ bị xuống dòng giữa chừng. */
.hero-title-sub { display: block; white-space: nowrap; font-size: clamp(.85rem, 1.7vw, 1.3rem); font-weight: 700; letter-spacing: .12em; margin-bottom: .3em; }
.hero-title-main { display: block; white-space: nowrap; font-size: clamp(1.9rem, 4.1vw, 3.4rem); line-height: 1.05; }
.hero-slogan {
  font-size: clamp(.98rem, 1.3vw, 1.1rem); color: var(--white); max-width: 460px; margin-bottom: 1.6em;
  background: var(--navy-700); padding: 16px 20px; border-radius: var(--radius-sm);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2em; }
.hero-contact-mini { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; color: var(--text-dark); }
.hero-contact-mini a { color: var(--text-dark); }
.hero-contact-mini a:hover { color: var(--navy-700); }
.hero-contact-mini i { color: var(--navy-700); width: 18px; text-align: center; margin-right: 8px; }

.hero-right {
  flex: 1; position: relative; display: flex; align-items: center; overflow: hidden;
  padding: 40px 4% 40px 10%;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background: var(--navy-700); clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-right-duo { position: relative; z-index: 1; width: 100%; height: 82%; max-height: 580px; margin: 0 auto; }
.hero-img-main {
  position: absolute; top: 0; right: 6%; width: 62%; height: 96%;
  border-radius: 50% 50% 20px 20px; overflow: hidden; box-shadow: var(--shadow-medium);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-circle {
  position: absolute; left: -4%; bottom: -8%; z-index: 2;
  width: 54%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 12px solid var(--sand-400); box-shadow: var(--shadow-medium); background: var(--sand-400);
}
.hero-img-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Hiệu ứng chuyển slide: dùng crossfade mặc định của Bootstrap (.carousel-fade) ----
   Không override transition/opacity của .carousel-item hay .active.carousel-item-start/end:
   Bootstrap JS tự đo transition-duration để đồng bộ thời điểm đổi class active, chỉnh tay
   ở đây sẽ làm ảnh "khựng" thay vì mờ mượt. Chỉ thêm hiệu ứng vào cho NỘI DUNG bên trong. */

/* ---- Nội dung chữ trượt nhẹ + mờ dần vào; chỉ áp dụng khi slide đã active hẳn
   (không phải lúc đang trong quá trình chuyển .carousel-item-start/.carousel-item-end) ---- */
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-carousel .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hero-left-content {
  animation: heroContentIn .9s cubic-bezier(.25,.8,.25,1) both;
  animation-delay: .1s;
}

/* ---- Ảnh: mờ + phóng nhẹ khi vào, rồi tự zoom chậm liên tục (hiệu ứng Ken Burns) ---- */
@keyframes heroImageIn {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1.06); }
}
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-carousel .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hero-img-main img {
  animation: heroImageIn .8s cubic-bezier(.25,.8,.25,1) both, heroKenBurns 7s ease-out .8s forwards;
}
.hero-carousel .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hero-img-circle {
  animation: heroContentIn .7s cubic-bezier(.25,.8,.25,1) both;
  animation-delay: .25s;
}
.hero-carousel .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hero-img-circle img {
  animation: heroKenBurns 8s ease-out forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .carousel-item .hero-left-content,
  .hero-carousel .carousel-item .hero-img-main img,
  .hero-carousel .carousel-item .hero-img-circle,
  .hero-carousel .carousel-item .hero-img-circle img { animation: none; }
}

.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { z-index: 3; width: 6%; opacity: .7; transition: var(--transition); }
.hero-carousel .carousel-control-prev:hover, .hero-carousel .carousel-control-next:hover { opacity: 1; }
.hero-carousel .carousel-indicators { z-index: 3; margin-bottom: 18px; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); }
.hero-carousel .carousel-indicators .active { background: var(--sand-400); }

@media (max-width: 991.98px) {
  /* Mobile: slider hiển thị như MỘT DẢI BANNER NGANG thu nhỏ - giữ nguyên bố cục 2 cột
     giống desktop, chỉ co tỉ lệ theo bề ngang màn hình (dùng vw) thay vì xếp dọc.
     Carousel phải nằm trong luồng bình thường, nếu để position:absolute + height:100%
     thì nội dung sẽ bị .hero (100vh) cắt mất. */
  .hero { min-height: auto; margin-top: var(--header-h); }
  .hero-carousel { position: relative; inset: auto; }
  .hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item { height: auto; }

  /* height thay vì min-height sẽ tràn/cắt chữ khi nội dung dài (3 địa chỉ) không vừa 52vw;
     dùng min-height để khung tự giãn cao hơn khi cần, vẫn giữ dáng banner khi nội dung ít. */
  .hero-split { flex-direction: row; align-items: stretch; min-height: 52vw; height: auto; }

  .hero-left { flex: 0 0 48%; max-width: 48%; padding: 3vw 3vw 3vw 4.5vw; }
  .hero-left .eyebrow { font-size: 1.5vw; letter-spacing: .25vw; margin-bottom: .9vw; gap: 1vw; }
  .hero-left .eyebrow::before { width: 3.4vw; height: 1px; }
  .hero-title { line-height: 1.15; letter-spacing: 0; margin-bottom: .7vw; }
  /* Cột trái ở đây chỉ rộng 48% màn hình (banner thu nhỏ) nên cần cỡ chữ riêng,
     nhỏ hơn mốc dùng cho layout desktop, để "RÈM QUY NHƠN" không bị vỡ dòng. */
  .hero-title-sub { font-size: 1.8vw; margin-bottom: .5vw; }
  .hero-title-main { font-size: 5vw; }
  .hero-slogan { font-size: 1.55vw; line-height: 1.4; padding: 1.3vw 1.6vw; margin-bottom: 1.4vw; max-width: 100%; border-radius: 1vw; }
  .hero-cta { margin-bottom: 1.4vw; gap: 1.2vw; }
  .hero-cta .btn { font-size: 1.8vw; padding: 1.2vw 2.4vw; border-radius: .9vw; gap: .8vw; }
  .hero-cta .btn i { font-size: 1.8vw; }
  /* Có tới 4 dòng (điện thoại + 3 địa chỉ), tính hoàn toàn theo vw sẽ ra chữ quá nhỏ
     không đọc được ở máy nhỏ -> đặt sàn tối thiểu bằng clamp(). */
  .hero-contact-mini { font-size: clamp(.62rem, 1.9vw, .82rem); line-height: 1.35; gap: 1.1vw; }
  .hero-contact-mini i { width: 2vw; min-width: 12px; margin-right: .7vw; font-size: clamp(.62rem, 1.9vw, .82rem); }

  .hero-right { padding: 3vw 3vw 4.5vw 7vw; }
  .hero-right-duo { height: 78%; max-width: none; margin: 0; }
  /* Nội dung bên trái giờ dài hơn (3 địa chỉ) nên khung slider có thể cao hơn mốc chuẩn;
     bớt phần ảnh tràn xuống để ảnh tròn không bị cắt bởi overflow:hidden của .hero-right. */
  .hero-img-circle { bottom: -2%; }
  .hero-img-circle { border-width: 1.2vw; }

  /* chấm chuyển slide nằm dưới banner (nền sáng) nên phải đổi sang màu đậm */
  .hero-carousel .carousel-indicators { position: static; margin: 2.5vw 0 1vw; }
  .hero-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; background: rgba(16,31,50,.25); }
  .hero-carousel .carousel-indicators .active { background: var(--navy-700); }
  .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
}

/* generic page hero (inner pages) */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 90px) 0 100px; color: var(--white);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); overflow: hidden;
}
.page-hero .bg-shape { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 85% 20%, var(--sand-400), transparent 45%), radial-gradient(circle at 10% 90%, var(--sand-400), transparent 40%); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); }
.breadcrumb-nav { display: flex; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.65); }
.breadcrumb-nav a:hover { color: var(--sand-400); }

/* ============================================================
   COUNTERS
   ============================================================ */
.counters { background: var(--navy-800); color: var(--white); }
.counter-item { text-align: center; padding: 20px; }
.counter-num { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; color: var(--sand-400); line-height: 1; }
.counter-num::after { content: attr(data-suffix); }
.counter-label { margin-top: 10px; font-size: .95rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   CATEGORY GRID (Hạng mục cung cấp)
   ============================================================ */
.category-card {
  position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1/1; box-shadow: var(--shadow-soft); transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover img { transform: scale(1.08); }
.category-card-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px;
  background: var(--navy-700); color: var(--white); text-align: center;
  font-family: var(--font-label); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.25;
}

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--white); transition: var(--transition); }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.video-card-media { background: #000; }
.video-card-media video { width: 100%; display: block; }
.video-card-title {
  padding: 14px 18px; background: var(--navy-700); color: var(--white);
  font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 10px;
}
.video-card-title i { color: var(--sand-400); font-size: 1.2rem; flex-shrink: 0; }

/* ============================================================
   GALLERY GRID (Thi Công Thực Tế)
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition); aspect-ratio: 1 / 1; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ============================================================
   CARDS: product / project / news
   ============================================================ */
.card-product {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-soft); transition: var(--transition); height: 100%;
  display: flex; flex-direction: column; border: 1px solid rgba(16,31,50,.06);
}
.card-product:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-product:hover .card-media img { transform: scale(1.09); }
.card-badge { position: absolute; top: 14px; left: 14px; background: var(--sand-500); color: var(--navy-900); font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.card-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,61,24,.82), transparent 60%);
  opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 18px;
}
.card-product:hover .card-overlay { opacity: 1; }
.card-overlay .zoom-btn {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; position: absolute; top: 14px; right: 14px;
  transform: scale(.6); opacity: 0; transition: var(--transition);
}
.card-product:hover .card-overlay .zoom-btn { transform: scale(1); opacity: 1; }
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sand-600); font-weight: 700; margin-bottom: 6px; }
.card-title { font-size: 1.15rem; margin-bottom: 8px; }
.card-title a:hover { color: var(--navy-600); }
.card-desc { color: var(--text-muted); font-size: .92rem; flex: 1; margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed rgba(16,31,50,.12); }
.card-price { font-weight: 700; color: var(--navy-700); }

/* project card (wide) */
.card-project { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-soft); height: 100%; }
.card-project .card-media { aspect-ratio: 4/3; }
.card-project .proj-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px;
  background: linear-gradient(0deg, rgba(12,61,24,.92), rgba(12,61,24,.1));
  color: var(--white); transform: translateY(10px); opacity: .96; transition: var(--transition);
}
.card-project:hover .proj-info { transform: translateY(0); }
.proj-info .cat-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sand-400); font-weight: 700; }
.proj-info h3 { color: var(--white); font-size: 1.3rem; margin: 6px 0 4px; }
.proj-info .loc { font-size: .85rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }

/* news card */
.card-news { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.card-news:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.card-news .card-media { aspect-ratio: 16/10; }
.news-date { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--sand-600); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.card-news .card-title { font-size: 1.1rem; }
.read-more { font-weight: 700; font-size: .9rem; color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px; }
.read-more i { transition: transform var(--transition); }
.card-news:hover .read-more i, .card-product:hover .read-more i { transform: translateX(5px); }

/* ============================================================
   PORTFOLIO MASONRY GRID (trang chủ - sản phẩm nổi bật)
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; gap: 20px; }
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); grid-row: span 2; display: block; }
.portfolio-item.span-tall { grid-row: span 3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.portfolio-item:hover img { transform: scale(1.08); }
.pf-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,61,24,.85), transparent 55%);
  opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 18px;
}
.portfolio-item:hover .pf-overlay { opacity: 1; }
.pf-name { color: var(--white); font-weight: 700; font-family: var(--font-heading); font-size: 1.05rem; }
.pf-zoom {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy-800); display: flex; align-items: center; justify-content: center;
  transform: scale(.6); opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .pf-zoom { transform: scale(1); opacity: 1; }
@media (max-width: 991.98px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .portfolio-item, .portfolio-item.span-tall { grid-row: span 1; }
}

/* project carousel caption */
.carousel-caption {
  text-align: left; left: 0; right: 0; bottom: 0; padding: 36px 44px;
  background: linear-gradient(0deg, rgba(12,61,24,.88), transparent); border-radius: 0;
}
.carousel-caption .cat-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sand-400); font-weight: 700; }
.carousel-caption h3 { color: var(--white); margin: 6px 0; font-size: 1.6rem; }
@media (max-width: 575.98px) { .carousel-caption { padding: 18px 20px; } .carousel-caption h3 { font-size: 1.15rem; } }

/* ============================================================
   FILTERS
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.filter-btn {
  padding: .6rem 1.4rem; border-radius: 999px; border: 1.5px solid rgba(27,58,92,.18);
  background: var(--white); font-weight: 600; font-size: .9rem; color: var(--navy-700); transition: var(--transition); cursor: pointer;
}
.filter-btn:hover { border-color: var(--navy-700); }
.filter-btn.active { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.filter-item { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.filter-item.hide { display: none; }

/* ============================================================
   WHY / FEATURES
   ============================================================ */
.feature-card { text-align: center; padding: 40px 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); height: 100%; transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.feature-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sand-300), var(--sand-500)); color: var(--navy-900); font-size: 2rem; transition: var(--transition);
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature-card h4 { font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba-slider { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-medium); user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { z-index: 1; }
.ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; z-index: 2; }
.ba-after-wrap img { width: var(--ba-img-w, 100%); max-width: none; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 3; cursor: ew-resize;
  transform: translateX(-50%);
}
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 3px; background: var(--white); box-shadow: 0 0 10px rgba(0,0,0,.4); }
.ba-handle-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-medium); font-size: 1.1rem; gap: 2px;
}
.ba-tag { position: absolute; top: 16px; z-index: 4; background: rgba(16,31,50,.75); color: var(--white); padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ba-tag.before { left: 16px; }
.ba-tag.after { right: 16px; }

/* ============================================================
   LIGHTBOX (GLightbox tone overrides)
   ============================================================ */
.glightbox-clean .gslide-description { background: var(--navy-900); }
.gnavigation .gnext svg, .gnavigation .gprev svg { color: var(--sand-400); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-dorri { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination-dorri a, .pagination-dorri span {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(27,58,92,.15); font-weight: 600; color: var(--navy-700); transition: var(--transition);
}
.pagination-dorri a:hover, .pagination-dorri .current { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }

/* ============================================================
   FORMS
   ============================================================ */
.form-dorri label { font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 6px; display: block; }
.form-dorri .form-control, .form-dorri .form-select {
  border-radius: var(--radius-sm); border: 1.5px solid rgba(27,58,92,.16); padding: .8rem 1rem; font-size: .96rem;
}
.form-dorri .form-control:focus, .form-dorri .form-select:focus { border-color: var(--navy-600); box-shadow: 0 0 0 .2rem rgba(36,80,122,.15); }
.form-dorri textarea { min-height: 140px; }

/* ============================================================
   MISC PAGE BLOCKS
   ============================================================ */
.about-img-stack { position: relative; }
.about-img-stack .img-main { border-radius: var(--radius); box-shadow: var(--shadow-medium); }
.about-img-stack .img-float {
  position: absolute; width: 55%; border-radius: var(--radius); box-shadow: var(--shadow-medium);
  border: 6px solid var(--white); bottom: -40px; right: -30px;
}
.stat-mini { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-medium); padding: 18px 26px; display: inline-flex; gap: 14px; align-items: center; }
.stat-mini strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy-800); display: block; line-height: 1; }
.stat-mini span { font-size: .8rem; color: var(--text-muted); }

.address-card { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); height: 100%; }
.address-card .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--sand-300); color: var(--navy-800); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.address-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.address-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.map-embed iframe, .map-embed .map-fallback { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--sand-400); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -40px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-700); border: 4px solid var(--sand-300); }
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item .year { color: var(--sand-600); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }

.related-products, .related-news { background: var(--sand-100); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid rgba(27,58,92,.1); }
.spec-table td { padding: 12px 6px; font-size: .94rem; }
.spec-table td:first-child { color: var(--text-muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; color: var(--navy-800); }

.product-gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; margin-bottom: 14px; box-shadow: var(--shadow-soft); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 12px; }
.product-thumbs a { width: 78px; height: 78px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; opacity: .7; transition: var(--transition); }
.product-thumbs a.active, .product-thumbs a:hover { border-color: var(--navy-700); opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.social-share { display: flex; gap: 10px; align-items: center; }
.social-share a { width: 40px; height: 40px; border-radius: 50%; background: var(--sand-200); color: var(--navy-800); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-share a:hover { background: var(--navy-700); color: var(--white); }

/* article content */
.article-content { font-size: 1.05rem; color: var(--text-dark); }
.article-content h2, .article-content h3 { margin-top: 1.4em; }
.article-content img { border-radius: var(--radius); margin: 1.4em 0; }
.article-content blockquote { border-left: 4px solid var(--sand-500); padding: 10px 24px; font-style: italic; color: var(--navy-700); background: var(--sand-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px; margin-bottom: 26px; }
.sidebar-widget h5 { font-size: 1.05rem; border-bottom: 2px solid var(--sand-400); padding-bottom: 12px; margin-bottom: 18px; }
.sidebar-post { display: flex; gap: 14px; margin-bottom: 16px; }
.sidebar-post img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sidebar-post h6 { font-size: .92rem; margin: 0 0 4px; line-height: 1.4; }
.sidebar-post small { color: var(--text-muted); font-size: .78rem; }

/* ============================================================
   SCROLL REVEAL (fallback when AOS not loaded / reduced motion)
   ============================================================ */
[data-aos] { transition-property: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hero-bg { animation: none; }
}

/* back to top */
.back-to-top {
  position: fixed; left: 20px; bottom: 24px; z-index: 999; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-medium); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* loader */
.page-loader { position: fixed; inset: 0; background: var(--navy-900); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
.page-loader img { height: 56px; animation: loader-pulse 1.2s infinite ease-in-out; }
@keyframes loader-pulse { 0%, 100% { opacity: .4; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
.page-loader.done { opacity: 0; visibility: hidden; }

/* utility spacing */
.mt-n1 { margin-top: -1px; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.rounded-dorri { border-radius: var(--radius); }
