/* HIGHWINGS responsive hardening layer — layout-only; preserves existing visual theme. */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:clip;scroll-padding-top:100px}
body{max-width:100%;overflow-x:clip}
img,video,iframe,svg{max-width:100%}
input,select,textarea,button{max-width:100%;font:inherit}
.wrap,.detail,.buy-page,.about-page,.sell-page,.advisory-page,.contact-page{min-width:0}
p,h1,h2,h3,h4,a,button,td,th{overflow-wrap:break-word}
table{max-width:100%}
@media(max-width:1100px){
 .nav{gap:12px!important}
 .brand{min-width:0!important}
 .links{gap:14px!important}
 .nav-actions{gap:7px!important}
 .phone-pill{padding:9px 10px!important}
}
@media(max-width:900px){
 .wrap,.hero-inner{width:min(100% - 34px,1160px)!important}
 .nav{height:auto!important;min-height:72px!important;flex-wrap:wrap;padding:9px 0}
 .brand img{max-width:58px!important;height:auto!important}
 .links{flex-wrap:wrap;justify-content:center}
 .nav-actions{flex-wrap:wrap}
 .hero{min-height:unset!important}
 .hero-inner{padding:58px 0 72px!important}
 .hero-layout,.cols,.layout,.contact-grid,.sell-layout{grid-template-columns:minmax(0,1fr)!important}
 .gallery{max-width:100%}
}
@media(max-width:700px){
 .wrap,.hero-inner{width:calc(100% - 28px)!important}
 .topline .wrap{justify-content:center!important;text-align:center}
 .nav{gap:8px!important}
 .brand{flex:1 1 auto}
 .brand-name{font-size:14px!important}
 .brand-tag{font-size:8px!important}
 .links{width:100%;gap:9px 14px!important;justify-content:flex-start!important;font-size:12px!important}
 .nav-actions{width:100%;justify-content:flex-start}
 .phone-pill,.nav-actions .btn{min-height:42px}
 .hero h1,.buy-hero h1,.sell-hero h1,.advisory-hero h1{font-size:clamp(34px,9vw,48px)!important}
 .hero-inner{padding:48px 0 58px!important}
 .hero-actions,.hero .actions{display:flex;flex-wrap:wrap;gap:10px!important}
 .hero-actions .btn,.hero .actions .btn{flex:1 1 150px}
 .section-intro{margin-bottom:24px!important}
 .spec-grid,.stats-grid,.services-grid,.cards-grid,.land-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .gallery{grid-template-columns:minmax(0,1fr)!important}
 .gallery img{height:auto;max-height:300px;object-fit:cover}
 .thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .cols{gap:20px!important}
 .advisor{position:static!important}
 .sell-form,.contact-form,.enquiry-form{grid-template-columns:minmax(0,1fr)!important}
 .sell-form .wide,.contact-form .wide{grid-column:auto!important}
 .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 20px!important}
 .site-footer .copyright{display:flex!important;flex-wrap:wrap;gap:10px!important}
}
@media(max-width:420px){
 .spec-grid,.stats-grid,.services-grid,.cards-grid,.land-grid{grid-template-columns:minmax(0,1fr)!important}
 .site-footer .footer-grid{grid-template-columns:minmax(0,1fr)!important}
 .btn,.buy-btn,.advisory-btn{max-width:100%}
 .panel,.card,.land-card,.advisory-card{min-width:0}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ---- Mobile fixes (v2) ---- */
@media(max-width:700px){
 footer.site-footer .copyright,.site-footer .copyright{flex-wrap:wrap!important;white-space:normal!important;gap:8px 16px!important;justify-content:flex-start!important}
 .site-footer .copyright .copyright-links,.copyright .copyright-links{display:inline-flex!important;flex-wrap:wrap!important;gap:2px 10px!important;white-space:normal!important}
  header .links a{display:flex!important;align-items:center;min-height:44px}
 .site-footer a{display:inline-block;padding:10px 0}
 .site-footer .copyright a{padding:12px 0}
}
@media(max-width:900px){
 .phone-pill,.btn,.buy-btn,.advisory-btn{min-height:44px}
}
@media(max-width:900px){
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px!important}
}
@media(max-width:700px){
 .hamb{min-width:44px;min-height:44px}
 .hw-enquire,.hw-view-all{display:inline-flex!important;align-items:center;min-height:44px}
 .eyebrow,.hw-property-tag,.hw-sample-tag,.service-index,.insight-category,.hw-disclaimer,.advisory-note,.contact-aside-label,.copyright-text,.copyright-links,.copyright-links a,small,span.index,span.number{font-size:12px!important}
 .brand-tag{font-size:10px!important}
}
@media(max-width:900px){
 body.contact-page #contactEnquiry input,body.contact-page #contactEnquiry select,body.contact-page #contactEnquiry textarea{font-size:16px!important}
}
@media(max-width:700px){
 footer.site-footer .copyright .copyright-links a,footer.site-footer .copyright .copyright-links{font-size:12px!important}
 .insight-article-grid a{font-size:13px!important;display:inline-flex!important;align-items:center;min-height:44px}
}

