/* ================================================
   Nội Thất Hoài Anh – Main CSS
   Colors: Navy #0d1b3e | Orange #e86100 | White #fff
   ================================================ */

:root {
  --primary:       #e86100;
  --primary-dark:  #c9500a;
  --primary-light: #fff3eb;
  --navy:          #0d1b3e;
  --navy-dark:     #091228;
  --navy-light:    #162952;
  --white:         #ffffff;
  --light:         #f8f9fa;
  --text:          #1a1a2e;
  --text-muted:    #666;
  --border:        #e5e7eb;
  --font-body:     'Be Vietnam Pro', sans-serif;
  --transition:    0.3s ease;
  --shadow:        0 4px 20px rgba(0,0,0,.08);
  --shadow-md:     0 6px 30px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.18);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
}

/* ──── Reset & Base ──── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  padding-top: 70px;
}
@media (min-width: 992px) { body { padding-top: 80px; } }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-body); color: var(--navy); font-weight: 700; }
a { text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ──── Utilities ──── */
.text-orange    { color: var(--primary) !important; }
.text-navy      { color: var(--navy) !important; }
.bg-navy        { background: var(--navy) !important; }
.bg-orange      { background: var(--primary) !important; }
.section-gap    { padding: 72px 0; }
.section-gap-sm { padding: 48px 0; }

