/* OXO usability refinement. Load after the existing public stylesheets. */

/* Reading sizes are scoped to content; logo, award and hero geometry stay owned
   by the original stylesheets. */
.detail-section p,
.detail-section li,
.case-story p,
.case-feature p {
  font-size: 16px;
  line-height: 1.75;
}

.detail-section > div,
.case-story > div {
  min-width: 0;
}

.detail-section p {
  max-width: 70ch;
}

.page-hero .lead,
.insight-deck {
  text-wrap: pretty;
}

.page-contact p {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.7;
}

.page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.4;
}

.header .nav-submenu small {
  font-size: 12px;
  line-height: 1.55;
}

/* Keep the existing CTA treatment; correct the contrast of the blue variant. */
.case-next .case-links a:first-child {
  color: #fff;
  background: #0868a8;
  border-color: #398fc4;
}

.case-next .case-links a:first-child:hover {
  color: #fff;
  background: #07558b;
  border-color: #69b4e1;
}

.case-next .case-links a {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.insight-help .button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
  white-space: normal;
  line-height: 1.4;
  text-align: left;
}

.app-nav-bottom > a {
  background: linear-gradient(120deg, #0b70b0, #07548a);
}

.app-nav-label small {
  font-size: 12px;
  line-height: 1.5;
}

/* Readable form labels and placeholders, with the existing input/submit
   behavior and light form surface preserved. */
.enquiry .enquiry-intro > p {
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.75;
}

.enquiry .enquiry-steps {
  font-size: 13px;
  line-height: 1.6;
}

.enquiry form label {
  font-size: 13px;
  line-height: 1.5;
}

.enquiry form label > span {
  font-size: 11px;
  color: #566875;
}

.enquiry .form-heading > span {
  font-size: 12px;
  line-height: 1.5;
}

.enquiry .form-pair select {
  margin-bottom: 0;
}

.enquiry input,
.enquiry select,
.enquiry textarea {
  font-size: 16px;
  border-color: #8795a1;
}

.enquiry input::placeholder,
.enquiry textarea::placeholder {
  color: #596b7b;
  opacity: 1;
}

.enquiry .form-privacy {
  font-size: 12px;
  line-height: 1.65;
  color: #4f616f;
}

.enquiry .form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.enquiry .form-bottom {
  flex-wrap: wrap;
  row-gap: 12px;
}

.enquiry .form-bottom > .form-mode {
  font-size: 12px;
  line-height: 1.5;
}

.enquiry .form-feedback {
  font-size: 14px;
  line-height: 1.6;
}

/* Native disclosure for optional fields added to the existing form. */
.enquiry .enquiry-optional {
  margin: 0 0 24px;
  padding: 0 16px;
  border: 1px solid #b5c3ce;
  border-radius: 10px;
  background: #ffffff80;
  color: #263e51;
}

.enquiry .enquiry-optional > summary {
  position: relative;
  display: block;
  min-height: 48px;
  margin: 0 -16px;
  padding: 14px 48px 14px 16px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 9px;
}

.enquiry .enquiry-optional > summary > span {
  display: block;
  margin-top: 4px;
  color: #536776;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.enquiry .enquiry-optional > summary::-webkit-details-marker {
  display: none;
}

.enquiry .enquiry-optional > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #386279;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.enquiry .enquiry-optional-fields {
  display: grid;
  gap: 18px;
}

.enquiry .enquiry-optional-fields > .form-pair {
  margin-bottom: 0;
}

.enquiry .enquiry-optional > summary:hover {
  background: #dce8f166;
}

.enquiry .enquiry-optional > summary:focus-visible {
  outline: 2px solid #1476a6;
  outline-offset: 3px;
}

.enquiry .enquiry-optional[open] {
  padding-bottom: 18px;
}

.enquiry .enquiry-optional[open] > summary {
  margin-bottom: 18px;
  border-bottom: 1px solid #c3cfd9;
  border-radius: 9px 9px 0 0;
}

.enquiry .enquiry-optional[open] > summary::after {
  content: "−";
}

.enquiry .enquiry-optional p {
  margin: 0 0 16px;
  color: #536776;
  font-size: 13px;
  line-height: 1.6;
}

.enquiry .enquiry-optional .form-pair {
  margin-bottom: 18px;
}

.enquiry .enquiry-optional .form-pair:last-child {
  margin-bottom: 0;
}

/* On Contact, bring the requested form closer to the introduction. */
.contact-hero {
  padding-bottom: 32px;
}

.contact-hero h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.contact-hero + .enquiry {
  padding-top: 32px;
}

.contact-hero + .enquiry .enquiry-grid {
  margin-top: 0;
}

/* Added only when a real enquiry form/contact CTA already precedes the footer.
   The script refuses to apply this to any intro containing an image or award. */
