/* Responsive refinements, loaded after WordPress integration styles. */
.footer-top a.footer-phone, .footer-top a.footer-email, .footer-top a.footer-linkedin { display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; }
.gc-phone-icon, .gc-contact-icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: var(--lime); }
.footer-email span { min-width: 0; overflow-wrap: anywhere; }
.footer-phone span { white-space: nowrap; }
.gc-arrow { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; pointer-events: none; }
/* Neutral photo controls, without a coloured frame or emoji badge. */
.experience-gallery .gallery-open {
  appearance: none; -webkit-appearance: none; display: block;
  border: 0; border-radius: 0; padding: 0; margin: 0;
  background: transparent; box-shadow: none; line-height: 0;
}
.experience-gallery .gallery-open:not(:focus-visible) { outline: none; }
.experience-gallery .gallery-open:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.experience-track:focus-visible { outline: 2px solid #62685f; outline-offset: 2px; }
.experience-gallery .gallery-open::after {
  content: ''; width: 18px; height: 18px; right: 12px; bottom: 12px;
  background: #fff; z-index: 2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.experience-gallery .gallery-open::before {
  content: ''; position: absolute; right: 5px; bottom: 5px;
  width: 32px; height: 32px; background: #172019c9; z-index: 1;
}
.header-inner > *, .footer-top > *, .contact-grid > *,
.service-body-grid > *, .intro-grid > *, .leadership-layout > * { min-width: 0; }
.footer-contact, .contact-points a, .registered-strip, .footer-bottom {
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  :root { --gutter: clamp(20px, 4vw, 36px); }
  .header-inner { height: 80px; gap: 16px; }
  .brand { width: 180px; height: 48px; flex-basis: 180px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 6px; flex: 0 0 44px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid #ffffff50; background: transparent; color: white;
  }
  .menu-toggle > span:not(.sr-only) { width: 18px; height: 1px; background: white; }
  .menu-toggle[aria-expanded=true] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header .main-nav {
    display: none; position: absolute; inset: 100% 0 auto;
    padding: 12px var(--gutter) 20px; background: #303532;
    border-top: 1px solid #ffffff20; max-height: calc(100dvh - 80px);
    overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 24px #0003;
  }
  .site-header .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .main-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-header .main-nav a { display: block; padding: 12px 0; font-size: 15px; min-height: 48px; }
  .site-header .main-nav .nav-cta { display: flex; margin: 12px 0 0; padding: 12px 18px; justify-content: space-between; }
  .hero-v3, .hero-v3 .hero-inner { min-height: 0; }
  .hero-v3 .hero-inner { padding-top: 56px; padding-bottom: 92px; gap: 36px; }
  .hero-v3 .hero-title { font-size: clamp(38px, 6.8vw, 68px); overflow-wrap: break-word; }
  .hero-v3 .hero-bottom { padding-top: 0; }
  .hero-v3 > .gallery-controls { bottom: 20px; margin: 0; }
  .hero-v3 .photo-credit { margin-right: 0; }
  .service-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .service-search { align-items: flex-start; flex-wrap: wrap; }
  .service-search input { max-width: 100%; }
  .service-search label { flex-wrap: wrap; gap: 12px; }
  .approach-section { grid-template-columns: 1fr; }
  .approach-image { min-height: 0; height: 320px; }
  .approach-copy { padding: 44px var(--gutter); }
  .project-story { grid-template-columns: 1fr; gap: 28px; }
  .service-body-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-scope-panel { max-width: none; }
  .service-page-hero { min-height: 0; }
  .service-page-hero-copy { padding-block: 28px 44px; }
  .service-page-hero h1 { font-size: clamp(36px, 6vw, 60px); }
  .breadcrumbs { margin-bottom: 28px; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 20px; }
  .header-inner { height: 72px; }
  .brand { width: 158px; height: 42px; flex-basis: 158px; }
  .site-header .main-nav { max-height: calc(100dvh - 72px); }
  .hero-v3 .hero-inner { padding-top: 36px; padding-bottom: 84px; gap: 28px; }
  .hero-v3 .hero-title { font-size: clamp(34px, 9.1vw, 52px); line-height: 1.09; letter-spacing: -.05em; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .09em; margin-bottom: 20px; }
  .hero-v3 .hero-lead { font-size: 16px; line-height: 1.65; margin-top: 22px; }
  .hero-lead br { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .hero-actions .wp-block-button, .hero-actions .wp-block-button__link { width: 100%; }
  .hero-actions .wp-block-button__link { min-height: 48px; padding: 13px 17px; font-size: 13px; }
  .hero-v3 .hero-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-location, .hero-v3 .photo-credit { font-size: 10px; }
  .specialisms-inner { display: grid; grid-template-columns: 1fr; gap: 7px; padding-block: 18px; }
  .specialisms-inner .strip-label { font-size: 9px; margin-bottom: 5px; }
  .specialisms-inner p { font-size: 13px; }
  .section, .v3-intro { padding-block: 48px; }
  h2, .services-heading h2, .approach-copy h2, .cta-band h2 { font-size: clamp(29px, 8vw, 38px); }
  .page-intro { padding-block: 38px; }
  .page-intro h1 { font-size: clamp(36px, 10vw, 48px); overflow-wrap: break-word; }
  .large-copy, .leadership-copy .large-copy { font-size: 17px; line-height: 1.75; }
  .intro-copy > p:not(.large-copy), .service-feature-copy p,
  .service-text p, .team-bio, .leadership-layout .team-bio { font-size: 15px; }
  .service-directory, .service-feature-grid, .region-grid,
  .geocore-team-grid, .leadership-layout .geocore-team-grid { grid-template-columns: minmax(0, 1fr); }
  .service-directory { gap: 0; }
  .service-directory-copy p { font-size: 15px; }
  .service-search, .service-search label, .service-search input { width: 100%; }
  .service-search input, .geocore-enquiry input, .geocore-enquiry select,
  .geocore-enquiry textarea { font-size: 16px; }
  .service-feature-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
  .service-landscape { height: 300px; }
  .landscape-caption h2 { font-size: 34px; }
  .experience-slide { flex-basis: 90%; }
  .experience-slide img { height: auto; aspect-ratio: 1.35; object-fit: cover; }
  .experience-intro { max-width: none; font-size: 15px; }
  .experience-slide figcaption { font-size: 12px; }
  .leadership-layout .geocore-team-grid { gap: 28px; max-width: none; }
  .team-photo, .leadership-layout .team-photo { aspect-ratio: 1.15; }
  .team-photo img, .leadership-layout .team-photo img { aspect-ratio: auto; }
  .team-name, .leadership-layout .team-name { font-size: 26px; }
  .team-role, .leadership-layout .team-role { font-size: 11px; }
  .contact-grid { gap: 28px; }
  .contact-form-panel { padding: 22px 18px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; }
  .footer-top > div:last-child, .footer-top > div:first-child { grid-column: auto; }
  .footer-top a:not(.brand) { font-size: 14px; padding-block: 5px; max-width: 100%; }
  .footer-top > div > p:not(.footer-label), .footer-bottom { font-size: 12px; }
  .footer-label { font-size: 11px; }
  .cta-band { padding-block: 40px; }
  .cta-inner > .wp-block-buttons, .cta-inner .wp-block-button, .cta-inner .wp-block-button__link { width: 100%; }
  .project-empty { padding: 22px; }
  .photo-dialog { max-width: 96vw; width: 96vw; max-height: 94dvh; }
  .photo-dialog-header, .photo-dialog-footer { padding: 12px; }
}
/* A turned phone needs a shorter header and a menu that can scroll. */
@media (max-width: 980px) and (max-height: 550px) and (orientation: landscape) {
  .header-inner { height: 64px; }
  .brand { width: 150px; flex-basis: 150px; height: 40px; }
  .site-header .main-nav { max-height: calc(100dvh - 64px); }
  .hero-v3 .hero-inner { padding-top: 28px; padding-bottom: 80px; gap: 22px; }
  .hero-v3 .hero-title { font-size: clamp(34px, 5.2vw, 48px); }
  .hero-v3 .hero-lead { margin-top: 16px; font-size: 15px; }
  .hero-actions { margin-top: 20px; }
  .hero .eyebrow { margin-bottom: 15px; }
  .section { padding-block: 44px; }
}