/* Override Bootstrap primary */
.text-primary   { color: var(--primary) !important; }
.bg-primary     { background: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn-primary    { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; border-radius: 50px; padding: .6rem 1.8rem; transition: all .3s; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,97,0,.35); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 50px; padding: .6rem 1.8rem; font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; border-radius: 50px; padding: .6rem 1.8rem; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-white { background: #fff; color: var(--navy); font-weight: 600; border-radius: 50px; padding: .6rem 1.8rem; border: 2px solid rgba(255,255,255,.6); }
.btn-white:hover { background: rgba(255,255,255,.9); color: var(--navy); }

/* ──── Section Header ──── */
.sec-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.sec-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
  letter-spacing: -.3px;
}
.sec-divider {
  width: 48px; height: 4px;
  background: var(--primary);
  border-radius: 3px;
  margin: .75rem auto 1.5rem;
}
.sec-divider.left { margin-left: 0; }

/* ──── Preloader ──── */
#preloader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .5s; }
#preloader.hidden { opacity: 0; pointer-events: none; }
.spinner-ring { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════ HEADER ══════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  height: 70px;
  display: flex; align-items: center;
  transition: all var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

/* Logo */
.header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 46px; height: 46px; flex-shrink: 0;
}
.logo-text-wrap { line-height: 1; }
.logo-sub  { font-size: .65rem; font-weight: 600; color: #888; letter-spacing: .5px; text-transform: uppercase; display: block; }
.logo-name { font-size: 1.25rem; font-weight: 900; color: var(--navy); letter-spacing: -.3px; display: block; line-height: 1.1; }
.logo-brand { font-size: .65rem; color: var(--primary); font-weight: 600; display: block; }

@media (max-width: 991px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .header-logo {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .logo-text-wrap {
    min-width: 0;
    overflow: hidden;
  }

  .logo-sub,
  .logo-name,
  .logo-brand {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-name {
    font-size: 1.05rem;
  }

  .header-logo.hide-mobile-logo-text {
    gap: 0;
  }

  .header-logo.hide-mobile-logo-text .logo-text-wrap {
    display: none;
  }

  .mobile-drawer-logo.hide-mobile-drawer-logo-text {
    gap: 0;
  }

  .mobile-drawer-logo.hide-mobile-drawer-logo-text .logo-text-wrap {
    display: none;
  }
}

@media (max-width: 420px) {
  .btn-hamburger,
  .btn-call-mobile {
    width: 40px;
    height: 40px;
  }

  .btn-call-mobile svg {
    width: 18px;
    height: 18px;
  }

  .header-logo {
    gap: 8px;
  }

  .header-logo img,
  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-sub,
  .logo-brand {
    display: none;
  }
}

/* Desktop Nav */
.header-nav { display: none; }
@media (min-width: 992px) {
  body { padding-top: 80px; }
  .site-header { height: 80px; }
  .header-nav {
    display: flex; align-items: center; gap: 4px;
    flex: 1; justify-content: center;
  }
  .header-nav a {
    font-size: .9rem; font-weight: 600; color: var(--navy);
    padding: .45rem .85rem; border-radius: 6px;
    transition: all var(--transition);
    white-space: nowrap;
  }
  .header-nav a:hover, .header-nav a.active { color: var(--primary); background: var(--primary-light); }
  .header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .header-phone {
    display: flex; align-items: center; gap: 6px;
    background: var(--primary); color: #fff;
    padding: .45rem 1.2rem; border-radius: 50px;
    font-weight: 700; font-size: .9rem;
    box-shadow: 0 4px 14px rgba(232,97,0,.35);
    transition: all .3s;
  }
  .header-phone:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
  .header-phone svg { width: 16px; height: 16px; }
}

/* Mobile controls */
.header-mobile-right {
  display: flex; align-items: center; gap: 8px;
}
@media (min-width: 992px) { .header-mobile-right { display: none; } }

.btn-hamburger {
  width: 42px; height: 42px; padding: 0;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 8px; transition: background .2s;
}
.btn-hamburger:hover { background: var(--light); }
.btn-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all .3s;
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-call-mobile {
  width: 42px; height: 42px;
  background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(232,97,0,.4);
  transition: transform .2s;
  flex-shrink: 0;
}
.btn-call-mobile:hover { transform: scale(1.1); color: #fff; }
.btn-call-mobile svg { width: 20px; height: 20px; }

@media (min-width: 992px) {
  .btn-hamburger,
  .btn-call-mobile {
    display: none;
  }
}

/* Desktop CTA hide on mobile */
.header-cta { display: none; }
@media (min-width: 992px) { .header-cta { display: flex; } }

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 998; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav-drawer {
  position: fixed; top: 0; left: -280px; bottom: 0;
  width: 280px; background: #fff;
  z-index: 999; transition: left .3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.mobile-nav-drawer.open { left: 0; }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.mobile-nav-links { padding: 12px 0; }
.mobile-nav-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; color: var(--navy);
  font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid var(--light);
  transition: all .2s;
}
.mobile-nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.mobile-nav-links a.active { color: var(--primary); }
.mobile-nav-cta { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 50px; font-weight: 700;
  font-size: .95rem;
}
.mobile-cta-call { background: var(--primary); color: #fff; }
.mobile-cta-zalo { background: #0068ff; color: #fff; }

/* ══════════════════════ HERO ══════════════════════ */
.hero-section {
  position: relative;
  background-color: #d9d2c6;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 62% center;
  padding: 0;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
}
@media (min-width: 992px) {
  .hero-section {
    min-height: calc(100vh - 80px);
    background-position: right center;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 27, 62, .18) 0%, rgba(13, 27, 62, .08) 42%, rgba(13, 27, 62, 0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
}

.hero-layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 70px);
}
@media (min-width: 992px) { .hero-layout { min-height: calc(100vh - 80px); } }

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 28px 40px 0;
  margin: 0;
  background: none;
}
@media (min-width: 768px) {
  .hero-content { padding: 56px 52px 56px 0; }
}
@media (min-width: 992px) {
  .hero-content { min-height: calc(100vh - 80px); }
}

.hero-content > * {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.998) 34%, rgba(255,255,255,.985) 50%, rgba(255,255,255,.9) 62%, rgba(255,255,255,.68) 74%, rgba(255,255,255,.34) 86%, rgba(255,255,255,0) 100%);
  z-index: 0;
}

.hero-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  background: var(--primary); color: #fff;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: .4rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900; line-height: 1.15;
  color: var(--navy); margin-bottom: .5rem;
  letter-spacing: -.5px;
}
.hero-title .orange { color: var(--primary); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 1rem 0 1.5rem;
}
.hero-trust span {
  font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.hero-trust span svg { color: var(--primary); width: 16px; height: 16px; }

.hero-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }

@media (max-width: 767px) {
  .hero-content {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 112px 18px 36px;
    background: none;
  }

  .hero-content::before {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.9) 18%, rgba(255,255,255,.72) 36%, rgba(255,255,255,.44) 52%, rgba(255,255,255,.2) 62%, rgba(255,255,255,0) 66.66%);
  }
}

