/* Component layout corrections. Existing global colors remain unchanged. */
.services-page .ref-header .contact-pill,.services-page .ref-header .socials,.contact-us-page .ref-header .contact-pill,.contact-us-page .ref-header .socials{display:none}
.ref-header .dropdown-menu{background:#faf7ef!important;color:#141a32!important;border:1px solid #dec891!important;border-top:3px solid #c69c45!important;border-radius:0 0 10px 10px;box-shadow:0 12px 28px #0003!important}
.ref-header .dropdown-menu a{color:#141a32!important;border-bottom:1px solid #e5dfd1!important;border-radius:4px;padding:10px 8px!important;transition:background-color .2s ease}
.ref-header .dropdown-menu a:last-child{border-bottom:0!important}
.ref-header .dropdown-menu a:hover,.ref-header .dropdown-menu a:focus-visible{color:#141a32!important;background:#f0dfb5;padding-left:8px!important;outline:2px solid #8b651e;outline-offset:-2px}
.ref-header .header-trust{display:flex;align-items:center;gap:16px;min-width:0;padding:16px 22px;border:1px solid #e8dfcc;border-radius:12px;background:linear-gradient(115deg,#fbf8f0,#ffffff);color:#15152e;transition:border-color .2s,box-shadow .2s}
.ref-header .header-trust:hover{border-color:#be9955;box-shadow:0 5px 18px #9b752215}
.ref-header .header-trust:focus-visible{outline:2px solid #9a722c;outline-offset:4px}
.ref-header .header-trust-seal{width:40px;flex-shrink:0;color:#ad843c}.ref-header .header-trust-seal svg{display:block;width:100%;height:44px}
.ref-header .header-trust-copy{display:grid;gap:4px}
.ref-header .header-trust-label{font-size:8px;letter-spacing:2px;font-weight:700;color:#80622d}
.ref-header .header-trust-copy>strong{font-size:24px;line-height:1.2;letter-spacing:-.7px;font-weight:700}.ref-header .header-trust-copy>strong>span{color:#99702b}
.ref-header .header-trust-facts{display:flex;align-items:center;gap:10px;font-size:10px;line-height:1.5;color:#656170}
.ref-header .header-trust-facts b{color:#25243b}.ref-header .header-trust-facts i{width:3px;height:3px;border-radius:50%;background:#b58b42;flex-shrink:0}
.ref-header .header-trust-arrow{align-self:flex-start;color:#a27c38;font-size:15px;margin-left:5px}
@media(min-width:821px) and (max-width:1100px){.ref-header .header-top-inner{gap:16px}.ref-header .header-trust{padding:12px;gap:10px}.ref-header .header-trust-copy>strong{font-size:20px}.ref-header .header-trust-seal{width:30px}.ref-header .header-trust-facts{font-size:9px;gap:6px}.ref-header .header-trust-arrow{display:none}.ref-header .top-contact{gap:8px 16px!important}}
@media(max-width:820px){.ref-header .header-trust{order:3;width:100%;justify-content:center;padding:10px 12px;gap:12px}.ref-header .header-trust-copy>strong{font-size:19px}.ref-header .header-trust-label{font-size:7px;letter-spacing:1.5px}.ref-header .header-trust-seal{width:28px}.ref-header .header-trust-seal svg{height:34px}.ref-header .header-trust-facts{font-size:9px;gap:7px}.ref-header .header-trust-arrow{display:none}}
.ref-header .brand-stack{display:flex;flex-direction:column;align-items:center;flex-shrink:0;padding:0}
.ref-header .brand-tagline{font-size:11px;font-weight:700;line-height:1.4;margin-top:-5px;white-space:nowrap}
.ref-header .header-top{height:auto;min-height:0}
.ref-header .header-top-inner{gap:20px;padding:6px 0}
.ref-header .top-contact{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px!important;min-width:300px;padding:6px 12px;border-left:2px solid #d8b76a;align-items:start!important}
.ref-header .top-contact>a,.ref-header .top-contact>div{min-width:0;white-space:normal!important;gap:5px!important;display:flex!important;flex-wrap:wrap;line-height:1.4}
.ref-header .top-contact b{font-size:15px!important;line-height:1.4!important;white-space:nowrap}
.ref-header .top-contact .header-phone,.ref-header .top-contact .header-landline,.ref-header .top-contact .header-location{flex-direction:column;align-items:flex-start!important;gap:3px!important}
.ref-header .top-contact a>span,.ref-header .top-contact .header-location>span{order:-1;font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#747483}
.ref-header .top-contact .header-location{grid-column:2;grid-row:2}
.ref-header .top-contact .header-email{grid-column:1/-1;grid-row:3;border-top:1px solid #e9e5db;padding-top:6px}
.ref-header .top-contact .header-email,.ref-header .top-contact .header-location{font-size:13px;overflow-wrap:anywhere}
.ref-header .menu-label{font-size:14px;margin-left:10px;vertical-align:middle}
.ref-header .services-toggle{display:none}
.ref-header .dropdown:focus-within .dropdown-menu{opacity:1;visibility:visible;transform:none}
.ref-footer .footer-grid>div{min-width:0}
.ref-footer .footer-grid h4{margin:0 0 8px}
.ref-footer .footer-grid>div:nth-child(n)>a{margin:0;padding:3px 0;line-height:1.5}
.ref-footer .footer-contact-row a{display:block!important;margin:0;padding:2px 0!important;line-height:1.5}
.ref-footer .footer-contact-value>br{display:none}
.ref-footer .footer-contact-row{margin:8px 0!important}
.ref-footer .footer-about p{margin-bottom:0}
.contact-page .contact-details{display:grid;gap:8px;margin-top:24px;overflow-wrap:anywhere}
.inner-ref.contact-page{min-height:0;padding:24px 0 48px}
.contact-page .contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:40px}
.contact-page h1{margin:0 0 24px;font-size:clamp(32px,4vw,48px);line-height:1.2}
.contact-page .contact-grid p{margin:0 0 20px;line-height:1.7}
.contact-page .contact-grid>*{min-width:0}
.contact-page .ref-form input,.contact-page .ref-form select,.contact-page .ref-form textarea{width:100%;min-width:0;font-size:16px}
.contact-page .ref-form{align-self:start}
.home-page .cinematic-hero h1 br{display:block}
.home-page .hero-copy>*{min-width:0}
.home-page .hero-copy .eyebrow{white-space:normal;line-height:1.6}
.home-page .hero-assurances{flex-wrap:wrap}
@media(max-width:1100px){
  .ref-header .socials{display:none}
  .ref-header .nav-inner{gap:20px}
  .ref-header #mainNav{gap:24px}
}
@media(max-width:820px){
  .ref-header .header-top-inner{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:12px 0}
  .ref-header .brand img{width:155px;height:72px}
  .ref-header .brand-tagline{font-size:10px;margin-top:0}
  .ref-header .top-contact{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px!important;padding:14px 16px;border:1px solid #e9e5db;border-radius:10px;background:#fbfaf7}
  .ref-header .top-contact b{font-size:clamp(12px,3.6vw,14px)!important}
  .ref-header .header-top{min-height:0}
  .ref-header .nav-bar{height:54px}
  .ref-header .nav-inner{position:relative}
  .ref-header .menu-toggle{display:flex;align-items:center;min-height:44px;padding:0 8px;cursor:pointer}
  .ref-header #mainNav{top:54px;left:0;right:0;max-height:65svh;overflow-y:auto;padding:12px 16px;gap:0;align-items:stretch;overscroll-behavior:contain}
  .ref-header #mainNav>a,.ref-header .dropdown>a{display:flex;align-items:center;min-height:44px;padding:10px 4px;font-size:16px;line-height:1.5}
  .ref-header .dropdown{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;min-width:0}
  .ref-header .dropdown:after{display:none}
  .ref-header .dropdown>a small{display:none}
  .ref-header .services-toggle{display:block;width:44px;height:44px;font:inherit;font-size:24px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px;cursor:pointer}
  .ref-header .dropdown-menu{grid-column:1/-1;min-width:0;width:100%!important;max-width:100%;margin:4px 0 8px;padding:8px 12px!important}
  .ref-header .dropdown-menu a{white-space:normal;line-height:1.4!important;font-size:14px!important;padding:11px 8px!important}
  .ref-header.nav-enhanced .dropdown-menu{display:none}
  .ref-header.nav-enhanced .dropdown.services-open .dropdown-menu{display:block}
  .ref-header #mainNav a:focus-visible,.ref-header button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
  .inner-ref{padding:34px 0;min-height:0}
  .inner-ref h1{font-size:clamp(32px,7vw,44px);line-height:1.2;margin-bottom:26px}
  .inner-ref h2{font-size:28px;line-height:1.3}
  .inner-ref p,.inner-ref li{overflow-wrap:anywhere}
  .contact-page .contact-grid{grid-template-columns:1fr;gap:28px}
  .inner-ref.contact-page{padding:12px 0 36px}
  .inner-ref.contact-page h1{margin-bottom:18px}
  .contact-page .contact-grid p{margin:0 0 20px;line-height:1.7}
  .contact-page .contact-details{margin-top:0}
  .ref-footer{padding:32px 0 24px!important}
  .ref-footer .footer-rule{margin-bottom:26px!important}
  .ref-footer .footer-grid{grid-template-columns:1fr 1fr;gap:18px 24px}
  .ref-footer .footer-grid>div{text-align:center}
  .ref-footer .footer-about p{margin-left:auto;margin-right:auto}
  .ref-footer .footer-logo-box{margin:0 auto 14px;width:150px;height:95px}
  .ref-footer .footer-logo-box img{max-width:135px;max-height:85px}
  .ref-footer .footer-grid h4{margin:0 0 8px}
  .ref-footer .footer-contact-row{margin:8px auto!important;gap:8px!important;justify-content:center}
  .ref-footer .footer-contact-value{flex:0 1 auto!important;max-width:calc(100% - 46px);text-align:center}
  .ref-footer .footer-social{justify-content:center!important}
  .ref-footer .footer-bottom{margin-top:24px!important;padding:20px 0 60px!important;text-align:center;font-size:12px}
  .float-actions,.home-page .float-actions{right:10px;bottom:12px;gap:8px}
  .float-actions a,.home-page .float-actions a{width:44px;height:44px;border-radius:12px}
  .home-page .hero-film{height:auto;aspect-ratio:16/9}
  .home-page .hero-film .hero-background{object-fit:contain}
  .home-page .hero-film .hero-motion-toggle{right:10px;bottom:10px;font-size:10px;padding:7px 10px}
  .home-page .hero-copy{display:block}
  .home-page .cinematic-content{min-height:0;padding:28px 0;gap:24px}
  .home-page .cinematic-hero h1{font-size:clamp(32px,6vw,46px);letter-spacing:-1px;line-height:1.15}
  .home-page .hero-description{max-width:none;margin:18px 0 0}
  .home-page .hero-actions{margin:22px 0 0;display:flex;flex-wrap:wrap}
  .home-page .hero-bottom{padding-top:18px}
  .home-page .hero-assurances{justify-content:flex-start;gap:12px 20px;line-height:1.5;padding-right:42px}
  .home-page .hero-assurances span{white-space:normal}
  .home-page .navy-section,.home-page .responsibility-section{padding:36px 0!important}
  .home-page .services-ref::before,.home-page .services-ref::after,.services-page .inner-ref::before,.services-page .inner-ref::after{display:none}
  .home-page .services-ref .ref-title{margin-bottom:24px!important}
  .home-page .responsibility-layout{gap:26px}
  .home-page .responsibility-seal{right:8px}
  .home-page .responsibility-detail{min-height:0}
  .home-page .home-reasons,.home-page .home-contact{padding:36px 0}
  .home-page .home-enquiry-guide{padding-top:36px}
  .home-page .home-section-heading{gap:18px;margin-bottom:24px}
  .home-page .reason-marquee{overflow:visible;padding:0}
  .home-page .reason-track{width:100%;display:block;animation:none;transform:none}
  .home-page .reason-track .home-reason-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:16px}
  .home-page .reason-track .home-reason-grid article{width:auto;min-width:0}
  .home-page .reason-track .reason-grid-copy{display:none}
  .home-page .responsibility-text-pending,.home-page .responsibility-text-enter,.home-page .services-ref .ref-card.card-rise-pending,.home-page .services-ref .ref-card.service-pending,.services-page .ref-card.card-rise-pending,.reveal,.reveal-card{opacity:1!important;transform:none!important;animation:none!important;filter:none!important}
  .home-page .services-ref .ref-card,.services-page .ref-card,.home-page .services-ref .ref-card.card-rise-enter,.services-page .ref-card.card-rise-enter{opacity:1!important;transform:none!important;rotate:none;transition:none!important;animation:none!important}
  .about-page .about-hero{padding-top:32px}
  .about-page .about-story,.about-page .about-values,.about-page .about-cta{padding-top:40px;padding-bottom:40px}
  .about-page .about-journey{padding-bottom:40px}
  .about-page .about-hero-grid{min-width:0}
}
@media(max-width:560px){
  .ref-header .container,.ref-footer .container,.inner-ref .container,.about-page .container,.home-page .container,.home-page .navy-section .container{width:calc(100% - 36px)!important}
  .ref-footer .footer-grid,.home-page .footer-grid{grid-template-columns:1fr;gap:18px}
  .ref-footer .footer-grid>div:last-child{padding-right:0}
  .home-page .hero-copy .eyebrow{font-size:10px;letter-spacing:1.4px;gap:8px}
  .home-page .hero-copy .eyebrow:before{width:18px;flex-shrink:0}
  .home-page .hero-actions{flex-direction:column;align-items:stretch}
  .home-page .hero-actions .home-button{width:100%;min-width:0;min-height:46px;font-size:14px}
  .home-page .hero-assurances{display:grid;grid-template-columns:1fr;font-size:12px;gap:10px}
  .home-page .adv-equation{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
  .home-page .adv-unit{min-width:0;padding:12px 8px;animation:none!important;translate:none}
  .home-page .adv-unit p{font-size:11px}
  .home-page .adv-icon{width:30px;height:30px;flex-basis:30px}
  .home-page .responsibility-photo{height:330px}
  .home-page .responsibility-choice{flex-wrap:wrap;justify-content:center}
  .home-page .responsibility-choice>span:last-child{display:none}
  .home-page .reason-track .home-reason-grid{grid-template-columns:1fr}
  .home-page .ref-grid,.services-page .ref-grid{grid-template-columns:1fr;gap:20px}
  .home-page .services-ref .ref-card,.services-page .ref-card{padding:16px;border-radius:22px}
  .home-page .ref-card-copy,.services-page .ref-card-copy{padding:18px 4px 6px}
  .home-page .home-contact-box{padding:24px}
  .home-page .home-contact .home-button{max-width:100%;white-space:normal}
  .service-ref-hero{height:330px}
  .service-ref-hero h1{font-size:34px;line-height:1.2;overflow-wrap:anywhere}
}
/* The supplied original logo retains its full artwork and aspect ratio. */
.ref-header .brand-stack{perspective:none}
.ref-header .brand.brand-original{display:block;position:relative;width:110px;height:100px;overflow:hidden;perspective:none}
.ref-header .brand.brand-original img{display:block;width:128px!important;height:128px!important;max-width:none;object-fit:contain;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)!important;animation:none!important;clip-path:none}
/* Split the original artwork at the gap between the shield and HAQQ text. */
.ref-header .brand.brand-original img.brand-logo-wordmark{clip-path:inset(68.5% 0 0)}
.ref-header .brand.brand-original img.brand-logo-shield{clip-path:inset(0 0 31.5%);transform:none!important;translate:-50% -50%;transform-origin:50% 34.25%;animation:haqq-header-logo-turn 6s linear infinite!important;pointer-events:none}
.ref-header .brand-original+.brand-tagline{margin-top:2px}
.ref-footer .footer-logo-box{position:relative;width:160px;height:156px;overflow:hidden;background:#fff}
.ref-footer .footer-logo-box img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:184px;height:184px;max-width:none;max-height:none;object-fit:contain}
.home-page .adv-logo img{width:130px;height:130px;object-fit:contain}
@media(max-width:820px){.ref-header .brand.brand-original{width:126px;height:124px}.ref-header .brand.brand-original img{width:154px!important;height:154px!important}.ref-header .brand-original+.brand-tagline{font-size:9px}.ref-footer .footer-logo-box{width:150px;height:146px}.ref-footer .footer-logo-box img{width:172px;height:172px;max-width:none;max-height:none}}

.ref-header .mobile-nav-logo,.ref-header .mobile-brand-copy{display:none}
/* Original mobile header, with compact spacing and full contact details. */
@media(max-width:820px){
  .ref-header .header-top{background:#fff}
  .ref-header .header-top-inner{display:flex;flex-direction:column;gap:6px;padding:4px 0}
  .ref-header .brand-stack{display:flex;perspective:none}
  .ref-header .brand.brand-original{width:86px;height:76px}
  .ref-header .brand.brand-original img{width:100px!important;height:100px!important}
  .ref-header .brand-original+.brand-tagline{display:block;font-size:9px;margin-top:0}
  .ref-header .top-contact{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px!important;padding:6px 0 0;border:0;border-top:1px solid #e9e5db;border-radius:0;background:transparent}
  .ref-header .top-contact .header-phone,.ref-header .top-contact .header-landline,.ref-header .top-contact .header-location{align-items:center!important;text-align:center;gap:1px!important}
  .ref-header .top-contact b{font-size:13px!important}
  .ref-header .top-contact a>span,.ref-header .top-contact .header-location>span{font-size:9px;line-height:1.3}
  .ref-header .top-contact .header-email{justify-content:center;text-align:center;padding:4px 0;border-bottom:1px solid #e9e5db;font-size:12px}
  .ref-header .header-trust{padding:6px 10px;gap:9px;border-radius:12px}
  .ref-header .header-trust-label{display:none}
  .ref-header .header-trust-copy{gap:2px}
  .ref-header .header-trust-copy>strong{font-size:16px}
  .ref-header .header-trust-seal{width:23px}
  .ref-header .header-trust-seal svg{height:29px}
  .ref-header .header-trust-facts{font-size:9px;gap:7px}
  .ref-header .nav-bar{height:46px;background:var(--navy);border:0;box-shadow:none}
  .ref-header .nav-inner{gap:0}
  .ref-header .menu-toggle{margin:0;color:#fff;border:0;border-radius:0;padding:0 8px;font-size:26px;background:transparent}
  .ref-header .menu-label{font-size:14px;margin-left:10px}
  .ref-header #mainNav{top:46px;color:#fff}
}
@keyframes haqq-header-logo-turn{from{rotate:y 0deg}to{rotate:y 360deg}}
@media(prefers-reduced-motion:reduce){
  .ref-header .brand.brand-original img.brand-logo-shield{animation:none!important}
}

/* Keep desktop navigation and branding equally compact on every page. */
@media(min-width:821px){
  .ref-header .header-trust{padding:10px 14px;gap:10px}
  .ref-header .header-trust-copy>strong{font-size:20px}
  .ref-header .header-trust-seal{width:30px}
  .ref-header .nav-bar{height:56px}
  .ref-header #mainNav>a,.ref-header .dropdown>a{display:flex;align-items:center;min-height:56px;padding:12px 0;font-size:16px}
  .ref-header #mainNav>a.active:after,.ref-header .dropdown>a.active:after{bottom:5px!important}
  .ref-header .dropdown-menu{top:56px!important}
  .ref-header .dropdown:after{top:48px;height:16px}
  .ref-header .contact-pill{padding:10px 22px;font-size:14px}
}


/* Give both footer link columns equal space and matching rows. */
@media(min-width:1101px){
  .ref-footer .footer-grid{grid-template-columns:.95fr 1.15fr 1.15fr 1.15fr;gap:28px}
}
@media(min-width:561px) and (max-width:1100px){
  .ref-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
}
.ref-footer .footer-grid>.footer-service-keywords>a,
.ref-footer .footer-grid>.footer-service-keywords+div>a{
  display:flex;align-items:center;min-height:28px;margin:0;padding:4px 0;
  font-size:13px;line-height:1.5;overflow-wrap:break-word;
}
@media(max-width:820px){
  .ref-footer .footer-grid>.footer-service-keywords>a,
  .ref-footer .footer-grid>.footer-service-keywords+div>a{justify-content:center}
}

/* Compact shared rows keep wrapped service labels aligned on desktop. */
@media(min-width:1101px){
  .ref-footer .footer-grid{grid-template-rows:auto repeat(9,auto);row-gap:0}
  .ref-footer .footer-grid>div{grid-row:1 / span 10}
  .ref-footer .footer-grid>div:nth-child(1){grid-column:1}
  .ref-footer .footer-grid>div:nth-child(2){grid-column:2}
  .ref-footer .footer-grid>div:nth-child(3){grid-column:3}
  .ref-footer .footer-grid>div:nth-child(4){grid-column:4}
  .ref-footer .footer-grid>.footer-service-keywords,
  .ref-footer .footer-grid>.footer-service-keywords+div{display:grid;grid-template-rows:subgrid;align-self:stretch}
}
@media(min-width:821px){
  .ref-footer{padding-top:32px}
  .ref-footer .footer-rule{margin-bottom:28px}
  .ref-footer .footer-bottom{margin-top:24px;padding-top:20px}
}
