/* Header & footer styles — markup in dreamtech-layout.php */
.dt-header,.dt-footer{direction:rtl;font-family:Arial,sans-serif;line-height:1.6}
.dt-header{position:relative;z-index:1000;background:#fff;border-bottom:1px solid #d6e2e5;color:#182d38}
.dt-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1180px;margin:auto;padding:16px 24px}
.dt-logo{display:flex;align-items:center;flex:none;text-decoration:none!important}
.dt-logo img{width:150px;height:auto;max-height:76px;object-fit:contain}
.dt-desktop-nav{flex:1;display:flex;justify-content:center}
.dt-nav{display:flex;gap:28px;align-items:center;list-style:none!important;margin:0!important;padding:0!important}
.dt-nav a{color:#182d38;font-weight:bold;font-size:17px;text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.dt-nav a:hover,.dt-nav .current-menu-item>a,.dt-nav .current-menu-ancestor>a{color:#006d75;border-bottom-color:#006d75}
.dt-header-actions{display:flex;align-items:center;gap:10px;flex:none}
.dt-header .dt-header-cta{white-space:nowrap;font-weight:bold}
.dt-burger{display:none;width:46px;height:46px;padding:0;border:1px solid #c7d6da;border-radius:10px;background:#fff;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.dt-burger span{display:block;width:20px;height:2px;border-radius:2px;background:#182d38;transition:transform .2s,opacity .2s}
.dt-burger[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.dt-burger[aria-expanded=true] span:nth-child(2){opacity:0}
.dt-burger[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.dt-burger:hover{border-color:#006d75}
.dt-mobile-menu{position:fixed;inset:var(--dt-menu-top,72px) 0 0 0;z-index:999}
.dt-mobile-menu[hidden]{display:none}
.dt-mobile-backdrop{position:absolute;inset:0;background:rgba(13,33,40,.45);opacity:0;transition:opacity .2s}
.dt-mobile-panel{position:relative;max-height:100%;overflow-y:auto;background:#fff;border-bottom:1px solid #d6e2e5;box-shadow:0 18px 40px rgba(13,33,40,.18);padding:8px 18px 20px;transform:translateY(-12px);opacity:0;transition:transform .2s,opacity .2s}
.dt-mobile-menu.is-open .dt-mobile-backdrop{opacity:1}
.dt-mobile-menu.is-open .dt-mobile-panel{transform:none;opacity:1}
html.dt-menu-open{overflow:hidden}
.dt-mobile-nav,.dt-mobile-sub{list-style:none!important;margin:0!important;padding:0!important}
.dt-mobile-nav>li{border-bottom:1px solid #e6eef0}
.dt-mobile-row{display:flex;align-items:center;justify-content:space-between}
.dt-mobile-nav a{display:block;flex:1;padding:14px 4px;color:#182d38;font-size:18px;font-weight:bold;text-decoration:none}
.dt-mobile-nav a[aria-current]{color:#006d75}
.dt-sub-toggle{width:44px;height:44px;border:0;border-radius:8px;background:#f1f6f7;color:#182d38;cursor:pointer;display:flex;align-items:center;justify-content:center}
.dt-sub-toggle svg{transition:transform .2s}
.dt-sub-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.dt-mobile-sub{padding:0 12px 10px 0!important}
.dt-mobile-sub a{font-size:16px;font-weight:normal;padding:9px 4px;color:#3a5260}
.dt-mobile-contact{display:flex;gap:10px;margin-top:16px}
.dt-mobile-contact a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px solid #c7d6da;border-radius:10px;color:#182d38;font-weight:bold;text-decoration:none}
.dt-mobile-contact .dt-icon{color:#006d75}
.dt-icon{flex:none;vertical-align:middle}

.dt-footer{background:#0d2128;color:#b9c9ce;padding:0 24px}
.dt-footer a{color:#e3eef0;text-decoration:none}
.dt-footer a:hover{color:#6fd3d9}
.dt-footer-cta{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:40px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.dt-footer-cta h2{color:#fff;font-size:clamp(22px,2.6vw,30px);line-height:1.3;margin:0 0 6px}
.dt-footer-cta p{margin:0;font-size:16px;max-width:560px}
.dt-footer-cta-actions{display:flex;gap:12px;flex-wrap:wrap;flex:none}
.dt-footer .dt-button{display:inline-flex;align-items:center;gap:8px;background:#00a3ad;color:#06222a!important;font-weight:bold;padding:13px 22px;border-radius:8px}
.dt-footer .dt-button:hover{background:#38c3cb;color:#06222a!important}
.dt-footer .dt-button-ghost{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.35)}
.dt-footer .dt-button-ghost:hover{background:rgba(255,255,255,.08);color:#fff!important;border-color:#fff}
.dt-footer-main{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1.1fr .9fr 1.1fr;gap:40px;padding:48px 0 40px}
.dt-logo-light img{width:150px;filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
.dt-footer-brand p{margin:16px 0 20px;font-size:15px;line-height:1.7;max-width:320px}
.dt-footer-title{color:#fff!important;font-size:15px!important;font-weight:bold;letter-spacing:.5px;margin:4px 0 16px!important;line-height:1.4!important}
.dt-footer-col ul{list-style:none!important;margin:0!important;padding:0!important}
.dt-footer-col li{margin:0 0 10px;font-size:15px}
.dt-footer-contact li{display:flex;align-items:center;gap:10px}
.dt-footer-contact .dt-icon{color:#6fd3d9;width:18px;height:18px}
.dt-social{display:flex;gap:10px;list-style:none!important;margin:0!important;padding:0!important}
.dt-social a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;transition:background .15s,transform .15s}
.dt-social a:hover{color:#fff;transform:translateY(-2px)}
.dt-social-facebook:hover{background:#1877f2}
.dt-social-linkedin:hover{background:#0a66c2}
.dt-social-youtube:hover{background:#ff0000}
.dt-social-whatsapp:hover{background:#25d366}
.dt-footer-bottom{max-width:1180px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 0 22px;border-top:1px solid rgba(255,255,255,.1);font-size:14px;color:#8fa5ac}
.dt-footer-bottom p{margin:0}
.dt-footer-legal{display:flex;gap:18px;list-style:none!important;margin:0!important;padding:0!important}
.dt-footer-legal a{color:#b9c9ce}
.dt-footer a:focus-visible,.dt-footer .dt-button:focus-visible{outline-color:#6fd3d9}
@media(max-width:1024px){.dt-footer-main{grid-template-columns:1fr 1fr;gap:36px 28px}}
@media(max-width:900px){.dt-desktop-nav{display:none}.dt-burger{display:flex}.dt-header-inner{padding:12px 18px;gap:12px}.dt-logo img{width:120px}.dt-footer-cta{flex-direction:column;align-items:flex-start}}
@media(max-width:600px){.dt-header .dt-header-cta{white-space:normal;text-align:center;font-size:14px;line-height:1.25;padding:9px 12px;max-width:160px}.dt-logo img{width:104px}.dt-header-inner{padding:10px 14px}.dt-burger{width:44px;height:44px}.dt-footer{padding:0 18px}.dt-footer-cta{padding:32px 0}.dt-footer-cta-actions{width:100%}.dt-footer-cta-actions .dt-button{flex:1;justify-content:center}.dt-footer-main{grid-template-columns:1fr;gap:30px;padding:36px 0 28px}.dt-footer-bottom{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.dt-mobile-panel,.dt-mobile-backdrop,.dt-burger span,.dt-social a{transition:none}}
/* Neutralise theme button styles (Astra) on header controls */
.dt-header button.dt-burger,.dt-header button.dt-burger:hover,.dt-header button.dt-burger:focus,.dt-header button.dt-burger:active{background:#fff!important;color:#182d38!important;padding:0!important;border:1px solid #c7d6da!important;box-shadow:none!important}
.dt-header button.dt-burger:hover,.dt-header button.dt-burger[aria-expanded=true]{border-color:#006d75!important}
.dt-header button.dt-sub-toggle,.dt-header button.dt-sub-toggle:hover,.dt-header button.dt-sub-toggle:focus,.dt-header button.dt-sub-toggle:active{background:#f1f6f7!important;color:#182d38!important;padding:0!important;border:0!important;box-shadow:none!important}
.dt-header button.dt-sub-toggle[aria-expanded=true]{background:#e2eef0!important;color:#006d75!important}
@media(max-width:600px){.dt-footer-cta-actions{flex-direction:column}.dt-footer-cta-actions .dt-button{width:100%}.dt-footer-main{grid-template-columns:1fr 1fr;gap:28px 20px}.dt-footer-brand,.dt-footer-main>.dt-footer-col:last-child{grid-column:1/-1}.dt-footer-col li{font-size:14px}}
.dt-social-instagram:hover{background:linear-gradient(45deg,#f09433,#dc2743 50%,#bc1888)}
.dt-social-empty{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px dashed rgba(255,255,255,.35);color:rgba(255,255,255,.35);cursor:help}
.dt-footer-main{grid-template-columns:1.5fr 1.3fr 1fr}
@media(max-width:1024px){.dt-footer-main{grid-template-columns:1fr 1fr}.dt-footer-brand{grid-column:1/-1}}
@media(max-width:600px){.dt-footer-main{grid-template-columns:1fr}.dt-footer-main>.dt-footer-col{grid-column:auto}}
/* Back link on sub-pages (services / projects) */
.dt-backbar{direction:rtl;max-width:1180px;margin:0 auto;padding:18px 24px 0;font-family:Arial,sans-serif}
.dt-backbar a{display:inline-flex;align-items:center;gap:6px;color:#006d75;font-weight:bold;font-size:16px;text-decoration:none}
.dt-backbar a:hover{color:#004c52;text-decoration:underline;text-underline-offset:4px}
.dt-backbar+*{margin-top:0}
@media(max-width:600px){.dt-backbar{padding:14px 18px 0}}
.dt-has-back .dt-page{padding-top:8px}.dt-has-back .dt-hero{padding-top:16px}