.btn-hero-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: .85rem 1.8rem; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 6px 24px rgba(232,97,0,.4);
  transition: all .3s; border: none; cursor: pointer;
  white-space: nowrap;
}
.btn-hero-call:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,97,0,.5); }

.btn-hero-zalo {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy);
  padding: .85rem 1.8rem; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  border: 2px solid var(--border);
  transition: all .3s; cursor: pointer;
  white-space: nowrap;
}
.btn-hero-zalo:hover { border-color: #0068ff; color: #0068ff; transform: translateY(-2px); }

/* ══════════════════════ FEATURES BAR ══════════════════════ */
.features-bar {
  padding: 0 16px;
  margin: -32px auto 0;
  max-width: 1200px;
  position: relative;
  z-index: 10;
}
.features-bar-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
}
@media (min-width: 768px) { .features-bar-inner { grid-template-columns: repeat(4, 1fr); } }

.feature-item {
  background: #fff;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-text .label { font-size: .8rem; color: var(--text-muted); display: block; }
.feature-text .value { font-size: .9rem; font-weight: 800; color: var(--navy); display: block; letter-spacing: .3px; }

/* ══════════════════════ SERVICES ══════════════════════ */
.services-section { padding: 72px 0 60px; background: #fff; }
@media (min-width: 768px) { .services-section { padding: 88px 0 72px; } }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  align-self: start;
  background: #fff;
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card.is-active {
  box-shadow: 0 0 0 2px rgba(232,97,0,.18), var(--shadow-lg);
}

.service-card-trigger {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.service-card-img {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 180px;
}
.service-card-img > a {
  display: block;
  height: 100%;
  color: inherit;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .5s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-icon {
  position: absolute;
  bottom: -22px; left: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(232,97,0,.4);
  z-index: 2;
}
.service-card-icon svg { width: 24px; height: 24px; }

.service-card-body {
  padding: 36px 20px 24px;
}
.service-card-body h3 {
  font-size: 1rem; font-weight: 800; color: var(--navy);
  margin-bottom: .4rem;
}
.service-card-body p {
  font-size: .87rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: .75rem;
}
.service-link {
  font-size: .85rem; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.service-link:hover { color: var(--primary-dark); }

.project-item {
  position: relative;
}

.proj-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.proj-card img {
  transition: transform .45s ease;
}

.proj-card:hover img {
  transform: scale(1.05);
}

.project-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(13,27,62,.86) 0%, rgba(13,27,62,.2) 55%, transparent 100%);
  color: #fff;
}

.project-item-overlay h5 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.service-inline-projects {
  margin: 0 20px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f2 0%, #fff 100%);
  border: 0 solid rgba(232,97,0,.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .28s ease, opacity .22s ease, margin .22s ease, padding .22s ease, border-width .22s ease;
}

.service-inline-projects.is-open {
  margin: 0 20px 20px;
  padding: 18px;
  border-width: 1px;
  max-height: 1200px;
  opacity: 1;
}

.service-inline-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(13,27,62,.08);
}

.service-project-card-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
  height: 100%;
}



.service-project-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.service-project-card-body {
  padding: 18px;
}

.service-project-card-body h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.service-project-card-body p {
  margin: 0 0 10px;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.service-project-card-body span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
}

.service-projects-empty {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.service-projects-empty p {
  margin-bottom: 12px;
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .service-inline-projects {
    margin: 0 14px;
    padding: 0 14px;
  }

  .service-inline-projects.is-open {
    margin: 0 14px 14px;
    padding: 14px;
  }

  .service-project-card-link {
    grid-template-columns: 1fr;
  }

  .service-project-card img {
    min-height: 150px;
  }
}

/* ══════════════════════ COMMITMENT ══════════════════════ */
.commitment-section {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 32px 24px;
  background: var(--navy);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(13,27,62,.24);
}

#mainContent > .commitment-section:last-child {
  margin-bottom: 64px;
}

.commitment-inner {
  max-width: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px;
}
@media (max-width: 767px) {
  .commitment-section {
    margin: 20px 16px 0;
    padding: 24px 18px;
    border-radius: 20px;
  }

  #mainContent > .commitment-section:last-child {
    margin: 20px 16px 48px;
  }
}

.commitment-label {
  display: flex; align-items: center; gap: 12px;
  min-width: 200px;
}
.commitment-label-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.commitment-label-icon svg { width: 26px; height: 26px; }
.commitment-label-text .line1 { font-size: .72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; display: block; }
.commitment-label-text .line2 { font-size: 1.05rem; font-weight: 900; color: #fff; display: block; }

.commitment-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }
@media (max-width: 576px) { .commitment-divider { display: none; } }

.commitment-items {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; flex: 0 1 auto;
}
.commitment-item {
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.commitment-item svg { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.commitment-item span { font-size: .85rem; font-weight: 600; line-height: 1.3; }

/* ══════════════════════ QUOTE FORM SECTION ══════════════════════ */
.quote-section {
  background: var(--light);
  padding: 72px 0;
}
.quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-card-header {
  background: var(--navy);
  padding: 32px 36px 28px;
  color: #fff;
}
.quote-card-header h2,
.quote-card-header h3 { color: #fff; font-size: 1.5rem; }
.quote-card-header p { color: rgba(255,255,255,.75); font-size: .9rem; }
.quote-card-body { padding: 28px 36px 36px; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.form-control, .form-select {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: .65rem 1rem; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px rgba(232,97,0,.12);
}

.quote-toast-stack {
  position: sticky;
  top: 92px;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  margin-bottom: 16px;
}

.quote-toast {
  width: min(420px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(13,27,62,.18);
  background: #fff;
  border: 1px solid rgba(13,27,62,.08);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
}

.quote-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-toast.is-success {
  border-color: rgba(25,135,84,.16);
}

.quote-toast.is-error {
  border-color: rgba(220,53,69,.16);
}

.quote-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-toast.is-success .quote-toast-icon {
  color: #198754;
  background: rgba(25,135,84,.1);
}

.quote-toast.is-error .quote-toast-icon {
  color: #dc3545;
  background: rgba(220,53,69,.1);
}

.quote-toast-content {
  flex: 1;
  min-width: 0;
}

.quote-toast-content strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 4px;
}

.quote-toast-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.quote-toast-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.quote-captcha-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.quote-captcha-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-captcha-image {
  width: 150px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid #eadfd4;
  background: #f7f3ee;
}

.quote-captcha-refresh {
  width: fit-content;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(13,27,62,.12);
  background: #fff;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
}

.quote-captcha-refresh:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quote-captcha-input {
  letter-spacing: .35rem;
  font-weight: 800;
}

@media (max-width: 767px) {
  .quote-toast-stack {
    top: 80px;
  }

  .quote-captcha-wrap {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quote-card-body {
    padding: 24px 20px 28px;
  }

  .quote-card-header {
    padding: 28px 20px 24px;
  }
}

/* ══════════════════════ CUSTOMER REVIEWS ══════════════════════ */
.reviews-section {
  padding: 72px 0;
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.review-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(13,27,62,.08);
  border: 1px solid rgba(230, 126, 34, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(13,27,62,.12);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.review-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f4f8;
}

.review-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-meta {
  min-width: 0;
  flex: 1;
}

.review-meta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.review-meta p,
.review-meta span {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.5;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: rgba(230, 126, 34, .25);
  font-size: 1rem;
  flex-shrink: 0;
}

.review-stars .is-active {
  color: #f4a623;
}

.review-quote-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(230, 126, 34, .1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.review-content {
  margin: 0;
  color: #4b587c;
  line-height: 1.8;
  font-size: .95rem;
}

.review-content-media {
  margin-top: 4px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13,27,62,.08);
  background: #f8fafc;
}

.review-content-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reviews-summary {
  margin-top: 24px;
}

.reviews-summary-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #10233f 0%, #1a365d 100%);
  color: rgba(255,255,255,.84);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reviews-summary-card strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.reviews-summary-card span {
  max-width: 760px;
  font-size: .92rem;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .review-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .review-card-top {
    flex-wrap: wrap;
  }

  .review-stars {
    width: 100%;
  }

  .reviews-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.project-detail-hero-btn,
.project-gallery-thumb {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  position: relative;
  display: block;
  cursor: zoom-in;
}

.project-detail-hero-btn img,
.project-gallery-thumb img {
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}

.project-detail-hero-btn:hover img,
.project-gallery-thumb:hover img {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(13,27,62,.16);
}

.project-detail-zoom-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(13,27,62,.76);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 14, 32, .92);
  padding: 24px;
}

.project-lightbox.open {
  display: flex;
}

.project-lightbox-dialog {
  max-width: min(1100px, calc(100vw - 120px));
  max-height: calc(100vh - 80px);
  text-align: center;
}

.project-lightbox-dialog img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.3);
  object-fit: contain;
  transition: transform .24s ease, opacity .24s ease, filter .24s ease;
  will-change: transform, opacity;
  touch-action: pan-y;
}

.project-lightbox-dialog img.is-dragging {
  transition: none;
}

.project-lightbox-dialog img.is-transitioning {
  opacity: .62;
  filter: saturate(.94);
}

.project-lightbox-dialog img.is-transitioning.slide-left {
  transform: translateX(-18px);
}

.project-lightbox-dialog img.is-transitioning.slide-right {
  transform: translateX(18px);
}

.project-lightbox-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: .95rem;
}

.project-lightbox-caption strong {
  font-weight: 800;
}

.project-lightbox-caption span {
  color: rgba(255,255,255,.72);
}

#projectLightboxCaption {
  max-width: min(720px, 100%);
}

.project-lightbox-thumbs {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  scroll-behavior: smooth;
}

.project-lightbox-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
  opacity: .72;
}

.project-lightbox-thumb:hover,
.project-lightbox-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.project-lightbox-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-lightbox-close,
.project-lightbox-nav {
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.04);
}

