/*
Theme Name: Hafinan Corporate
Theme URI: https://hafinan.com/
Author: Hafinan General Trading PLC
Description: The Hafinan corporate website, converted to a native WordPress classic theme. Includes dashboard-managed homepage sections, services, future divisions, customers, project examples, FAQs, branding controls, WordPress pages and posts, and optional form-plugin shortcode integration. No page builder is required.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hafinan-corporate
Tags: custom-logo, custom-menu, featured-images, blog, one-column
*/
/* WordPress-specific additions. The preserved Hafinan design is assets/site.css. */
body{overflow-wrap:break-word}.site-header{z-index:999}.admin-bar .site-header{top:32px}.nav-row{gap:18px}.brand{max-width:32%;width:300px}.primary-nav{gap:20px;font-size:12px}.hgt-menu,.hgt-footer-menu{list-style:none;margin:0;padding:0}.hgt-menu{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.hgt-menu>li{position:relative;display:flex;align-items:center;gap:3px}.hgt-menu li a{display:block;padding:10px 0}.hgt-menu>li>a:hover,.hgt-menu>li>a.is-current{color:var(--green);text-decoration:underline;text-underline-offset:7px}.hgt-menu .sub-menu{display:none;position:absolute;top:100%;left:-15px;min-width:225px;padding:12px 18px;list-style:none;background:white;box-shadow:0 12px 32px #162D402b;border:1px solid var(--line);border-radius:6px;z-index:20}.hgt-menu .sub-menu .sub-menu{left:100%;top:0}.hgt-menu .sub-menu>li{position:relative}.hgt-menu li:hover>.sub-menu,.hgt-menu li:focus-within>.sub-menu,.hgt-menu .hgt-submenu-open>.sub-menu{display:block}.hgt-submenu-toggle{background:transparent;border:1px solid #CCD5DC;border-radius:3px;font-size:14px;line-height:22px;min-width:24px;min-height:26px;padding:0;color:var(--green)}.hgt-menu .sub-menu a{font-size:12px;padding:8px 0}.hgt-footer-menu li a{display:block;font-size:12px;color:#4A5D6C;margin-bottom:9px}.hgt-learning-link{color:var(--green);font-weight:700}.hero-future-link{max-width:100%}.hgt-hero-photo{width:100%;aspect-ratio:540/390;object-fit:cover;margin:16px 0 20px}.hgt-form-required{font-size:12px;color:var(--muted);margin:12px 0 24px}.hgt-plugin-form{margin-top:24px}.hgt-plugin-form .wpcf7-form p{margin:14px 0}.hgt-plugin-form input[type=submit]{background:var(--ink);color:white;border:none;cursor:pointer;padding:15px 20px}.hgt-plugin-form label{font-size:13px}.hgt-plugin-form .wpcf7-list-item{margin-left:0}.hgt-plugin-form .wpcf7-response-output{font-size:13px;padding:15px}.clients-grid{gap:1px;background:var(--line)}.client-card{border:none!important}.hgt-extra-content{border-top:1px solid var(--line)}.hgt-content-width{max-width:880px}.hgt-page-main{padding:65px 0 90px;min-height:60vh}.hgt-entry-header{margin-bottom:38px}.hgt-entry-header h1{font-size:clamp(36px,4.2vw,58px);line-height:1.16}.hgt-featured-image{margin-bottom:32px;border-radius:12px;overflow:hidden}.hgt-featured-image img{width:100%;height:auto}.entry-content{font-size:16px;line-height:1.9;color:var(--muted)}.entry-content>:first-child{margin-top:0}.entry-content p,.entry-content ul,.entry-content ol,.entry-content figure,.entry-content blockquote,.entry-content table{margin-bottom:24px}.entry-content h2,.entry-content h3,.entry-content h4{color:var(--ink);margin-top:36px;margin-bottom:18px;line-height:1.25}.entry-content h2{font-size:32px}.entry-content h3{font-size:25px}.entry-content a:not(.wp-element-button):not(.button){color:var(--green);text-decoration:underline;text-underline-offset:3px}.entry-content ul,.entry-content ol{padding-left:25px}.entry-content li{margin-bottom:7px}.entry-content blockquote{border-left:3px solid var(--lime);padding:10px 25px;color:var(--ink);font-size:21px}.entry-content pre{white-space:pre-wrap;overflow:auto;background:var(--wash);padding:20px;border:1px solid var(--line)}.entry-content table{border-collapse:collapse;max-width:100%;width:100%}.entry-content td,.entry-content th{border:1px solid var(--line);padding:12px}.entry-content .wp-block-button__link,.wp-element-button{background:var(--ink);color:white;border-radius:6px;font-weight:600}.entry-content .alignwide{max-width:1100px}.entry-content .alignfull{width:100%;max-width:none}.entry-content .wp-block-image img{height:auto}.entry-content iframe{max-width:100%}.alignleft{float:left;margin:0 24px 20px 0}.alignright{float:right;margin:0 0 20px 24px}.aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font-size:12px;color:var(--muted);margin-top:8px}.bypostauthor{border-left:2px solid var(--green)}.sticky{border-color:var(--green)}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto;width:auto;height:auto;position:fixed;top:10px;left:10px;background:white;padding:15px;z-index:100000}.hgt-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.hgt-post-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;display:flex;flex-direction:column}.hgt-post-body{padding:28px;display:flex;flex-direction:column;flex:1}.hgt-post-body h2{font-size:25px;line-height:1.25;margin-bottom:18px}.hgt-post-body .eyebrow{font-size:10px;margin-bottom:14px}.hgt-post-image img{width:100%;height:220px;object-fit:cover}.entry-summary{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:25px}.hgt-post-card .service-link{margin-top:auto}.hgt-edit-link{font-size:12px;margin-top:24px;color:var(--green)}.navigation.pagination,.post-navigation{margin-top:42px}.nav-links{display:flex;gap:18px;justify-content:space-between;flex-wrap:wrap}.page-numbers{display:inline-flex;min-width:38px;min-height:38px;align-items:center;justify-content:center;border:1px solid var(--line);padding:6px 10px;border-radius:4px}.page-numbers.current{background:var(--ink);color:white}.nav-previous,.nav-next{max-width:47%;font-size:14px}.search-form{display:flex;align-items:stretch;gap:12px;max-width:620px;margin-top:20px}.search-form input[type=search]{min-width:0}.hgt-error-search{display:flex;justify-content:center;margin:30px 0}.hgt-error-search .search-form{flex:1}.comments-area{border-top:1px solid var(--line);padding-top:35px;margin-top:45px;font-size:14px}.comments-area h2,.comments-area h3{font-size:24px;margin-bottom:20px}.comment-list{padding-left:0;list-style:none}.comment-list .children{list-style:none;padding-left:25px}.comment-body{border-bottom:1px solid var(--line);padding:20px}.comment-body p{margin:12px 0}.comment-meta{font-size:12px;color:var(--muted)}.comment-author .avatar{display:inline-block;vertical-align:middle;margin-right:12px;border-radius:50%}.comment-form p{margin:15px 0}.comment-form label{display:block;margin-bottom:8px}.comment-form input[type=submit]{background:var(--ink);color:white;border:0}.comment-form-cookies-consent{display:flex;gap:10px;align-items:flex-start}.comment-form-cookies-consent label{font-size:12px}.page-links{margin:25px 0}.hgt-canvas{min-height:50vh}.hgt-canvas .entry-content{color:inherit}.hgt-plugin-form,.hgt-plugin-form *{max-width:100%}
@media(max-width:1200px){.brand{width:265px}.primary-nav{gap:14px;font-size:11px}.hgt-menu{gap:15px}.nav-cta{font-size:11px;padding:10px 12px}.hgt-post-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1080px){.brand{width:290px;max-width:72%}.menu-toggle{display:flex;align-items:center;justify-content:center;background:var(--wash);border:1px solid #CAD7E2;border-radius:6px;width:44px;height:44px}.menu-lines,.menu-lines:before,.menu-lines:after{display:block;width:20px;height:1.5px;background:var(--ink);position:relative}.menu-lines:before,.menu-lines:after{content:"";position:absolute;left:0}.menu-lines:before{top:-6px}.menu-lines:after{top:6px}.menu-toggle[aria-expanded=true] .menu-lines{background:transparent}.menu-toggle[aria-expanded=true] .menu-lines:before{top:0;transform:rotate(45deg)}.menu-toggle[aria-expanded=true] .menu-lines:after{top:0;transform:rotate(-45deg)}.primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);padding:18px 32px 25px;box-shadow:0 12px 25px #13273710;flex-direction:column;align-items:stretch;gap:2px;font-size:14px;max-height:80vh;overflow-y:auto}.primary-nav.is-open{display:flex}.primary-nav>a:not(.button){padding:12px 0}.primary-nav .button{margin:12px 0 0;align-self:flex-start;min-height:44px}.hgt-menu{display:block}.hgt-menu>li{display:block}.hgt-menu>li>a{padding-right:45px}.hgt-menu .sub-menu{position:static;box-shadow:none;margin-left:15px;min-width:0}.hgt-menu .sub-menu .sub-menu{position:static}.hgt-menu li:hover>.sub-menu,.hgt-menu li:focus-within>.sub-menu{display:none}.hgt-menu .hgt-submenu-open>.sub-menu{display:block!important}.hgt-submenu-toggle{position:absolute;right:0;top:6px;width:33px;height:32px}.nojs-nav .hgt-menu .sub-menu{display:block!important;position:static;box-shadow:none}.hgt-menu li a{font-size:14px}.hgt-learning-link{padding-top:16px!important}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){.admin-bar .site-header{top:0}.hgt-page-main{padding:45px 0 60px}.hgt-entry-header{margin-bottom:28px}.hgt-post-grid{grid-template-columns:1fr}.entry-content{font-size:15px}.entry-content h2{font-size:28px}.entry-content h3{font-size:23px}.brand{width:245px}.hgt-menu>li>a{font-size:14px}.hgt-post-body{padding:24px}.hgt-entry-header h1{font-size:36px}.entry-content .alignleft,.entry-content .alignright{float:none;margin:15px auto}.hgt-extra-content{padding:40px 0}}

/* 1.0.1: Contact links share the existing branded top bar on every page.
   Keep all original brand assets and dashboard-controlled colors unchanged. */
.topbar-inner{gap:16px}
.topbar .hgt-header-contacts{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;column-gap:20px;row-gap:0;min-width:0}
.topbar .hgt-header-contact{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:12px;line-height:1.4;font-weight:500;color:inherit;white-space:nowrap}
.topbar .hgt-header-contact+.hgt-header-contact{border-left:1px solid rgba(225,234,222,.3);padding-left:20px}
.topbar .hgt-header-contacts .icon{display:block;width:14px;height:14px;flex:none}
.topbar .hgt-header-contact:hover span{text-decoration:underline;text-underline-offset:3px}
.topbar .hgt-header-contact:focus-visible{outline:2px solid var(--lime);outline-offset:2px;border-radius:2px}
@media(max-width:960px){
    .topbar .hgt-header-contact{font-size:11px}
    .topbar .hgt-header-contacts{column-gap:14px}
    .topbar .hgt-header-contact+.hgt-header-contact{padding-left:14px}
    .topbar .hgt-topbar-location{font-size:10px;line-height:1.6}
}
@media(max-width:760px){
    .topbar-inner{flex-direction:column;align-items:center;justify-content:center;gap:0;padding-top:7px;padding-bottom:3px}
    .topbar .hgt-topbar-location{display:block;width:100%;max-width:none;text-align:center;font-size:10px;line-height:1.5}
    .topbar .hgt-header-contacts{justify-content:center;max-width:100%;column-gap:16px}
    .topbar .hgt-header-contact{font-size:12px;min-height:40px}
    .topbar .hgt-header-contact+.hgt-header-contact{padding-left:16px}
}
@media(max-width:375px){
    .topbar .hgt-header-contacts{column-gap:10px}
    .topbar .hgt-header-contact{font-size:11px;gap:6px}
    .topbar .hgt-header-contact+.hgt-header-contact{padding-left:10px}
    .topbar .hgt-header-contacts .icon{width:12px;height:12px}
}

/* 2.0.0: Approved HGT brand. The full supplied artwork is never redrawn,
   stretched, recoloured, or used as a CSS filter mask. */
:root{--ink:#102E4C;--muted:#52677D;--green:#006C84;--green-deep:#082F57;--lime:#C8F1F5;--wash:#F4F8FC;--line:#DCE6EF;--brand-navy:#062F5D;--brand-blue:#086BA0;--brand-teal:#00A9BA;--brand-silver:#A9B7C5;--brand-accent:#006C84;--brand-light:#C8F1F5}
html{scroll-padding-top:148px}
.topbar{background:var(--brand-navy);color:#EEF8FF}
.topbar .hgt-header-contact:hover{color:#C8F1F5}
.site-header{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 5px 22px rgba(6,47,93,.035)}
.nav-row{min-height:130px;gap:26px;padding-top:9px;padding-bottom:9px}
.brand{width:220px;max-width:30%;flex-shrink:0;background:#fff}
.hgt-logo{display:block;width:100%;height:auto;object-fit:contain;background:#fff}
.primary-nav{gap:22px}
.hero{background:linear-gradient(112deg,#F7FAFE 0%,#EDF5FC 64%,#E5F8FB 100%)}
.hero-visual{background:linear-gradient(140deg,#F9FCFE,#DFEFF9 65%,#E1F8FA);border-color:#CBDFED;box-shadow:0 25px 65px rgba(6,47,93,.07)}
.hero h1 span{color:var(--brand-accent)}
.button-dark{background:linear-gradient(112deg,var(--brand-navy),#006D88);color:#fff}
.button-dark:hover{background:linear-gradient(112deg,#093B72,#005C72);box-shadow:0 10px 28px rgba(6,47,93,.16)}
.button-lime{background:var(--brand-light);color:var(--brand-navy)}
.button-lime:hover{background:#E6FCFE}
.button-outline{border-color:#9CB7CE}
.service-card{box-shadow:0 4px 17px rgba(6,47,93,.025)}
.service-card:hover{border-color:#70B6CE;box-shadow:0 18px 40px rgba(6,47,93,.09)}
.service-icon{background:#EAF5FA;color:var(--brand-accent)}
.about-panel{background:linear-gradient(140deg,#082F57,#075876);color:#F1F8FE}
.hgt-about-logo{background:#fff;border-radius:10px;padding:8px 12px;margin:24px 0 28px;max-width:276px;box-shadow:0 12px 30px rgba(0,16,43,.12)}
.about-panel>p{color:#CADFEE}
.spectrum{background:linear-gradient(90deg,#062F5D,#086BA0,#00A9BA,#B8C5D0,#E1EAF0)}
.future-section{background:linear-gradient(125deg,#072D53,#074C6B)}
.future-heading h2 span,.future-heading .eyebrow,.future-section-label,.future-foundation-label{color:#C8F1F5}
.future-spark{border-color:#74C7D6}.future-disclaimer{border-left-color:#71BDCF}
.future-heading-copy>p:not(.future-section-label),.future-disclaimer,.future-planning-label,.future-foundation p{color:#D4E5F3}
.future-planning-label,.foundation-tags span{border-color:#4C809B}
.cta-section{background:linear-gradient(112deg,#062F5D,#006A83)}
.cta-inner p{color:#D2E6F4}
.site-footer{background:linear-gradient(130deg,#062A51,#073E60);border-top:3px solid #20A7BB;color:#fff}
.footer-logo{background:#fff;border-radius:9px;max-width:265px;padding:9px 12px}
.footer-brand p{color:#D0E2EF}
.site-footer .footer-grid h2{color:#fff}
.site-footer .footer-grid>div>a:not(.footer-logo),.site-footer .footer-grid>div>span,.site-footer .hgt-footer-menu li a{color:#DAE8F4}
.footer-bottom{border-top-color:#38637F;color:#CCDFED}
.site-footer a:focus-visible{outline-color:#69D8E3}
.site-footer a:hover{color:#A3EDF2}
@media(max-width:1200px){.brand{width:208px}.primary-nav{gap:14px}.nav-row{gap:20px}}
@media(max-width:1080px){.brand{width:210px;max-width:66%}.nav-row{min-height:125px}.primary-nav{gap:2px}}
@media(max-width:760px){html{scroll-padding-top:122px}.brand{width:186px;max-width:66%}.nav-row{min-height:110px;padding-top:8px;padding-bottom:8px}.hgt-about-logo{max-width:265px}.footer-logo{max-width:252px}}
@media(max-width:375px){.brand{width:176px}.nav-row{min-height:103px}.topbar .hgt-header-contact{font-size:10.5px}.topbar .hgt-header-contacts{column-gap:9px}.topbar .hgt-header-contact+.hgt-header-contact{padding-left:9px}}
@media print{.hgt-about-logo{display:none}.future-section{background:#fff;color:var(--ink)}.future-heading h2 span,.future-heading .eyebrow,.future-section-label,.future-heading-copy>p:not(.future-section-label),.future-planning-label,.future-disclaimer,.future-disclaimer a,.future-foundation-label,.future-foundation p,.foundation-tags span{color:var(--ink)}}
