/* AURA visual refinement (theme 8.x). Loaded after all theme CSS (inc/refinement.php).
   Refines how the existing fonts, colours and components are applied. No layout or content changes.
   Motion only under prefers-reduced-motion: no-preference. */

/* 1. Text rendering and line breaking ------------------------------------------------------ */
html{overflow-x:clip}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;overflow-x:clip}
h1,h2,h3,.aura-display{text-wrap:balance;font-kerning:normal}
p,li,figcaption,summary{text-wrap:pretty}
h1,h2,h3,h4,.aura-display,.aura-case-stat strong,.aura-related-card a,.aura-services-hub-card h3{overflow-wrap:normal;word-break:normal;hyphens:manual}

/* Large display headings: size to the screen so the longest word fits (was breaking mid-word at 320-375px). */
@media (max-width:600px){
  html body .aura-display,html body #aura-main h1.aura-display,html body #aura-main h2.aura-display{font-size:clamp(2.3rem,12vw,3.6rem)!important;line-height:1.02!important}
  html body #aura-main .aura-services-hub-card h3{font-size:clamp(1.2rem,5.6vw,1.6rem)!important}
}
/* Homepage case studies: narrow copy column and stat tiles (were breaking "development.", "Completed", "£5.85m"). */
html body #aura-main .aura-case-copy h3{font-size:clamp(2rem,3.7vw,3.6rem)!important;line-height:1.06!important}
html body #aura-main .aura-case-stat strong{font-size:clamp(1.15rem,1.9vw,1.6rem)!important;line-height:1.15!important}
html body #aura-main .aura-case-stat span{letter-spacing:.06em!important;font-size:.62rem!important}
/* Related-content cards (Contact, Insights): titles sized to the card (were breaking "Architecture", "Development"). */
html body #aura-main .aura-related-card a{font-size:clamp(1.2rem,1.9vw,1.6rem)!important;line-height:1.15!important}

/* 2. Small gold and bronze labels: same brand colours, applied for contrast (WCAG AA) ---------------- */
/* On light backgrounds: deeper bronze. */
html body #aura-main#aura-main.wp-block-group :is(.aura-eyebrow,.aura-hmo-meta,.aura-step-number,.aura-hmo-project-location,.aura-case-copy p>a,.aura-hmo-experience-card h3>a,.aura-feasibility-faq summary){color:#6f5a35!important}
/* On navy, dark and photographic sections: pale gold. */
html body #aura-main#aura-main.wp-block-group :is(.wp-block-cover,.aura-dark,.has-aura-blue-background-color,.aura-about-dark,.aura-hmo-dark,.aura-dark-service,.aura-services-hub-cta,.aura-project-case-hero,.aura-project-evidence,.aura-feasibility-process,.aura-cta,.aura-hmo-hero,.aura-service-hero,.aura-hmo-experience,.aura-property-marketing-process) :is(.aura-eyebrow,.aura-hmo-meta,.aura-step-number){color:#d0b487!important}
html body #aura-main#aura-main.wp-block-group :is(#aura-hub,#aura-hoard) .ao-lab,html body #aura-main.wp-block-group #aura-hub .ah-lab{color:#d0b487!important}

/* 3. Links in running text ------------------------------------------------------------------ */
#aura-main p a:not(.wp-element-button),#aura-main li a:not(.wp-element-button){text-underline-offset:.22em;text-decoration-thickness:1px}
footer a{text-underline-offset:.25em}

/* 4. Buttons and calls to action: one hover, focus and spacing behaviour ------------------------ */
.wp-element-button,.wp-block-button__link,.wpcf7-submit,.aura-header-inner .aura-nav-cta>.wp-block-navigation-item__content{letter-spacing:.14em}
.wp-block-button__link:focus-visible,.wpcf7-submit:focus-visible,#aura-main a:focus-visible,.aura-site-header a:focus-visible,.aura-site-header button:focus-visible,footer a:focus-visible,summary:focus-visible{outline:2px solid #c8a86b!important;outline-offset:3px!important;box-shadow:none!important}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,.wpcf7-submit:hover{filter:brightness(1.12)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background-color:rgba(200,168,107,.16);border-color:#c8a86b}
.wp-block-buttons{gap:12px}