.project-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
}

.project-lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.project-lightbox-nav.prev {
  margin-right: 18px;
}

.project-lightbox-nav.next {
  margin-left: 18px;
}

@media (max-width: 767px) {
  .project-detail-zoom-badge {
    right: 12px;
    bottom: 12px;
    font-size: .74rem;
  }

  .project-lightbox {
    padding: 16px;
  }

  .project-lightbox-dialog {
    max-width: calc(100vw - 32px);
  }

  .project-lightbox-dialog img {
    max-height: calc(100vh - 220px);
  }

  .project-lightbox-caption {
    flex-direction: column;
    gap: 4px;
    font-size: .88rem;
  }

  .project-lightbox-thumbs {
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .project-lightbox-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  .project-lightbox-nav {
    position: absolute;
    bottom: 28px;
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
  }

  .project-lightbox-nav.prev {
    left: 18px;
    margin-right: 0;
  }

  .project-lightbox-nav.next {
    right: 18px;
    margin-left: 0;
  }
}

/* ══════════════════════ BLOG ══════════════════════ */
.blog-section { padding: 72px 0; background: var(--light); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 576px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.blog-card-img { position: relative; height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .5px;
}

.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .6rem; }
.blog-card-title {
  font-size: .97rem; font-weight: 700; color: var(--navy);
  margin-bottom: .5rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
  font-size: .85rem; color: var(--text-muted); line-height: 1.6;
  flex: 1; margin-bottom: .75rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-readmore {
  font-size: .85rem; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
}
.blog-readmore:hover { color: var(--primary-dark); }

/* ══════════════════════ FOOTER ══════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }

.footer-main { padding: 60px 0 40px; }
.footer-main .container { max-width: 1200px; }

/* Brand col */
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-sub { color: rgba(255,255,255,.6); }
.footer-desc { font-size: .87rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  transition: all .2s; font-weight: 700;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.social-btn svg { width: 18px; height: 18px; }

/* Footer heading */
.footer-heading {
  font-size: .82rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1.2rem; display: block;
}
.footer-heading::after { display: none; }

/* Services list in footer */
.footer-service-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-service-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.footer-service-icon svg { width: 18px; height: 18px; }
.footer-service-name { font-size: .87rem; font-weight: 700; color: #fff; line-height: 1.2; display: block; }
.footer-service-desc { font-size: .77rem; color: rgba(255,255,255,.5); line-height: 1.4; }

/* Areas list */
.footer-areas li {
  display: flex; align-items: center; gap: 8px;
  font-size: .87rem; color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}
.footer-areas li svg { color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.footer-areas li a { color: rgba(255,255,255,.7); }
.footer-areas li a:hover { color: var(--primary); }

/* Contact info */
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0; margin-top: 2px;
}
.footer-contact-icon svg { width: 16px; height: 16px; }
.footer-contact-item .phone-link {
  font-size: 1.15rem; font-weight: 800; color: var(--primary);
  display: block; line-height: 1.2;
}
.footer-contact-item .sub { font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-contact-item a { color: rgba(255,255,255,.7); font-size: .87rem; }
.footer-contact-item a:hover { color: var(--primary); }
.footer-contact-item span { color: rgba(255,255,255,.7); font-size: .87rem; line-height: 1.5; }

/* Keywords */
.footer-keywords { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-keywords-title {
  font-size: .8rem; font-weight: 800; color: rgba(255,255,255,.9);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px; display: block;
}
.keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tag {
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.65); font-size: .78rem;
  padding: .3rem .85rem; border-radius: 50px;
  transition: all .2s;
}
.keyword-tag:hover { border-color: var(--primary); color: var(--primary); }

/* Commitment bar */
.footer-commitment {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px;
}
.footer-commitment-label {
  display: flex; align-items: center; gap: 10px;
  margin-right: 8px;
}
.footer-commitment-label svg { color: var(--primary); width: 30px; height: 30px; }
.footer-commitment-label span { font-size: .95rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.footer-commitment-sep { width: 1px; height: 32px; background: rgba(255,255,255,.2); }
.footer-commit-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; }
.footer-commit-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); }
.footer-commit-item svg { color: var(--primary); width: 22px; height: 22px; flex-shrink: 0; }
.footer-commit-item span { font-size: .82rem; font-weight: 600; line-height: 1.3; }

/* Bottom bar */
.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom .container { max-width: 1200px; }
.footer-bottom p, .footer-bottom a { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--primary); }

/* ══════════════════════ FLOATING BUTTONS (desktop) ══════════════════════ */
.floating-btns {
  position: fixed; right: 20px; bottom: 90px;
  z-index: 500; display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 767px) { .floating-btns { display: none; } }

.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; flex-direction: column;
  color: #fff;
}
.fab:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,.3); color: #fff; }
.fab svg { width: 22px; height: 22px; }
.fab-phone { background: var(--primary); animation: pulse 2s infinite; }
.fab-zalo  { background: #0068ff; }
.fab-messenger { background: linear-gradient(135deg, #0866ff, #e1306c); }
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 276px;
  z-index: 505;
  background: var(--navy);
  border: none;
  display: none;
}
.back-to-top.visible {
  display: flex;
}
@media (max-width: 767px) {
  .back-to-top {
    right: 16px;
    bottom: 84px;
  }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,97,0,.5); }
  50%      { box-shadow: 0 0 0 12px rgba(232,97,0,0); }
}

