/*
Theme Name: ProjeX Rental Theme
Theme URI: https://dev.com.vn
Author: dev.com.vn
Author URI: https://dev.com.vn
Description: Companion theme cho plugin ProjeX Rental. Responsive, Inter font, mobile-first.
Version: 1.0.0
Text Domain: projex-theme
*/

/* ── GLOBAL RESET ─────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',sans-serif;
  background:#F5F8FF;
  color:#1C2B4A;
  overflow-x:hidden;
  line-height:1.6;
}
img{max-width:100%;height:auto}
a{text-decoration:none}
button{cursor:pointer}

/* ── TOPBAR ───────────────────────────────────────────── */
.px-topbar{
  background:#1558B0;
  color:#fff;
  padding:7px 0;
  font-size:12.5px;
}
.px-topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.px-topbar__left,.px-topbar__right{
  display:flex;align-items:center;gap:16px;
}
.px-topbar span,.px-topbar a{
  display:flex;align-items:center;gap:5px;
  color:rgba(255,255,255,.85);
}
.px-topbar a:hover{color:#fff}
.px-topbar i{font-size:12px}

/* ── NAVBAR ───────────────────────────────────────────── */
.px-nav{
  background:#fff;
  position:sticky;top:0;z-index:998;
  box-shadow:0 2px 12px rgba(26,115,232,.08);
  font-family:'Inter',sans-serif;
}
.px-nav__inner{
  display:flex;align-items:center;
  justify-content:space-between;
  height:66px;gap:20px;
}
/* logo */
.px-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.px-logo__icon{
  width:40px;height:40px;
  background:linear-gradient(135deg,#1A73E8,#4DA3FF);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;flex-shrink:0;
}
.px-logo__text{font-weight:800;font-size:19px;color:#1A73E8;line-height:1.1}
.px-logo__sub{font-size:10px;color:#6B7A99;font-weight:400;display:block}
/* menu */
.px-nav__links{flex:1;display:flex;justify-content:flex-end}
.px-menu{display:flex;list-style:none;gap:24px;align-items:center;margin:0;padding:0}
.px-menu li a{
  color:#1C2B4A;font-weight:500;font-size:14px;
  transition:color .2s;display:block;padding:4px 0;
}
.px-menu li a:hover{color:#1A73E8}
.px-nav-cta,.px-menu .px-nav-cta{
  background:#1A73E8;color:#fff!important;
  padding:9px 18px;border-radius:8px;font-weight:600!important;
  transition:background .2s!important;display:flex;align-items:center;gap:6px;
}
.px-nav-cta:hover{background:#1558B0!important}
/* hamburger */
.px-nav__hamburger{
  display:none;flex-direction:column;gap:5px;
  background:none;border:none;padding:6px;
  cursor:pointer;
}
.px-nav__hamburger span{
  display:block;width:22px;height:2px;
  background:#1C2B4A;border-radius:2px;transition:all .25s;
}

/* ── MOBILE MENU DRAWER ───────────────────────────────── */
.px-mobile-menu{
  position:fixed;top:0;left:0;bottom:0;
  width:280px;background:#fff;z-index:1002;
  transform:translateX(-100%);transition:transform .3s;
  overflow-y:auto;padding:24px;
}
.px-mobile-menu.open{transform:translateX(0)}
.px-mobile-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.5);z-index:1001;
}
.px-mobile-overlay.open{display:block}
.px-mobile-menu__close{
  background:none;border:none;font-size:20px;
  color:#6B7A99;margin-bottom:20px;display:block;padding:4px;
}
.px-mobile-menu__list{list-style:none;margin:0 0 24px;padding:0}
.px-mobile-menu__list li{border-bottom:1px solid #EEF3FF}
.px-mobile-menu__list li a{
  display:block;padding:13px 0;
  color:#1C2B4A;font-weight:500;font-size:14.5px;
}
.px-mobile-menu__list li a:hover{color:#1A73E8}
.px-mobile-menu__contact{display:flex;flex-direction:column;gap:10px}

/* ── FOOTER ───────────────────────────────────────────── */
.px-footer{
  background:#1C2B4A;
  color:rgba(255,255,255,.75);
  padding:52px 0 24px;
  font-family:'Inter',sans-serif;
}
.px-footer__grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.2fr;
  gap:36px;margin-bottom:36px;
}
.px-footer__brand .px-footer__logo{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;margin-bottom:14px;
}
.px-footer__brand p{font-size:13.5px;line-height:1.7;margin-bottom:18px}
.px-footer__social{display:flex;gap:8px}
.px-social-btn{
  width:34px;height:34px;
  background:rgba(255,255,255,.08);
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.7);
  text-decoration:none;font-size:14px;
  transition:all .2s;
}
.px-social-btn:hover{background:#1A73E8;color:#fff}
.px-footer__col h4{
  color:#fff;font-size:13.5px;font-weight:700;
  margin-bottom:14px;
}
.px-footer__col ul{list-style:none;margin:0;padding:0}
.px-footer__col ul li{margin-bottom:8px}
.px-footer__col ul li a{
  color:rgba(255,255,255,.65);
  font-size:13.5px;transition:color .2s;
  display:flex;align-items:center;gap:7px;
}
.px-footer__col ul li a:hover{color:#fff}
.px-footer__col ul li a i{font-size:10px;color:#1A73E8}
.px-footer__contact-list li{
  display:flex;align-items:flex-start;gap:9px;
  margin-bottom:10px;font-size:13.5px;
}
.px-footer__contact-list li i{color:#1A73E8;margin-top:2px;flex-shrink:0}
.px-footer__contact-list li a{color:rgba(255,255,255,.75);transition:color .2s}
.px-footer__contact-list li a:hover{color:#fff}
.px-footer__bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:22px;
  display:flex;justify-content:space-between;align-items:center;
  font-size:13px;flex-wrap:wrap;gap:10px;
}
.px-footer-menu{display:flex;list-style:none;gap:16px;margin:0;padding:0}
.px-footer-menu a{color:rgba(255,255,255,.6);font-size:13px;transition:color .2s}
.px-footer-menu a:hover{color:#fff}

/* ── COMMON COMPONENTS ─────────────────────────────────── */
.projex-widget{margin-bottom:20px}
.projex-widget-title,.footer-col-title{
  font-size:14px;font-weight:700;
  margin-bottom:12px;padding-bottom:8px;
  border-bottom:2px solid #DDE6F5;
}

/* ── PAGE WRAP ─────────────────────────────────────────── */
#projex-page-wrap{min-height:60vh}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:1024px){
  .px-footer__grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .px-nav__links{display:none}
  .px-nav__hamburger{display:flex}
  .px-footer__grid{grid-template-columns:1fr 1fr}
  .px-topbar__right{display:none}
}
@media(max-width:480px){
  .px-footer__grid{grid-template-columns:1fr}
  .px-footer__bottom{flex-direction:column;text-align:center}
}

/* ── HOMEPAGE SECTIONS ───────────────────────────────── */
.px-home-section { padding: 72px 0; }
.px-home-section--white { background: #fff; }
.px-home-section--light { background: #F5F8FF; }
.px-home-section--dark  {
  background: linear-gradient(135deg, #1C2B4A 0%, #0D1B36 100%);
}
.px-home-section--dark .px-section-head h2,
.px-home-section--dark .px-section-head p { color: rgba(255,255,255,.9); }
.px-home-section--dark .px-section-head p { color: rgba(255,255,255,.65); }

/* section header */
.px-section-head { text-align: center; margin-bottom: 48px; }
.px-section-head--left { text-align: left; }
.px-section-tag {
  display: inline-block;
  background: #EEF3FF; color: #1A73E8;
  font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px; border: 1px solid #DDE6F5;
}
.px-home-section--dark .px-section-tag {
  background: rgba(255,255,255,.1); color: #FFD600;
  border-color: rgba(255,255,255,.15);
}
.px-section-head h2 {
  font-size: 32px; font-weight: 800; color: #1C2B4A;
  margin: 0 0 10px;
}
.px-section-head h2 span { color: #1A73E8; }
.px-section-head p { font-size: 15px; color: #6B7A99; max-width: 540px; margin: 0 auto; }

/* hero overlay */
.projex-hero--homepage { position: relative; }
.projex-hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.projex-hero__pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.projex-hero__logo-badge {
  text-align: center; margin-bottom: 20px;
}
.projex-hero__logo-img {
  max-height: 70px; object-fit: contain;
  filter: brightness(0) invert(1);
}

/* view all btn */
.px-btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1A73E8;
  border: 2px solid #1A73E8;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .2s;
}
.px-btn-more:hover { background: #1A73E8; color: #fff; }

/* why us */
.projex-why-section { font-family: 'Inter', sans-serif; }
.projex-why-header { text-align: center; margin-bottom: 40px; }
.projex-why-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 22px;
  font-family: 'Inter', sans-serif;
}
.projex-why-card {
  background: #fff; border: 1px solid #DDE6F5;
  border-radius: 16px; padding: 28px 22px;
  text-align: center; transition: all .25s;
  box-shadow: 0 2px 12px rgba(26,115,232,.06);
}
.projex-why-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,115,232,.14); }
.projex-why-icon {
  width: 60px; height: 60px; background: #F0F6FF;
  border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; color: #1A73E8;
  margin: 0 auto 16px;
}
.projex-why-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #1C2B4A; }
.projex-why-card p  { font-size: 13.5px; color: #6B7A99; line-height: 1.6; margin: 0; }

/* brands */
.px-brands-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.px-brand-item {
  background: #fff; border: 1.5px solid #DDE6F5;
  border-radius: 12px; padding: 14px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; transition: all .2s;
  min-width: 110px;
}
.px-brand-item span { font-size: 15px; font-weight: 700; color: #1C2B4A; }
.px-brand-item small { font-size: 11px; color: #6B7A99; }
.px-brand-item:hover { border-color: #1A73E8; background: #F0F6FF; }

/* form layout */
.px-form-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}
.px-form-info .px-section-head h2 { color: #fff; }
.px-form-info .px-section-head p  { color: rgba(255,255,255,.75); }
.px-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.px-step  { display: flex; align-items: flex-start; gap: 14px; }
.px-step__num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: #1A73E8; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.px-step strong { font-size: 14px; color: #fff; display: block; margin-bottom: 2px; }
.px-step span   { font-size: 13px; color: rgba(255,255,255,.65); }
.px-quick-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.px-quick-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: all .2s;
}
.px-quick-btn--phone { background: #00C853; color: #fff; }
.px-quick-btn--zalo  { background: #0068FF; color: #fff; }
.px-quick-btn:hover  { transform: translateY(-2px); opacity: .9; }

/* form box wrapper */
.px-form-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(12px);
}

/* ── ADMIN SETTINGS EXTRA ────────────────────────────────── */
.px-admin-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 16px 0 24px; padding: 14px;
  background: #fff; border: 1px solid #DDE6F5;
  border-radius: 10px; font-family: 'Inter', sans-serif;
}
.px-admin-nav__item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  color: #6B7A99; font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: all .15s;
  border: 1.5px solid transparent;
}
.px-admin-nav__item:hover { background: #F0F6FF; color: #1A73E8; }
.px-admin-nav__item.active { background: #1A73E8; color: #fff; border-color: #1A73E8; }
.px-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.pxf { margin-bottom: 14px; }
.pxf label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #1C2B4A; }
.pxf input[type=text],.pxf input[type=url] { border-radius: 7px !important; border-color: #DDE6F5 !important; }
.pxf--social label { display: flex; align-items: center; gap: 7px; }
.pxf--image {}
.pxf-img-preview img { max-width: 100%; max-height: 160px; border-radius: 8px; border: 1px solid #DDE6F5; }
.pxf-img-empty {
  border: 2px dashed #DDE6F5; border-radius: 8px;
  height: 100px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: #6B7A99; font-size: 13px; margin-bottom: 8px;
}
.pxf-img-empty i { font-size: 28px; opacity: .4; }

/* Hero live preview */
.px-hero-preview {
  height: 160px; border-radius: 12px; position: relative;
  overflow: hidden; margin-bottom: 18px; display: flex;
  align-items: center; justify-content: flex-start;
}
.px-overlay-preview { position: absolute; inset: 0; pointer-events: none; }
.px-hero-preview__content { position: relative; z-index: 1; padding: 24px; color: #fff; }
.px-hero-preview__badge {
  font-size: 11px; background: rgba(255,255,255,.2);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
  display: inline-block;
}
.px-hero-preview__content h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.px-hero-preview__content p  { font-size: 12px; opacity: .8; margin: 0; }

/* logo preview bar */
.px-logo-live-preview {
  background: #1C2B4A; border-radius: 10px; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.px-logo-live-nav { display: flex; align-items: center; gap: 8px; }
.px-logo-live-placeholder { color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.px-logo-live-placeholder i { background: #1A73E8; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* contact bar */
.px-contact-bar {
  background: #F0F6FF; border: 1px solid #DDE6F5;
  border-radius: 8px; padding: 10px 16px;
  font-size: 13px; color: #1A73E8; font-weight: 500;
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}

/* sc page */
.px-sc-page {}
.projex-sc-table td code { background: #F0F6FF; color: #1A73E8; padding: 3px 7px; border-radius: 4px; font-size: 12px; }

/* guide grid */
.projex-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.projex-guide-card h2 { font-size: 14px; }
.projex-guide-card li { font-size: 13px; color: #6B7A99; margin-bottom: 5px; line-height: 1.5; }
.projex-guide-card code { background: #F0F6FF; color: #1A73E8; padding: 2px 6px; border-radius: 4px; font-size: 11.5px; }

/* ── HOMEPAGE RESPONSIVE ──────────────────────────────────── */
@media(max-width:1024px){
  .projex-why-grid { grid-template-columns: repeat(2,1fr); }
  .px-form-layout  { grid-template-columns: 1fr; gap: 28px; }
}
@media(max-width:768px){
  .px-home-section { padding: 48px 0; }
  .px-section-head h2 { font-size: 24px; }
  .projex-why-grid { grid-template-columns: 1fr 1fr; }
  .px-brands-grid  { gap: 8px; }
  .px-2col { grid-template-columns: 1fr; }
  .projex-guide-grid { grid-template-columns: 1fr; }
}
@media(max-width:480px){
  .projex-why-grid { grid-template-columns: 1fr; }
}