.oxo-footer .oxo-footer-intro.oxo-duplicate-cta {
  display: none;
}

@media (max-width: 760px) {
  .page-hero .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .phoenix-stage .phoenix-intro p {
    max-width: 38ch;
    margin: 18px 0 22px;
    font-size: 16px;
    line-height: 1.6;
  }

  .phoenix-stage .phoenix-eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .05em;
  }

  .phoenix-stage .hero-footnote {
    font-size: 8px;
    line-height: 1.6;
    letter-spacing: .04em;
  }

  .phoenix-stage .phoenix-intro .button {
    font-size: 13px;
  }

  .enquiry .form-heading {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .enquiry .form-bottom .button {
    justify-content: center;
  }

  .contact-hero + .enquiry {
    padding-top: 20px;
  }
}

/* Scoped content additions: load after the site's existing styles. */
.case-hero h1[data-oxo-case-title] {
  text-transform: none;
  overflow-wrap: anywhere;
}
.case-project-descriptor {
  margin: 18px 0 0;
  color: #79c2f5;
  font-size: clamp(18px, 1.9vw, 27px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: none;
}
.case-project-descriptor + .lead { margin-top: 22px; }

.detail-section.oxo-proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "visual heading" "visual copy";
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 20px;
  align-items: start;
}
.oxo-proof-heading { grid-area: heading; min-width: 0; }
.oxo-proof-heading .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #79c2f5;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
}
.oxo-proof-heading h2 { margin: 0; }
.oxo-proof-copy { grid-area: copy; min-width: 0; }
.oxo-proof-copy > :first-child { margin-top: 0; }
.oxo-proof-copy > :last-child { margin-bottom: 0; }
.detail-section .oxo-proof-visual {
  grid-area: visual;
  display: block;
  min-width: 0;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(144, 193, 229, .25);
  border-radius: 18px;
  background: #0d1722;
  color: #f1f5f8;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.oxo-proof-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1363 / 936;
  object-fit: contain;
  background: #0d1722;
}
.oxo-proof-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid rgba(144, 193, 229, .16);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}
.oxo-proof-caption > :last-child { color: #79c2f5; font-size: 22px; }
.oxo-proof-visual:hover { border-color: rgba(121, 194, 245, .65); box-shadow: 0 20px 54px rgba(0, 0, 0, .3); }

.oxo-project-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: stretch;
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(168, 191, 214, .18);
}
.oxo-project-nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 28px 0;
  color: #dce7ee;
  text-decoration: none;
  text-transform: none;
}
.oxo-project-nav-next { justify-content: flex-end; text-align: right; }
.oxo-project-nav small {
  display: block;
  margin-bottom: 7px;
  color: #9faebd;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
}
.oxo-project-nav strong {
  display: block;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.35;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.oxo-project-nav a > span[aria-hidden] { color: #79c2f5; font-size: 24px; }
.oxo-project-nav a:hover strong, .oxo-project-nav a:hover { color: #79c2f5; }

.oxo-work-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.oxo-work-more a {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid rgba(144, 193, 229, .35);
  border-radius: 999px;
  background: rgba(16, 35, 51, .4);
  color: #e9f2f8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  transition: background .2s ease, border-color .2s ease;
}
.oxo-work-more a > span { color: #79c2f5; font-size: 20px; }
.oxo-work-more a:hover { background: rgba(30, 77, 110, .35); border-color: #79c2f5; }
.oxo-proof-visual:focus-visible,
.oxo-project-nav a:focus-visible,
.oxo-work-more a:focus-visible { outline: 2px solid #79c2f5; outline-offset: 5px; }

@media (max-width: 760px) {
  .detail-section.oxo-proof-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "visual" "copy";
    gap: 24px;
  }
  .oxo-proof-visual { width: 100%; }
  .oxo-proof-caption { padding: 14px 16px; }
  .oxo-project-nav { grid-template-columns: minmax(0, 1fr); }
  .oxo-project-nav a { padding: 22px 0; }
  .oxo-project-nav-next { border-top: 1px solid rgba(168, 191, 214, .12); }
  .oxo-work-more { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .oxo-proof-visual, .oxo-work-more a { transition: none; }
}

/* Contact-only corrections observed in preview; no form controls or handlers. */
.contact-hero ~ .office-details {
  box-sizing: border-box;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad, 24px);
  padding-right: var(--page-pad, 24px);
}
.contact-hero ~ .office-details > div {
  min-width: 0;
}
.contact-hero ~ .office-details address {
  margin: 0 0 8px;
  font-style: normal;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.contact-hero ~ .office-details > div > a {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Both enquiry forms need full width before the paired fields become cramped. */
@media (max-width: 980px) {
  .enquiry .enquiry-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
