/* Header & footer dùng chung: lấy từ theme WordPress nextone-fudousan + các khối cố định (fixed-banner, TO TOP, thanh liên hệ SP) */

/* ---- header/footer (theme styles.css) ---- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  height: 100px;
  padding-left: 260px;
  padding-right: 270px;
  background: #fff;
  transition: height .25s ease, box-shadow .25s ease;
}
.site-header.is-fixed {
  height: 100px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}
.site-header.is-fixed .header-logo {
  width: 160px;
  height: 78px;
  margin-top: 13px;
}
.site-header.is-fixed .header-logo img {
  width: 112px;
}
.header-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  background: #fff;
  transition: width .25s ease, height .25s ease;
}
.header-logo img {
  width: 156px;
  transition: width .25s ease;
}
.header-copy {
  position: absolute;
  right: 22px;
  top: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 300;
}
.header-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 16px !important;
  font-weight: 500;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list.sp {
  display: none;
}
.nav-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list>li {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 1.5;
}
.nav-list>li:not(:last-child)::after {
  content: "｜";
  display: inline-block;
  margin: 0 8px;
  color: #777;
  font-weight: 400;
}
.nav-list>li>a, .nav-list>li>.sub-btn {
  display: flex;
  align-items: center;
  padding: 5px;
  text-align: center;
  transition: color .3s ease;
  font-size: 16px;
}
.nav-list>li>.sub-btn {
  cursor: default;
}
.nav-list>li:hover>a, .nav-list>li:hover>.sub-btn {
  color: var(--accent);
}
.nav-list .sub {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  width: 300px;
  border-top: 1px solid #fff;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.nav-list .parent:hover .sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-list .sub ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list .sub a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 18px;
  border-bottom: 1px solid #fff;
  color: #fff;
  background: #3e3e3e;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  transition: background-color .3s ease;
}
.nav-list .sub a:hover {
  background: var(--accent);
}
.header-contact {
  position: absolute;
  right: 30px;
  top: 40px;
  width: 220px;
  height: 50px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
.header-menu-toggle {
  display: none;
}
.sp-menu-contact {
  display: none;
}
section.contact-section {
  background: #3d3d3d;
  display: flex;
  align-items: center;
  height: 420px;
  padding: 0 !important;
  justify-content: center;
  gap: 90px;
  color: #fff;
}
.contact-section h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1.4;
  font-weight: 600;
}
.contact-section a {
  height: 100px;
  border: 4px solid #fff;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  padding: 0 38px;
}
.contact-section span {
  font: 400 32px/1 Arial, sans-serif;
}
.contact-section b {
  font-size: 16px;
}
.site-footer {
  background: #fff;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 680px;
  border-bottom: 1px solid #666;
}
.footer-nav {
  min-height: 520px;
  padding: 56px 40px 40px 76px;
  display: grid;
  grid-template-columns: 240px 260px 260px;
  gap: 90px;
}
.footer-main h3 {
  margin: 0 0 12px;
  font: 900 18px/1 Arial, sans-serif;
}
.footer-main a, .footer-main p {
  display: block;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
}
.footer-office {
  min-height: 520px;
  padding: 56px 80px 40px;
  border-left: 1px solid #666;
}
.office-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.office-links a {
  height: 50px;
  margin: 0;
  padding: 0 24px;
  border: 2px solid #999;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.office-links a::after {
  content: ">";
}
.footer-banners {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-banners img:first-child {
  width: 230px;
}
.footer-banners img:last-child {
  width: 250px;
}
.copyright {
  height: 88px;
  margin: 0;
  display: grid;
  place-items: center;
  font: 900 16px/1 Arial, sans-serif;
}

/* ---- header/footer (theme reponsives.css) ---- */
@media (max-width: 1200px) {
  .site-header {
    height: 90px;
    padding-right: 24px;
    padding-left: 160px;
  }
  .site-header.is-fixed {
    height: 74px;
  }
  .header-logo {
    width: 150px;
    height: 90px;
  }
  .header-logo img {
    width: 108px;
  }
  .site-header.is-fixed .header-logo {
    width: 130px;
    height: 74px;
  }
  .site-header.is-fixed .header-logo img {
    width: 92px;
  }
  .header-copy {
    display: none;
  }
  .header-nav {
    font-size: 13px;
  }
  .nav-list>li:not(:last-child)::after {
    margin: 0 3px;
  }
  .nav-list>li>a, .nav-list>li>.sub-btn {
    padding: 5px 3px;
  }
  .header-contact {
    position: static;
    display: none;
  }
  .footer-main, .contact-section {
    display: block;
  }
  .footer-office {
    border-left: 0;
    border-top: 1px solid #666;
  }
}
@media (min-width: 1201px) and (max-width: 1500px) {
  .site-header {
    padding-right: 24px;
  }
  .header-contact {
    display: none;
  }
  .header-nav {
    font-size: 14px;
  }
  .nav-list>li:not(:last-child)::after {
    margin: 0 5px;
  }
}
@media (max-width: 750px) {
  body.noscroll {
    overflow: hidden;
  }
  .site-header, .site-header.is-fixed {
    height: 90px;
    padding: 0 92px 0 20px;
    display: flex;
    align-items: center;
  }
  .header-logo, .site-header.is-fixed .header-logo {
    position: static;
    width: 260px;
    height: 90px;
    place-items: center start;
    margin-top: 0px;
  }
  .header-logo img, .site-header.is-fixed .header-logo img {
    width: auto;
    height: 64px;
    object-fit: contain;
  }
  .header-menu-toggle {
    position: absolute;
    right: 25px;
    top: 22px;
    display: grid;
    place-items: center;
    gap: 0;
    width: 52px;
    height: 52px;
    padding: 12px;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    cursor: pointer;
  }
  .header-menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }
  .site-header.is-menu-open .header-menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .site-header.is-menu-open .header-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-menu-open .header-menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .header-nav {
    position: fixed;
    left: 0;
    right: auto;
    top: 90px;
    width: 100vw;
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
    max-height: none;
    display: none;
    padding: 0 0 34px;
    margin: 0;
    border-top: 0;
    background: #151515;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  section.contact-section {
    flex-direction: column;
    height: 420px;
    padding: 70px 20px !important;
    gap: 0;
  }
  .site-header.is-menu-open .header-nav {
    display: block;
  }
  .nav-list.pc {
    display: none;
  }
  .nav-list.sp {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-list>li {
    display: block;
    width: 100%;
  }
  .nav-list>li:not(:last-child)::after {
    display: none;
  }
  .nav-list>li>a, .nav-list>li>.sub-btn {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 13px 42px 12px;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
  }
  .nav-list>li>.sub-btn {
    cursor: pointer;
  }
  .nav-list>li>.sub-btn::before, .nav-list>li>.sub-btn::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: 14px;
    width: 16px;
    height: 2px;
    background: #fff;
    transition: transform .3s ease;
  }
  .nav-list>li>.sub-btn::after {
    transform: rotate(-90deg);
  }
  .nav-list>li>.sub-btn.open::after {
    transform: rotate(0);
  }
  .nav-list .sub {
    position: static;
    display: none;
    width: 100%;
    border-top: 0;
    background: #f3f3f3;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-list .parent:hover .sub {
    transform: none;
  }
  .nav-list .sub ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-list .sub li {
    width: 50%;
    border-bottom: 1px solid var(--dark);
  }
  .nav-list .sub li:nth-child(odd) a {
    border-right: 1px solid var(--dark);
  }
  .nav-list .sub a, .header-nav .nav-list .sub a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    height: 100%;
    padding: 12px 10px;
    border-bottom: 0;
    color: var(--dark);
    background: transparent;
    font-size: 14px;
    line-height: 1.45;
  }
  .nav-list .sub.full ul {
    display: block;
  }
  .nav-list .sub.full li {
    width: 100%;
  }
  .nav-list .sub.full li:nth-child(odd) a {
    border-right: 0;
  }
  .sp-menu-contact {
    display: block;
    width: 100%;
    padding: 32px 24px 0;
    text-align: center;
    box-sizing: border-box;
  }
  .sp-menu-contact a {
    display: grid;
    place-items: center;
    width: 264px;
    height: 64px;
    margin: 0 auto 28px;
    padding: 0;
    border: 0;
    border-radius: 32px;
    color: #fff;
    background: var(--accent);
    font-size: 18px;
    font-weight: 400;
  }
  .header-nav>span {
    display: none;
  }
  .contact-section {
    height: auto;
    padding: 72px 16px;
  }
  .contact-section h2 {
    margin-bottom: 38px;
    font-size: 22px;
  }
  .contact-section a {
    height: auto;
    min-height: 88px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 15px;
  }
  .footer-nav, .footer-office {
    padding: 36px 16px;
    display: block;
  }
  .office-links {
    grid-template-columns: 1fr;
  }
  .footer-banners {
    flex-wrap: wrap;
  }
}

