/*
Theme Name: P&P Global Trading Shell
Theme URI: https://ppglobaltrading.com/
Author: P&P Global Trading
Description: Theme shell only: Menu + Hero Video + Footer. Page content remains fully editable in Elementor.
Version: 8.0.1
Text Domain: ppglobal
*/

html,body{margin:0;padding:0}
*{box-sizing:border-box}

.pp-shell{
  --navy:#061e68;
  --navy2:#0d2b7a;
  --gold:#c58a39;
  --green:#06c755;
  --white:#fff;
  font-family:"Noto Sans Thai",system-ui,sans-serif;
}

/* ---------- HEADER / MENU ---------- */
.pp-theme-header{
  position:absolute;
  top:0;left:0;right:0;
  z-index:99999;
  width:100%;
  background:transparent;
  font-family:"Noto Sans Thai",system-ui,sans-serif;
}
.pp-theme-header__inner{
  width:min(1280px,calc(100% - 40px));
  min-height:94px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:28px;
}
.pp-theme-logo{
  display:inline-flex;
  align-items:center;
  margin-right:auto;
  text-decoration:none;
}
.pp-theme-logo img{
  display:block;
  width:175px!important;
  max-width:175px!important;
  height:auto!important;
  max-height:82px!important;
  object-fit:contain;
}
.pp-theme-nav ul{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}
.pp-theme-nav>ul{
  display:flex!important;
  align-items:center;
  gap:22px;
}
.pp-theme-nav li{position:relative}
.pp-theme-nav>ul>li>a{
  min-height:94px;
  display:flex;
  align-items:center;
  color:#fff!important;
  font-size:16px;
  font-weight:700;
  text-decoration:none!important;
  text-shadow:0 2px 7px rgba(0,0,0,.35);
  white-space:nowrap;
}
.pp-theme-nav .menu-item-has-children>a::after{
  content:"▾";
  margin-left:7px;
  font-size:11px;
}
.pp-theme-nav .sub-menu{
  position:absolute;
  top:calc(100% - 8px);
  left:-12px;
  min-width:230px;
  padding:10px!important;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.2s ease;
}
.pp-theme-nav li:hover>.sub-menu,
.pp-theme-nav li:focus-within>.sub-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.pp-theme-nav .sub-menu a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--navy)!important;
  font-size:15px;
  font-weight:600;
  text-decoration:none!important;
  text-shadow:none!important;
}
.pp-theme-nav .sub-menu a:hover{background:#f6eee4;color:#b27425!important}

.pp-theme-actions{display:flex;align-items:center;gap:12px}
.pp-theme-action{
  min-height:50px;
  padding:0 23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff!important;
  font-size:15px;
  font-weight:800;
  text-decoration:none!important;
  white-space:nowrap;
}
.pp-theme-action--line{background:var(--green)}
.pp-theme-action--phone{background:rgba(13,43,122,.94);border:1px solid rgba(255,255,255,.18)}
.pp-theme-toggle,.pp-theme-mobile,.pp-theme-backdrop{display:none}

/* ---------- HERO VIDEO ---------- */
.pp-theme-hero{
  position:relative;
  width:100%;
  height:100vh;
  min-height:620px;
  max-height:850px;
  overflow:hidden;
  background:#07153e;
  display:flex;
  align-items:flex-end;
}
.pp-theme-hero video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.pp-theme-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(2,10,31,.20) 0%,rgba(2,10,31,.08) 40%,rgba(2,10,31,.72) 100%);
}
.pp-theme-hero__content{
  position:relative;
  z-index:2;
  width:min(820px,calc(100% - 40px));
  margin:0 auto 72px;
  text-align:center;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.38);
}
.pp-theme-hero__content h1{
  margin:0 0 14px;
  color:#fff;
  font-size:clamp(42px,5vw,66px);
  line-height:1.08;
  font-weight:800;
}
.pp-theme-hero__content p{
  margin:0 auto 28px;
  max-width:760px;
  color:#fff;
  font-size:clamp(16px,1.45vw,19px);
  line-height:1.75;
}
.pp-theme-hero__actions{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
.pp-theme-hero__btn{
  min-width:188px;
  min-height:56px;
  padding:0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff!important;
  font-weight:800;
  text-decoration:none!important;
}
.pp-theme-hero__btn--phone{background:var(--gold)}
.pp-theme-hero__btn--line{background:var(--green)}

/* ---------- PAGE CONTENT ---------- */
/* Theme does not resize, pad or restyle Elementor/page content. */
.pp-theme-page-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.pp-theme-page-content>.elementor,
.pp-theme-page-content>.entry-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* ---------- FOOTER ---------- */
.pp-theme-footer{
  background:#051336;
  color:#fff;
  padding:54px 0 24px;
  font-family:"Noto Sans Thai",system-ui,sans-serif;
}
.pp-theme-footer__inner{
  width:min(1240px,calc(100% - 40px));
  margin:0 auto;
}
.pp-theme-footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
}
.pp-theme-footer h3,
.pp-theme-footer h4{
  margin:0 0 14px;
  color:#fff;
}
.pp-theme-footer p,
.pp-theme-footer a{
  color:#aeb9d1;
  font-size:15px;
  line-height:1.8;
  text-decoration:none;
}
.pp-theme-footer a:hover{color:#fff}
.pp-theme-footer__links{display:grid;gap:7px}
.pp-theme-footer__menu{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.pp-theme-footer__menu li{margin:0;padding:0}
.pp-theme-footer__bottom{
  margin-top:36px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#7f8cab;
  font-size:13px;
}

/* ---------- MOBILE / TABLET ---------- */
@media(max-width:1024px){
  .pp-theme-header__inner{
    width:100%;
    min-height:112px;
    padding:16px 20px;
    align-items:flex-start;
    justify-content:space-between;
  }
  .pp-theme-nav,.pp-theme-actions{display:none!important}
  .pp-theme-toggle{
    order:1;
    display:flex;
    width:46px;
    height:46px;
    margin-top:18px;
    padding:0;
    flex:0 0 46px;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:12px;
    background:rgba(6,30,104,.58);
    backdrop-filter:blur(5px);
    cursor:pointer;
  }
  .pp-theme-toggle span{width:22px;height:2px;border-radius:2px;background:#fff}
  .pp-theme-logo{order:2;margin:0 0 0 auto}
  .pp-theme-logo img{width:170px!important;max-width:170px!important;max-height:80px!important}

  .pp-theme-mobile{
    display:block;
    position:fixed;
    top:0;left:0;bottom:0;
    width:min(330px,88vw);
    z-index:100002;
    background:#fff;
    transform:translateX(-100%);
    transition:transform .28s ease;
    overflow-y:auto;
    box-shadow:20px 0 50px rgba(0,0,0,.22);
  }
  .pp-theme-mobile.is-open{transform:translateX(0)}
  .pp-theme-mobile__inner{padding:22px}
  .pp-theme-mobile__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:14px;
    border-bottom:1px solid #e6e9f0;
    color:#061e68;
  }
  .pp-theme-mobile__close{
    border:0;background:none;color:#061e68;font-size:30px;cursor:pointer;
  }
  .pp-theme-mobile__shortcuts{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:16px 0 10px;
  }
  .pp-theme-mobile__shortcut{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #dfe3eb;
    border-radius:10px;
    background:#f7f8fb;
    color:#061e68;
    font:inherit;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
  }
  .pp-theme-mobile nav ul{list-style:none!important;margin:0!important;padding:0!important}
  .pp-theme-mobile nav li{position:relative}
  .pp-theme-mobile nav a{
    display:block;
    padding:12px 4px;
    border-bottom:1px solid #e6e9f0;
    color:#061e68!important;
    font-size:16px;
    font-weight:700;
    text-decoration:none!important;
  }
  .pp-theme-mobile nav .sub-menu{
    display:none;
    padding-left:14px!important;
    background:#f7f8fb;
  }
  .pp-theme-mobile nav li.is-open>.sub-menu{display:block}
  .pp-theme-mobile .pp-sub-toggle{
    position:absolute;top:5px;right:0;width:38px;height:38px;
    border:0;background:transparent;color:#061e68;font-size:22px;cursor:pointer;
  }
  .pp-theme-mobile__contact{display:grid;gap:9px;margin-top:22px}
  .pp-theme-backdrop{
    position:fixed;
    inset:0;
    z-index:100001;
    background:rgba(0,0,0,.45);
  }
  .pp-theme-backdrop.is-open{display:block}
  html.pp-theme-menu-open{overflow:hidden}

  .pp-theme-hero{min-height:560px;max-height:760px}
  .pp-theme-hero__content{margin-bottom:48px}
  .pp-theme-hero__content h1{font-size:clamp(36px,8vw,52px)}
  .pp-theme-footer__grid{grid-template-columns:1fr}
}

@media(max-width:640px){
  .pp-theme-header__inner{padding:10px 18px}
  .pp-theme-logo img{width:145px!important;max-width:145px!important}
  .pp-theme-hero{min-height:520px;height:78vh}
  .pp-theme-hero__content{width:calc(100% - 30px);margin-bottom:36px}
  .pp-theme-hero__content p{font-size:15px}
  .pp-theme-hero__btn{min-width:150px;min-height:50px;padding:0 20px}
}