/* ══════════════════════ MOBILE STICKY BAR ══════════════════════ */
.mobile-sticky-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 600;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) { .mobile-sticky-bar { display: none; } }

.sticky-btn {
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 11px;
  font-weight: 800;
  font-size: .96rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(13,27,62,.18);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.sticky-btn:hover { opacity: .96; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(13,27,62,.22); }
.sticky-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.sticky-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-call {
  background: linear-gradient(180deg, #122a63 0%, #081f56 100%);
}
.sticky-zalo {
  background: linear-gradient(180deg, #ff6b08 0%, #ff5b00 100%);
}
.sticky-messenger {
  background: linear-gradient(180deg, #1f86ff 0%, #0b6dff 100%);
}
.sticky-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.sticky-badge-zalo {
  color: #ff5b00;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sticky-badge-messenger {
  color: #1f86ff;
}
.sticky-badge-messenger svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 420px) {
  .mobile-sticky-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 8px;
  }

  .sticky-btn {
    min-height: 52px;
    padding: 0 9px;
    gap: 8px;
    font-size: .88rem;
    border-radius: 16px;
  }

  .sticky-badge {
    width: 26px;
    height: 26px;
  }

  .sticky-badge-zalo {
    font-size: .54rem;
  }
}

/* ══════════════════════ BACK TO TOP ══════════════════════ */
#backToTop:hover { background: var(--primary); }
#backToTop svg { width: 20px; height: 20px; }

/* ══════════════════════ PAGE HERO (inner pages) ══════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 56px 0 44px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0zm20 20h20v20H20z' fill='rgba(232,97,0,.05)'/%3E%3C/svg%3E");
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem,4vw,2.5rem); position: relative; margin-bottom: .5rem; }
.page-hero .breadcrumb { position: relative; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item a:hover { color: var(--primary); }
.page-hero .breadcrumb-item.active { color: var(--primary); }

/* ══════════════════════ ABOUT PAGE ══════════════════════ */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); object-fit: cover; width: 100%; }
.about-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 16px 22px;
  text-align: center; box-shadow: var(--shadow-lg); min-width: 130px;
}
.about-badge-float .num { font-size: 2.2rem; font-weight: 900; line-height: 1; display: block; }
.about-badge-float .lbl { font-size: .78rem; opacity: .9; }
.stat-card { background: var(--primary-light); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.stat-card .num { font-size: 1.8rem; font-weight: 900; color: var(--primary); display: block; }
.stat-card .lbl { font-size: .82rem; color: var(--text-muted); }
@media (max-width: 767px) { .about-badge-float { position: static; margin-top: 16px; display: inline-block; } }

/* ══════════════════════ SERVICES PAGE ══════════════════════ */
.service-card-full {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.service-card-full:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-full .img-wrap { height: 200px; overflow: hidden; position: relative; }
.service-card-full .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card-full:hover .img-wrap img { transform: scale(1.05); }
.service-card-full .img-wrap .overlay {
  position: absolute; inset: 0; background: rgba(13,27,62,.5);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.service-card-full:hover .img-wrap .overlay { opacity: 1; }
.service-card-full .card-icon {
  position: absolute; bottom: -20px; left: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(232,97,0,.4);
}
.service-card-full .card-icon svg { width: 22px; height: 22px; }
.service-card-full .card-body { padding: 36px 20px 24px; }
.service-card-full .card-title { font-size: 1rem; font-weight: 800; color: var(--navy); }
.service-card-full .card-title a { color: inherit; }
.service-card-full .card-title a:hover { color: var(--primary); }
.service-card-full .card-text { font-size: .87rem; color: var(--text-muted); line-height: 1.6; }
.service-card-full .price-range { font-size: .82rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }

/* ══════════════════════ SERVICE DETAIL ══════════════════════ */
.service-detail-sidebar .sidebar-cta {
  background: var(--navy); border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 20px;
}
.service-detail-sidebar .sidebar-cta h5 { color: #fff; }
.service-detail-sidebar .sidebar-cta p { color: rgba(255,255,255,.7); font-size: .85rem; }
.other-services a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  color: var(--navy); font-size: .88rem; font-weight: 600;
}
.other-services a:hover { color: var(--primary); }
.other-services a svg { color: var(--primary); width: 16px; height: 16px; }

/* ══════════════════════ PROJECTS PAGE ══════════════════════ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.filter-btn {
  padding: .4rem 1.2rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  border: 2px solid var(--border); color: var(--navy);
  background: #fff; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ══════════════════════ BLOG PAGE ══════════════════════ */
.blog-detail-meta { color: var(--text-muted); font-size: .85rem; }
.blog-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-content h2, .blog-content h3 { color: var(--navy); margin-top: 2rem; }
.blog-content img { border-radius: var(--radius); max-width: 100%; }
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.2rem; color: var(--text-muted); font-style: italic;
  margin: 1.5rem 0;
}

/* ══════════════════════ CONTACT PAGE ══════════════════════ */
.contact-info-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-map iframe { border-radius: var(--radius); width: 100%; }

/* ══════════════════════ PAGINATION ══════════════════════ */
.pagination .page-link { color: var(--primary); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link:focus { box-shadow: 0 0 0 3px rgba(232,97,0,.2); }

/* ══════════════════════ ALERTS ══════════════════════ */
.alert-success { border-color: #198754; background: #d1e7dd; }
.alert-danger   { border-color: #dc3545; background: #f8d7da; }

/* ══════════════════════ ERROR PAGE ══════════════════════ */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { font-size: 8rem; color: var(--primary); line-height: 1; font-weight: 900; }

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 767px) {
  .section-gap { padding: 52px 0; }
  body { padding-bottom: 56px; }
  .features-bar { margin: -24px auto 0; }
}
@media (max-width: 575px) {
  .hero-title { font-size: 1.7rem; }
}

/* ══════════════════════ ANIMATIONS ══════════════════════ */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ══════════════════════ PROSE (blog / article body) ══════════════════════ */
.prose { color: var(--text); line-height: 1.85; font-size: .97rem; }
.prose h2,.prose h3,.prose h4 { color: var(--navy); margin-top: 1.8rem; margin-bottom: .7rem; }
.prose p { margin-bottom: 1rem; }
.prose ul,.prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: 8px; margin: 1.2rem 0; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose blockquote { border-left: 4px solid var(--primary); padding: .8rem 1.2rem; background: var(--primary-light); border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.prose,
.prose * {
  max-width: 100%;
}
.prose iframe,
.prose video,
.prose embed,
.prose object {
  width: 100% !important;
  max-width: 100%;
}
.prose img {
  height: auto;
}
.prose table {
  display: block;
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose pre,
.prose code,
.prose a,
.prose td,
.prose th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-hero .breadcrumb {
  flex-wrap: wrap;
}
.page-hero .breadcrumb-item {
  min-width: 0;
  overflow-wrap: anywhere;
}

#map iframe,
#map embed,
#map object {
  width: 100% !important;
  max-width: 100%;
}

/* ══════════════════════ FAB SOCIAL (contact page) ══════════════════════ */
.fab-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.fab-social:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.25); color: #fff; }

/* ══════════════════════ SEC-DIVIDER LEFT ══════════════════════ */
.sec-divider.left { margin-left: 0; }

/* ══════════════════════ MUTED CSS VAR ══════════════════════ */
.text-muted { color: var(--text-muted) !important; }

/* ══════════════════════ MOBILE OVERFLOW GUARDS ══════════════════════ */
html {
  overflow-x: hidden;
}

#mainContent,
.page-hero,
.section-gap,
.commitment-section {
  overflow-x: clip;
}

.row > [class^="col"],
.row > [class*=" col"] {
  min-width: 0;
}

.page-hero h1,
.page-hero .breadcrumb-item,
.service-detail-sidebar a,
.service-detail-sidebar p,
.quote-card a,
.quote-card p,
.quote-card strong,
.contact-info-icon + div,
.contact-info-icon + div * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#map > * {
  max-width: 100% !important;
}

/* ══════════════════════ IMAGE PROTECTION & WATERMARK ══════════════════════ */
.wm-protected-media-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.wm-protected-media-wrap.is-block {
  display: block;
  width: 100%;
}

.wm-protected-media-wrap > img {
  display: block;
  max-width: 100%;
}

.wm-protected-media-wrap::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: clamp(64px, 24%, 160px);
  height: clamp(24px, 8vw, 56px);
  background-image: var(--wm-logo, none);
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 575px) {
  .wm-protected-media-wrap::before {
    top: 8px;
    left: 8px;
    width: clamp(52px, 30%, 120px);
    height: clamp(20px, 9vw, 44px);
  }
}