﻿/* Current polish overrides loaded after the main stylesheet. */
:root {
  --brand-nav-font: "Sohne", "Sohne", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.simple-header,
.site-header {
  min-height: 74px !important;
  padding-block: 8px !important;
}

.simple-header {
  padding-inline: clamp(22px, 4vw, 64px) !important;
}

.site-header {
  padding-inline: clamp(18px, 3.4vw, 50px) !important;
}

.simple-header nav {
  gap: clamp(16px, 1.55vw, 28px) !important;
}

.main-nav {
  gap: 14px !important;
}

.simple-header nav a,
.simple-header .nav-dropdown > button,
.main-nav a,
.main-nav .nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-nav-font) !important;
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-logo-img,
.simple-header .brand-logo-img,
.site-header .brand-logo-img {
  width: auto;
  max-width: clamp(135px, 11.5vw, 190px);
  height: clamp(44px, 3.5vw, 60px);
  max-height: 60px;
  object-fit: contain;
  filter: none !important;
}

.simple-brand,
.site-header .brand {
  min-width: clamp(135px, 11.5vw, 190px) !important;
}

.footer-logo .brand-logo-img,
.site-footer .brand-logo-img,
.footer-brand .brand-logo-img {
  width: auto;
  max-width: clamp(250px, 22vw, 350px);
  height: clamp(86px, 8vw, 130px);
  max-height: 130px;
  object-fit: contain;
}

.card-action {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 40px);
  min-height: 30px;
  white-space: nowrap;
}

.services-grid article,
.blog-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-grid .card-action,
.blog-grid .card-action {
  margin-top: auto;
}

.contact-lines {
  display: grid;
  gap: 8px;
}

.contact-lines span {
  display: block;
}

@media (min-width: 1180px) {
  .services-section .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px;
  }

  .services-grid h3 {
    font-size: clamp(24px, 1.7vw, 30px);
    line-height: 1.12;
  }

  .services-grid p {
    font-size: 14.5px;
  }
}

