/* PlaneHost: new-site header/footer inside Lagom2 (pairs with includes/hooks/planehost-site-chrome.php).
   Values copied from planehost-site/public/assets/styles.css; classes are ph- prefixed to avoid Bootstrap clashes. */
:root{--ph-navy:#263B94;--ph-navy-ink:#16225a;--ph-navy-soft:#eef1fa;--ph-ink:#141a2e;--ph-text:#3d4459;--ph-muted:#6b7287;--ph-line:#dde2f0;--ph-bg-alt:#eef1fa;
  --ph-font:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}

/* same font across the whole client area */
body.lagom,body.lagom h1,body.lagom h2,body.lagom h3,body.lagom h4,body.lagom h5,body.lagom .btn,body.lagom input,body.lagom select,body.lagom textarea,body.lagom button{font-family:var(--ph-font)}

/* hide Lagom's own header/footer */
body.lagom .app-nav,body.lagom .main-footer,body.lagom .planehost-site-links{display:none!important}

.ph-top,.ph-foot,.ph-wa{font-family:var(--ph-font);-webkit-font-smoothing:antialiased;line-height:1.65}
.ph-top *,.ph-foot *,.ph-wa *{box-sizing:border-box;font-family:var(--ph-font)!important}
.ph-top a,.ph-foot a,.ph-wa{text-decoration:none!important}
.ph-top img,.ph-top svg,.ph-foot img,.ph-foot svg,.ph-wa svg{display:block;max-width:100%}
.ph-wrap{max-width:1200px;margin-inline:auto;padding-inline:20px}