/* ---- Mobile layer v3: consistent gutters, no mid-word breaks, no side-scroll ---- */
@supports not (overflow-x:clip){
 html{overflow-x:hidden}
 body{overflow-x:visible}
}
@media(max-width:900px){
 /* sections slide in vertically only; a sideways offset widens the page on phones */
 .hw-reveal.hw-reveal-left,.hw-reveal.hw-reveal-right{transform:translateY(24px)!important}
 .hw-reveal.hw-reveal-left.hw-visible,.hw-reveal.hw-reveal-right.hw-visible,
 .hw-reveal.hw-reveal-left.is-visible,.hw-reveal.hw-reveal-right.is-visible{transform:none!important}
}
@media(max-width:700px){
 /* one 18px side gutter everywhere (was 14 / 18 / 20 / 36 / 38 depending on the section) */
 .wrap{width:calc(100% - 36px)!important;margin-left:auto!important;margin-right:auto!important}
 .hero.hero-aligned,.home-intro,.home-services,.home-regions,.home-cta,
 .advisory-hero,.advisory-section,.about-section,.buy-section,.sell-cta{padding-left:0!important;padding-right:0!important}
 .home-inner,.hero-layout,.advisory-inner,.about-inner,.buy-inner,.sell-cta-inner{margin-left:18px!important;margin-right:18px!important;width:auto!important;max-width:none!important}
 .about-cta-inner{box-sizing:border-box;padding-left:18px!important;padding-right:18px!important}
 .buy-hero,.buy-cta,.sell-hero,.sell-section,.advisory-cta{padding-left:18px!important;padding-right:18px!important}
 .advisory-cta-inner{padding-left:0!important;padding-right:0!important}
 .insights-note,.insights-note-section .advisory-inner>*{margin-left:0!important;margin-right:0!important}
 /* buttons and links wrap between words, never inside them */
 a,button,.btn{overflow-wrap:normal!important;word-break:normal!important;hyphens:none}
 .hero .btn,.hero a.btn,.hero-actions a{white-space:normal;text-align:center;justify-content:center;min-height:48px}
 a[href^="mailto:"]{overflow-wrap:anywhere!important}
}
@media(max-width:700px){
 .legal-content{margin-left:0!important;margin-right:0!important}
 .legal-wrap{margin-left:18px!important;margin-right:18px!important;width:auto!important}
}
@media(max-width:420px){
 .audience-grid{grid-template-columns:1fr!important}
}

/* Footer on phones: brand block full width, COMPANY and QUICK LINKS side by side, CONTACT full width */
@media(max-width:700px){
 footer.site-footer .footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:26px 18px!important}
 footer.site-footer .footer-grid>.footer-about,
 footer.site-footer .footer-grid>.footer-col:last-child{grid-column:1/-1!important}
 footer.site-footer .footer-grid>.footer-col:not(:last-child){grid-column:auto!important;min-width:0}
 footer.site-footer .footer-col a{overflow-wrap:break-word}
}

/* HIGHWINGS footer: compact, evenly spaced links on mobile */
@media(max-width:700px){
 footer.site-footer .footer-col a,
 .site-footer .footer-col a{
  display:block!important;
  padding:3px 0!important;
  margin:0 0 7px!important;
  line-height:1.5!important;
 }
 footer.site-footer .footer-col h4{
  margin-bottom:12px!important;
 }
}


/* ---- Desktop full-width layout: HIGHWINGS premium wide canvas ---- */
@media (min-width:901px){
  :root{--hw-page-gutter:clamp(28px,3.2vw,64px)}
  .wrap,
  .hero-inner{
    width:calc(100% - (var(--hw-page-gutter) * 2))!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  /* Keep reading measure comfortable while allowing the overall page to breathe. */
  .section-intro p,
  .hero-lead,.hero-description,
  .buy-hero p,.sell-hero p,.advisory-hero p{
    max-width:min(min(100%,760px),62vw);
  }
  .site-footer .footer-grid,
  .site-footer .copyright{
    width:calc(100% - (var(--hw-page-gutter) * 2));
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }
}


/* HIGHWINGS desktop canvas: use the available viewport instead of a narrow fixed max-width. */
@media (min-width: 901px) {
  .wrap, .hero-inner, header .nav, .site-footer .footer-grid,
  .site-footer .copyright {
    width: calc(100% - clamp(48px, 6vw, 120px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