/* ---- contact-section (theme under.css) ---- */
@media screen and (max-width: 750px) {
  section.contact-section {
    background: #3d3d3d;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 400px !important;
    padding: 0 20px !important;
    justify-content: center;
    gap: 20px;
    color: #fff;
  }
  .contact-section h2 {
    margin-bottom: 38px;
    font-size: 22px !important;
  }
  .contact-section b {
    font-size: 14px;
  }
  .contact-section a {
    height: auto;
    min-height: 88px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px !important;
  }
}

/* ---- fixed-banner / TO TOP / SP contact (static styles.css) ---- */
.to_top {
  display:inline-block;
  cursor:pointer;
  transition:all .3s;
  color:#656565;
  font-size:20px;
  font-weight:500;
}
.to_top_fixed {
  width:80px;
  height:80px;
  background:var(--gray-gain);
  color: #fff;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:16px;
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:10;
  margin:0;
  visibility: hidden;
  opacity: 0;
}
.to_top_fixed.show {
  opacity: 1;
  visibility: visible;
}
.fixed-banner {
  position: fixed;
  bottom: 110px;
  right: 20px;
  z-index: 9999;
  max-width: 260px;
  transition: transform 0.3s ease;
}
.fixed-banner:hover {
  transform: translateY(-5px);
}
.fixed-banner img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 480px) {
  .fixed-banner {
    width: 120px;
    bottom: 60px;
    right: 10px;
  }
}

