/* =====================================================
   BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}


/* =====================================================
   COLOR VARIABLES
===================================================== */
:root {
  --primary: #f7931e;
  --teal: #00667f;
  --teal-dark: #07545f;
  --gray-bg: #f5f5f5;
}
/* =====================================================
   Common
===================================================== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  width: 100%;
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}

.company-name {
  font-size: 14px;
  line-height: 1.2;
}

.company-name strong {
  color: var(--teal);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-links a {
  font-size: 14px;
  margin: 0 6px;
  color: #555;
}

.hotline {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- MAIN NAV ---------- */
.main-nav {
  background: linear-gradient(to right, var(--teal), var(--teal-dark));
  display: flex;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  display: flex;
  margin-left: 55px;
}

.menu > li > a {
  display: block;
  padding: 14px 10px;
  color: #fff;
  font-weight: 500;
}
ul li::before {
  content: "";
  position: absolute;
  right: 0;              /* nằm ở cuối li */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;            /* độ dày line */
  height: 15px;          /* chiều cao line */
  background-color: #ccc;
  opacity: 0.5;
}
.menu > li > a:hover {
  background: rgba(255,255,255,0.15);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* =====================================================
   BANNER
===================================================== */
.banner {
  background: url('../images/slider1.jpg') center/cover no-repeat;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.banner-content {
  position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 600px;
    color: #fff;
}

.banner-content h1 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 15px;
}

.banner-content h1 span {
  color: var(--primary);
}

.banner-content p {
  font-size: 18px;
  margin-bottom: 25px;
}
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
}

/* =====================================================
   BUTTON
===================================================== */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 22px;
  font-weight: 500;
}

/* =====================================================
   SERVICES
===================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--gray-bg);
}

.service-box {
  padding: 30px 10px;
  text-align: center;
  font-weight: 600;
  color: var(--teal);
  border-right: 1px solid #e5e5e5;
}

.service-box:last-child {
  border-right: none;
}

/* =====================================================
   PROJECTS
===================================================== */
.projects {
  padding: 60px 15px;
  text-align: center;
}

.projects h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--teal);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =====================================================
   HOUSE SAMPLE
===================================================== */
.house-sample {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 30px;
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.house-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.house-item img {
  transition: 0.4s;
}

.house-item:hover img {
  transform: scale(1.05);
}

.btn-overlay {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,111,126,.85);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
}

.center {
  text-align: center;
  margin-top: 30px;
}

/* =====================================================
   WHY CHOOSE
===================================================== */
.why-choose {
  position: relative;
  background: url('../images/why-bg.jpg') center/cover no-repeat;
  padding: 80px 0;
  color: #fff;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,111,126,.85);
}

.why-content {
  position: relative;
  max-width: 600px;
  margin-left: 80px;
}

.why-content h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.why-content h2 span {
  color: var(--primary);
}

.why-content li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.why-content li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* =====================================================
   FOOTER
===================================================== */
.footer-info {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.footer-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {

  .top-bar-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--teal);
  }

  .menu-toggle {
    display: block;
  }

  .banner-content,
  .why-content {
    margin-left: 20px;
    margin-right: 20px;
  }

  .services,
  .house-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SUB MENU ===== */
.menu li {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  display: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 999;
}

.sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.sub-menu li a:hover {
  background: #f5f5f5;
  color: var(--teal);
}

/* ===== HOVER DESKTOP ===== */
.menu > li:hover > .sub-menu {
  display: block;
}

/* ===== MENU CẤP 3 ===== */
.sub-menu li.has-child > .sub-menu {
  top: 0;
  left: 100%;
}

.sub-menu li.has-child:hover > .sub-menu {
  display: block;
}


/*LOGO customize*/
/* ===== LOGO OVERLAP TOP-BAR & NAV ===== */
/* ===== LOGO OVERLAP (DESKTOP) ===== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.company-name {
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== LOGO OVERLAP (DESKTOP) ===== */
.top-bar {
  position: relative;
  height: 70px;
}


/* ===== LOGO AREA WITH SHAPE BACKGROUND ===== */
.logo-area {
  width: 112px;               /* kiểm soát kích thước */
  height: 91px;
  /* background: url('../images/logo_bg.png') no-repeat center; */
  background-size: contain;   /* QUAN TRỌNG */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  top: 26px;
  border-bottom-left-radius: 5px;
}

/* Logo thật */
.logo-area img {
  width: 100px;   /* chỉnh theo logo thực tế */
  height: auto;
  position: relative;
  left: -4px;
}

@media (max-width: 991px) {

  .menu li.active > .sub-menu {
    display: block;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
  }

  .sub-menu li a {
    color: #fff;
    padding-left: 30px;
  }
  .logo-area {
        background: none;   /* ẩn hình nền */
    }
}
/* Custom CSS Mobile */
/* @media (max-width: 549px) {
  .company-name {
    font-size: 13px !important;
}
} */
/* =========================
   MOBILE HEADER (<= 991px)
========================= */
@media (max-width: 991px) {

  /* ----- TOP BAR ----- */
  .top-bar {
    background: #f7931e;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
  }

  .company-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.4;
  }

  .top-links,
  .hotline {
    display: none;
  }
  /* ----- MAIN NAV ----- */
  .main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  .main-nav .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    flex: 1 1 0;
    z-index: 999;
  }

  /* Hamburger */
  .menu-toggle {
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #333;
    display: block;
    cursor: pointer;
  }

  /* Logo center */
  .logo-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

    .logo-area img {
        height: 55px !important;
        top: -7px;
        width: auto;
    }
  /* ----- MENU MOBILE ----- */
  .menu {
  display: none;
  position: absolute;
  top: 60px;            /* ngay dưới main-nav */
  left: 0;
  width: 100vw;         /* full màn hình */
  background: #0a6f7e;
  flex-direction: column;
  z-index: 998;
}

  .menu.active {
    display: flex;
  }

  .menu > li > a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.2);
    color: #fff;
  }

  /* Sub menu */
  .sub-menu {
    display: none;
    position: static;
    background: rgba(255,255,255,0.08);
  }

  .has-child.active > .sub-menu {
    display: block;
  }

  .sub-menu li a {
    padding-left: 30px;
    font-size: 14px;
    color: #fff;
  }

  .sub-menu .sub-menu li a {
    padding-left: 45px;
    font-size: 13px;
  }
}
@media (max-width: 991px) {

  .main-nav {
    position: relative;
  }

  .menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    margin: 0;
    padding: 0;
    background: #0a6f7e;
    flex-direction: column;
    display: none;
    z-index: 999;
  }

  .menu.active {
    display: flex;
  }

  .menu > li {
    width: 100%;
  }

  .menu > li > a {
    display: block;
    padding: 14px 16px;
  }
}
@media (max-width: 991px) {
.top-bar {
    height: 35px;
}
  .has-child > a {
    position: relative;
    padding-right: 40px;
  }

  .has-child > a::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
  }

  .has-child.active > a::after {
    content: "▴";
  }

  .sub-menu {
    display: none;
    background: rgba(255,255,255,0.08);
  }

  .has-child.active > .sub-menu {
    display: block;
  }
}
.menu-toggle {
  width: 26px;
  height: 20px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: #333;
  left: 0;
  transition: 0.3s;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span::before {
  top: -8px;
}

.menu-toggle span::after {
  top: 8px;
}

/* Khi active → X */
.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active span::after {
  transform: rotate(-45deg);
  top: 0;
}