/* 5. Header and navigation ------------------------------------------------------------------ */
.aura-site-header .wp-block-navigation__container>.wp-block-navigation-item:not(:last-child)>.wp-block-navigation-item__content{background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:0 calc(100% - 2px);background-size:0 1px}
.aura-site-header .wp-block-navigation__container>.wp-block-navigation-item:not(:last-child)>.wp-block-navigation-item__content:hover,
.aura-site-header .wp-block-navigation__container>.wp-block-navigation-item:not(:last-child)>.wp-block-navigation-item__content[aria-current="page"]{background-size:100% 1px}
.aura-site-header .wp-block-navigation__submenu-container{box-shadow:0 18px 40px -18px rgba(7,23,37,.55)!important}
.aura-header-inner .aura-nav-cta>.wp-block-navigation-item__content:hover{background:#c8a86b;border-color:#c8a86b!important;color:#071725!important}

/* 6. Project cards: consistent ratio, quiet hover -------------------------------------------- */
.aura-project-library .aura-project-card-image,.aura-related-project-image,.aura-services-hub-project-image{overflow:hidden;display:block}
.aura-project-library .aura-project-card-image img,.aura-related-project-image img,.aura-services-hub-project-image img{aspect-ratio:4/3;object-fit:cover;width:100%;height:auto}
.aura-project-library .aura-project-card:focus-within{outline:2px solid #c8a86b;outline-offset:4px}

/* 7. Enquiry form: comfortable tap targets, visible focus (form fields and behaviour unchanged) ---- */
.wpcf7 .wpcf7-list-item label{display:inline-flex;align-items:center;gap:8px;min-height:28px}
.wpcf7 input[type="checkbox"]{width:18px;height:18px;margin:0}
.wpcf7 :is(input,select,textarea):focus-visible{outline:2px solid #c8a86b!important;outline-offset:2px!important}

/* 8. Motion, only for people who have not asked for less ------------------------------------ */
@media (prefers-reduced-motion:no-preference){
  .wp-block-button__link,.wpcf7-submit,.aura-header-inner .aura-nav-cta>.wp-block-navigation-item__content{transition:background-color .25s ease,color .25s ease,border-color .25s ease,filter .25s ease}
  .aura-site-header .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content{transition:background-size .35s cubic-bezier(.2,.7,.2,1),color .25s ease}
  .aura-site-header{transition:background-color .35s ease,box-shadow .35s ease}
  .aura-project-library .aura-project-card-image img,.aura-related-project-image img,.aura-services-hub-project-image img{transition:transform .7s cubic-bezier(.2,.7,.2,1)}
  .aura-project-library .aura-project-card:hover .aura-project-card-image img,.aura-related-project a:hover img,.aura-services-hub-project:hover .aura-services-hub-project-image img{transform:scale(1.035)}
  #aura-main a{transition:color .2s ease,text-decoration-color .2s ease}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media (max-width:420px){html body #aura-main .aura-case-stat span{letter-spacing:.02em!important;overflow-wrap:normal;word-break:keep-all}}

/* 9. Phase 2 (theme 8.15): header submenus. The theme's CTA rule (last menu item = bordered button)
   also matched the last item of each submenu; keep the button style on the top-level CTA only. */
.aura-header-inner .wp-block-navigation__submenu-container .wp-block-navigation-item:last-child>.wp-block-navigation-item__content{border:0!important;letter-spacing:normal!important;padding:12px 14px}
.aura-header-inner .wp-block-navigation__submenu-container .wp-block-navigation-item>.wp-block-navigation-item__content:hover{color:#d0b487}
/* 10. Readable text on photography */
html body #aura-main .aura-hero-side p{color:rgba(255,255,255,.9)!important;text-shadow:0 1px 14px rgba(7,23,37,.65)}
html body #aura-main#aura-main .aura-cta :is(h2,h3,h2.aura-display){color:#fff!important}
/* 11. Closing CTA: wider measure so the display heading sets in two lines on desktop */
html body #aura-main .aura-cta .wp-block-cover__inner-container{max-width:min(1040px,100% - 48px)!important;margin-inline:auto}
html body #aura-main .aura-cta .wp-block-buttons{justify-content:center}
html body #aura-main .aura-cta h2.aura-display{font-size:clamp(2.5rem,5.6vw,5.6rem)!important;line-height:1!important}
/* 12. Cards: calmer proportions on mobile, refined hover */
@media (max-width:781px){
  html body #aura-main .aura-principle{min-height:0!important}
  html body #aura-main .aura-dark .aura-principle h3{margin-top:36px!important}
  html body #aura-main .aura-step{min-height:0!important}
  html body #aura-main .aura-step h3{margin-top:28px!important}
}
#aura-main :is(.aura-principle,.aura-step,.aura-services-hub-card){border-color:rgba(127,106,77,.22)}
#aura-main :is(.aura-principle,.aura-step,.aura-services-hub-card):hover{border-color:#c8a86b!important;box-shadow:0 18px 40px -28px rgba(7,23,37,.45)}
#aura-main .aura-dark .aura-principle:hover{box-shadow:none}
/* 13. Section heads: label aligned with the heading, not the last line of copy */
@media (min-width:782px){html body #aura-main .aura-section-head{align-items:flex-start!important}html body #aura-main .aura-section-head>.wp-block-column:first-child{padding-top:1.1rem}}
@media (prefers-reduced-motion:no-preference){
  #aura-main :is(.aura-principle,.aura-step,.aura-services-hub-card){transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease}
  #aura-main :is(.aura-principle,.aura-step,.aura-services-hub-card):hover{transform:translateY(-2px)}
  .aura-header-inner .wp-block-navigation__submenu-container .wp-block-navigation-item__content{transition:color .2s ease}
}