/* ---- fixed-banner / TO TOP / SP contact (static responsive.css) ---- */
@media screen and (min-width: 751px) {
  .sp {
    display:none!important;
  }
  .to_top img:hover {
    background: var(--mcolor);
    color: #fff;
    border-color: var(--mcolor);
  }
  .to_top:hover {
    color: var(--mcolor);
  }
  .to_top_fixed:hover {
    background: var(--mcolor);
    color: #fff;
  }
}
@media screen and (max-width: 750px) {
  .pc {
    display:none!important;
  }
  .sp_contact {
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:50px;
    position:fixed;
    left:0;
    z-index:99;
    bottom:-55px;
    transition: all 0.3s;
  }
  .sp_contact.show {
    bottom: 0;
  }
  .sp_contact li {
    width:50%;
    height:100%;
  }
  .sp_contact li a {
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:14px;
  }
  .sp_contact li a span {
    position:relative;
    padding-left:20px;
  }
  .sp_contact li a span::before {
    content:"";
    position:absolute;
    width:16px;
    height:22px;
    left:0;
    top:calc(50% - 11px);
  }
  .sp_contact_tel {
    background-color:var(--scolor);
  }
  .sp_contact_tel a span::before {
    background:url("/images/ic_tel.svg") no-repeat center /100% auto;
  }
  .sp_contact_mail {
    background-color:var(--mcolor);
  }
  .sp_contact li.sp_contact_mail a span::before {
    background:url("/images/ic_mail.svg") no-repeat center /100% auto;
    width: 20px;
  }
  .sp_contact li.sp_contact_mail a span {
    padding-left: 30px;
  }
  .to_top {
    display:block;
    text-align:center;
    padding:20px 0 15px;
  }
  .to_top_fixed {
    width:45px;
    height:45px;
    right:10px;
    bottom:100px;
    font-size:10px;
    padding:0;
    display:flex;
    margin:0;
  }
}