@media (max-width: 760px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  #theme-canvas {
    display: none;
  }

  .simple-header,
  .site-header {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 7px 12px 8px !important;
  }

  .simple-brand,
  .site-header .brand {
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .brand-logo-img,
  .simple-header .brand-logo-img,
  .site-header .brand-logo-img {
    width: min(112px, 40vw);
    max-width: min(112px, 40vw);
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 48px;
    min-height: 40px;
    padding: 0 11px;
    color: #13211c;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(32, 33, 29, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(32, 33, 29, 0.1);
    cursor: pointer;
  }

  .menu-lines {
    position: relative;
    display: block;
    width: 21px;
    height: 2px;
    color: #13211c;
    background: #13211c;
    border-radius: 999px;
    font-size: 0;
  }

  .menu-lines::before,
  .menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }

  .menu-lines::before {
    top: -7px;
  }

  .menu-lines::after {
    top: 7px;
  }

  .menu-label {
    color: #13211c;
    font-family: var(--brand-nav-font);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .simple-header nav,
  .main-nav {
    grid-column: 1 / -1;
    display: none !important;
    width: 100%;
    justify-content: stretch;
    gap: 8px;
    padding: 0;
  }

  .simple-header.nav-open nav,
  .site-header.nav-open .main-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    margin-top: 4px;
  }

  .simple-header nav a,
  .simple-header .nav-dropdown > button,
  .main-nav a,
  .main-nav .nav-dropdown > button {
    min-height: 36px;
    padding: 8px 10px;
    justify-content: center;
    font-family: var(--brand-nav-font);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid rgba(32, 33, 29, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > button {
    width: 100%;
  }

  .nav-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-menu,
  .nav-dropdown:focus-within .nav-menu {
    display: grid;
  }

  .header-actions {
    display: none !important;
  }

  .simple-hero,
  .about-section,
  .outcomes-section,
  .enquiry-band,
  .page-content,
  .footer-top,
  .footer-middle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .simple-hero,
  .about-section,
  .services-section,
  .process-section,
  .outcomes-section,
  .locations-section,
  .blogs-section,
  .testimonials-section,
  .enquiry-band,
  .final-cta,
  .page-content,
  .contact-section {
    width: 100%;
    padding: 52px 16px;
  }

  .simple-hero {
    padding-top: 34px;
    min-height: auto;
  }

  .page-hero {
    padding: 68px 16px 52px;
  }

  .page-hero-inner {
    width: 100%;
  }

  h1,
  .simple-hero h1,
  .page-hero h1,
  .article-shell h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.05;
  }

  h2,
  .footer-top h2,
  .article-shell h2 {
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1.12;
  }

  h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  p,
  .simple-hero p,
  .page-hero p,
  .article-shell section p {
    font-size: 16px;
    line-height: 1.6;
  }

  .eyebrow {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .simple-hero img,
  .about-section img,
  .locations-grid img,
  .blog-grid img,
  .services-grid img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
  }

  .simple-hero img,
  .about-section img {
    border-radius: 12px;
  }

  .services-grid,
  .blog-grid,
  .locations-grid,
  .testimonial-grid,
  .process-grid,
  .metrics-grid,
  .outcomes-section .metrics-grid,
  .quick-form,
  .contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .services-grid a,
  .blog-grid a {
    min-width: 0;
  }

  .services-grid article,
  .blog-grid article,
  .locations-grid article,
  .process-grid article,
  .metrics-grid article,
  .testimonial-grid blockquote {
    width: 100%;
    min-height: auto;
    padding: 20px;
    border-radius: 10px;
  }

  .blog-grid article {
    padding: 0 0 20px;
  }

  .blog-grid span,
  .blog-grid h3,
  .blog-grid p {
    padding-inline: 20px;
  }

  .services-grid h3,
  .blog-grid h3,
  .locations-grid h3 {
    margin-top: 14px;
  }

  .card-action,
  .services-grid .card-action,
  .blog-grid .card-action {
    width: max-content;
    max-width: calc(100% - 40px);
    margin: auto 20px 0;
    padding-top: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .final-cta,
  .article-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .footer-button,
  .quick-form button {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    padding: 0 18px;
    font-size: 14px;
    text-align: center;
  }

  .call-button span {
    white-space: normal;
  }

  .quick-form label,
  .quick-form .full,
  .contact-form label,
  .contact-form .full {
    grid-column: auto;
    min-width: 0;
  }

  .quick-form input,
  .quick-form select,
  .quick-form textarea,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .article-page {
    padding: 52px 16px;
  }

  .article-shell {
    padding: 24px 18px;
    border-radius: 10px;
  }

  .article-lead {
    font-size: 18px;
  }

  .mega-footer {
    padding: 44px 16px 32px;
    margin-top: 32px;
  }

  .footer-logo .brand-logo-img,
  .site-footer .brand-logo-img,
  .footer-brand .brand-logo-img {
    width: min(250px, 82vw);
    max-height: 96px;
  }

  .footer-top nav {
    gap: 14px;
    font-size: 20px;
  }

  .footer-contact h3 {
    font-size: 30px;
  }

  .footer-middle {
    margin-top: 42px;
    align-items: start;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-bottom {
    gap: 16px;
    margin-top: 42px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .simple-header,
  .site-header {
    padding-inline: 12px;
  }

  .simple-header nav a,
  .simple-header .nav-dropdown > button,
  .main-nav a,
  .main-nav .nav-dropdown > button {
    font-size: 12px;
    padding-inline: 8px;
  }

  h1,
  .simple-hero h1,
  .page-hero h1,
  .article-shell h1 {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .simple-header,
  .site-header {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 0 !important;
  }

  .simple-brand,
  .site-header .brand {
    min-width: 0 !important;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 48px;
    min-height: 40px;
    padding: 0 11px;
    color: #13211c;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(32, 33, 29, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(32, 33, 29, 0.1);
    cursor: pointer;
  }

  .menu-lines {
    position: relative;
    display: block;
    width: 21px;
    height: 2px;
    color: #13211c;
    background: #13211c;
    border-radius: 999px;
    font-size: 0;
  }

  .menu-lines::before,
  .menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }

  .menu-lines::before {
    top: -7px;
  }

  .menu-lines::after {
    top: 7px;
  }

  .menu-label {
    color: #13211c;
    font-family: var(--brand-nav-font);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .simple-header nav,
  .main-nav {
    grid-column: 1 / -1;
    display: none !important;
    width: 100%;
    justify-content: stretch;
    gap: 8px;
    padding: 0;
  }

  .simple-header.nav-open nav,
  .site-header.nav-open .main-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    margin-top: 4px;
  }

  .simple-header nav a,
  .simple-header .nav-dropdown > button,
  .main-nav a,
  .main-nav .nav-dropdown > button {
    min-height: 38px;
    padding: 9px 10px;
    justify-content: center;
    font-family: var(--brand-nav-font);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid rgba(32, 33, 29, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
  }

  .header-actions {
    display: none !important;
  }

  .hero-text,
  .simple-hero > *,
  .page-hero-inner,
  .simple-hero h1,
  .simple-hero p,
  .page-hero h1,
  .page-hero p {
    min-width: 0;
    max-width: 100%;
  }

  h1,
  .simple-hero h1,
  .page-hero h1,
  .article-shell h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  p,
  .simple-hero p,
  .page-hero p,
  .article-shell section p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  h1,
  .simple-hero h1,
  .page-hero h1,
  .article-shell h1 {
    font-size: 33px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 18px;
    text-align: left;
  }

  .site-footer .footer-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 12px;
  }

  .site-footer .footer-brand p {
    max-width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 18px;
  }
}

@media (max-width: 980px) {
  .careers-page .career-intro,
  .careers-page .career-apply,
  .career-workstream,
  .careers-page .career-cards {
    grid-template-columns: 1fr !important;
  }

  .careers-page .career-apply > div {
    position: static;
  }
}

@media (max-width: 760px) {
  .careers-page .careers-hero {
    min-height: 0;
    padding: 54px 16px 52px;
    background-position: center;
  }

  .careers-page .careers-hero::before {
    background: rgba(255, 255, 255, 0.82);
  }

  .careers-page .page-hero-inner h1 {
    font-size: clamp(34px, 9.5vw, 43px);
  }

  .career-hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 22px 0 26px;
  }

  .career-hero-points span {
    justify-content: center;
    min-height: 36px;
    text-align: center;
  }

  .careers-page .section {
    padding: 50px 16px;
  }

  .careers-page .career-intro {
    gap: 20px;
  }

  .careers-page .career-intro > div,
  .careers-page .career-apply > div {
    padding: 22px;
    border-radius: 18px;
  }

  .careers-page .career-intro img {
    aspect-ratio: 1.28;
  }

  .simple-hero img.home-advisory-image {
    aspect-ratio: 1.18;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
  }

  .career-workstream {
    gap: 14px;
  }

  .career-workstream article,
  .careers-page .career-cards article {
    padding: 24px;
    border-radius: 18px;
  }
}