/* header */
.ph-top{position:sticky;top:0;z-index:1030;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.6) blur(12px);border-bottom:1px solid var(--ph-line);font-size:16px;color:var(--ph-text)}
.ph-top .ph-wrap{display:flex;align-items:center;gap:16px;height:72px}
.ph-logo{flex:none}
.ph-logo img{height:30px;width:auto}
.ph-nav{display:flex;align-items:center;gap:2px;margin-inline-start:4px}
.ph-nav-link{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:8px;font-weight:500;font-size:.95rem;color:var(--ph-text)!important;background:none;border:0;cursor:pointer;white-space:nowrap;line-height:1.65}
.ph-nav-link:hover,.ph-dd:hover>.ph-dd-btn.ph-nav-link,.ph-dd.open>.ph-dd-btn.ph-nav-link{background:var(--ph-bg-alt);color:var(--ph-navy)!important}
.ph-chev{width:14px;height:14px;transition:transform .2s}
.ph-dd{position:relative}
.ph-dd-panel{position:absolute;top:calc(100% + 10px);inset-inline-start:-12px;min-width:320px;background:#fff;border:1px solid var(--ph-line);border-radius:16px;box-shadow:0 20px 50px rgba(22,34,90,.16);padding:8px;display:grid;gap:2px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s,transform .18s,visibility .18s;z-index:70}
.ph-dd-panel::before{content:"";position:absolute;inset-inline:0;top:-12px;height:12px}
.ph-dd:hover .ph-dd-panel,.ph-dd.open .ph-dd-panel,.ph-dd:focus-within .ph-dd-panel{opacity:1;visibility:visible;transform:none}
.ph-dd:hover .ph-chev,.ph-dd.open .ph-chev{transform:rotate(180deg)}
.ph-dd-item{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:12px;transition:background .15s;color:var(--ph-text)!important}
.ph-dd-item:hover{background:var(--ph-bg-alt)}
.ph-dd-ic{flex:none;width:36px;height:36px;border-radius:10px;background:var(--ph-navy-soft);color:var(--ph-navy);display:grid;place-items:center}
.ph-dd-ic svg{width:18px;height:18px}
.ph-dd-item:hover .ph-dd-ic{background:var(--ph-navy);color:#fff}
.ph-dd-item b{display:block;color:var(--ph-ink);font-size:.93rem;font-weight:600}
.ph-dd-item small{display:block;color:var(--ph-muted);font-size:.8rem;line-height:1.4}
.ph-top-actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto}
.ph-pill-select{width:auto!important;max-width:110px;-webkit-appearance:auto;appearance:auto;box-shadow:none;height:40px;border:1px solid var(--ph-line);border-radius:10px;background:#fff;padding-inline:10px;font-size:.9rem;font-weight:500;cursor:pointer;color:var(--ph-ink)}
.ph-lang-link{font-weight:600;font-size:.92rem;padding:8px 10px;border-radius:8px;color:var(--ph-ink)!important;white-space:nowrap}
.ph-lang-link:hover{background:var(--ph-bg-alt)}
.ph-cart{position:relative;flex:none;width:40px;height:40px;border:1px solid var(--ph-line);border-radius:10px;display:grid;place-items:center;color:var(--ph-navy)!important;background:#fff}
.ph-cart svg{width:19px;height:19px}
.ph-cart-n{position:absolute;top:-6px;inset-inline-end:-6px;min-width:18px;height:18px;padding-inline:4px;border-radius:99px;background:#EB8423;color:#fff;font-size:.7rem;font-weight:700;display:grid;place-items:center;line-height:1}
.ph-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding-inline:16px;border-radius:12px;font-weight:600;font-size:.92rem;border:1px solid transparent;cursor:pointer;transition:transform .15s,background .2s,box-shadow .2s;white-space:nowrap;line-height:1}
.ph-btn:hover{transform:translateY(-1px)}
.ph-btn-primary{background:var(--ph-navy);color:#fff!important}
.ph-btn-primary:hover{background:var(--ph-navy-ink);box-shadow:0 8px 20px rgba(38,59,148,.25)}
.ph-acc .ph-acc-panel{inset-inline-start:auto;inset-inline-end:0;min-width:240px}
.ph-acc .ph-dd-ic{width:30px;height:30px}
.ph-logout{border-top:1px solid var(--ph-line);border-radius:0 0 12px 12px;margin-top:4px}
.ph-logout b{color:#b42318!important}
.ph-burger{display:none;width:40px;height:40px;border:1px solid var(--ph-line);border-radius:10px;background:#fff;cursor:pointer;padding:0}
.ph-burger span{display:block;width:18px;height:2px;background:var(--ph-ink);margin:4px auto;border-radius:2px}

@media (max-width:1240px){.ph-pill-select{display:none}}
@media (max-width:1180px){
  .ph-nav{display:none}
  .ph-burger{display:block}
  .ph-nav.open{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:72px;inset-inline:0;background:#fff;border-bottom:1px solid var(--ph-line);padding:12px 16px;margin:0;max-height:calc(100vh - 72px);overflow:auto;gap:2px;box-shadow:0 20px 40px rgba(22,34,90,.12)}
  .ph-nav.open .ph-nav-link{width:100%;justify-content:space-between;padding:12px}
  .ph-nav.open .ph-dd-panel{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;min-width:0;padding:0 0 6px;display:none}
  .ph-nav.open .ph-dd.open .ph-dd-panel{display:grid}
  .ph-nav.open .ph-dd-panel::before{display:none}
  .ph-pill-select{display:inline-block}
}
@media (max-width:640px){
  .ph-wrap{padding-inline:16px}
  .ph-top .ph-wrap{gap:10px}
  .ph-pill-select{display:none}
  .ph-logo img{height:26px}
  .ph-top-actions{gap:6px}
  .ph-top-actions>.ph-btn-primary{height:40px;padding-inline:12px;font-size:.85rem}
}
@media (max-width:420px){.ph-cart{display:none}}

/* footer */
.ph-foot{background:var(--ph-navy-ink);color:#b9c2e6;padding-block:56px 28px;font-size:.92rem;margin-top:48px}
.ph-foot a{color:#b9c2e6}
.ph-foot a:hover{color:#fff}
.ph-foot p{max-width:65ch;margin:0}
.ph-foot-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:28px}
.ph-foot h4{color:#fff;font-size:.95rem;margin:0 0 14px;font-weight:700;font-family:var(--ph-font)}
.ph-foot ul{list-style:none;display:grid;gap:8px;margin:0;padding:0}
.ph-logo-w{background:#fff;display:inline-block;padding:8px 12px;border-radius:10px;margin-bottom:14px}
.ph-logo-w img{height:24px;width:auto}
.ph-socials{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.ph-socials a{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#c9d3f5;transition:background .2s,color .2s,transform .2s}
.ph-socials a:hover{background:#fff;color:var(--ph-navy);transform:translateY(-2px)}
.ph-socials svg{width:18px;height:18px}
.ph-foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:40px;padding-top:20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.85rem}
@media (max-width:960px){.ph-foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.ph-foot-grid{grid-template-columns:1fr}}

/* WhatsApp */
.ph-wa{position:fixed;bottom:20px;inset-inline-end:20px;z-index:1040;border-radius:999px;background:#fff;display:flex;align-items:center;gap:10px;padding:6px;padding-inline-end:16px;box-shadow:0 10px 30px rgba(22,34,90,.18),0 0 0 1px rgba(22,34,90,.06);transition:transform .2s,box-shadow .2s}
.ph-wa:hover{transform:translateY(-2px)}
.ph-wa-ic{position:relative;width:46px;height:46px;border-radius:50%;background:linear-gradient(145deg,#2fe07a,#1ebe5b);display:grid;place-items:center;flex:none}
.ph-wa-ic svg{width:26px;height:26px;color:#fff}
.ph-wa-txt{display:grid;line-height:1.25}
.ph-wa-txt b{color:var(--ph-ink);font-size:.9rem;font-weight:700}
.ph-wa-txt small{color:var(--ph-muted);font-size:.74rem;display:flex;align-items:center;gap:5px}
.ph-wa-txt small i{width:7px;height:7px;border-radius:50%;background:#25D366}
@media (max-width:640px){.ph-wa{padding:0;bottom:16px;inset-inline-end:16px}.ph-wa-txt{display:none}.ph-wa-ic{width:56px;height:56px}.ph-wa-ic svg{width:30px;height:30px}}
.ph-top-actions>*{flex:none}
@media (max-width:640px){.ph-top .ph-pill-select{display:none!important}.ph-lang-link{padding:8px 6px}}
/* phones: like the site, the Client Area button moves into the burger menu */
.ph-m-only{display:none!important}
@media (max-width:640px){.ph-top-actions>a.ph-btn-primary,.ph-acc~.ph-burger~x{display:none}.ph-nav.open .ph-m-only{display:flex!important;color:var(--ph-navy)!important;font-weight:600}.ph-acc .ph-dd-btn{max-width:110px;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:640px){.ph-acc .ph-dd-btn{max-width:84px;padding-inline:10px}.ph-top .ph-wrap{gap:8px}.ph-top-actions{gap:4px}}
body.lagom{padding-top:0!important}
/* footer polish (matches planehost-site styles.css) */
.ph-foot-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:32px}
.ph-foot-grid>:first-child p{line-height:1.9;color:#a9b3dc;max-width:300px;font-size:.88rem}
.ph-logo-w{padding:7px 12px;border-radius:9px}
.ph-logo-w img{height:22px}
.ph-socials{gap:8px;margin-top:20px}
.ph-socials a{width:34px;height:34px;border-radius:50%;background:transparent;border:1px solid rgba(255,255,255,.16);color:#a9b3dc}
.ph-socials a:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#fff;transform:none}
.ph-socials svg{width:15px;height:15px}
@media (max-width:1180px) and (min-width:961px){.ph-foot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ph-foot-grid>:first-child{grid-column:1/-1}}
@media (max-width:960px){.ph-foot-grid{grid-template-columns:1fr 1fr}.ph-foot-grid>:first-child{grid-column:1/-1}}
.ph-foot{padding-block:64px 28px}
@media (min-width:641px){.ph-foot-bottom{padding-inline-end:220px}}
@media (max-width:640px){.ph-foot-bottom{padding-inline-end:76px}}
.ph-foot h4{position:relative;padding-bottom:10px;margin-bottom:16px}
.ph-foot h4::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:24px;height:2px;border-radius:2px;background:rgba(235,132,35,.7)}
.ph-foot ul{gap:11px}
.ph-foot ul a{transition:color .2s,padding .2s}
.ph-foot ul a:hover{color:#fff;padding-inline-start:4px}