/* ---- chỉnh lưới footer để không tràn ngang trên màn hình 1201px trở lên ---- */
@media (min-width: 1201px) {
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 680px); }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 40px 40px 56px; }
  .footer-office { padding: 56px 60px 40px; }
}

/* ---- biến màu theme WordPress (trang tĩnh chưa khai báo) ---- */
:root {
  --accent: #00b4a1;
  --dark: #3e3e3e;
  --mcolor: #00B4A1;
  --scolor: #191919;
  --gray-gain: #ABABAB;
}
/* ---- hover cho link và nút trong footer (đồng bộ với hiệu ứng cũ của trang tĩnh) ---- */
.site-footer .footer-nav a:hover { color: var(--accent); }
.site-footer .office-links a { transition: background .3s ease, color .3s ease, border-color .3s ease; }
.site-footer .office-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-section a { transition: opacity .3s ease; }
.contact-section a:hover { opacity: .7; }
/* ---- chữ trong section liên hệ màu trắng trên nền tối (trang tĩnh gán màu đen cho a) ---- */
.contact-section, .contact-section a, .contact-section span, .contact-section b, .contact-section h2 { color: #fff; }
/* ---- logo banner footer hiển thị đúng kích thước gốc (249×68) để không bị scale ---- */
.footer-banners img:last-child { width: 249px; height: 68px; }
/* ---- trang con (class under): khoảng cách theo trang tĩnh cũ ---- */
body.under { padding-top: 0 !important; }
.under main #top_info, .under main #top_info02 { margin: 132px auto 89px !important; }
@media (max-width: 750px) {
  .under main #top_info, .under main #top_info02 { margin: 77px 0 0 !important; }
}
/* ---- dòng copyright: chữ thường, cỡ nhỏ, căn giữa, không sát mép ---- */
.copyright {
  height: auto;
  min-height: 88px;
  padding: 24px 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
/* ---- copyright trên mobile: cỡ 10px ---- */
@media (max-width: 750px) {
  .copyright { font-size: 10px; padding: 24px 16px; }
}
/* ---- mobile: TO TOP nằm bên phải, ngay dưới fixed-banner ---- */
@media (max-width: 750px) {
  .to_top_fixed { left: auto; right: 10px; bottom: 60px; }
}
@media (max-width: 480px) {
  .fixed-banner { bottom: 115px; right: 10px; width: 120px; }
}
/* ---- trang con: font, màu, line-height nền giống theme WordPress ---- */
body.under { font-family: Arial, sans-serif; color: #272727; line-height: 1.75; }
body.under #top_info h1, body.under #top_info h2 { font-family: Arial, sans-serif; }
/* ---- thanh liên hệ mobile: bỏ dấu đầu dòng của ul/li ---- */
@media (max-width: 750px) {
  .sp_contact, .sp_contact li { list-style: none; margin: 0; padding: 0; }
  .sp_contact li::marker { content: ""; }
}
/* ---- fixed-banner ẩn khi footer hiện trong viewport ---- */
.fixed-banner { transition: opacity .3s ease, visibility .3s ease; }
.fixed-banner.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* ---- footer dùng font và màu của theme WordPress (Arial, #272727) ---- */
.site-footer { font-family: Arial, sans-serif; color: #272727; }
.site-footer a { color: inherit; }
